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
Lets a user edit a username and password entry or their related service URI to the Keystore.
private void editPassword() { // Which password entry has been selected? int iRow = passwordsTable.getSelectedRow(); if (iRow == -1) { // no row currently selected return; } // Get current values for service URI, username and password URI serviceURI = URI.create((String) passwordsTable.getValueAt(iRow, 1)); // current entry's service URI String username = (String) passwordsTable.getValueAt(iRow, 2); // current entry's username /* * Because the password column is not visible we call the getValueAt * method on the table model rather than at the JTable */ String password = (String) passwordsTable.getModel() .getValueAt(iRow, 4); // current entry's password value while (true) { // loop until user cancels or enters everything correctly // Let the user edit service URI, username or password of a password entry NewEditPasswordEntryDialog editPasswordDialog = new NewEditPasswordEntryDialog( this, "Edit username and password for a service", true, serviceURI, username, password, credManager); editPasswordDialog.setLocationRelativeTo(this); editPasswordDialog.setVisible(true); // New values URI newServiceURI = editPasswordDialog.getServiceURI(); // get new service URI String newUsername = editPasswordDialog.getUsername(); // get new username String newPassword = editPasswordDialog.getPassword(); // get new password if (newPassword == null) // user cancelled - any of the above three // fields is null // do nothing return; // Is anything actually modified? boolean isModified = !serviceURI.equals(newServiceURI) || !username.equals(newUsername) || !password.equals(newPassword); if (isModified) { /* * Check if a different password entry with the new URI (i.e. * alias) already exists in the Keystore We ask this here as the * user may wish to overwrite that other password entry. */ // Get list of URIs for all passwords in the Keystore List<URI> serviceURIs = null; try { serviceURIs = credManager .getServiceURIsForAllUsernameAndPasswordPairs(); } catch (CMException cme) { showMessageDialog(this, "Failed to get service URIs for all username and password pairs " + "to check if the modified entry already exists", ERROR_TITLE, ERROR_MESSAGE); return; } // If the modified service URI already exists and is not the // currently selected one if (!newServiceURI.equals(serviceURI) && serviceURIs.contains(newServiceURI)) { int answer = showConfirmDialog( this, "The Keystore already contains username and password pair for the entered service URI.\n" + "Do you want to overwrite it?", ALERT_TITLE, YES_NO_OPTION); try { if (answer == YES_OPTION) { /* * Overwrite that other entry entry and save the new * one in its place. Also remove the current one * that we are editing - as it is replacing the * other entry. */ credManager .deleteUsernameAndPasswordForService(serviceURI); credManager.addUsernameAndPasswordForService( new UsernamePassword(newUsername, newPassword), newServiceURI); break; } } catch (CMException cme) { showMessageDialog( this, "Failed to update the username and password pair in the Keystore", ERROR_TITLE, ERROR_MESSAGE); } // Otherwise show the same window with the entered // service URI, username and password values } else try { if (!newServiceURI.equals(serviceURI)) credManager .deleteUsernameAndPasswordForService(serviceURI); credManager.addUsernameAndPasswordForService( new UsernamePassword(newUsername, newPassword), newServiceURI); break; } catch (CMException cme) { showMessageDialog( this, "Failed to update the username and password pair in the Keystore", ERROR_TITLE, ERROR_MESSAGE); } } else // nothing actually modified break; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void newPassword() {\n\t\tURI serviceURI = null; // service URI\n\t\tString username = null; // username\n\t\tString password = null; // password\n\n\t\t// Loop until the user cancels or enters everything correctly\n\t\twhile (true) {\n\t\t\t/*\n\t\t\t * Let the user insert a new password entry (by specifying service\n\t\t\t * URI, username and password)\n\t\t\t */\n\t\t\tNewEditPasswordEntryDialog newPasswordDialog = new NewEditPasswordEntryDialog(\n\t\t\t\t\tthis, \"New username and password for a service\", true,\n\t\t\t\t\tserviceURI, username, password, credManager);\n\t\t\tnewPasswordDialog.setLocationRelativeTo(this);\n\t\t\tnewPasswordDialog.setVisible(true);\n\n\t\t\tserviceURI = newPasswordDialog.getServiceURI(); // get service URI\n\t\t\tusername = newPasswordDialog.getUsername(); // get username\n\t\t\tpassword = newPasswordDialog.getPassword(); // get password\n\n\t\t\tif (password == null) { // user cancelled - any of the above three\n\t\t\t\t// fields is null\n\t\t\t\t// do nothing\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t/*\n\t\t\t * Check if a password entry with the given service URI already\n\t\t\t * exists in the Keystore. We ask this here as the user may wish to\n\t\t\t * overwrite the existing password entry. Checking for key pair\n\t\t\t * entries' URIs is done in the NewEditPasswordEntry dialog.\n\t\t\t */\n\n\t\t\t/*\n\t\t\t * Get list of service URIs for all the password entries in the\n\t\t\t * Keystore\n\t\t\t */\n\t\t\tList<URI> serviceURIs = null;\n\t\t\ttry {\n\t\t\t\tserviceURIs = credManager\n\t\t\t\t\t\t.getServiceURIsForAllUsernameAndPasswordPairs();\n\t\t\t} catch (CMException cme) {\n\t\t\t\tshowMessageDialog(this, \"Failed to get service URIs for all username and password pairs \"\n\t\t\t\t\t\t+ \"to check if the entered service URI already exists\",\n\t\t\t\t\t\tERROR_TITLE, ERROR_MESSAGE);\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tif (serviceURIs.contains(serviceURI)) { // if such a URI already\n\t\t\t\t// exists\n\t\t\t\t// Ask if the user wants to overwrite it\n\t\t\t\tint answer = showConfirmDialog(\n\t\t\t\t\t\t\t\tthis,\n\t\t\t\t\t\t\t\t\"Credential Manager already contains a password entry with the same service URI.\\n\"\n\t\t\t\t\t\t\t\t\t\t+ \"Do you want to overwrite it?\",\n\t\t\t\t\t\t\t\tALERT_TITLE,\n\t\t\t\t\t\t\t\tYES_NO_OPTION);\n\n\t\t\t\t// Add the new password entry in the Keystore\n\t\t\t\ttry {\n\t\t\t\t\tif (answer == YES_OPTION) {\n\t\t\t\t\t\tcredManager.addUsernameAndPasswordForService(\n\t\t\t\t\t\t\t\tnew UsernamePassword(username, password),\n\t\t\t\t\t\t\t\tserviceURI);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t} catch (CMException cme) {\n\t\t\t\t\tshowMessageDialog(\n\t\t\t\t\t\t\tthis,\n\t\t\t\t\t\t\t\"Credential Manager failed to insert a new username and password pair\",\n\t\t\t\t\t\t\tERROR_TITLE, ERROR_MESSAGE);\n\t\t\t\t}\n\t\t\t\t/*\n\t\t\t\t * Otherwise show the same window with the entered service URI,\n\t\t\t\t * username and password values\n\t\t\t\t */\n\t\t\t} else\n\t\t\t\t// Add the new password entry in the Keystore\n\t\t\t\ttry {\n\t\t\t\t\tcredManager.addUsernameAndPasswordForService(new UsernamePassword(username,\n\t\t\t\t\t\t\tpassword), serviceURI);\n\t\t\t\t\tbreak;\n\t\t\t\t} catch (CMException cme) {\n\t\t\t\t\tshowMessageDialog(\n\t\t\t\t\t\t\tthis,\n\t\t\t\t\t\t\t\"Credential Manager failed to insert a new username and password pair\",\n\t\t\t\t\t\t\tERROR_TITLE, ERROR_MESSAGE);\n\t\t\t\t}\n\t\t}\n\t}", "public void newPasswordForService(URI serviceURI) {\n\t\t/*\n\t\t * As this method can be called from outside of Credential Manager UI,\n\t\t * e.g. from wsdl-activity-ui or rshell-activity-ui to pop up a dialog\n\t\t * to ask the user for username and password, we also want to make sure\n\t\t * the main Credential Manager UI Dialog is visible as it may be clearer\n\t\t * to the user what is going on\n\t\t */\n\t\tif (!isVisible() || getState() == ICONIFIED)\n\t\t\tsetVisible(true);\n\n\t\t// Make sure password tab is selected as this method may\n\t\t// be called from outside of Credential Manager UI.\n\t\tkeyStoreTabbedPane.setSelectedComponent(passwordsTab);\n\n\t\tString username = null; // username\n\t\tString password = null; // password\n\n\t\t// Loop until the user cancels or enters everything correctly\n\t\twhile (true) {\n\n//\t\t\tif(!this.isVisible()){ // if Cred Man UI is already showing but e.g. obscured by another window or minimised\n//\t\t\t\t// Do not bring it up!\n//\t\t\t} // actually we now want to show it as it makes it clearer to the user what is going on\n\n\t\t\t// Let the user insert a new password entry for the given service\n\t\t\t// URI (by specifying username and password)\n\t\t\tNewEditPasswordEntryDialog newPasswordDialog = new NewEditPasswordEntryDialog(\n\t\t\t\t\tthis, \"New username and password for a service\", true,\n\t\t\t\t\tserviceURI, username, password, credManager);\n\t\t\tnewPasswordDialog.setLocationRelativeTo(this);\n\t\t\tnewPasswordDialog.setVisible(true);\n\n\t\t\tserviceURI = newPasswordDialog.getServiceURI(); // get service URI\n\t\t\tusername = newPasswordDialog.getUsername(); // get username\n\t\t\tpassword = newPasswordDialog.getPassword(); // get password\n\n\t\t\tif (password == null) // user cancelled - any of the above three\n\t\t\t\t// fields is null\n\t\t\t\t// do nothing\n\t\t\t\treturn;\n\n\t\t\t/*\n\t\t\t * Check if a password entry with the given service URI already\n\t\t\t * exists in the Keystore. We ask this here as the user may wish to\n\t\t\t * overwrite the existing password entry. Checking for key pair\n\t\t\t * entries' URIs is done in the NewEditPasswordEntry dialog.\n\t\t\t */\n\n\t\t\t// Get list of service URIs for all the password entries in the\n\t\t\t// Keystore\n\t\t\tList<URI> serviceURIs = null;\n\t\t\ttry {\n\t\t\t\tserviceURIs = credManager\n\t\t\t\t\t\t.getServiceURIsForAllUsernameAndPasswordPairs();\n\t\t\t} catch (CMException cme) {\n\t\t\t\tshowMessageDialog(this, \"Failed to get service URIs for all username and password pairs \"\n\t\t\t\t\t\t+ \"to check if the entered service URI already exists\",\n\t\t\t\t\t\tERROR_TITLE, ERROR_MESSAGE);\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tif (serviceURIs.contains(serviceURI)) { // if such a URI already\n\t\t\t\t// exists\n\t\t\t\t// Ask if the user wants to overwrite it\n\t\t\t\tint answer = showConfirmDialog(\n\t\t\t\t\t\tthis,\n\t\t\t\t\t\t\"Credential Manager already contains a password entry with the same service URI.\\n\"\n\t\t\t\t\t\t\t\t+ \"Do you want to overwrite it?\", ALERT_TITLE,\n\t\t\t\t\t\tYES_NO_OPTION);\n\n\t\t\t\t// Add the new password entry in the Keystore\n\t\t\t\ttry {\n\t\t\t\t\tif (answer == YES_OPTION) {\n\t\t\t\t\t\tcredManager.addUsernameAndPasswordForService(\n\t\t\t\t\t\t\t\tnew UsernamePassword(username, password),\n\t\t\t\t\t\t\t\tserviceURI);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t} catch (CMException cme) {\n\t\t\t\t\tString exMessage = \"Credential Manager failed to insert a new username and password pair\";\n\t\t\t\t\tshowMessageDialog(this, exMessage, ERROR_TITLE,\n\t\t\t\t\t\t\tERROR_MESSAGE);\n\t\t\t\t}\n\t\t\t\t// Otherwise show the same window with the entered service\n\t\t\t\t// URI, username and password values\n\t\t\t} else\n\t\t\t\t// Add the new password entry in the Keystore\n\t\t\t\ttry {\n\t\t\t\t\tcredManager.addUsernameAndPasswordForService(new UsernamePassword(username,\n\t\t\t\t\t\t\tpassword), serviceURI);\n\t\t\t\t\tbreak;\n\t\t\t\t} catch (CMException cme) {\n\t\t\t\t\tshowMessageDialog(this, \"Credential Manager failed to insert a new username and password pair\",\n\t\t\t\t\t\t\tERROR_TITLE,\n\t\t\t\t\t\t\tERROR_MESSAGE);\n\t\t\t\t}\n\t\t}\n\t}", "public void editUser(User user) {\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 }", "private void editUser(){\n getDeviceLocation();\n ProxyBuilder.SimpleCallback<User> callback = returnedUser-> responseEdit(returnedUser);\n ServerManager.editUserProfile(userManager,callback);\n }", "@Override\n public void edit(User user) {\n }", "User editUser(User user);", "@Override\n\tpublic String editUser(Map<String, Object> reqs) {\n\t\treturn null;\n\t}", "void update(String userName, String password, String userFullname,\r\n\t\tString userSex, int userTel, String role);", "@Override\n public void setExisting(String login, String pasword) {\n loginEdit.setText(login);\n passwordEdit.setText(pasword);\n }", "void editUser(String uid, User newUser);", "void updateUserPassword(User user);", "int updateByPrimaryKey(PasswdDo record);", "public void editUser()\r\n\t{\r\n\t\tsc.nextLine();\r\n\t\tint index=loginattempt();\r\n\t\tif(index==-1)\r\n\t\t{\r\n\t\t\t\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tString password=\"\",repassword=\"\";\r\n\t\t\tboolean flag=false;\r\n\t\t\twhile(!flag)\r\n\t\t\t{\r\n\t\t\t\tboolean validpassword=false;\r\n\t\t\t\twhile(!validpassword)\r\n\t\t\t\t{\r\n\t\t\t\t\tSystem.out.print(\"Please enter your new password: \");\r\n\t\t\t\t\tpassword=sc.nextLine();\r\n\t\t\t\t\tvalidpassword=a.validitycheck(password);\r\n\t\t\t\t\tif(!validpassword)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.println(\"Your password has to fulfil: at least 1 small letter, 1 capital letter, 1 digit!\");\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tSystem.out.print(\"Please re-enter your new password: \");\r\n\t\t\t\trepassword=sc.nextLine();\r\n\t\t\t\tflag=a.matchingpasswords(password,repassword);\r\n\t\t\t\tif(!flag)\r\n\t\t\t\t{\r\n\t\t\t\t\tSystem.out.print(\"Password not match! \");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tString hash_password=hashfunction(password); \r\n\t\t\tSystem.out.print(\"Please enter your new full name: \");\r\n\t\t\tString fullname=sc.nextLine();\r\n\t\t\tSystem.out.print(\"Please enter your new email address: \");\r\n\t\t\tString email=sc.nextLine();\r\n\t\t\t((User)user_records.get(index)).set_hash_password(hash_password);\r\n\t\t\t((User)user_records.get(index)).set_fullname(fullname);\r\n\t\t\t((User)user_records.get(index)).set_email(email);\r\n\t\t\tSystem.out.println(\"Record update successfully!\");\r\n\t\t}\r\n\t}", "void editAddressUser(String uid, Address address);", "@RolesAllowed(\"admin\")\n @PUT\n @Consumes({\"application/atom+xml\",\n \"application/atom+xml;type=entry\",\n \"application/xml\",\n \"text/xml\"})\n public Response put(Entry entry) {\n\n // Validate the incoming user information independent of the database\n User user = contentHelper.getContentEntity(entry, MediaType.APPLICATION_XML_TYPE, User.class);\n StringBuilder errors = new StringBuilder();\n if ((user.getPassword() == null) || (user.getPassword().length() < 1)) {\n errors.append(\"Missing 'password' property\\r\\n\");\n }\n\n if (errors.length() > 0) {\n return Response.status(400).\n type(\"text/plain\").\n entity(errors.toString()).build();\n }\n\n // Validate conditions that require locking the database\n synchronized (Database.users) {\n\n // Look up the original user information\n User original = Database.users.get(username);\n if (original == null) {\n return Response.status(404).\n type(\"text/plain\").\n entity(\"User '\" + username + \"' does not exist\\r\\n\").\n build();\n }\n\n // Update the original user information\n original.setPassword(user.getPassword());\n original.setUpdated(new Date());\n Database.usersUpdated = new Date();\n return Response.\n ok().\n build();\n\n }\n\n }", "public void editTheirProfile() {\n\t\t\n\t}", "@Override\n\tpublic void credite() {\n\t\t\n\t}", "public void edit(String id, int k, String str) throws IOException, Exception {\n\t\tUserDAOImpl ud = new UserDAOImpl();\n\t\tUser u = new User();\n\t\tu = ud.checkInformation(id);\n\t\tud.getUsers();\n\t\t\n\t\tif (k == 1) ud.editFile(u.getEmail(), str, id);\n\t\telse if (k == 2) ud.editFile(u.getPassword(), str, id);\n\t\telse if (k == 3) ud.editFile(u.getPhoneNumber(), str, id);\n\t}", "@Override\n\tpublic void modPasswd(String tenantId, String serverId, String userName,\n\t\t\tString passwd, String type) throws Exception {\n\t\t\n\t}", "@Override\n\tpublic void alterpassword(User user) throws Exception {\n\n\t}", "private void setUserCredentials() {\n ((EditText) findViewById(R.id.username)).setText(\"harish\");\n ((EditText) findViewById(R.id.password)).setText(\"11111111\");\n PayPalHereSDK.setServerName(\"stage2pph10\");\n }", "void retrievePassWord(User user);", "UserSettings store(HawkularUser user, String key, String value);", "void setUserUsername(String username);", "public void updateEntry(String userName, String password) {\n // create object of ContentValues\n ContentValues updatedValues = new ContentValues();\n // Assign values for each Column.\n updatedValues.put(\"USERNAME\", userName);\n updatedValues.put(\"PASSWORD\", password);\n\n String where = \"USERNAME = ?\";\n db.update(\"LOGIN\", updatedValues, where, new String[] { userName });\n }", "void accountSet(boolean admin, String username, String password, String fName, String lName, int accountId);", "public void editAgentCredential(Agent agent);", "@Override\r\n\tpublic void changePassword() throws NoSuchAlgorithmException\r\n\t{\r\n\t\tSystem.out.print(\"Enter user ID you wish to change: \");\r\n\t\tString idInput = scan.next();\r\n\t\tboolean isUnique = isUniqueID(idInput);\r\n\t\tif (isUnique == false)\r\n\t\t{\r\n\t\t\tSystem.out.print(\"Enter password for \" + idInput + \": \");\r\n\t\t\tString oldPassInput = scan.next();\r\n\t\t\tString oldHash = hashFunction(oldPassInput + database.get(idInput));\r\n\t\t\tboolean isValidated = validatePassword(oldHash);\r\n\t\t\tif (isValidated == true)\r\n\t\t\t{\r\n\t\t\t\thm.remove(oldHash);\r\n\t\t\t\tSystem.out.print(\"Enter new password for \" + idInput + \": \");\r\n\t\t\t\tmakePassword(idInput, scan.next());\r\n\t\t\t\tSystem.out.println(\"The password for \" + idInput + \" was successfully changed.\");\r\n\t\t\t}\r\n\t\t\telse if (isValidated == false)\r\n\t\t\t{\r\n\t\t\t\tSystem.out.println(\"The ID or password you entered does not exist in the database.\");\r\n\t\t\t}\r\n\t\t}\r\n\t\telse if (isUnique == true)\r\n\t\t{\r\n\t\t\tSystem.out.print(\"Enter password for \" + idInput + \": \");\r\n\t\t\tscan.next();\r\n\t\t\tSystem.out.println(\"Authentication fail\");\r\n\t\t\tSystem.out.println(\"The ID or password you entered does not exist in the database.\");\r\n\t\t}\r\n\t}", "@Override\r\n\tpublic void modifyPassword(String username, String password, String confirmPassword, String oldPassword) {\n\t}", "private Boolean updateServiceValues( String user, String pw ) {\n\t\tURL url = null;\n\t\t\n\t\t//Make sure we have a valid url\n\t\tString complete = this.preferences.getString(\"server\", \"\");\n\t\t\t\n\t\ttry {\n\t\t\turl = new URL( complete );\n\t\t} catch( Exception e ) {\n\t\t\tonCreateDialog(DIALOG_INVALID_URL).show();\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\t// Url is valid start service\n\t\t// NOTE: Service will be started even if no network on\n\t\tif( mService != null ) {\n\t\t\tmService.setServer(makeServerUrl());\n\t\t\tmService.setUsername(user);\n\t\t\tmService.setPassword(pw);\n\t\t} else {\n\t\t\tdoBindService();\n\t\t}\n\t\treturn true;\n\t}", "@PUT\n\t@Path(\"/\") \n\t@Consumes(MediaType.APPLICATION_JSON) \n\t@Produces(MediaType.TEXT_PLAIN) \n\tpublic String updatesystem_editor(String systData) \n\t{\n\t\tJsonObject itemObject = new JsonParser().parse(systData).getAsJsonObject(); \n\t\t\n\t\t//Read the values from the JSON object\n\t\tString sid = itemObject.get(\"sid\").getAsString(); \n\t\tString username = itemObject.get(\"username\").getAsString(); \n\t\tString email = itemObject.get(\"email\").getAsString(); \n\t\tString password = itemObject.get(\"password\").getAsString(); \n\t\t\n\t\tString output = sysObj.updatesystem_editor(sid, username, email,password);\n\t\t\n\t\treturn output; \n\t}", "void updateStrongbox(String username, LightStrongbox strongbox);", "public void editEmployee(ActionRequest request, ActionResponse response) throws PortalException, SystemException {\n\t\tString strKey = request.getParameter(\"editKey\");\n\t\tlong empId = Long.valueOf(strKey);\n\t\tEmployee emp = EmployeeLocalServiceUtil.getEmployee(empId);\n\t\trequest.setAttribute(\"editKey\", emp);\n\t\tresponse.setRenderParameter(\"mvcPath\", \"/html/employee/edit.jsp\");\n\t}", "void setName( String username, String name ) throws UserNotFoundException;", "public void editUser(User selectedUser,String fullName, String loginName, String password) throws IOException {\n userManager.editUser(selectedUser,fullName,loginName,password);\n userManager.emptyLists();\n userManager.fillLists();\n AdminMainViewController.emptyStaticLists();\n AdminMainViewController.adminsObservableList.addAll(userManager.getAdminsList());\n AdminMainViewController.usersObservableList.addAll(userManager.getUsersList());\n }", "@Override\n public void edit(){\n Integer Pointer=0;\n FileWriter editDetails = null;\n ArrayList<String> lineKeeper = saveText();\n\n /* Search into the list to find the Username, if it founds it, changes the\n * old information with the new information.\n * Search*/\n if(lineKeeper.contains(getUsername())){\n Pointer=lineKeeper.indexOf(getUsername());\n\n //Write the new information\n lineKeeper.set(Pointer+1, getPassword());\n lineKeeper.set(Pointer+2, getFirstname());\n lineKeeper.set(Pointer+3, getLastname());\n lineKeeper.set(Pointer+4, DMY.format(getDoB()));\n lineKeeper.set(Pointer+5, getContactNumber());\n lineKeeper.set(Pointer+6, getEmail());\n lineKeeper.set(Pointer+7, String.valueOf(getSalary()));\n lineKeeper.set(Pointer+8, getPositionStatus());\n Pointer=Pointer+9;\n homeAddress.edit(lineKeeper,Pointer);\n }//end if\n\n try{\n editDetails= new FileWriter(\"employees.txt\",false);\n for( int i=0;i<lineKeeper.size();i++){\n editDetails.append(lineKeeper.get(i));\n editDetails.append(System.getProperty(\"line.separator\"));\n }//end for\n editDetails.close();\n editDetails = null;\n }//end try\n catch (IOException ioe) {}//end catch\n }", "public void setPassword(String pass);", "public void saveInfo(View view){\n SharedPreferences sharedPref = getSharedPreferences(\"userInfo\", Context.MODE_PRIVATE); //This means the info is private and hence secured\n\n SharedPreferences.Editor editor = sharedPref.edit();\n editor.putString(\"username\", usernameInput.getText().toString());\n editor.putString(\"password\", passwordInput.getText().toString());\n editor.apply();\n\n Toast.makeText(this, \"Saved!\", Toast.LENGTH_LONG).show();\n }", "void setPassword(String password);", "void setPassword(String password);", "void setPassword(String password);", "private void changePassword() throws EditUserException {\n String userIDInput = userID.getText();\n String passwordInput = passwordChange.getText();\n try {\n Admin.changeUserPassword(userIDInput, passwordInput);\n JOptionPane.showMessageDialog(null, \"Change Password Success: \" + userIDInput + \" password successfully changed\");\n // Reset Values\n userID.setText(\"\");\n passwordChange.setText(\"\");\n } catch (EditUserException e) {\n JOptionPane.showMessageDialog(null, e.getMessage());\n throw new EditUserException(e.getMessage());\n } catch (SQLException throwables) {\n throw new EditUserException(\"Change Password Error: Cannot Change\" + userIDInput + \" password\");\n } catch (NullPointerException e) {\n String msg = \"Change Password Error: User ID \" + userIDInput + \" is an invalid userID.\";\n JOptionPane.showMessageDialog(null, msg);\n throw new EditUserException(\"Change Password Error: User ID \" + userIDInput + \" is an invalid userID.\");\n }\n }", "@Override\n\tpublic void edit(User user){\n\t\tuserRepo.save(user);\n\t}", "int updateByPrimaryKeySelective(PasswdDo record);", "public void update() {\n user.setNewPassword(newPassword.getText().toString());\n user.setPassword(password.getText().toString());\n reauthenticate();\n }", "public void setPassword(java.lang.String newPassword);", "@Override\n\tpublic void changePasswordForUser(String userId, String password)\n\t\t\tthrows EntityNotFoundException {\n\t}", "void setUserPasswordHash(String passwordHash);", "@Override\n\tpublic void editUser(ERSUser user) {\n\t\tuserDao.updateUser(user);\n\t}", "@Override\r\n\t\t\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\t\tUser u = user;\r\n\t\t\t\t\t\tuser.setUser_password(NewPassword.getText());\r\n\t\t\t\t\t\tif (NewPassword.getText().equals(surePassword.getText())) {\r\n\t\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\t\tDAOFactory.getIUserDAOInstance().update(u);\r\n\t\t\t\t\t\t\t} catch (Exception e1) {\r\n\t\t\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\t\t\te1.printStackTrace();\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tJOptionPane.showMessageDialog(UserFrame.this, \"更改成功\", \"提示\", \r\n\t\t\t\t\t\t\t\t\tJOptionPane.INFORMATION_MESSAGE);\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tJOptionPane.showMessageDialog(UserFrame.this, \"两次输入不同\", \"提示\", \r\n\t\t\t\t\t\t\t\t\tJOptionPane.INFORMATION_MESSAGE);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}", "private void editAccountType() throws Exception, EditUserException {\n String userChange = userIDInput.getText();\n String accountTypeInput = accountTypeValueEdit;\n try {\n Admin.editAccountType(userChange, accountTypeInput);\n String msg = \"Change user \" + userChange + \" to \" + accountTypeInput + \" success!\";\n JOptionPane.showMessageDialog(null, msg);\n\n // Reset values\n userIDInput.setText(\"\");\n } catch (NullPointerException e) {\n String msg = \"Edit User Error: Empty values. Please try again.\";\n JOptionPane.showMessageDialog(null, msg);\n throw new NullPointerException(msg);\n } catch (SQLException e) {\n String msg = \"Edit User SQL Error: Could not add to database.\";\n JOptionPane.showMessageDialog(null, msg);\n throw new Exception(msg);\n } catch (EditUserException e) {\n JOptionPane.showMessageDialog(null, e.getMessage());\n }\n }", "public void setEditUser(User editUser)\r\n/* */ {\r\n/* 179 */ this.editUser = editUser;\r\n/* */ }", "@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tupdatePwd_click(e);\r\n\t\t\t}", "void setUsername(String username);", "@Override\n\t\t\tpublic void onClick(View v) \n\t\t\t{\n\t\t\t\t\n\t\t\t\tchange_pass(Singleton.user_id, old_pass.getText().toString(), new_pass.getText().toString(), \n\t\t\t\t\t\tnew_pass.getText().toString());\n\t\t\t\t\n\t\t\t}", "public void propagateCredentials( User user, String password );", "DirectoryEntityKey refresh(OfBizUser user);", "@Test\n\tpublic void testUpdateAdminAccountWithSpacesInPassword() {\n\t\tassertEquals(2, adminAccountService.getAllAdminAccounts().size());\n\n\t\tString newPassword = \"this is a bad password\";\n\n\t\tString error = null;\n\t\tAdminAccount user = null; \n\t\ttry {\n\t\t\tuser = adminAccountService.updateAdminAccount(USERNAME1, newPassword, NAME1);\n\t\t} catch (InvalidInputException e) {\n\t\t\terror = e.getMessage();\n\t\t}\n\n\t\tassertNull(user);\n\t\t// check error\n\t\tassertEquals(\"Password cannot contain spaces.\", error);\n\t}", "public interface IUserService {\n\n void changePassword(String username,String password);\n}", "public interface UserService {\n HashMap<String,Object> get(String id);\n\n HashMap<String,Object> getUserByName(String name);\n\n HashMap<String,Object> verifyAccessToken(String accessToken);\n\n int genUserToken(String name, String token);\n\n int changePwd(String id, String newPasswordCiphertext);\n}", "public void updatePassword(String account, String password);", "private void loginAsAdmin() {\n vinyardApp.navigateToUrl(\"http://localhost:8080\");\n vinyardApp.fillUsername(\"admin\");\n vinyardApp.fillPassord(\"321\");\n vinyardApp.clickSubmitButton();\n }", "int updateByPrimaryKey(UserPasswordDO record);", "@Override\n public void onClick(View v) {\n String newPass=et_newPassword.getText().toString().trim();\n String oldPass=et_oldPassword.getText().toString().trim();\n String prefpass=SharedPrefManager.getInstance(getApplicationContext()).getPass();\n if(newPass.equals(\"\")||oldPass.equals(\"\"))\n {\n Toast.makeText(MainActivity.this, \"Enter All Fields\", Toast.LENGTH_SHORT).show();\n }\n else if(!prefpass.equals(oldPass))\n {\n Toast.makeText(MainActivity.this, \"Incorrect Old Password\", Toast.LENGTH_SHORT).show();\n }\n else\n {\n repo.updatePass(oldPass,newPass,\"User\");\n Toast.makeText(MainActivity.this, \"Password Successfully Changed\", Toast.LENGTH_SHORT).show();\n logout();\n dialog.dismiss();\n }\n }", "public String updateUser(){\n\t\tusersservice.update(usersId, username, password, department, role, post, positionId);\n\t\treturn \"Success\";\n\t}", "@Override\n public void onClick(View v) {\n String newPass=et_newPassword.getText().toString().trim();\n String oldPass=et_oldPassword.getText().toString().trim();\n String prefpass=SharedPrefManager.getInstance(getApplicationContext()).getPass();\n if(newPass.equals(\"\")||oldPass.equals(\"\"))\n {\n Toast.makeText(AdminHomeActivity.this, \"Enter All Fields\", Toast.LENGTH_SHORT).show();\n }\n else if(!prefpass.equals(oldPass))\n {\n Toast.makeText(AdminHomeActivity.this, \"Incorrect Old Password\", Toast.LENGTH_SHORT).show();\n }\n else\n {\n repo.updatePass(oldPass,newPass,\"Admin\");\n Toast.makeText(AdminHomeActivity.this, \"Password Successfully Changed\", Toast.LENGTH_SHORT).show();\n logout();\n dialog.dismiss();\n }\n }", "void setPassword(Password newPassword, String plainPassword) throws NoUserSelectedException;", "public void editProfile() {\n\n\t\tAccount account = getInputOfUsersAccount();\n\t\tSystem.out.println(account.getUser().toString());\n\n\t\taccount = userBo.handleProfileOption(account);\n\n\t\tif (userDAO.editProfile(account))\n\t\t\tSystem.out.println(\"User edited!\");\n\n\t\telse\n\t\t\tSystem.out.println(\"Something went wrong!\");\n\n\t\tAdminMenu.getAdminMenu();\n\t}", "public void changingPassword(String un, String pw, String secureQ, String secureA) {\n MongoCollection<Document> collRU = db.getCollection(\"registeredUser\");\n\n // get SHA value of given password\n SHAEncryption sha = new SHAEncryption();\n String shaPW = sha.getSHA(pw);\n\n // updating user database\n collRU.findOneAndUpdate(\n and(\n eq(\"username\", un),\n eq(\"secureQ\", secureQ),\n eq(\"secureA\", secureA)\n ),\n Updates.set(\"password\", shaPW)\n );\n\n // test (print out user after update)\n //getUser(un);\n }", "@Override\n\tpublic void edit(CustomerLogin customerLogin) {\n\t\tCustomerLogin dbcustomerLogin=findCustomerLoginById(customerLogin.getCrn());\n\t\tif(dbcustomerLogin!=null) {\n\t\t\tdbcustomerLogin.setPassword(customerLogin.getPassword());\n\t\t}\n\t\telse\n\t\t\tSystem.out.println(\"Sorry! Customer login Details not found.\");\n\t}", "@Override\n\tpublic String updateUser(String user) {\nreturn null;\n\t}", "private void hitEditProfileApi() {\n appUtils.showProgressDialog(getActivity(), false);\n HashMap<String, String> params = new HashMap<>();\n params.put(ApiKeys.NAME, etFirstName.getText().toString().trim());\n params.put(ApiKeys.PHONE_NO, etPhoneNo.getText().toString().trim());\n params.put(ApiKeys.ADDRESS, etAdress.getText().toString().trim());\n params.put(ApiKeys.POSTAL_CODE, etPostal.getText().toString().trim());\n\n if (countryId != null) {\n params.put(ApiKeys.COUNTRY, countryId);\n }\n if (stateId != null) {\n params.put(ApiKeys.STATE, stateId);\n }\n if (cityId != null) {\n params.put(ApiKeys.CITY, cityId);\n }\n\n ApiInterface service = RestApi.createService(ApiInterface.class);\n Call<ResponseBody> call = service.editProfile(AppSharedPrefs.getInstance(getActivity()).\n getString(AppSharedPrefs.PREF_KEY.ACCESS_TOKEN, \"\"), appUtils.encryptData(params));\n ApiCall.getInstance().hitService(getActivity(), call, new NetworkListener() {\n @Override\n public void onSuccess(int responseCode, String response) {\n try {\n JSONObject mainObject = new JSONObject(response);\n if (mainObject.getInt(ApiKeys.CODE) == 200) {\n JSONObject dataObject = mainObject.getJSONObject(\"DATA\");\n changeEditMode(false);\n isEditModeOn = false;\n ((EditMyAccountActivity) getActivity()).setEditButtonLabel(getString(R.string.edit));\n\n AppSharedPrefs.getInstance(getActivity()).putString(AppSharedPrefs.PREF_KEY.USER_NAME, dataObject.getString(ApiKeys.NAME));\n AppSharedPrefs.getInstance(getActivity()).putString(AppSharedPrefs.PREF_KEY.USER_MOBILE, dataObject.getString(ApiKeys.MOBILE_NUMBER));\n AppSharedPrefs.getInstance(getActivity()).putString(AppSharedPrefs.PREF_KEY.ADDRESS, dataObject.getString(ApiKeys.ADDRESS));\n JSONObject countryObject = dataObject.getJSONObject(ApiKeys.COUNTRY_ID);\n JSONObject stateObject = dataObject.getJSONObject(ApiKeys.STATE_ID);\n JSONObject cityObject = dataObject.getJSONObject(ApiKeys.CITY_ID);\n AppSharedPrefs.getInstance(getActivity()).putString(AppSharedPrefs.PREF_KEY.COUNTRY_NAME, countryObject.getString(ApiKeys.NAME));\n AppSharedPrefs.getInstance(getActivity()).putString(AppSharedPrefs.PREF_KEY.STATE_NAME, stateObject.getString(ApiKeys.NAME));\n AppSharedPrefs.getInstance(getActivity()).putString(AppSharedPrefs.PREF_KEY.CITY_NAME, cityObject.getString(ApiKeys.NAME));\n AppSharedPrefs.getInstance(getActivity()).putString(AppSharedPrefs.PREF_KEY.ISO_CODE, countryObject.getString(ApiKeys.ISO_CODE));\n AppSharedPrefs.getInstance(getActivity()).putString(AppSharedPrefs.PREF_KEY.COUNTRY_ID, countryObject.getString(ApiKeys.ID));\n AppSharedPrefs.getInstance(getActivity()).putString(AppSharedPrefs.PREF_KEY.STATE_ID, stateObject.getString(ApiKeys.ID));\n AppSharedPrefs.getInstance(getActivity()).putString(AppSharedPrefs.PREF_KEY.CITY_ID, cityObject.getString(ApiKeys.ID));\n AppSharedPrefs.getInstance(getActivity()).putString(AppSharedPrefs.PREF_KEY.POSTAL_CODE, dataObject.optString(ApiKeys.POSTAL_CODE));\n\n } else if (mainObject.getInt(ApiKeys.CODE) == ApiKeys.UNAUTHORISED_CODE) {\n appUtils.logoutFromApp(getActivity(), mainObject.optString(ApiKeys.MESSAGE));\n } else {\n appUtils.showSnackBar(getActivity().findViewById(android.R.id.content), mainObject.optString(ApiKeys.MESSAGE));\n }\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }\n\n @Override\n public void onSuccessErrorBody(String response) {\n\n }\n\n @Override\n public void onFailure() {\n\n }\n });\n\n }", "@Override\n\t\t\tpublic void keyPressed(KeyEvent arg0) {\n\t\t\t\tif(arg0.getKeyCode() == 10)\n\t\t\t\t{\n\t\t\t\t\tString username = UserName.getText();\n\t\t\t\t\tString password = new String(Password.getPassword());\n\t\t\t\t\t\n\t\t\t\t\tif(username.isEmpty() || password.isEmpty())\n\t\t\t\t\t{\n\t\t\t\t\t\tJOptionPane.showMessageDialog(card, \"Staff ID and Password has to be filled \");\n\t\t\t\t\t\tUserName.setText(\"\");\n\t\t\t\t\t\tPassword.setText(\"\");\n\t\t\t\t\t}\n\t\t\t\t\telse if(!isInteger(username))\n\t\t\t\t\t{\n\t\t\t\t\t\tJOptionPane.showMessageDialog(card, \"Staff ID is not a number \");\n\t\t\t\t\t\tUserName.setText(\"\");\n\t\t\t\t\t\t Password.setText(\"\");\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 //check if the ID exist\n\t\t\t\t\t\t if(!processLogin(username, password))\n\t\t\t\t\t\t {\n\t\t\t\t\t\t\t JOptionPane.showMessageDialog(card, \"Wrong Staff ID or Password \");\n\t\t\t\t\t\t\t Password.setText(\"\");\n\t\t\t\t\t\t }\n\t\t\t\t\t\t else\n\t\t\t\t\t\t {\n\t\t\t\t\t\t\t //sql to update database for when someone is logged in\n\t\t\t\t\t\t\t String sql = \"UPDATE admin_login SET isLogedin = '1' WHERE staff_id = '\"+username+\"'\";\n\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t try {\n\t\t\t\t\t\t\t\t\t\t//execute statement\n\t\t\t\t\t\t\t\t \t\tdb.ExecuteStatement(sql);\n\t\t\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t\t\t//disable logIn button when someone is logged in\n\t\t\t\t\t\t\t\t\t LogIn.setEnabled(false);\n\t\t\t\t\t\t\t\t\t Logout.setEnabled(true);\n\t\t\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t\t\t //show a message that login was successful\n\t\t\t\t\t\t\t\t\t JOptionPane.showMessageDialog(card, \"Welcome!! \");\n\t\t\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t\t\t LoginName.setText(username);\n\t\t\t\t\t\t\t\t\t LoginLabel.setForeground(Color.GREEN);\n\t\t\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t\t\t //Reset staff id and password here\n\t\t\t\t\t\t\t\t\t UserName.setText(\"\");\n\t\t\t\t\t\t\t\t\t Password.setText(\"\");\n\t\t\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t\t\t //Open Navigation tab\n\t\t\t\t\t\t\t\t\t tab.add(\"NAVIGATION PAGE\", c);\n\t\t\t\t\t\t\t\t\t tab.setSelectedComponent(c);\n\t\t\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t\t\t resetPassword.setEnabled(false);\n\t\t\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t \t } catch (SQLException e1) {\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t \t\t \te1.printStackTrace();\n\t\t\t\t\t\t\t \t }\n\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t \n\t\t\t\t\t\t }\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}", "public String update() {\r\n\t\tuserService.update(userEdit);\r\n\t\tusers.setWrappedData(userService.list());\r\n\t\treturn \"update\";\r\n\t}", "protected void submitEdit(ActionEvent e) {\n\t\tString oldPassword = oldPasswordTextField.getText().toString();\r\n\t\tString newPassword = newPasswordTextField.getText().toString();\r\n\t\tString confirmPassword = confirmPasswordTextField.getText().toString();\r\n\t\tif(com.car.util.StringUtil.isEmpty(oldPassword)){\r\n\t\t\tJOptionPane.showMessageDialog(this, \"请填写旧密码!\");\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tif(com.car.util.StringUtil.isEmpty(newPassword)){\r\n\t\t\tJOptionPane.showMessageDialog(this, \"请填写新密码!\");\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tif(com.car.util.StringUtil.isEmpty(confirmPassword)){\r\n\t\t\tJOptionPane.showMessageDialog(this, \"请确认新密码!\");\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tif(!newPassword.equals(confirmPassword)){\r\n\t\t\tJOptionPane.showMessageDialog(this, \"两次密码输入不一致!\");\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tif(\"系统管理员\".equals(MaimFrame.userType.getName())) {\r\n\t\t\tAdminDao adminDao = new AdminDao();\r\n\t\t\tAdmin adminTmp = new Admin();\r\n\t\t\tAdmin admin = (Admin)MaimFrame.userObject;\r\n\t\t\tadminTmp.setName(admin.getName());\r\n\t\t\tadminTmp.setId(admin.getId());\r\n\t\t\tadminTmp.setPassword(oldPassword);\r\n\t\t\tJOptionPane.showMessageDialog(this, adminDao.editPassword(adminTmp, newPassword));\r\n\t\t\tadminDao.closeDao();\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tif(\"客户\".equals(MaimFrame.userType.getName())){\r\n\t\t\tCustomerDao customerDao = new CustomerDao();\r\n\t\t\tCustomer customerTmp = new Customer();\r\n\t\t\tCustomer customer = (Customer)MaimFrame.userObject;\r\n\t\t\tcustomerTmp.setName(customer.getName());\r\n\t\t\tcustomerTmp.setPassword(oldPassword);\r\n\t\t\tcustomerTmp.setId(customer.getId());\r\n\t\t\tJOptionPane.showMessageDialog(this, customerDao.editPassword(customerTmp, newPassword));\r\n\t\t\tcustomerDao.closeDao();\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tif(\"员工\".equals(MaimFrame.userType.getName())){\r\n\t\t\tEmployeeDao employeeDao = new EmployeeDao();\r\n\t\t\tEmployee employeeTmp = new Employee();\r\n\t\t\tEmployee employee = (Employee)MaimFrame.userObject;\r\n\t\t\temployeeTmp.setName(employee.getName());\r\n\t\t\temployeeTmp.setPassword(oldPassword);\r\n\t\t\temployeeTmp.setId(employee.getId());\r\n\t\t\tJOptionPane.showMessageDialog(this, employeeDao.editPassword(employeeTmp, newPassword));\r\n\t\t\temployeeDao.closeDao();\r\n\t\t\treturn;\r\n\t\t}\r\n\t}", "public boolean adminAccess (String password) throws PasswordException;", "public String edit() {\r\n\t\tuserEdit = (User) users.getRowData();\r\n\t\treturn \"edit\";\r\n\t}", "public void editOperation() {\n\t\t\r\n\t}", "public void editAccount(ActionEvent actionEvent) throws SQLException, IOException {\n if (editAccountButton.getText().equals(\"Edit\")) {\n userNameField.setEditable(true);\n emailField.setEditable(true);\n datePicker.setEditable(true);\n changePhotoButton.setVisible(true);\n changePhotoButton.setDisable(false);\n userNameField.getStylesheets().add(\"/stylesheets/Active.css\");\n emailField.getStylesheets().add(\"/stylesheets/Active.css\");\n datePicker.getStylesheets().add(\"/stylesheets/Active.css\");\n editAccountButton.getStylesheets().add(\"/stylesheets/Active.css\");\n editAccountButton.setText(\"Save\");\n }\n else if (validInput()) {\n userNameField.setEditable(false);\n emailField.setEditable(false);\n datePicker.setEditable(false);\n changePhotoButton.setVisible(false);\n changePhotoButton.setDisable(true);\n userNameField.getStylesheets().remove(\"/stylesheets/Active.css\");\n emailField.getStylesheets().remove(\"/stylesheets/Active.css\");\n datePicker.getStylesheets().remove(\"/stylesheets/Active.css\");\n editAccountButton.getStylesheets().remove(\"/stylesheets/Active.css\");\n user.getUser().setName(userNameField.getText());\n user.getUser().setEmail(emailField.getText());\n user.getUser().setBirthday(datePicker.getValue());\n\n editAccountButton.setText(\"Edit\");\n userNameLabel.setText(user.getUser().getFirstName());\n if (userPhotoFile != null) {\n user.getUser().setProfilePhoto(accountPhoto);\n profileIcon.setImage(new Image(userPhotoFile.toURI().toString()));\n }\n DatabaseManager.updateUser(user, userPhotoFile);\n }\n }", "UserSettings store(String key, String value);", "@Override\n public void onClick(View view) {\n Editable userEditable = userName.getText();\n if (userEditable == null || userEditable.toString().equals(\"\")) {\n toastMessage(getString(R.string.inputYourUserName));\n return;\n }\n userNameStr = userEditable.toString();\n if (!Checker.isUserName(userNameStr)) {\n toastMessage(getString(R.string.inputSuitableUserName));\n return;\n }\n Log.i(TAG, \"get the user name: \" + userNameStr);\n\n\n //************************************************************************//\n //************************************************************************//\n // Get the passwd.\n Editable passwdEditable = passwd.getText();\n if (passwdEditable == null || passwdEditable.toString().equals(\"\")) {\n toastMessage(getString(R.string.inputYourUserPasswd));\n return;\n }\n passwdStr = passwdEditable.toString();\n if (!Checker.isPasswd(passwdStr)) {\n toastMessage(getString(R.string.inputSuitableUserPasswd));\n return;\n }\n\n\n //************************************************************************//\n //************************************************************************//\n // confirm the passwd.\n Editable passwdConfirmEditable = confirm.getText();\n if (passwdConfirmEditable == null\n || passwdConfirmEditable.toString().equals(\"\")) {\n toastMessage(getString(R.string.inputYourUserPasswdAgain));\n return;\n }\n String passwdConfirm = passwdConfirmEditable.toString();\n if (!passwdConfirm.equals(passwdStr)) {\n toastMessage(getString(R.string.inputSamePasswd));\n return;\n }\n Log.i(\"Register\", \"get the userPasswd: \" + passwdStr);\n\n AsyncInetClient.getInstance().addUser(userNameStr, passwdStr, signUpResponseHandler);\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 }", "public interface UserDetailsService {\n UserDetailsEntity findById(String userId);\n RetMsg changeTheme(String themeId, String username);\n RetMsg changePassword(String newPasswd, String userId, String oldPasswd);\n}", "@Override\n\tpublic void updateAccount(String pwd, String field, String company) {\n\t}", "private void editProfile() {\n Log.d(TAG, \"Starting volley request to API\");\n try {\n String authority = String.format(Constants.AUTHORITY,\n Constants.TENANT,\n Constants.EDIT_PROFILE_POLICY);\n\n User currentUser = Helpers.getUserByPolicy(\n sampleApp.getUsers(),\n Constants.EDIT_PROFILE_POLICY);\n\n sampleApp.acquireToken(\n this,\n Constants.SCOPES.split(\"\\\\s+\"),\n currentUser,\n UiBehavior.SELECT_ACCOUNT,\n null,\n null,\n authority,\n getEditPolicyCallback());\n } catch(MsalClientException e) {\n /* No User */\n Log.d(TAG, \"MSAL Exception Generated while getting users: \" + e.toString());\n }\n\n }", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\ttextFieldtUserName.setText(\"201610010213\");\n\t\t\t\ttextFieldPasswd.setText(\"gj123231\");\n\t\t\t\tCodeFieldPasswd.setText(\"\");\n\t\t\t}", "@RequestMapping(value = { \"/edit-{loginID}-user\" }, method = RequestMethod.GET)\r\n public String edituser(@PathVariable String loginID, ModelMap model) {\r\n\r\n User user = service.findUserByLoginID(loginID);\r\n model.addAttribute(\"user\", user);\r\n model.addAttribute(\"edit\", true);\r\n return \"registration\";\r\n }", "@Test\n\tpublic void testUpdateAdminAccountWithEmptyPassword() {\n\n\t\tString newPassword = \"\";\n\n\t\tString error = null;\n\t\tAdminAccount user = null; \n\t\ttry {\n\t\t\tuser = adminAccountService.updateAdminAccount(USERNAME1, newPassword, NAME1);\n\t\t} catch (InvalidInputException e) {\n\t\t\terror = e.getMessage();\n\t\t}\n\n\t\tassertNull(user);\n\t\t// check error\n\t\tassertEquals(\"Password cannot be empty.\", error);\n\t}", "public synchronized User editUser(String username, String password, String type, String actualName, String email) {\r\n\t\tUser user = this.getUser(username);\r\n\t\tuser.setActualName(actualName);\r\n\t\tuser.setEmail(email);\r\n\t\tuser.setPassword(password);\r\n\t\tuser.setType(type);\r\n\t\tthis.storer.storeUser(user);\r\n\t\treturn user;\r\n\t}", "boolean editClient(IClient e);", "@Override\n\tpublic void updatePassword(AdminUser userModel) {\n\n\t}", "@Test\n\tpublic void test_update_user_success(){\n\t\tUser user = new User(null, \"fengt\", \"fengt2@itiaoling.com\", \"12345678\");\n\t\ttemplate.put(REST_SERVICE_URI + \"/20\" + ACCESS_TOKEN + token, user);\n\t}", "public User update(User user)throws Exception;", "protected void enterEditMode(){\n saveButton.setVisibility(View.VISIBLE);\n //when editMode is active, allow user to input in editTexts\n //By default have the editTexts not be editable by user\n editName.setEnabled(true);\n editEmail.setEnabled(true);\n\n saveButton.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n userReference = FirebaseDatabase.getInstance().getReference(\"Users\")\n .child(FirebaseAuth.getInstance().getCurrentUser().getUid());\n\n user = FirebaseAuth.getInstance().getCurrentUser();\n\n user.updateEmail(String.valueOf(editEmail.getText()))\n .addOnCompleteListener(new OnCompleteListener<Void>() {\n @Override\n public void onComplete(@NonNull Task<Void> task) {\n if (task.isSuccessful()) {\n userReference.child(\"name\").setValue(editName.getText().toString());\n userReference.child(\"email\").setValue(editEmail.getText().toString());\n final String TAG = \"EmailUpdate\";\n Log.d(TAG, \"User email address updated.\");\n Toast.makeText(getActivity().getApplicationContext(), \"Saved\", Toast.LENGTH_SHORT).show();\n }\n else {\n FirebaseAuthException e = (FirebaseAuthException)task.getException();\n Toast.makeText(getActivity().getApplicationContext(), \"Re-login to edit your profile!\", Toast.LENGTH_LONG).show();\n goToLoginActivity();\n }\n }\n });\n exitEditMode();\n\n }\n });\n }", "public void actionPerformed( ActionEvent event )\n {\n if ( !getEnvironmentWindow().getEnvironment().getLock().equals(\n KalumetConsoleApplication.getApplication().getUserid() ) )\n {\n KalumetConsoleApplication.getApplication().getLogPane().addWarning(\n Messages.getString( \"environment.locked\" ), getEnvironmentWindow().getEnvironmentName() );\n return;\n }\n // check if the user can do it\n if ( !getEnvironmentWindow().adminPermission && !getEnvironmentWindow().softwareChangePermission )\n {\n KalumetConsoleApplication.getApplication().getLogPane().addWarning(\n Messages.getString( \"action.restricted\" ), getEnvironmentWindow().getEnvironmentName() );\n return;\n }\n // get the fields value\n String nameFieldValue = nameField.getText();\n int activeFieldIndex = activeField.getSelectedIndex();\n int blockerFieldIndex = blockerField.getSelectedIndex();\n int beforeJeeFieldIndex = beforeJeeField.getSelectedIndex();\n String uriFieldValue = uriField.getText();\n // check fields\n if ( nameFieldValue == null || nameFieldValue.trim().length() < 1 )\n {\n KalumetConsoleApplication.getApplication().getLogPane().addWarning(\n Messages.getString( \"software.mandatory\" ), getEnvironmentWindow().getEnvironmentName() );\n return;\n }\n // if the user change the software name, check if the name\n // doesnt't already exist\n if ( name == null || ( name != null && !name.equals( nameFieldValue ) ) )\n {\n if ( parent.getEnvironmentWindow().getEnvironment().getSoftware( nameFieldValue ) != null )\n {\n KalumetConsoleApplication.getApplication().getLogPane().addWarning(\n Messages.getString( \"software.exists\" ), getEnvironmentWindow().getEnvironmentName() );\n return;\n }\n }\n // update the software object\n software.setName( nameFieldValue );\n if ( activeFieldIndex == 0 )\n {\n software.setActive( true );\n }\n else\n {\n software.setActive( false );\n }\n if ( blockerFieldIndex == 0 )\n {\n software.setBlocker( true );\n }\n else\n {\n software.setBlocker( false );\n }\n if ( beforeJeeFieldIndex == 0 )\n {\n software.setBeforejee( true );\n }\n else\n {\n software.setBeforejee( false );\n }\n software.setUri( uriFieldValue );\n // add the software object if needed\n if ( name == null )\n {\n try\n {\n parent.getEnvironmentWindow().getEnvironment().addSoftware( software );\n }\n catch ( Exception e )\n {\n KalumetConsoleApplication.getApplication().getLogPane().addWarning(\n Messages.getString( \"software.exists\" ), getEnvironmentWindow().getEnvironmentName() );\n return;\n }\n }\n // update the window definition\n setTitle( Messages.getString( \"software\" ) + \" \" + software.getName() );\n setId( \"softwarewindow_\" + parent.getEnvironmentWindow().getEnvironmentName() + \"_\" + software.getName() );\n name = software.getName();\n // change the updated flag\n parent.getEnvironmentWindow().setUpdated( true );\n // update the journal log tab pane\n parent.getEnvironmentWindow().updateJournalPane();\n // update the whole environment window\n parent.getEnvironmentWindow().update();\n // update the window\n update();\n }", "public void editUser(User tmpUser, User user) {\n\t\t\n\t}", "@Override\n\tpublic boolean editUtente(String username) {\n\t\tUtente user = (Utente)getUtente(username);\n\t\tif(userExists(user)) {\n\t\t\tuser.setGiudice(true);\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;\n\t}", "String updateUserInfo(String usernameToUpdate, UserInfo userInfo);", "public void saveInfo(View view) {\n SharedPreferences sharedPref = getSharedPreferences(\"userInfo\", Context.MODE_PRIVATE);\n\n SharedPreferences.Editor editor = sharedPref.edit();\n editor.putString(\"username\", usernameInput.getText().toString());\n editor.putString(\"password\", passwordInput.getText().toString());\n editor.apply();\n\n usernameInput.setText(\"\");\n passwordInput.setText(\"\");\n\n Toast.makeText(this, \"Saved!\", Toast.LENGTH_LONG).show();\n }" ]
[ "0.63310313", "0.61199516", "0.60539937", "0.5985793", "0.5895775", "0.58171546", "0.57885003", "0.5701282", "0.56377864", "0.55994576", "0.5586236", "0.55846757", "0.55540425", "0.5544283", "0.5531237", "0.5502915", "0.54745555", "0.54728496", "0.546143", "0.5442577", "0.54404324", "0.5438254", "0.5433511", "0.5432973", "0.54184693", "0.538814", "0.53478414", "0.5344178", "0.53330845", "0.5317903", "0.5313002", "0.5305084", "0.52983296", "0.52776015", "0.527263", "0.52699596", "0.526963", "0.5267402", "0.5236887", "0.52300006", "0.52300006", "0.52300006", "0.5225917", "0.5220925", "0.5211324", "0.5210519", "0.52103865", "0.5197896", "0.51971203", "0.51935494", "0.5190534", "0.51873165", "0.5183446", "0.5178163", "0.51774746", "0.51767105", "0.5173311", "0.5163669", "0.515837", "0.51510924", "0.5142209", "0.5141365", "0.5133971", "0.5129578", "0.51227045", "0.5121386", "0.5118163", "0.51042765", "0.5101483", "0.50934845", "0.5087706", "0.50865906", "0.50807697", "0.50754327", "0.50726193", "0.5072226", "0.5070751", "0.50699264", "0.5064253", "0.50638896", "0.5058951", "0.5056861", "0.5045964", "0.5042783", "0.5039328", "0.50387543", "0.50366646", "0.50361294", "0.502808", "0.50252837", "0.5020721", "0.50139254", "0.50115967", "0.50099045", "0.5009464", "0.5008978", "0.50086194", "0.5003656", "0.49956906", "0.4989923" ]
0.6656638
0
Lets the user delete the selected username and password entries from the Keystore.
private void deletePassword() { // Which entries have been selected? int[] selectedRows = passwordsTable.getSelectedRows(); if (selectedRows.length == 0) // no password entry selected return; // Ask user to confirm the deletion if (showConfirmDialog( null, "Are you sure you want to delete the selected username and password entries?", ALERT_TITLE, YES_NO_OPTION) != YES_OPTION) return; String exMessage = null; for (int i = selectedRows.length - 1; i >= 0; i--) { // delete from backwards // Get service URI for the current entry URI serviceURI = URI.create((String) passwordsTable.getValueAt(selectedRows[i], 1)); // current entry's service URI try { // Delete the password entry from the Keystore credManager.deleteUsernameAndPasswordForService(serviceURI); } catch (CMException cme) { exMessage = "Failed to delete the username and password pair from the Keystore"; } } if (exMessage != null) showMessageDialog(this, exMessage, ERROR_TITLE, ERROR_MESSAGE); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void deleteUserCredentials(String login) throws SQLException;", "private void deleteKeyPair() {\n\t\t// Which entries have been selected?\n\t\tint[] selectedRows = keyPairsTable.getSelectedRows();\n\t\tif (selectedRows.length == 0) // no key pair entry selected\n\t\t\treturn;\n\n\t\t// Ask user to confirm the deletion\n\t\tif (showConfirmDialog(null,\n\t\t\t\t\"Are you sure you want to delete the selected key pairs?\",\n\t\t\t\tALERT_TITLE, YES_NO_OPTION) != YES_OPTION)\n\t\t\treturn;\n\n\t\tString exMessage = null;\n\t\tfor (int i = selectedRows.length - 1; i >= 0; i--) { // delete from backwards\n\t\t\t// Get the alias for the current entry\n\t\t\tString alias = (String) keyPairsTable.getModel().getValueAt(\n\t\t\t\t\tselectedRows[i], 6);\n\t\t\ttry {\n\t\t\t\t// Delete the key pair entry from the Keystore\n\t\t\t\tcredManager.deleteKeyPair(alias);\n\t\t\t} catch (CMException cme) {\n\t\t\t\tlogger.warn(\"failed to delete \" + alias, cme);\n\t\t\t\texMessage = \"Failed to delete the key pair(s) from the Keystore\";\n\t\t\t}\n\t\t}\n\t\tif (exMessage != null)\n\t\t\tshowMessageDialog(this, exMessage, ERROR_TITLE, ERROR_MESSAGE);\n\t}", "public void delete(String username);", "public static void deleteUser() {\n REGISTRATIONS.clear();\n ALL_EVENTS.clear();\n MainActivity.getPreferences().edit()\n .putString(FACEBOOK_ID.get(), null)\n .putString(USERNAME.get(), null)\n .putString(LAST_NAME.get(), null)\n .putString(FIRST_NAME.get(), null)\n .putString(GENDER.get(), null)\n .putString(BIRTHDAY.get(), null)\n .putString(EMAIL.get(), null)\n .putStringSet(LOCATIONS_INTEREST.get(), null)\n .apply();\n }", "@Override\n\tpublic void delete(String username) throws Exception {\n\t\t\n\t}", "void deleteUser( String username );", "public void deleteUser(String username);", "@FXML\n\tpublic void deleteUser(ActionEvent e) {\n\t\tint i = userListView.getSelectionModel().getSelectedIndex();\n//\t\tUser deletMe = userListView.getSelectionModel().getSelectedItem();\n//\t\tuserList.remove(deletMe); this would work too just put the admin warning\n\t\tdeleteUser(i);\n\t}", "@SneakyThrows\n public void deleteKeysFromMemory() {\n Preferences.userRoot().clear();\n }", "private void delete() {\n AltDatabase.getInstance().getAlts().remove(getCurrentAsEditable());\n if (selectedAccountIndex > 0)\n selectedAccountIndex--;\n updateQueried();\n updateButtons();\n }", "public void Delete() {\r\n try {\r\n\r\n Class.forName(\"com.mysql.jdbc.Driver\").newInstance();\r\n\r\n } catch (Exception e) {}\r\n\r\n\r\n Connection conn = null;\r\n Statement stmt = null;\r\n ResultSet rs = null;\r\n try {\r\n conn =\r\n DriverManager.getConnection(\"jdbc:mysql://127.0.0.1/logingui?user=root&password=\");\r\n\r\n // Do something with the Connection\r\n stmt = conn.createStatement();\r\n\r\n String del = delUser.getText();\r\n\r\n if (stmt.execute(\"DELETE FROM `logingui`.`company` WHERE `id`='\" + del + \"';\")) {\r\n\r\n }\r\n JOptionPane.showMessageDialog(this, \"User deleted from the system!\");\r\n\r\n // loop over results\r\n\r\n } catch (SQLException ex) {\r\n // handle any errors\r\n System.out.println(\"SQLException: \" + ex.getMessage());\r\n System.out.println(\"SQLState: \" + ex.getSQLState());\r\n System.out.println(\"VendorError: \" + ex.getErrorCode());\r\n }\r\n }", "private void deleteUser() throws SQLException {\n System.out.println(\"Are you sure you want to delete your user? Y/N\");\n if (input.next().equalsIgnoreCase(\"n\")) return;\n\n List<Integer> websiteIds = new ArrayList<>();\n try (PreparedStatement stmt = connection.prepareStatement(\"SELECT * FROM passwords \" +\n \"WHERE user_id like (?)\")) {\n stmt.setInt(1, user.getId());\n ResultSet rs = stmt.executeQuery();\n while (rs.next()) {\n websiteIds.add(rs.getInt(\"website_data_id\"));\n }\n }\n\n try (PreparedStatement stmt = connection.prepareStatement(\"DELETE FROM passwords \" +\n \"WHERE user_id like (?)\")) {\n stmt.setInt(1, user.getId());\n stmt.executeUpdate();\n }\n\n for (int website : websiteIds) {\n try (PreparedStatement stmt = connection.prepareStatement(\"DELETE FROM website_data \" +\n \"WHERE website_data_id like (?)\")) {\n stmt.setInt(1, website);\n stmt.executeUpdate();\n }\n }\n\n try (PreparedStatement stmt = connection.prepareStatement(\"DELETE FROM users \" +\n \"WHERE id like (?)\")) {\n stmt.setInt(1, user.getId());\n stmt.executeUpdate();\n }\n\n System.out.println(\"User \" + user.getUsername() + \" deleted.\");\n System.exit(0);\n }", "public void deleteUserDictionary(String dictionary) {\n SQLiteDatabase db = this.getWritableDatabase();\n db.delete(TABLE_TERMS, KEY_DICTIONARY + \" = ?\",\n new String[] { dictionary });\n db.delete(TABLE_FAVOURITES, KEY_DICTIONARY + \" = ?\",\n new String[] { dictionary });\n db.delete(TABLE_RECENTS, KEY_DICTIONARY + \" = ?\",\n new String[] { dictionary });\n db.delete(TABLE_USER_DICTIONARIES, KEY_DICTIONARY + \" = ?\",\n new String[] { dictionary });\n db.close();\n }", "public void deleteUser() {\n\t\tSystem.out.println(\"com.zzu.yhl.a_jdk deleteUser\");\r\n\t}", "protected void ClearData() {\n\t\t// TODO Auto-generated method stub\n\t\n\t\t sharedPreferences = this.getSharedPreferences(MyPREFERENCES, Context.MODE_PRIVATE);\n\t\t Editor editor = sharedPreferences.edit();\n\t\t if(sharedPreferences.contains(\"username\")||sharedPreferences.contains(\"password\")){\n\t\t\t editor.remove(\"username\");\n\t\t\t editor.remove(\"password\");\n\t\t }\n\t\t editor.clear();\n\t\t editor.commit();\n\t}", "public void deletePassword() {\n for (int i=0; i < password.length; i++) {\n password[i] = '0';\n }\n }", "public void logoutUser() {\n editor.remove(Is_Login).commit();\n editor.remove(Key_Name).commit();\n editor.remove(Key_Email).commit();\n editor.remove(KEY_CUSTOMERGROUP_ID).commit();\n // editor.clear();\n // editor.commit();\n // After logout redirect user to Loing Activity\n\n }", "@FXML\n private void deleteUser(ActionEvent event) throws IOException {\n User selectedUser = table.getSelectionModel().getSelectedItem();\n\n boolean userWasRemoved = selectedUser.delete();\n\n if (userWasRemoved) {\n userList.remove(selectedUser);\n UsermanagementUtilities.setFeedback(event,selectedUser.getName().getFirstName()+\" \"+LanguageHandler.getText(\"userDeleted\"),true);\n } else {\n UsermanagementUtilities.setFeedback(event,LanguageHandler.getText(\"userNotDeleted\"),false);\n }\n }", "@Override\n\tpublic void delete(IKeyBuilder<String> keyBuilder, HomeContext context) {\n\t\t\n\t}", "public void clearPassword() throws RemoteException;", "public void remove(CredentialsModel credential) {\n Connection connection = null; \n PreparedStatement stmt = null;\n try {\n try {\n connection = ds.getConnection();\n try {\n stmt = connection.prepareStatement(\n \"DELETE FROM Credentials WHERE EmpUsername = ?\");\n stmt.setString(1, credential.getUserName());\n stmt.executeUpdate();\n } finally {\n if (stmt != null) {\n stmt.close();\n }\n }\n } finally {\n if (connection != null) {\n connection.close();\n }\n }\n } catch (SQLException ex) {\n System.out.println(\"Error in remove \" + credential);\n ex.printStackTrace();\n }\n }", "@Override\n public int delete(Uri uri, String selection, String[] selectionArgs) {\n while(flag)\n {}\n if(selection.equals(\"@\")) {\n myKeys.clear();\n return 0;\n }\n else\n {\n HandleDeleteQuery(selection);\n }\n return 0;\n }", "@Override\n public void deleteAllPrivies() {\n }", "public void deleteUser(String name);", "@Override\r\n\tpublic void delete( UserFields fields ) {\n\t\t\r\n\t}", "@Override\n\tpublic void onDelete() {\n\t\tif (testSessionChangedHandler != null) {\n\t\t\ttestSessionChangedHandler.removeHandler();\n\t\t\ttestSessionChangedHandler = null;\n\t\t}\n\t\t// Release the acmi\n\t\tif (acmiSaveButton !=null) {\n\t\t\tif (PasswordManagement.adminMenuItemList.contains(acmiSaveButton))\n\t\t\t\tPasswordManagement.adminMenuItemList.remove(acmiSaveButton);\n\t\t}\n\t\tif (acmiPromoteSite!=null) {\n\t\t\tif (PasswordManagement.adminMenuItemList.contains(acmiPromoteSite))\n\t\t\t\tPasswordManagement.adminMenuItemList.remove(acmiPromoteSite);\n\t\t}\n\t\tif (acmiDeleteSite!=null) {\n\t\t\tif (PasswordManagement.adminMenuItemList.contains(acmiDeleteSite))\n\t\t\t\tPasswordManagement.adminMenuItemList.remove(acmiDeleteSite);\n\t\t}\n\t\tif (acmiCreateSite!=null) {\n\t\t\tif (PasswordManagement.adminMenuItemList.contains(acmiCreateSite))\n\t\t\t\tPasswordManagement.adminMenuItemList.remove(acmiCreateSite);\n\t\t}\n\t}", "@Override\n\tpublic void deleteAll() {\n\t\t List<User> userList = selectAllUser();\n\t\t for (User user : userList) {\n\t\t\tuserMapper.deleteUser(user.getId());\n\t\t}\n\t}", "@Atomic\n\tpublic void delete(){\n\t\tfor(User u: getUserSet()){\n\t\t\tu.delete();\n\t\t}\n\t\tfor(Session s: getSessionSet()){\n\t\t\ts.delete();\n\t\t}\n\t\tsetRoot(null);\n\t\tdeleteDomainObject();\n\t}", "public void deleteAccount(String userName) {\n\n }", "@Override\n\tpublic void delete(String keyName) {\n\n\t}", "private void deleteKeyFile() {\n final String methodName = \":deleteKeyFile\";\n final File keyFile = new File(mContext.getDir(mContext.getPackageName(),\n Context.MODE_PRIVATE), ADALKS);\n if (keyFile.exists()) {\n Logger.v(TAG + methodName, \"Delete KeyFile\");\n if (!keyFile.delete()) {\n Logger.v(TAG + methodName, \"Delete KeyFile failed\");\n }\n }\n }", "@Override\n\tpublic int delete(String username) {\n\t\tUsers user = userDAO.read(username);\n\t\treturn delete(user);\n\t}", "@Override\n\tpublic String userDelete(Map<String, Object> reqs, Map<String, Object> conds) {\n\t\treturn null;\n\t}", "public void remove() {\n/* 91 */ throw new UnsupportedOperationException(\"Can't remove keys from KeyStore\");\n/* */ }", "private void deleteHocSinh() {\n\t\tString username = (String) table1\n\t\t\t\t.getValueAt(table1.getSelectedRow(), 0);\n\t\thocsinhdao.deleteUser(username);\n\t}", "public void delete() throws NotFoundException {\n\tUserDA.delete(this);\n }", "public void deleteLogin(String username) {\r\n\t\t\tjdbcTemplate.update(\"DELETE from Login where usuario=?\", username);\r\n\t\t}", "@Override\n\tpublic void deleteAllUsers() {\n\t\t\n\t}", "public void deleteUsers() {\n SQLiteDatabase db = this.getWritableDatabase();\n // Delete All Rows\n db.delete(TABLE_USER, null, null);\n // db.close();\n Log.d(TAG, \"Deleted all user info from sqlite\");\n }", "public void deleteKeySecretPair(String key) throws ClassicDatabaseException,ClassicNotFoundException;", "UserSettings remove(HawkularUser user, String key);", "public void deleteUser(User userToDelete) throws Exception;", "@Override\r\n\tpublic boolean delete(String email, String pw) {\n\t\treturn jdbcTemplate.update(\"delete s_member where email=?,pw=?\", email,pw)>0;\r\n\t}", "public void logOut() {\n sp.edit().clear().commit();\n }", "public static void remove() {\n\t\t\t// TODO Auto-generated method stub\n\t\t\t\tString jdbcURL = \"jdbc:mysql://localhost:3306/sampldb\";\n\t\t String dbUsername=\"root\";\n\t\t String dbPassword=\"password\";\n\t\t \n\t\t System.out.println(\"Database Connected Successfully\");\n\t\t\t\t \n\t\t\t\t \n\t\t \n\t\t Scanner in4=new Scanner(System.in);\n\t\t \n\t\t System.out.println(\"Enter Username\");\n\t\t String username=in4.nextLine();\n\t\t \n\t\t \n\t\t \n\t\t\t/* System.out.println(\"Which operation you want to execute \\n 1.Insert into table.\\n 2.Update table \\n 3.Delete data from table \\n 4.Show the data\");\n\t\t */\n\t\t \n\t\t \n\t\t \t \n\t\t \n\t\t try {\n\t\t Connection connection = DriverManager.getConnection(jdbcURL,dbUsername,dbPassword);\n\t \n\t\t if(connection!=null) {\n\t\t \tSystem.out.println(\"\\nconnected to the database.....................\");\n\t\t \t\n\t\t }\n\t\t \n\t\t String sql=\"DELETE FROM users WHERE username=?\";\n\t\t \n\t\t \tPreparedStatement statement = connection.prepareStatement(sql);\n\t\t \tstatement.setString(1,username);\n\t\t \t\n\t\t \tint rows=statement.executeUpdate();\n\t\t \t\n\t\t \tif (rows >0) {\n\t\t \t\tSystem.out.println(\"A user has been removed successfully.....!!!!!!!!\");\n\t\t \t}\n\t\t \t connection.close();\n\t\t \t \n\t\t }\n\t\t catch(SQLException ex) {\n\t\t \tex.printStackTrace();\n\t\t }\n\t\t \n\n\t\t}", "UserSettings remove(String key);", "void deleteSecrets(Long userId);", "public void delete(){\n // clear the table\n SQLiteDatabase db = this.getWritableDatabase();\n db.delete(SportPartnerDBContract.LoginDB.TABLE_NAME, null, null);\n }", "@Override\n\tpublic String deleteUser(UserKaltiaControlVO userKaltiaControl) {\n\t\treturn null;\n\t}", "@Override\n\tpublic void delUser(String[] id) {\n\n\t}", "@Override\n\tpublic int delete(Uri uri, String selection, String[] selectionArgs) {\n\t\tint cnt = 1;\n\t\tmChallengesDB.del();\n\t\treturn cnt;\n\t}", "@Override\n\tpublic void deleteUser(user theUser) {\n\t\t\n\t}", "public static void deleteLogin(Context context) {\n SharedPreferences.Editor editor = context.getSharedPreferences(Utils.SHARED_PREFERENCES_FILE, Context.MODE_PRIVATE).edit();\n editor.putBoolean(LOGIN_SAVED_KEY, false);\n editor.apply();\n loggedIn = false;\n }", "@Delete({\n \"delete from tb_user\",\n \"where username = #{username,jdbcType=VARCHAR}\"\n })\n int deleteByPrimaryKey(String username);", "public void handleDelete(ActionEvent event) throws InterruptedException{\r\n \t tempUser.removeUser(currentUser);\r\n \t feedback_Manage.setText(\"User Remove Successful!\");\r\n \t this.changeView(\"../view/Login.fxml\");\r\n }", "private void delete() {\n\t\tComponents.questionDialog().message(\"Are you sure?\").callback(answeredYes -> {\n\n\t\t\t// if confirmed, delete the current product PropertyBox\n\t\t\tdatastore.delete(TARGET, viewForm.getValue());\n\t\t\t// Notify the user\n\t\t\tNotification.show(\"Product deleted\", Type.TRAY_NOTIFICATION);\n\n\t\t\t// navigate back\n\t\t\tViewNavigator.require().navigateBack();\n\n\t\t}).open();\n\t}", "int deleteByExample(SysAuthenticationExample example);", "@Override\n\tpublic void deleteUser(String id) throws Exception {\n\t\t\n\t}", "void deleteUser(String username) throws UserDaoException;", "private static void deleteCommand(File meKeystoreFile, String[] args)\n throws Exception {\n String owner = null;\n int keyNumber = -1;\n boolean keyNumberGiven = false;\n MEKeyTool keyTool;\n\n for (int i = 1; i < args.length; i++) {\n try {\n if (args[i].equals(\"-MEkeystore\")) {\n i++;\n meKeystoreFile = new File(args[i]); \n } else if (args[i].equals(\"-owner\")) {\n i++;\n owner = args[i];\n } else if (args[i].equals(\"-number\")) {\n keyNumberGiven = true;\n i++;\n try {\n keyNumber = Integer.parseInt(args[i]);\n } catch (NumberFormatException e) {\n throw new UsageException(\n \"Invalid number for the -number argument: \" +\n args[i]);\n }\n } else {\n throw new UsageException(\n \"Invalid argument for the delete command: \" + args[i]);\n }\n } catch (ArrayIndexOutOfBoundsException e) {\n throw new UsageException(\"Missing value for \" + args[--i]);\n }\n }\n\n if (owner == null && !keyNumberGiven) {\n throw new UsageException(\n \"Neither key -owner or -number was not given\");\n }\n\n if (owner != null && keyNumberGiven) {\n throw new UsageException(\"-owner and -number cannot be used \" +\n \"together\");\n }\n\n keyTool = new MEKeyTool(meKeystoreFile);\n\n if (owner != null) {\n if (!keyTool.deleteKey(owner)) {\n throw new UsageException(\"Key not found for: \" + owner);\n }\n } else {\n try {\n keyTool.deleteKey(keyNumber - 1);\n } catch (ArrayIndexOutOfBoundsException e) {\n throw new UsageException(\"Invalid number for the -number \" +\n \"delete option: \" + keyNumber);\n } \n }\n\n keyTool.saveKeystore(meKeystoreFile);\n }", "public void logout() {\n editor.clear();\n editor.commit();\n\n }", "public void deleteUsers() {\n SQLiteDatabase db = this.getWritableDatabase();\n // Delete All Rows\n db.delete(TABLE_USER, null, null);\n db.close();\n\n Log.d(TAG, \"Deleted all user info from sqlite\");\n }", "public void deleteUsers() {\n SQLiteDatabase db = this.getWritableDatabase();\n // Delete All Rows\n db.delete(TABLE_USER, null, null);\n db.close();\n\n Log.d(TAG, \"Deleted all user info from sqlite\");\n }", "@Override\n\tpublic void deleteUser() {\n\t\tLog.d(\"HFModuleManager\", \"deleteUser\");\n\t}", "public static void deleteStudent(String username, String password) {\n\t\t\n\t\t//creating mariaDB connection and a Connection object to run queries on\n\t\tMariaDBConnection connect = new MariaDBConnection();\n\t\tConnection conn = null;\n\t\t\n\t\t//create insert query format\n\t\tString deleteQuery = \"DELETE FROM loginquery WHERE User=? AND Password=?\";\n\t\t\n\t\ttry {\n\t\t\t//creating a local instance of the connection object and a statement object\n\t\t\tconn = connect.getConnection();\n\t\t\t//creating an instance of prepareStatement, calling \n\t\t\t//prepareStatement method of connection object, with query as parameter\n\t\t\tPreparedStatement stmt = conn.prepareStatement(deleteQuery);\n\t\t\t\n\t\t\t//setting the column values of the delete query\n\t\t\tstmt.setString(1, username);\n\t\t\tstmt.setString(2, password);\n\t\t\t\n\t\t\t//executing delete query\n\t\t\tstmt.execute();\t\t\t\n\t\t\t//close connection\n\t\t\tconn.close();\n\t\t\t\n\t\t}\n\t\tcatch(Exception e) {\n\t\t\tSystem.out.println(\"Delete failed\");\n\t\t}\n\t\t\t\t\n\t}", "@Override\n\tpublic void delete(ERS_USERS entity) {\n\t\t\n\t}", "public void actionPerformed(ActionEvent e) {\n\t\t\t\t Database.RemoveItem(Integer.toString(Database.IDs[table.getSelectedRow()]));\t\n\t\t\t\t Login.Refresh();\n\t\t\t }", "public static void main(String[] args) {\n delUser(6);\n }", "@Override\n\tpublic String deleteUser(Map<String, Object> reqs) {\n\t\tString result = \"success\";\n\t\tString sql = \"delete from tp_users where userId=:userId\";\n\t\n\t\ttry {\n\t\t\tjoaSimpleDao.executeUpdate(sql, reqs);\n\t\t\n\t\t} catch (Exception e) {\n\t\t\t// TODO: handle exception\n\t\t\te.printStackTrace();\n\t\t\tresult = \"failed\";\n\t\t}\n\t\treturn result;\n\t}", "public boolean delete(String username, int menuId);", "public void deleteSelectedAccount(String name){\n DatabaseReference dR = FirebaseDatabase.getInstance().getReference(\"user_information\").child(name);\n dR.getParent().child(name).removeValue();\n }", "public void Logout(){\n preferences.edit().remove(userRef).apply();\n }", "public void deleteUsers() {\n SQLiteDatabase db = this.getWritableDatabase();\n // Eleminar la base de datos\n db.delete(TABLE_USER, null, null);\n db.close();\n\n Log.d(TAG, \"Se ha eliminado todo de SQLite\");\n }", "public void logoutpackged() {\n\n editor.remove(IS_LOGIN);\n editor.remove(KEY_NAME);\n editor.remove(KEY_EMAIL);\n editor.remove(KEY_ID);\n// editor.remove(KEY_IMAGEURI);\n editor.remove(PROFILE_IMG_URL);\n editor.remove(PROFILE_IMG_PATH);\n// editor.remove(KEY_LANGUAGE);\n editor.commit();\n\n /* Intent i = new Intent(context, SelectLanguage.class);\n i.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK);\n context.startActivity(i);\n ((Activity) context).finish();*/\n\n }", "public void clear() throws DBException\n {\n String sqlString = \"DELETE FROM authToken\";\n try(Statement statement = conn.createStatement())\n {\n statement.executeUpdate(sqlString);\n }\n catch(SQLException ex)\n {\n throw new DBException(\"Error while clearing authToken table\");\n }\n }", "@RolesAllowed(\"admin\")\n @DELETE\n public Response delete() {\n synchronized (Database.users) {\n User user = Database.users.remove(username);\n if (user == null) {\n return Response.status(404).\n type(\"text/plain\").\n entity(\"User '\" + username + \"' not found\\r\\n\").\n build();\n } else {\n Database.usersUpdated = new Date();\n synchronized (Database.contacts) {\n Database.contacts.remove(username);\n }\n }\n }\n return Response.ok().build();\n }", "public synchronized void deleteUser(String username) {\r\n\t\tif (!mapping.containsKey(username)) {\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tmapping.remove(username);\r\n\t\tthis.storer.deleteUser(username);\r\n\t}", "public void deleteUserData(){\n buttonResetDb.setOnClickListener(\n new View.OnClickListener(){\n @Override\n public void onClick(View view) {\n app_db.truncateAllFactTables();\n Toast.makeText(MainActivity.this, \"DB Cleansed\", Toast.LENGTH_LONG).show();\n resetMainActivity();\n }\n }\n );\n }", "@Transactional\n\t@Modifying\n\t@Query(\"DELETE FROM Users t WHERE t.email =:email AND t.password =:password\")\n void deleteUser(@Param(\"email\") String email, @Param(\"password\") String password);", "public void deleteUser(User selectedUser) throws SQLException, IOException {\n userManager.deleteUser(selectedUser);\n userManager.emptyLists();\n userManager.fillLists();\n AdminMainViewController.emptyStaticLists();\n AdminMainViewController.adminsObservableList.addAll(userManager.getAdminsList());\n AdminMainViewController.usersObservableList.addAll(userManager.getUsersList());\n }", "@Override\n\tpublic void delete(String key) throws SQLException {\n\t\t\n\t}", "public static void deleteUser(String[] parameter) throws ClassNotFoundException, SQLException{\n //delete user\n userDB.getConnection();\n userDB.executeUpdate(UdeleteCmd, parameter);\n userDB.closeAll();\n //clear interest information\n interest.interestDB.getConnection();\n interest.interestDB.executeUpdate(interest.IdeleteCmd, parameter);\n interest.interestDB.closeAll();\n }", "public void clearAllNotClientCacheKeyOrDatabaseKey() {\n\t}", "@Override\n\tpublic void deleteTeachers(String[] deletes) {\n\t\ttry{\n\t\t\t\n\t\t\tfor(int i=0;i<deletes.length;i++){\n\t\t\t\tstmt=conn.prepareStatement(\"DELETE FROM Professor WHERE ssn=?\");\n\t\t\t\tstmt.setString(1,deletes[i]);\n\t\t\t\t//stmt.setString(2, administrator.getPassword());\n\t\t\t\tstmt.executeUpdate();\n\t\t\t}\n\t\t}catch(SQLException e){\n\t\t\tex=e;\n\t\t}finally{\n\t\t\tif(conn!=null){\n\t\t\t\ttry{\n\t\t\t\t\tconn.close();\n\t\t\t\t}catch(SQLException e){\n\t\t\t\t\tif(ex==null){\n\t\t\t\t\t\tex=e;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\tif(ex!=null){\n\t\t\tthrow new RuntimeException(ex);\n\t\t}\n\t\t}\n\t}", "@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tString id = UserID.getText();\r\n\t\t\t\ttry {\r\n\t\t\t\t\tint check = db.idcheck(id);\r\n\r\n\t\t\t\t\tif (check == 1) {\r\n\t\t\t\t\t\tJOptionPane.showMessageDialog(j, \"삭제되었습니다.\");\r\n\t\t\t\t\t\tdb.delete(id);\r\n\t\t\t\t\t\t로그인창 login = new 로그인창();\r\n\t\t\t\t\t\tlogin.loginpage();\r\n\t\t\t\t\t\tj.dispose();\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tJOptionPane.showMessageDialog(j, \"해당 아이디가 존재하지않습니다.\");\r\n\t\t\t\t\t}\r\n\t\t\t\t} catch (Exception e1) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te1.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t}", "static void DeleteUserFromDB(ArrayList<String> userList, String username) throws IOException, ClassNotFoundException {\n if (DeleteUser(userList, username)) {\n Socket client = ConnectionToServer();\n// System.out.println(\"Sending request to server to delete user\");\n // connects to the server with information and attempts to get the auth token\n // for the user after successful Login\n if (client.isConnected()) {\n OutputStream outputStream = client.getOutputStream();\n InputStream inputStream = client.getInputStream();\n\n ObjectOutputStream send = new ObjectOutputStream(outputStream);\n ObjectInputStream receiver = new ObjectInputStream(inputStream);\n\n send.writeUTF(\"deleteUser\");\n send.writeUTF(username);\n send.writeUTF(loggedInUser);\n send.writeUTF(token);\n send.flush();\n\n WasRequestSuccessful(receiver.readBoolean(), receiver.readUTF());\n\n // End connections\n send.close();\n receiver.close();\n client.close();\n }\n }\n }", "private void deleteTrustedCertificate() {\n\t\t// Which entries have been selected?\n\t\tint[] selectedRows = trustedCertsTable.getSelectedRows();\n\t\tif (selectedRows.length == 0) // no trusted cert entry selected\n\t\t\treturn;\n\n\t\t// Ask user to confirm the deletion\n\t\tif (showConfirmDialog(\n\t\t\t\tnull,\n\t\t\t\t\"Are you sure you want to delete the selected trusted certificate(s)?\",\n\t\t\t\tALERT_TITLE, YES_NO_OPTION) != YES_OPTION)\n\t\t\treturn;\n\n\t\tString exMessage = null;\n\t\tfor (int i = selectedRows.length - 1; i >= 0; i--) { // delete from backwards\n\t\t\t// Get the alias for the current entry\n\t\t\tString alias = (String) trustedCertsTable.getModel().getValueAt(\n\t\t\t\t\tselectedRows[i], 5);\n\t\t\ttry {\n\t\t\t\t// Delete the trusted certificate entry from the Truststore\n\t\t\t\tcredManager.deleteTrustedCertificate(alias);\n\t\t\t} catch (CMException cme) {\n\t\t\t\texMessage = \"Failed to delete the trusted certificate(s) from the Truststore\";\n\t\t\t\tlogger.error(exMessage, cme);\n\t\t\t}\n\t\t}\n\t\tif (exMessage != null)\n\t\t\tshowMessageDialog(this, exMessage, ERROR_TITLE, ERROR_MESSAGE);\n\t}", "public String deleteUser(){\n\t\tusersservice.delete(usersId);\n\t\treturn \"Success\";\n\t}", "public void clearDB(){\n \t\tbuilderDelete = new AlertDialog.Builder(this);\n \n \t\t// set title\n \t\tbuilderDelete.setTitle(\"Delete Your Checkbook?\");\n \n \t\tbuilderDelete.setMessage(\n \t\t\t\t\"Do you want to completely delete the database?\\n\\nTHIS IS PERMANENT.\")\n \t\t\t\t.setCancelable(false)\n \t\t\t\t.setPositiveButton(\"Yes\",\n \t\t\t\t\t\tnew DialogInterface.OnClickListener() {\n \t\t\t\t\tpublic void onClick(DialogInterface arg0,\n \t\t\t\t\t\t\tint arg1) {\n \t\t\t\t\t\tdestroyDatabase();\n \t\t\t\t\t}\n \t\t\t\t})\n \t\t\t\t.setNegativeButton(\"No\",\n \t\t\t\t\t\tnew DialogInterface.OnClickListener() {\n \t\t\t\t\tpublic void onClick(DialogInterface arg0, int arg1) {\n \t\t\t\t\t\t// no action taken\n \t\t\t\t\t}\n \t\t\t\t}).show();\n \n \t}", "@Override\r\n\tpublic boolean deleteAllUser() {\n\t\treturn false;\r\n\t}", "public static void deleteUserData(final Context context) {\n log.info(\"Usuario Eliminado\");\n inicializaPreferencias(context);\n sharedPreferencesEdit.remove(Constantes.USER);\n sharedPreferencesEdit.commit();\n }", "void deleteUser(String deleteUserId);", "public void deleteKey(String key) throws Exception;", "@Override\r\n\tpublic void deleteAllAccounts() {\n\t\t\r\n\t}", "@Transactional\n\t@Override\n\tpublic void deleteAll() {\n\t\tanchorKeywordsDAO.deleteAll();\n\t}", "public void deleteAccount() {\n final FirebaseUser currUser = FirebaseAuth.getInstance().getCurrentUser();\n FirebaseDatabase database = FirebaseDatabase.getInstance();\n DatabaseReference ref = database.getReference();\n ref.addListenerForSingleValueEvent( new ValueEventListener() {\n public void onDataChange(DataSnapshot dataSnapshot) {\n for (DataSnapshot userSnapshot : dataSnapshot.child(\"User\").getChildren()) {\n if (userSnapshot.child(\"userId\").getValue().toString().equals(currUser.getUid())) {\n //if the userId is that of the current user, check mod status\n System.out.println(\"Attempting delete calls\");\n //dataSnapshot.getRef().child(\"User\").orderByChild(\"userId\").equalTo(currUser.getUid());\n userSnapshot.getRef().removeValue();\n currUser.delete();\n //take user back to starting page\n Intent intent = new Intent(SettingsActivity.this, MainActivity.class);\n startActivity(intent);\n }\n }\n }\n public void onCancelled(DatabaseError databaseError) {\n System.out.println(\"The read failed: \" + databaseError.getCode());\n }\n });\n signOut();\n }", "public void delete(String username) throws LoginBubbleDocsException{\n\t\tUser user = getUserByName(username);\n\t\tString token = getUserInSessionToken(username);\n\t\tif(user == null)\n\t\t\tthrow new LoginBubbleDocsException();\n\t\tif(token != null)\n\t\t\tremoveUserFromSession(token);\n\t\tuser.delete();\n\t}", "public void clearAllAuthInfo();", "public void clear() throws DBException\n {\n String sqlString = \"DELETE FROM user\";\n try(Statement statement = conn.createStatement())\n {\n statement.executeUpdate(sqlString);\n }\n catch(SQLException ex)\n {\n throw new DBException(\"Error while clearing user table\");\n }\n\n\n }", "public static boolean remove(Context context){\n SharedPreferences.Editor editor= getSharedPreferences(context)\n .edit();\n editor.putString(USERNAME,null);\n editor.putString(PASSWORD,null);\n editor.putString(GENDER,null);\n editor.putString(ADDRESS,null);\n editor.commit();\n return true;\n }" ]
[ "0.6663846", "0.644003", "0.6278349", "0.6229347", "0.61806524", "0.61634094", "0.6088328", "0.60673094", "0.6062109", "0.6036426", "0.59637916", "0.59553784", "0.59537834", "0.5948839", "0.5945319", "0.59362847", "0.5928848", "0.5915893", "0.59095585", "0.5899603", "0.5883522", "0.5865247", "0.5850285", "0.5837448", "0.5830143", "0.58078474", "0.5800276", "0.57990426", "0.5786941", "0.57715446", "0.5757054", "0.57564896", "0.5755333", "0.5751057", "0.5746988", "0.57404435", "0.5740442", "0.57370424", "0.5732382", "0.57315046", "0.57290477", "0.5710749", "0.57049584", "0.5694642", "0.5693646", "0.5673241", "0.566941", "0.56688774", "0.56582123", "0.5655301", "0.56539017", "0.56507766", "0.5646297", "0.5645372", "0.5642906", "0.56387347", "0.5637415", "0.5627795", "0.5625038", "0.5622622", "0.56220037", "0.56055737", "0.56055737", "0.56014514", "0.5597851", "0.5597616", "0.55943274", "0.5591752", "0.5586399", "0.55850637", "0.55789286", "0.55748403", "0.5571688", "0.5566689", "0.5564181", "0.5561916", "0.5560844", "0.5557539", "0.55542415", "0.5548442", "0.554617", "0.55451864", "0.5544719", "0.5541452", "0.55309206", "0.55181277", "0.5510791", "0.5508245", "0.5506351", "0.55029386", "0.55010504", "0.5500372", "0.54988414", "0.54936194", "0.5485086", "0.54802096", "0.5480085", "0.54777217", "0.5477719", "0.54760104" ]
0.78424925
0
Shows the contents of a (user or trusted) certificate.
private void viewCertificate() { int selectedRow = -1; String alias = null; X509Certificate certToView = null; ArrayList<String> serviceURIs = null; KeystoreType keystoreType = null; // Are we showing user's public key certificate? if (keyPairsTab.isShowing()) { keystoreType = KEYSTORE; selectedRow = keyPairsTable.getSelectedRow(); if (selectedRow != -1) /* * Because the alias column is not visible we call the * getValueAt method on the table model rather than at the * JTable */ alias = (String) keyPairsTable.getModel().getValueAt(selectedRow, 6); // current entry's Keystore alias } // Are we showing trusted certificate? else if (trustedCertificatesTab.isShowing()) { keystoreType = TRUSTSTORE; selectedRow = trustedCertsTable.getSelectedRow(); if (selectedRow != -1) /* * Get the selected trusted certificate entry's Truststore alias * Alias column is invisible so we get the value from the table * model */ alias = (String) trustedCertsTable.getModel().getValueAt( selectedRow, 5); } try { if (selectedRow != -1) { // something has been selected // Get the entry's certificate certToView = dnParser.convertCertificate(credManager .getCertificate(keystoreType, alias)); // Show the certificate's contents to the user ViewCertDetailsDialog viewCertDetailsDialog = new ViewCertDetailsDialog( this, "Certificate details", true, certToView, serviceURIs, dnParser); viewCertDetailsDialog.setLocationRelativeTo(this); viewCertDetailsDialog.setVisible(true); } } catch (CMException cme) { String exMessage = "Failed to get certificate details to display to the user"; logger.error(exMessage, cme); showMessageDialog(this, exMessage, ERROR_TITLE, ERROR_MESSAGE); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getCertificate();", "private void performShowCertCommand(String[] args) throws Exception {\n int i = 1;\n X509Certificate c;\n boolean listAll = false;\n\n try {\n for (i = 1; i < args.length; i++) {\n\n if (args[i].equals(\"-encoding\")) {\n encoding = args[++i];\n } else if (args[i].equals(\"-certnum\")) {\n certnum = args[++i];\n } else if (args[i].equals(\"-chainnum\")) {\n chainNum = args[++i];\n } else if (args[i].equals(\"-all\")) {\n listAll = true;\n } else if (args[i].equals(\"-inputjad\")) {\n infile = args[++i];\n } else {\n usageError(\"Illegal option for \" + command +\n \": \" + args[i]);\n }\n }\n } catch (ArrayIndexOutOfBoundsException aiobe) {\n usageError(\"Missing value for \" + args[--i]);\n }\n\n if (listAll && (chainNum != null || certnum != null)) {\n usageError(\"-all cannot be used with -certnum or -chainnum\");\n }\n\n // these methods will check for the presence of the args they need\n checkCertAndChainNum();\n initJadUtil();\n\n if (listAll) {\n Vector certs = appdesc.getAllCerts();\n\n if (certs.size() == 0) {\n System.out.println(\"\\nNo certificates found in JAD.\\n\");\n return;\n }\n\n System.out.println();\n\n for (i = 0; i < certs.size(); i++) {\n Object[] temp = (Object[])certs.elementAt(i);\n\n System.out.println((String)temp[AppDescriptor.KEY] + \":\");\n\n displayCert((X509Certificate)temp[AppDescriptor.CERT]);\n }\n\n return;\n }\n\n try {\n c = appdesc.getCert(chainIndex, certIndex);\n } catch (Exception e) {\n throw new Exception(\"-showcert failed: \" + e.toString());\n }\n\n if (c == null) {\n throw new Exception(\"Certificate \" + chainIndex + \"-\" +\n certIndex + \" not in JAD\");\n }\n\n try {\n displayCert(c);\n return;\n } catch (Exception e) {\n throw new Exception(\"-showcert failed: \" + e.toString());\n }\n }", "public CertificateView(String certificate) {\n setTitle(Constant.messages.getString(\"view.cert.title\"));\n\n JButton closeButton = new JButton(Constant.messages.getString(\"view.cert.button.close\"));\n closeButton.addActionListener(\n e -> {\n setVisible(false);\n dispose();\n });\n\n ZapTextArea certificateTextArea = new ZapTextArea(certificate);\n certificateTextArea.setEditable(false);\n\n JScrollPane certificateScrollPane = new JScrollPane(certificateTextArea);\n\n GroupLayout layout = new GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(GroupLayout.Alignment.LEADING)\n .addGroup(\n GroupLayout.Alignment.TRAILING,\n layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(\n layout.createParallelGroup(\n GroupLayout.Alignment.TRAILING)\n .addComponent(\n closeButton,\n GroupLayout.PREFERRED_SIZE,\n 93,\n GroupLayout.PREFERRED_SIZE)\n .addComponent(\n certificateScrollPane,\n GroupLayout.DEFAULT_SIZE,\n 658,\n Short.MAX_VALUE))\n .addContainerGap()));\n layout.setVerticalGroup(\n layout.createParallelGroup(GroupLayout.Alignment.LEADING)\n .addGroup(\n GroupLayout.Alignment.TRAILING,\n layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(\n certificateScrollPane,\n GroupLayout.DEFAULT_SIZE,\n 439,\n Short.MAX_VALUE)\n .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(closeButton)\n .addContainerGap()));\n pack();\n\n setVisible(true);\n }", "public String call_google_certificate() throws CertificateException, IOException, KeyStoreException, NoSuchAlgorithmException, KeyManagementException {\n CertificateFactory cf = CertificateFactory.getInstance(\"X.509\");\n // From https://www.washington.edu/itconnect/security/ca/load-der.crt\n InputStream caInput = getResources().openRawResource(R.raw.loadder);\n Certificate ca;\n try {\n ca = cf.generateCertificate(caInput);\n System.out.println(\"ca=\" + ((X509Certificate) ca).getSubjectDN());\n } finally {\n caInput.close();\n }\n // Create a KeyStore containing our trusted CAs\n String keyStoreType = KeyStore.getDefaultType();\n KeyStore keyStore = KeyStore.getInstance(keyStoreType);\n keyStore.load(null, null);\n keyStore.setCertificateEntry(\"ca\", ca);\n // Create a TrustManager that trusts the CAs in our KeyStore\n String tmfAlgorithm = TrustManagerFactory.getDefaultAlgorithm();\n TrustManagerFactory tmf = TrustManagerFactory.getInstance(tmfAlgorithm);\n tmf.init(keyStore);\n // Create an SSLContext that uses our TrustManager\n SSLContext context = SSLContext.getInstance(\"TLS\");\n context.init(null, tmf.getTrustManagers(), null);\n // Tell the URLConnection to use a SocketFactory from our SSLContext\n URL url = new URL(\"https://certs.cac.washington.edu/CAtest/\");\n HttpsURLConnection urlConnection =\n (HttpsURLConnection) url.openConnection();\n urlConnection.setSSLSocketFactory(context.getSocketFactory());\n InputStream in = urlConnection.getInputStream();\n return getStringFromInputStream(in);\n }", "public X509Certificate getCertificate();", "private void importTrustedCertificate() {\n\t\t// Let the user choose a file containing trusted certificate(s) to\n\t\t// import\n\t\tFile certFile = selectImportExportFile(\n\t\t\t\t\"Certificate file to import from\", // title\n\t\t\t\tnew String[] { \".pem\", \".crt\", \".cer\", \".der\", \"p7\", \".p7c\" }, // file extensions filters\n\t\t\t\t\"Certificate Files (*.pem, *.crt, , *.cer, *.der, *.p7, *.p7c)\", // filter descriptions\n\t\t\t\t\"Import\", // text for the file chooser's approve button\n\t\t\t\t\"trustedCertDir\"); // preference string for saving the last chosen directory\n\t\tif (certFile == null)\n\t\t\treturn;\n\n\t\t// Load the certificate(s) from the file\n\t\tArrayList<X509Certificate> trustCertsList = new ArrayList<>();\n\t\tCertificateFactory cf;\n\t\ttry {\n\t\t\tcf = CertificateFactory.getInstance(\"X.509\");\n\t\t} catch (Exception e) {\n\t\t\t// Nothing we can do! Things are badly misconfigured\n\t\t\tcf = null;\n\t\t}\n\n\t\tif (cf != null) {\n\t\t\ttry (FileInputStream fis = new FileInputStream(certFile)) {\n\t\t\t\tfor (Certificate cert : cf.generateCertificates(fis))\n\t\t\t\t\ttrustCertsList.add((X509Certificate) cert);\n\t\t\t} catch (Exception cex) {\n\t\t\t\t// Do nothing\n\t\t\t}\n\n\t\t\tif (trustCertsList.size() == 0) {\n\t\t\t\t// Could not load certificates as any of the above types\n\t\t\t\ttry (FileInputStream fis = new FileInputStream(certFile);\n\t\t\t\t\t\tPEMReader pr = new PEMReader(\n\t\t\t\t\t\t\t\tnew InputStreamReader(fis), null, cf\n\t\t\t\t\t\t\t\t\t\t.getProvider().getName())) {\n\t\t\t\t\t/*\n\t\t\t\t\t * Try as openssl PEM format - which sligtly differs from\n\t\t\t\t\t * the one supported by JCE\n\t\t\t\t\t */\n\t\t\t\t\tObject cert;\n\t\t\t\t\twhile ((cert = pr.readObject()) != null)\n\t\t\t\t\t\tif (cert instanceof X509Certificate)\n\t\t\t\t\t\t\ttrustCertsList.add((X509Certificate) cert);\n\t\t\t\t} catch (Exception cex) {\n\t\t\t\t\t// do nothing\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif (trustCertsList.size() == 0) {\n\t\t\t/* Failed to load certifcate(s) using any of the known encodings */\n\t\t\tshowMessageDialog(this,\n\t\t\t\t\t\"Failed to load certificate(s) using any of the known encodings -\\n\"\n\t\t\t\t\t\t\t+ \"file format not recognised.\", ERROR_TITLE,\n\t\t\t\t\tERROR_MESSAGE);\n\t\t\treturn;\n\t\t}\n\n\t\t// Show the list of certificates contained in the file for the user to\n\t\t// select the ones to import\n\t\tNewTrustCertsDialog importTrustCertsDialog = new NewTrustCertsDialog(this,\n\t\t\t\t\"Credential Manager\", true, trustCertsList, dnParser);\n\n\t\timportTrustCertsDialog.setLocationRelativeTo(this);\n\t\timportTrustCertsDialog.setVisible(true);\n\t\tList<X509Certificate> selectedTrustCerts = importTrustCertsDialog\n\t\t\t\t.getTrustedCertificates(); // user-selected trusted certs to import\n\n\t\t// If user cancelled or did not select any cert to import\n\t\tif (selectedTrustCerts == null || selectedTrustCerts.isEmpty())\n\t\t\treturn;\n\n\t\ttry {\n\t\t\tfor (X509Certificate cert : selectedTrustCerts)\n\t\t\t\t// Import the selected trusted certificates\n\t\t\t\tcredManager.addTrustedCertificate(cert);\n\n\t\t\t// Display success message\n\t\t\tshowMessageDialog(this, \"Trusted certificate(s) import successful\",\n\t\t\t\t\tALERT_TITLE, INFORMATION_MESSAGE);\n\t\t} catch (CMException cme) {\n\t\t\tString exMessage = \"Failed to import trusted certificate(s) to the Truststore\";\n\t\t\tlogger.error(exMessage, cme);\n\t\t\tshowMessageDialog(this, exMessage, ERROR_TITLE, ERROR_MESSAGE);\n\t\t}\n\t}", "public String getCertDescription() {\n return certDescription;\n }", "public static void httpClientGetServerCertificate() {\n HttpResponseInterceptor certificateInterceptor = (httpResponse, context) -> {\n ManagedHttpClientConnection routedConnection = (ManagedHttpClientConnection) context.getAttribute(HttpCoreContext.HTTP_CONNECTION);\n SSLSession sslSession = routedConnection.getSSLSession();\n if (sslSession != null) {\n\n // get the server certificates from the {@Link SSLSession}\n Certificate[] certificates = sslSession.getPeerCertificates();\n\n // add the certificates to the context, where we can later grab it from\n context.setAttribute(HttpClientConstants.PEER_CERTIFICATES, certificates);\n }\n };\n try (\n // create closable http client and assign the certificate interceptor\n CloseableHttpClient httpClient = HttpClients.custom().addInterceptorLast(certificateInterceptor).build()) {\n\n // make HTTP GET request to resource server\n HttpGet httpget = new HttpGet(\"https://www.baidu.com\");\n System.out.println(\"Executing request \" + httpget.getRequestLine());\n\n // create http context where the certificate will be added\n HttpContext context = new BasicHttpContext();\n httpClient.execute(httpget, context);\n\n // obtain the server certificates from the context\n Certificate[] peerCertificates = (Certificate[]) context.getAttribute(HttpClientConstants.PEER_CERTIFICATES);\n\n // loop over certificates and print meta-data\n for (Certificate certificate : peerCertificates) {\n X509Certificate real = (X509Certificate) certificate;\n System.out.println(\"----------------------------------------\");\n System.out.println(\"Type: \" + real.getType());\n System.out.println(\"Signing Algorithm: \" + real.getSigAlgName());\n System.out.println(\"IssuerDN Principal: \" + real.getIssuerX500Principal());\n System.out.println(\"SubjectDN Principal: \" + real.getSubjectX500Principal());\n System.out.println(\"Not After: \" + DateUtils.formatDate(real.getNotAfter(), \"dd-MM-yyyy\"));\n System.out.println(\"Not Before: \" + DateUtils.formatDate(real.getNotBefore(), \"dd-MM-yyyy\"));\n System.out.println(\"----------------------------------------\");\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public String getUserCertificatesPath();", "public String getCertification() {\n return certification;\n }", "public String getCertificateEmail(X509Certificate certificate) throws CertException;", "public X509Certificate getCertificate()\n {\n return this.cert;\n }", "public List<CatalogDescription> getAllCatalogDescriptionsForCertificate(boolean showInactives);", "public void ClickOnConfirmCertificateInformationButton()\n\t\t{\n\t\t\tConfirmCertificateInformation.click();\n\t\t}", "liubaninc.m0.pki.CertificateOuterClass.Certificate getCertificate(int index);", "public String getTlsCert();", "liubaninc.m0.pki.CertificateOuterClass.Certificate getCertificate();", "@Override\npublic void checkServerTrusted(X509Certificate[] arg0, String arg1)\nthrows CertificateException {\n}", "@RequestMapping(value = \"/cades-signature\", method = {RequestMethod.GET})\n\tpublic String get(\n\t\t@RequestParam(value = \"userfile\", required = false) String userfile,\n\t\t@RequestParam(value = \"cmsfile\", required = false) String cmsfile,\n\t\tModel model\n\t) throws IOException, RestException {\n\t\tmodel.addAttribute(\"userfile\", userfile);\n\t\tmodel.addAttribute(\"cmsfile\", cmsfile);\n\t\t// Render the page for the first step of the signature process, on which the user chooses the certificate and\n\t\t// its encoding is read (templates/cades-signature-step1.html)\n\t\treturn \"cades-signature-step1\";\n\t}", "public List<CatalogDescription> getAllCatalogDescriptionsForCertificate();", "private boolean exportTrustedCertificate() {\n\t\t// Which trusted certificate has been selected?\n\t\tint selectedRow = trustedCertsTable.getSelectedRow();\n\t\tif (selectedRow == -1) // no row currently selected\n\t\t\treturn false;\n\n\t\t// Get the trusted certificate entry's Keystore alias\n\t\tString alias = (String) trustedCertsTable.getModel()\n\t\t\t\t.getValueAt(selectedRow, 3);\n\t\t// the alias column is invisible so we get the value from the table\n\t\t// model\n\n\t\t// Let the user choose a file to export to\n\t\tFile exportFile = selectImportExportFile(\"Select a file to export to\", // title\n\t\t\t\tnew String[] { \".pem\" }, // array of file extensions for the\n\t\t\t\t// file filter\n\t\t\t\t\"Certificate Files (*.pem)\", // description of the filter\n\t\t\t\t\"Export\", // text for the file chooser's approve button\n\t\t\t\t\"trustedCertDir\"); // preference string for saving the last chosen directory\n\t\tif (exportFile == null)\n\t\t\treturn false;\n\n\t\t// If file already exist - ask the user if he wants to overwrite it\n\t\tif (exportFile.isFile()\n\t\t\t\t&& showConfirmDialog(this,\n\t\t\t\t\t\t\"The file with the given name already exists.\\n\"\n\t\t\t\t\t\t\t\t+ \"Do you want to overwrite it?\", ALERT_TITLE,\n\t\t\t\t\t\tYES_NO_OPTION) == NO_OPTION)\n\t\t\treturn false;\n\n\t\t// Export the trusted certificate\n\t\ttry (PEMWriter pw = new PEMWriter(new FileWriter(exportFile))) {\n\t\t\t// Get the trusted certificate\n\t\t\tpw.writeObject(credManager.getCertificate(TRUSTSTORE, alias));\n\t\t} catch (Exception ex) {\n\t\t\tString exMessage = \"Failed to export the trusted certificate from the Truststore.\";\n\t\t\tlogger.error(exMessage, ex);\n\t\t\tshowMessageDialog(this, exMessage, ERROR_TITLE, ERROR_MESSAGE);\n\t\t\treturn false;\n\t\t}\n\t\tshowMessageDialog(this, \"Trusted certificate export successful\",\n\t\t\t\tALERT_TITLE, INFORMATION_MESSAGE);\n\t\treturn true;\n\t}", "@Override\n public void checkServerTrusted(\n java.security.cert.X509Certificate[] certs, String authType)\n throws CertificateException {\n InputStream inStream = null;\n try {\n // Loading the CA cert\n URL u = getClass().getResource(\"dstca.cer\");\n inStream = new FileInputStream(u.getFile());\n CertificateFactory cf = CertificateFactory.getInstance(\"X.509\");\n X509Certificate ca = (X509Certificate) cf.generateCertificate(inStream);\n inStream.close();\n //if(certs[0].getSignature().equals(ca.getSignature()))\n for (int i = 0; i < certs.length ; i++) {\n X509Certificate cert = certs[i];\n // Verifing by public key\n try{\n cert.verify(certs[i+1].getPublicKey());\n }catch (Exception e) {\n cert.verify(ca.getPublicKey());\n }\n }\n } catch (Exception ex) {\n Monitor.logger(ex.getLocalizedMessage());\n ex.printStackTrace();\n throw new CertificateException(ex);\n } finally {\n try {\n inStream.close();\n } catch (IOException ex) {\n Monitor.logger(ex.getLocalizedMessage());\n ex.printStackTrace();\n }\n }\n\n }", "public void actionPerformed(ActionEvent e) \n {\n\tint i = certList.getSelectedIndex();\n\t\n\t//if (i < 0)\n\t// return;\n\t \t \n\t// Changed the certificate from the active set into the \n\t// inactive set. This is for removing the certificate from\n\t// the store when the user clicks on Apply.\n\t//\n\tString alias = (String) certList.getSelectedValue();\n\n\tif (e.getSource()==removeButton) \n\t{\t \t\t\n\t // Changed the certificate from the active set into the \n\t // inactive set. This is for removing the certificate from\n\t // the store when the user clicks on Apply.\n\t //\n\t if (getRadioPos() == mh.getMessage(\"SignedApplet_value\"))\n \t model.deactivateCertificate(alias);\n\t else\n\t model.deactivateHttpsCertificate(alias);\n\n\t reset();\n\t}\n\telse if (e.getSource() == viewCertButton) \n\t{\n\t X509Certificate myCert = null;\n\n\t if (getRadioPos() == mh.getMessage(\"SignedApplet_value\"))\n\t\tmyCert = (X509Certificate) model.getCertificate(alias);\n\t else if (getRadioPos() == mh.getMessage(\"SecureSite_value\")) \n\t\tmyCert = (X509Certificate) model.getHttpsCertificate(alias);\n\t else if (getRadioPos() == mh.getMessage(\"SignerCA_value\")) \n\t\tmyCert = (X509Certificate) model.getRootCACertificate(alias);\n\t else if (getRadioPos() == mh.getMessage(\"SecureSiteCA_value\")) \n\t\tmyCert = (X509Certificate) model.getHttpsRootCACertificate(alias);\n\n\t X509Certificate[] certs = new X509Certificate[] {myCert};\n\n\t // Make sure the certificate has been stored or in the import HashMap.\n\t if (certs.length > 0 && certs[0] instanceof X509Certificate)\n\t {\n \tCertificateDialog dialog = new CertificateDialog(this, certs, 0, certs.length);\n \t \tdialog.DoModal();\t\t\t\n\t }\n\t else \n\t {\n\t\t// The certificate you are trying to view is still in Import HashMap\n\t\tX509Certificate impCert = null;\n\n\t\tif (getRadioPos() == mh.getMessage(\"SignedApplet_value\"))\n\t\t impCert = model.getImpCertificate(alias);\n\t\telse\n\t\t impCert = model.getImpHttpsCertificate(alias);\n\t\n\t X509Certificate[] impCerts = new X509Certificate[] {impCert};\n \tCertificateDialog impDialog = new CertificateDialog(this, impCerts, 0, impCerts.length);\n \t \timpDialog.DoModal();\t\t\t\n\t }\n\t}\n\telse if (e.getSource() == importButton)\n\t{\n\t // Popup FileChooser\n\t JFileChooser jfc = new JFileChooser();\n\n\t // Set filter for File Chooser Dialog Box\n\t CertFileFilter impFilter = new CertFileFilter(); \n\t impFilter.addExtension(\"csr\");\n\t impFilter.addExtension(\"p12\");\n\t impFilter.setDescription(\"Certificate Files\");\n\t jfc.setFileFilter(impFilter);\n \n\t jfc.setFileSelectionMode(JFileChooser.FILES_ONLY);\n\t jfc.setDialogType(JFileChooser.OPEN_DIALOG);\n\t jfc.setMultiSelectionEnabled(false);\n\t int result = jfc.showOpenDialog(this);\n\t if (result == JFileChooser.APPROVE_OPTION)\n\t {\n\t\tFile f = jfc.getSelectedFile();\n\t\tif (f == null) return;\n\n\t\ttry\n\t\t{\n\t\t InputStream inStream = System.in;\n\t\t inStream = new FileInputStream(f);\n\n\t\t // Import certificate from file to deployment.certs\n\t\t boolean impStatus = false;\n\t\t impStatus = importCertificate(inStream);\n\t\t\t\n\t\t // Check if it is belong to PKCS#12 format\n\t\t if (!impStatus)\n\t\t {\n\t\t\t// Create another inputStream for PKCS#12 foramt\n\t\t InputStream inP12Stream = System.in;\n\t\t inP12Stream = new FileInputStream(f);\n\t\t importPKCS12Certificate(inP12Stream);\n\t\t }\n\t\t}\n\t\tcatch(Throwable e2)\n\t\t{\n\t\t DialogFactory.showExceptionDialog(this, e2, getMessage(\"dialog.import.file.text\"), \n\t\t\t\t\t\t getMessage(\"dialog.import.error.caption\"));\n\t\t}\n\t }\n\n\t reset();\n\t}\n\telse if (e.getSource() == exportButton)\n\t{\n\t X509Certificate cert = null;\n\n\t if (getRadioPos() == mh.getMessage(\"SignedApplet_value\"))\n\t\tcert = (X509Certificate) model.getCertificate(alias);\n\t else if (getRadioPos() == mh.getMessage(\"SecureSite_value\")) \n\t\tcert = (X509Certificate) model.getHttpsCertificate(alias);\n\t else if (getRadioPos() == mh.getMessage(\"SignerCA_value\")) \n\t\tcert = (X509Certificate) model.getRootCACertificate(alias);\n\t else if (getRadioPos() == mh.getMessage(\"SecureSiteCA_value\")) \n\t\tcert = (X509Certificate) model.getHttpsRootCACertificate(alias);\n\n\t // Make sure the certificate has been stored, if not, get from import table.\n\t if (!(cert instanceof X509Certificate))\n\t {\n\t\t// The certificate you are trying to export is still in Import HashMap\n\t\tif (getRadioPos() == mh.getMessage(\"SignedApplet_value\"))\n\t\t cert = model.getImpCertificate(alias);\n\t\telse\n\t\t cert = model.getImpHttpsCertificate(alias);\n\n\t } //not saved certificate \n\n\t if (cert != null)\n\t {\n\t // Popup FileChooser\n\t JFileChooser jfc = new JFileChooser();\n\t jfc.setFileSelectionMode(JFileChooser.FILES_ONLY);\n\t jfc.setDialogType(JFileChooser.SAVE_DIALOG);\n\t jfc.setMultiSelectionEnabled(false);\n\t int result = jfc.showSaveDialog(this);\n\t if (result == JFileChooser.APPROVE_OPTION)\n\t {\n\t\tFile f = jfc.getSelectedFile();\n\t\tif (f == null) return;\n\t\tPrintStream ps = null;\n\t\ttry {\n\t\t ps = new PrintStream(new BufferedOutputStream(new FileOutputStream(f)));\n\t\t exportCertificate(cert, ps);\n\t\t}\n\t\tcatch(Throwable e2) \n\t\t{\n\t\t DialogFactory.showExceptionDialog(this, e2, getMessage(\"dialog.export.text\"), \n\t\t\t\t\t\t getMessage(\"dialog.export.error.caption\"));\n\t\t}\n\t\tfinally {\n\t\t if (ps != null)\n\t\t\tps.close();\n\t\t}\n\t }\n\t } // Cert not null\n\t else {\n\t\tDialogFactory.showErrorDialog(this, getMessage(\"dialog.export.text\"), getMessage(\"dialog.export.error.caption\"));\n\t }\n\t}\n }", "public interface X509Credential\n{\n\t/**\n\t * Returns the credential in a keystore.\n\t * @return the KeyStore\n\t */\n\tpublic KeyStore getKeyStore();\n\t\n\t/**\n\t * Returns a KeyManager which accompanies the KeyStore. \n\t * @return the KeyManager\n\t */\n\tpublic X509ExtendedKeyManager getKeyManager();\n\t\n\t/**\n\t * Returns a password which can be used to obtain PrivateKey entry\n\t * from the KeyStore returned by the {@link #getKeyStore()} method, \n\t * with the alias returned by the {@link #getKeyAlias()} method.\n\t * @return key password\n\t */\n\tpublic char[] getKeyPassword();\n\t\n\t/**\n\t * Returns an alias which can be used to obtain the PrivateKey entry\n\t * from the KeyStore returned by the {@link #getKeyStore()} method.\n\t * @return key alias\n\t */\n\tpublic String getKeyAlias();\n\t\n\t/**\n\t * Helper method to get private key from the underlying keystore\n\t * @return private key\n\t */\n\tpublic PrivateKey getKey();\n\n\t/**\n\t * Helper method to get certificate from the underlying keystore\n\t * @return certificate\n\t */\n\tpublic X509Certificate getCertificate();\n\n\t/**\n \t * Helper method to get certificate chain from the underlying keystore\n\t * @return certificate chain\n\t */\n\tpublic X509Certificate[] getCertificateChain();\n\t\n\t/**\n\t * @return RFC 2253 distinguished name of the certificate subject\n\t * @since 1.1.0\n\t */\n\tpublic String getSubjectName();\n}", "boolean hasCertificate();", "public CertificateDescription certificate() {\n return this.certificate;\n }", "public String getCertification() {\r\n\t\treturn certification;\r\n\t}", "@Override\npublic void checkClientTrusted(X509Certificate[] arg0, String arg1)\nthrows CertificateException {\n}", "void exportCertificate(X509Certificate cert, PrintStream ps)\n {\n\tBASE64Encoder encoder = new BASE64Encoder();\n\tps.println(X509Factory.BEGIN_CERT);\n\ttry\n\t{\n\t encoder.encodeBuffer(cert.getEncoded(), ps);\n\t}\n\tcatch (Throwable e)\n\t{\n\t Trace.printException(this, e);\n\t}\n\tps.println(X509Factory.END_CERT);\n }", "public void ShowSSLDialog(java.lang.String r23, byte[] r24, android.net.http.SslCertificate r25, boolean r26) {\n /*\n r22 = this;\n r3 = com.adobe.air.AndroidActivityWrapper.GetAndroidActivityWrapper();\n r10 = r3.getActivity();\n if (r10 != 0) goto L_0x000e;\n L_0x000a:\n r10 = r3.WaitForNewActivity();\n L_0x000e:\n r7 = new com.adobe.air.AndroidAlertDialog;\n r7.<init>(r10);\n r16 = r7.GetAlertDialogBuilder();\n r9 = r10.getLayoutInflater();\n r14 = r10.getResources();\n r19 = \"ssl_certificate_warning\";\n r0 = r19;\n r17 = com.adobe.air.utils.Utils.GetLayoutView(r0, r14, r9);\n if (r17 == 0) goto L_0x0178;\n L_0x0029:\n r18 = r17.getResources();\n r19 = \"ServerName\";\n r0 = r19;\n r1 = r18;\n r2 = r17;\n r15 = com.adobe.air.utils.Utils.GetWidgetInViewByNameFromPackage(r0, r1, r2);\n r15 = (android.widget.TextView) r15;\n r19 = new java.lang.StringBuilder;\n r19.<init>();\n r20 = r15.getText();\n r19 = r19.append(r20);\n r20 = \" \";\n r19 = r19.append(r20);\n r0 = r19;\n r1 = r23;\n r19 = r0.append(r1);\n r19 = r19.toString();\n r0 = r19;\n r15.setText(r0);\n r5 = 0;\n if (r24 == 0) goto L_0x0179;\n L_0x0062:\n r5 = new com.adobe.air.Certificate;\n r5.<init>();\n r0 = r24;\n r5.setCertificate(r0);\n L_0x006c:\n r19 = \"IDA_CERTIFICATE_DETAILS\";\n r0 = r19;\n r6 = com.adobe.air.utils.Utils.GetResourceString(r0, r14);\n r19 = 8;\n r0 = r19;\n r0 = new java.lang.Object[r0];\n r19 = r0;\n r20 = 0;\n r21 = r5.getIssuedToCommonName();\n r19[r20] = r21;\n r20 = 1;\n r21 = r5.getIssuedToOrganization();\n r19[r20] = r21;\n r20 = 2;\n r21 = r5.getIssuedToOrganizationalUnit();\n r19[r20] = r21;\n r20 = 3;\n r21 = r5.getIssuedByCommonName();\n r19[r20] = r21;\n r20 = 4;\n r21 = r5.getIssuedByOrganization();\n r19[r20] = r21;\n r20 = 5;\n r21 = r5.getIssuedByOrganizationalUnit();\n r19[r20] = r21;\n r20 = 6;\n r21 = r5.getIssuedOn();\n r19[r20] = r21;\n r20 = 7;\n r21 = r5.getExpiresOn();\n r19[r20] = r21;\n r0 = r19;\n r8 = java.lang.String.format(r6, r0);\n r19 = \"CertificateDetails\";\n r0 = r19;\n r1 = r18;\n r2 = r17;\n r4 = com.adobe.air.utils.Utils.GetWidgetInViewByNameFromPackage(r0, r1, r2);\n r4 = (android.widget.TextView) r4;\n r19 = android.widget.TextView.BufferType.SPANNABLE;\n r0 = r19;\n r4.setText(r8, r0);\n r19 = \"NeutralButton\";\n r0 = r19;\n r1 = r18;\n r2 = r17;\n r12 = com.adobe.air.utils.Utils.GetWidgetInViewByNameFromPackage(r0, r1, r2);\n r12 = (android.widget.Button) r12;\n r19 = new com.adobe.air.SSLSecurityDialog$1;\n r0 = r19;\n r1 = r22;\n r0.<init>(r7);\n r0 = r19;\n r12.setOnClickListener(r0);\n r19 = \"PositiveButton\";\n r0 = r19;\n r1 = r18;\n r2 = r17;\n r13 = com.adobe.air.utils.Utils.GetWidgetInViewByNameFromPackage(r0, r1, r2);\n r13 = (android.widget.Button) r13;\n if (r26 == 0) goto L_0x0182;\n L_0x0103:\n r19 = new com.adobe.air.SSLSecurityDialog$2;\n r0 = r19;\n r1 = r22;\n r0.<init>(r7);\n r0 = r19;\n r13.setOnClickListener(r0);\n r19 = 0;\n r0 = r19;\n r13.setVisibility(r0);\n L_0x0118:\n r19 = \"NegativeButton\";\n r0 = r19;\n r1 = r18;\n r2 = r17;\n r11 = com.adobe.air.utils.Utils.GetWidgetInViewByNameFromPackage(r0, r1, r2);\n r11 = (android.widget.Button) r11;\n r19 = new com.adobe.air.SSLSecurityDialog$3;\n r0 = r19;\n r1 = r22;\n r0.<init>(r7);\n r0 = r19;\n r11.setOnClickListener(r0);\n r16.setView(r17);\n r19 = new com.adobe.air.SSLSecurityDialog$4;\n r0 = r19;\n r1 = r22;\n r0.<init>();\n r0 = r16;\n r1 = r19;\n r0.setOnKeyListener(r1);\n r19 = new com.adobe.air.SSLSecurityDialog$5;\n r0 = r19;\n r1 = r22;\n r0.<init>(r7);\n r0 = r19;\n r10.runOnUiThread(r0);\n r0 = r22;\n r0 = r0.m_lock;\n r19 = r0;\n r19.lock();\n r0 = r22;\n r0 = r0.m_useraction;\t Catch:{ InterruptedException -> 0x018a, all -> 0x0195 }\n r19 = r0;\n if (r19 != 0) goto L_0x016f;\n L_0x0166:\n r0 = r22;\n r0 = r0.m_condition;\t Catch:{ InterruptedException -> 0x018a, all -> 0x0195 }\n r19 = r0;\n r19.await();\t Catch:{ InterruptedException -> 0x018a, all -> 0x0195 }\n L_0x016f:\n r0 = r22;\n r0 = r0.m_lock;\n r19 = r0;\n r19.unlock();\n L_0x0178:\n return;\n L_0x0179:\n r5 = new com.adobe.air.Certificate;\n r0 = r25;\n r5.<init>(r0);\n goto L_0x006c;\n L_0x0182:\n r19 = 8;\n r0 = r19;\n r13.setVisibility(r0);\n goto L_0x0118;\n L_0x018a:\n r19 = move-exception;\n r0 = r22;\n r0 = r0.m_lock;\n r19 = r0;\n r19.unlock();\n goto L_0x0178;\n L_0x0195:\n r19 = move-exception;\n r0 = r22;\n r0 = r0.m_lock;\n r20 = r0;\n r20.unlock();\n throw r19;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.adobe.air.SSLSecurityDialog.ShowSSLDialog(java.lang.String, byte[], android.net.http.SslCertificate, boolean):void\");\n }", "com.google.protobuf.ByteString getCertificate(int index);", "liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates();", "liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates();", "public void clickAttachCert() {\r\n\t\tattachCert.click();\r\n\t}", "public byte[] certificate() {\n return this.certificate;\n }", "public interface CertService {\n\n /**\n * Retrieves the root certificate.\n * \n * @return\n * @throws CertException\n */\n public X509Certificate getRootCertificate() throws CertException;\n\n /**\n * Sets up a root service to be used for CA-related services like certificate request signing and certificate\n * revocation.\n * \n * @param keystore\n * @throws CertException\n */\n public void setRootService(RootService rootService) throws CertException;\n\n /**\n * Retrieves a KeyStore object from a supplied InputStream. Requires a keystore password.\n * \n * @param userId\n * @return\n */\n public KeyStore getKeyStore(InputStream keystoreIS, String password) throws CertException;\n\n /**\n * Retrieves existing private and public key from a KeyStore.\n * \n * @param userId\n * @return\n */\n public KeyPair getKeyPair(KeyStore ks, String keyAlias, String certificateAlias, String keyPassword)\n throws CertException;\n\n /**\n * Retrieves an existing certificate from a keystore using keystore's certificate alias.\n * \n * @param userId\n * @return\n */\n public X509Certificate getCertificate(KeyStore keystore, String certificateAlias) throws CertException;\n\n /**\n * Generates a private key and a public certificate for a user whose X.509 field information was enclosed in a\n * UserInfo parameter. Stores those artifacts in a password protected keystore. This is the principal method for\n * activating a new certificate and signing it with a root certificate.\n * \n * @param userId\n * @return KeyStore based on the provided userInfo\n */\n\n public KeyStore initializeUser(UserInfo userInfo, String keyPassword) throws CertException;\n\n /**\n * Wraps a certificate object into an OutputStream object secured by a keystore password\n * \n * @param keystore\n * @param os\n * @param keystorePassword\n * @throws CertException\n */\n public void storeCertificate(KeyStore keystore, OutputStream os, String keystorePassword) throws CertException;\n\n /**\n * Extracts the email address from a certificate\n * \n * @param certificate\n * @return\n * @throws CertException\n */\n public String getCertificateEmail(X509Certificate certificate) throws CertException;\n\n}", "public X509Certificate getCertificate(KeyStore keystore, String certificateAlias) throws CertException;", "public String certificateUrl() {\n return this.certificateUrl;\n }", "@RequestMapping(value = \"/cades-signature\", method = {RequestMethod.POST})\n\tpublic String post(\n\t\t@RequestParam(value = \"selectedCertThumb\", required = true) String selectedCertThumb,\n\t\t@RequestParam(value = \"certificate\", required = true) String certificate,\n\t\t@RequestParam(value = \"userfile\", required = false) String userfile,\n\t\t@RequestParam(value = \"cmsfile\", required = false) String cmsfile,\n\t\tModel model,\n\t\tHttpServletResponse response\n\t) throws IOException, RestException {\n\n\t\t// Instantiate the CadesSignatureStarter class, responsible for receiving the signature elements and start the\n\t\t// signature process. For more information, see:\n\t\t// https://pki.rest/Content/docs/java-client/index.html?com/lacunasoftware/restpki/CadesSignatureStarter.html\n\t\tCadesSignatureStarter signatureStarter = new CadesSignatureStarter(Util.getRestPkiClient());\n\n\t\tif (userfile != null && !userfile.isEmpty()) {\n\n\t\t\t// If the URL argument \"userfile\" is filled, it means the user was redirected to the get() method (above) by\n\t\t\t// UploadController (signature with file uploaded by user). We'll set the path of the file to be signed, which\n\t\t\t// was saved in the temporary folder by UploadController (such a file would normally come from your\n\t\t\t// application's database)\n\t\t\tsignatureStarter.setFileToSign(Application.getTempFolderPath().resolve(userfile));\n\n\t\t} else if (cmsfile != null && !cmsfile.isEmpty()) {\n\n\t\t\t/*\n\t\t\t * If the URL argument \"cmsfile\" is filled, the user has asked to co-sign a previously signed CMS. We'll set\n\t\t\t * the path to the CMS to be co-signed, which was previously saved in our temporary folder. Note two important\n\t\t\t * things:\n\t\t\t *\n\t\t\t * 1. The CMS to be co-signed must be set using the method \"setCmsToCoSign\", not the method \"setContentToSign\"\n\t\t\t * nor \"setFileToSign\"\n\t\t\t *\n\t\t\t * 2. Since we're creating CMSs with encapsulated content (see call to setEncapsulateContent() below), we\n\t\t\t * don't need to set the content to be signed, REST PKI will get the content from the CMS being co-signed.\n\t\t\t */\n\t\t\tsignatureStarter.setCmsToCoSign(Application.getTempFolderPath().resolve(cmsfile));\n\n\t\t} else {\n\n\t\t\t// If both userfile and cmsfile are null, this is the \"signature with server file\" case.\n\t\t\tsignatureStarter.setContentToSign(Util.getSampleDocContent());\n\n\t\t}\n\n\t\t// Set the certificate's encoding in base64 encoding (which is what the Web PKI component yields)\n\t\tsignatureStarter.setSignerCertificate(certificate);\n\n\t\t// Set the signature policy\n\t\tsignatureStarter.setSignaturePolicy(SignaturePolicy.PkiBrazilAdrBasica);\n\n\t\t// Optionally, set a SecurityContext to be used to determine trust in the certificate chain\n\t\t//signatureStarter.setSecurityContext(SecurityContext.pkiBrazil);\n\t\t// Note: Depending on the signature policy chosen above, setting the security context may be mandatory (this is\n\t\t// not the case for ICP-Brasil policies, which will automatically use the ICP-Brasil security context\n\t\t// (\"pkiBrazil\") if none is passed)\n\n\t\t// Optionally, set whether the content should be encapsulated in the resulting CMS. If this parameter is omitted\n\t\t// or set to null, the following rules apply:\n\t\t// - If no CmsToSign is given, the resulting CMS will include the content\n\t\t// - If a CmsToCoSign is given, the resulting CMS will include the content if and only if the CmsToCoSign also\n\t\t// includes the content\n\t\tsignatureStarter.setEncapsulateContent(true);\n\n\t\t// Call the start() method, which initiates the signature on REST PKI. This yields the parameters for the\n\t\t// client-side signature, which we'll use to render the page for the final step, where the actual signature will\n\t\t// be performed.\n\t\tClientSideSignatureInstructions signatureInstructions;\n\t\ttry {\n\t\t\tsignatureInstructions = signatureStarter.start();\n\t\t} catch (ValidationException e) {\n\t\t\t// The call above may throw a ValidationException if the certificate fails the initial validations (for\n\t\t\t// instance, if it is expired). If so, we'll render a page showing what went wrong.\n\t\t\tmodel.addAttribute(\"title\", \"Validation of the certificate failed\");\n\t\t\t// The toString() method of the ValidationResults object can be used to obtain the checks performed, but the\n\t\t\t// string contains tabs and new line characters for formatting. Therefore, we call the method\n\t\t\t// Util.getValidationResultsHtml() to convert these characters to <br>'s and &nbsp;'s.\n\t\t\tmodel.addAttribute(\"vrHtml\", Util.getValidationResultsHtml(e.getValidationResults()));\n\t\t\tString retryUrl = \"/cades-signature\";\n\t\t\tif (userfile != null && !userfile.isEmpty()) {\n\t\t\t\tretryUrl += \"?userfile=\" + userfile;\n\t\t\t} else if (cmsfile != null && !cmsfile.isEmpty()) {\n\t\t\t\tretryUrl += \"?cmsfile=\" + cmsfile;\n\t\t\t}\n\t\t\tmodel.addAttribute(\"retryUrl\", retryUrl);\n\t\t\treturn \"validation-failed\";\n\t\t}\n\n\t\t// Among the data returned by the start() method is the token, a string which identifies this signature process.\n\t\t// This token can only be used for a single signature attempt. In order to retry the signature it is\n\t\t// necessary to get a new token. This can be a problem if the user uses the back button of the browser, since the\n\t\t// browser might show a cached page that we rendered previously, with a now stale token. To prevent this from\n\t\t// happening, we call the method Util.setNoCacheHeaders(), which sets HTTP headers to prevent caching of the page.\n\t\tUtil.setNoCacheHeaders(response);\n\n\t\t// Render the page for the final step of the signature process, on which the actual signature will be performed\n\t\t// (templates/cades-signature-step2.html)\n\t\tmodel.addAttribute(\"selectedCertThumb\", selectedCertThumb);\n\t\tmodel.addAttribute(\"token\", signatureInstructions.getToken());\n\t\tmodel.addAttribute(\"toSignHash\", signatureInstructions.getToSignHash());\n\t\tmodel.addAttribute(\"digestAlg\", signatureInstructions.getDigestAlgorithmOid());\n\t\treturn \"cades-signature-step2\";\n\t}", "public String requestCert(String serialNumber){\n Certificate cert = keyStoreReader.readCertificate(keystoreFile, keystorePassword, serialNumber);\n return cert.toString();\n }", "public X509Certificate getRootCertificate() throws CertException;", "@Override\n public InputStream getCertStream() {\n if (Strings.isEmpty(certPath)) {\n throw new NotFoundException(\"cert path not configured\");\n }\n if (certBytes == null) {\n Path path = Paths.get(certPath).toAbsolutePath();\n try {\n certBytes = readAllBytes(path);\n } catch (IOException e) {\n throw new UncheckedIOException(\"read cert failed\", e);\n }\n }\n return new ByteArrayInputStream(certBytes);\n }", "@java.lang.Override\n public com.google.protobuf.ByteString getCertificate(int index) {\n return instance.getCertificate(index);\n }", "X509Cert caCert(String caName, ReqRespDebug debug) throws CmpClientException, PkiErrorException;", "private void obtenerCertificado() {\n\n\t\tcertificado = generarCertificado(lasLlaves);\n\n\t\ttry {\n\n\t\t\tString cert = in.readLine();\n\t\t\tbyte[] esto = parseBase64Binary(cert);\n\t\t\tCertificateFactory cf = CertificateFactory.getInstance(\"X.509\");\n\t\t\tInputStream is = new ByteArrayInputStream(esto);\n\t\t\tX509Certificate certServer = (X509Certificate) cf.generateCertificate(is);\n\n\t\t\tllavePublica = certServer.getPublicKey(); \n\t\t\tSystem.out.println(\"Llave Publica obtenida\");\n\t\t} catch (Exception e) {\n\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public java.util.List<liubaninc.m0.pki.CertificateOuterClass.Certificate> getCertificateList() {\n return certificate_;\n }", "List<Certificate> getCertificatesById(@NonNull String certificateId, String sha256Thumbprint);", "public static void ShowKeys(ActionEvent event) {\n \n AuthenticateUtils authentic = new AuthenticateUtils();\n authentic.getPrivateKey();\n authentic.getPublicKey();\n //String public = authentic.getPublicKey();\n \n \n Label label1 = new Label (\"Private Key\");\n TextArea s = new TextArea(authentic.getPrivateKey());\n Label label2 = new Label (\"Public Key\");\n TextArea p = new TextArea(authentic.getPublicKey());\n \n s.setEditable(false);\n p.setEditable(false);\n s.setPrefColumnCount(3);\n p.setPrefColumnCount(3);\n s.setPrefRowCount(1);\n p.setPrefRowCount(1);\n\n \n Button close = new Button(\"Close\");\n close.setOnAction(popupUtils::closeFromEvent);\n\n Node source = (Node) event.getSource();\n Stage stage = (Stage) source.getScene().getWindow();\n popup(stage,label1,s,label2,p,close);\n }", "java.util.List<liubaninc.m0.pki.CertificateOuterClass.Certificate> \n getCertificateList();", "public liubaninc.m0.pki.CertificateOuterClass.Certificate getCertificate(int index) {\n return certificate_.get(index);\n }", "public synchronized Vector getX509CertList() throws GeneralSecurityException {\n\tif (certList == null) {\n certList = \n PureTLSUtil.certificateChainToVector(getCertificates());\n\t}\n\treturn certList;\n }", "private void setHascert() {\r\n\t\tthis.hascert = true;\r\n\t}", "void importPKCS12Certificate(InputStream is)\n {\n\tKeyStore myKeySto = null;\n\t// passord\n\tchar[] password = null;\n\t\n\ttry\n\t{\n\t myKeySto = KeyStore.getInstance(\"PKCS12\");\n\n\t // Pop up password dialog box\n Object dialogMsg = getMessage(\"dialog.password.text\");\n JPasswordField passwordField = new JPasswordField();\n\n Object[] msgs = new Object[2];\n msgs[0] = new JLabel(dialogMsg.toString());\n msgs[1] = passwordField;\n\n JButton okButton = new JButton(getMessage(\"dialog.password.okButton\"));\n JButton cancelButton = new JButton(getMessage(\"dialog.password.cancelButton\"));\n\n String title = getMessage(\"dialog.password.caption\");\n Object[] options = {okButton, cancelButton};\n int selectValue = DialogFactory.showOptionDialog(this, msgs, title, options, options[0]);\n\n\t // for security purpose, DO NOT put password into String. Reset password as soon as \n\t // possible.\n\t password = passwordField.getPassword();\n\n\t // User click OK button\n if (selectValue == 0)\n {\n\t // Load KeyStore based on the password\n\t myKeySto.load(is,password);\n\n\t // Get Alias list from KeyStore.\n\t Enumeration aliasList = myKeySto.aliases();\n\n\t while (aliasList.hasMoreElements())\n\t {\n\t\t\tX509Certificate cert = null;\n\n\t\t\t// Get Certificate based on the alias name\n\t\t\tString certAlias = (String)aliasList.nextElement();\n\t\t\tcert = (X509Certificate)myKeySto.getCertificate(certAlias);\n\n\t\t\t// Add to import list based on radio button selection\n\t\t\t\tif (getRadioPos() == mh.getMessage(\"SignedApplet_value\"))\n \t\t\t\t model.deactivateImpCertificate(cert);\n\t\t\t\telse if (getRadioPos() == mh.getMessage(\"SecureSite_value\"))\n \t\t\t\t model.deactivateImpHttpsCertificate(cert);\n\t }\n\t } // OK button\n\t}\n\tcatch(Throwable e)\n\t{\n\t // Show up Error dialog box if the user enter wrong password\n\t // Avoid to convert password array into String - security reason\n\t String uninitializedValue = \"uninitializedValue\";\n\t if (!compareCharArray(password, uninitializedValue.toCharArray()))\n\t {\n\t\t\tString errorMsg = getMessage(\"dialog.import.password.text\");\n\t\t\t\t\tString errorTitle = getMessage(\"dialog.import.error.caption\");\n\t \t\tDialogFactory.showExceptionDialog(this, e, errorMsg, errorTitle);\n\t }\n\t}\n\tfinally {\n\t\t// Reset password\n\t\tif(password != null) {\n\t\t\tjava.util.Arrays.fill(password, ' ');\n\t\t}\n\t}\n }", "public static void main(String[] args) throws KeyStoreException, NoSuchAlgorithmException, CertificateException, IOException, UnrecoverableKeyException, KeyManagementException {\n\t\tKeyStore trustStore = KeyStore.getInstance(\"jks\");\n\t\tInputStream truststore=new FileInputStream(\"client.store\");\n\t\ttrustStore.load(truststore, \"123456\".toCharArray());\n\t\tTrustManagerFactory trustManagerFactory = TrustManagerFactory.getInstance(\"SunX509\");\n\t\ttrustManagerFactory.init(trustStore);\n\t\t\n\t\t//import jks keystore from filesystem (includes private part for client auth)\n\t\tKeyStore keyStore = KeyStore.getInstance(\"jks\");\n\t\tInputStream keystore=new FileInputStream(\"client.store\");\n\t\tkeyStore.load(keystore, \"123456\".toCharArray());\n\t\tKeyManagerFactory keyManagerFactory = KeyManagerFactory.getInstance(\"SunX509\");\n\t\tkeyManagerFactory.init(keyStore, \"1234\".toCharArray());\n\n\t\t\n\t\t//create SSLContext - https://docs.oracle.com/javase/7/docs/api/javax/net/ssl/SSLContext.html\n\t\tSSLContext context = SSLContext.getInstance(\"TLS\");\n\t\tcontext.init(keyManagerFactory.getKeyManagers(), trustManagerFactory.getTrustManagers(), new SecureRandom());\n\t\n\t\t try {\n\t\t\t \t//create clientsocket\n\t\t\t \tSSLSocketFactory sslsocketfactory = context.getSocketFactory();\n\t\t\t \tSSLSocket sslsocket = (SSLSocket) sslsocketfactory.createSocket(\"localhost\", 9999);\n\t sslsocket.setEnabledCipherSuites(sslsocketfactory.getSupportedCipherSuites());\n\t \n\t //client<->server Console Text Transfer\n\t InputStream inputstream = System.in;\n\t InputStreamReader inputstreamreader = new InputStreamReader(inputstream);\n\t BufferedReader bufferedreader = new BufferedReader(inputstreamreader);\n\n\t OutputStream outputstream = sslsocket.getOutputStream();\n\t OutputStreamWriter outputstreamwriter = new OutputStreamWriter(outputstream);\n\t BufferedWriter bufferedwriter = new BufferedWriter(outputstreamwriter);\n\t \t \n\t SSLSession session = sslsocket.getSession();\t// initiate ssl handshake and client auth if server.needclientauth=true\n\t \n\t //display some connection parameters\n\t\t\t System.out.println(\"The Certificates used by peer\");\n\t\t\t \tSystem.out.println(\"Peer host is \" + session.getPeerHost());\n\t\t\t System.out.println(\"Cipher: \" + session.getCipherSuite());\n\t\t\t System.out.println(\"Protocol: \" + session.getProtocol());\n\t\t\t System.out.println(\"ID: \" + new BigInteger(session.getId()));\n\t\t\t System.out.println(\"Session created: \" + session.getCreationTime());\n\t\t\t System.out.println(\"Session accessed: \" + session.getLastAccessedTime());\n\t\t\t System.out.println(\"Peer certificates: \" +session.getPeerCertificates());\n\t\t\t System.out.println(\"local certificates: \" +session.getLocalCertificates().toString());\n\t\t\t System.out.println(\"peer cert-chain: \" +session.getPeerCertificateChain());\n\t \n\t String string = null;\n\t while ((string = bufferedreader.readLine()) != null) {\n\t bufferedwriter.write(string + '\\n');\n\t bufferedwriter.flush();\n\t }\n\t } catch (Exception exception) {\n\t exception.printStackTrace();\n\t }\n\t }", "@java.lang.Override\n public com.google.protobuf.ByteString getCertificate(int index) {\n return certificate_.get(index);\n }", "List<X509Cert> caCerts(String caName, ReqRespDebug debug) throws CmpClientException, PkiErrorException;", "public void storeCertificate(KeyStore keystore, OutputStream os, String keystorePassword) throws CertException;", "@Accessor(qualifier = \"certificateData\", type = Accessor.Type.GETTER)\n\tpublic String getCertificateData()\n\t{\n\t\treturn getPersistenceContext().getPropertyValue(CERTIFICATEDATA);\n\t}", "@Action(\"deleteCertificate\")\n public String deleteCertificate() {\n getProfileService().deleteCertificate(getProfile(), getCertificate());\n return closeDialog();\n }", "private void showCourseCatalogue()\r\n {\r\n \tCourseCatalogue courseCat = this.getDBManager().getCourseCat();\r\n \tthis.getClientOut().printf(\"SUCCESS\\n%s\\n\", courseCat.toString());\r\n \tthis.getClientOut().flush();\r\n }", "public void setUserCertificatesPath(String path);", "public String getTlsCertPath();", "liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates(int index);", "liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates(int index);", "@Override\n\tpublic Certificate readCertificate(String file, String certNaziv) {\n\n\t\ttry {\n\t\t\tKeyStore ks = KeyStore.getInstance(\"JKS\", \"SUN\");\n\t\t\tBufferedInputStream in = new BufferedInputStream(\n\t\t\t\t\tnew FileInputStream(new File(file)));\n\n\t\t\tks.load(in, certNaziv.toCharArray());\n\t\t\tif (ks.isKeyEntry(certNaziv.toLowerCase())) {\n\t\t\t\tCertificate cert = ks.getCertificate(certNaziv);\n\t\t\t\treturn cert;\n\t\t\t} else\n\t\t\t\treturn null;\n\t\t} catch (KeyStoreException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t} catch (NoSuchProviderException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t} catch (FileNotFoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t} catch (NoSuchAlgorithmException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t} catch (CertificateException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t}\n\t}", "@Override\n public void checkServerTrusted(\n final java.security.cert.X509Certificate[] arg0, final String arg1)\n throws CertificateException {\n }", "@Override\n public String getCACertificate() throws IOException {\n LOGGER.debug(\"Getting CA certificate.\");\n try {\n return getPEMEncodedString(\n scmCertificateServer.getCaCertPath());\n } catch (CertificateException e) {\n throw new SCMSecurityException(\"getRootCertificate operation failed. \",\n e, GET_CA_CERT_FAILED);\n }\n }", "public static String getCertificadoCliente() {\n\n\t\treturn NfeUtil.class.getResource(\"/CERTIFICADO.pfx\").getPath();\n\n\t}", "private void viewCourse() {\n Scanner sc = new Scanner(System.in);\n System.out.print(\"ID of the course to be viewed: \");\n Long id = Long.parseLong(sc.next());\n\n Course c = ctrl.getCourse(id);\n if (c != null)\n System.out.println(c.toString());\n else\n System.out.println(\"Course with this ID doesn't exist!\");\n }", "public ShowSecurityResponse showSecurity(ShowSecurityRequest request) throws GPUdbException {\n ShowSecurityResponse actualResponse_ = new ShowSecurityResponse();\n submitRequest(\"/show/security\", request, actualResponse_, false);\n return actualResponse_;\n }", "@Override\n public void checkClientTrusted(\n final java.security.cert.X509Certificate[] arg0, final String arg1)\n throws CertificateException {\n }", "java.util.concurrent.Future<GetCertificateResult> getCertificateAsync(\n GetCertificateRequest getCertificateRequest);", "public java.util.List<liubaninc.m0.pki.CertificateOuterClass.Certificate> getCertificateList() {\n if (certificateBuilder_ == null) {\n return java.util.Collections.unmodifiableList(certificate_);\n } else {\n return certificateBuilder_.getMessageList();\n }\n }", "public liubaninc.m0.pki.CertificateOuterClass.Certificate getCertificate(int index) {\n if (certificateBuilder_ == null) {\n return certificate_.get(index);\n } else {\n return certificateBuilder_.getMessage(index);\n }\n }", "@Override\n\t\t\t\tpublic void checkServerTrusted(\n\t\t\t\t\t\tjava.security.cert.X509Certificate[] arg0, String arg1)\n\t\t\t\t\t\tthrows CertificateException {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n public String getCertificate(String certSerialId) throws IOException {\n LOGGER.debug(\"Getting certificate with certificate serial id {}\",\n certSerialId);\n try {\n X509Certificate certificate =\n scmCertificateServer.getCertificate(certSerialId);\n if (certificate != null) {\n return getPEMEncodedString(certificate);\n }\n } catch (CertificateException e) {\n throw new SCMSecurityException(\"getCertificate operation failed. \", e,\n GET_CERTIFICATE_FAILED);\n }\n LOGGER.info(\"Certificate with serial id {} not found.\", certSerialId);\n throw new SCMSecurityException(\"Certificate not found\",\n CERTIFICATE_NOT_FOUND);\n }", "public CertificateData() {\n \t\t// TODO Auto-generated constructor stub\n \t\taCertStrings = new HashMap<TreeNodeDescriptor.TreeNodeType, String[]>(15);\n \t\t// now init the certificate with dummy data\n \t\t// for every string meant for the multi fixed text display\n \t\t// devise a method to change the character font strike\n \t\t// the first character in the string marks the stroke type\n \t\t// (see function: it.plio.ext.oxsit.ooo.ui.TreeNodeDescriptor.EnableDisplay(boolean) for\n \t\t// for information on how they are interpreted):\n \t\t// b\tthe string will be in bold\n \t\t// B\n \t\t// r\n \t\t// s the string will striken out regular\n \t\t// S the string will striken out bold\n \t\t//\t\n \t\t{\n \t\t\tString[] saDummy = new String[m_nMAXIMUM_FIELDS];\t\t\t\n \n \t\t\tsaDummy[m_nTITLE] = \"bInformazioni sul certificato\";\n \t\t\tsaDummy[m_nEMPTY_FIELD_01] = \"\";\n \t\t\tsaDummy[m_nINFO_LINE1] = \"rIl certificato è adatto per la firma digitale.\";\n \t\t\tsaDummy[m_nINFO_LINE2] = \"r(non ripudio attivato)\";\n \t\t\tsaDummy[m_nTITLE_SCOPE] = \"bIl certificato è stato rilasciato per i seguenti scopi:\";\n \t\t\tsaDummy[m_nSCOPE_LINE1] = \"...\";\n \t\t\tsaDummy[m_nSCOPE_LINE2] = \"...\";\n \t\t\tsaDummy[m_nSCOPE_LINE3] = \"...\";\n \t\t\tsaDummy[m_nSCOPE_LINE4] = \"\";\n \t\t\tsaDummy[m_nCERT_VALIDITY_STATE] = \"bCertificato verificato con CRL\";\n \t\t\tsaDummy[m_nCERT_VALIDITY_ERROR] = \"\";\n \t\t\tsaDummy[m_nCERT_VALIDITY_VERIFICATION_CONDITIONS] = \"\";\n \t\t\tsaDummy[m_nDATE_VALID_FROM] = \"bValido dal 10/04/2006 16:06:04\";\n \t\t\tsaDummy[m_nDATE_VALID_TO] = \"bal 10/04/2009 16:06:04\";\n \t\t\tsetCertString(TreeNodeType.CERTIFICATE, saDummy);\n \t\t}\n \t\t//subject TreeNodeType.SUBJECT inserted by the derived classes\n \t\t{\n \t\t\tString[] saDummy = {\"V3\"};\n \t\t\tsetCertString(TreeNodeType.VERSION, saDummy);\n \t\t}\n \t\t{\n \t\t\tString[] saDummy = {\"15 BA 35\"};\n \t\t\tsetCertString(TreeNodeType.SERIAL_NUMBER, saDummy);\n \t\t}\n \t\t{\n \t\t\tString[] saDummy = {\n \t\t\t\t\t\"CN=The Certification Authority\\nOU=The Certification Authority\\nserialNumber=02313821007\\nO=The Certification Wizards\\nC=IT\"\n \t\t\t\t\t};\n \t\t\tsetCertString(TreeNodeType.ISSUER,saDummy);\n \t\t}\n \t\t{\n \t\t\tString[] saDummy = {\n \t\t\t\t\t\"10/04/2006 16:06:04\",\n \t\t\t};\n \t\t\tsetCertString(TreeNodeDescriptor.TreeNodeType.VALID_FROM,saDummy);\n \t\t}\n \t\t{\n \t\t\tString[] saDummy = {\n \t\t\t\t\t\"10/04/2009 16:06:04\",\n \t\t\t};\n \t\t\tsetCertString(TreeNodeDescriptor.TreeNodeType.VALID_TO,saDummy);\n \t\t}\n \t\t{\n \t\t\tString[] saDummy = {\n \t\t\t\t\"dnQualifier=2006111605A1528\\nSN=GIACOMO\\ngivenName=VERDI\\nE=giacomo.verdi@acme.it\\nserialNumber=GCMVRD01D12210Y\\nCN=\\\"GCMVRD01D12210Y/7420091000049623.fmIW78mgkUVdmdQuXCrZbDsW9oQ=\\\"\\nOU=C.C.I.A.A. DI TORINO\\nO=Non Dichiarato\\nC=IT\",\n \t\t\t};\n \t\t\tsetCertString(TreeNodeDescriptor.TreeNodeType.SUBJECT,saDummy);\n \t\t}\n \t\t{\n \t\t\tString[] saDummy = {\n \t\t\t\t\"PKCS #1 RSA Encryption (rsaEncryption)\",\n \t\t\t};\n \t\t\tsetCertString(TreeNodeDescriptor.TreeNodeType.SUBJECT_ALGORITHM,saDummy);\n \t\t}\n \t\t{\n \t\t\tString[] saDummy = {\n \t\t\t\t\"30 82 01 0A 02 82 01 01 00 C4 1C 77 1D AD 89 18\\nB1 6E 88 20 49 61 E9 AD 1E 3F 7B 9B 2B 39 A3 D8\\nBF F1 42 E0 81 F0 03 E8 16 26 33 1A B1 DC 99 97\\n4C 5D E2 A6 9A B8 D4 9A 68 DF 87 79 0A 98 75 F8\\n33 54 61 71 40 9E 49 00 00 06 51 42 13 33 5C 6C\\n34 AA FD 6C FA C2 7C 93 43 DD 8D 6F 75 0D 51 99\\n83 F2 8F 4E 86 3A 42 22 05 36 3F 3C B6 D5 4A 8E\\nDE A5 DC 2E CA 7B 90 F0 2B E9 3B 1E 02 94 7C 00\\n8C 11 A9 B6 92 21 99 B6 3A 0B E6 82 71 E1 7E C2\\nF5 1C BD D9 06 65 0E 69 42 C5 00 5E 3F 34 3D 33\\n2F 20 DD FF 3C 51 48 6B F6 74 F3 A5 62 48 C9 A8\\nC9 73 1C 8D 40 85 D4 78 AF 5F 87 49 4B CD 42 08\\n5B C7 A4 D1 80 03 83 01 A9 AD C2 E3 63 87 62 09\\nFE 98 CC D9 82 1A CB AD 41 72 48 02 D5 8A 76 C0\\nD5 59 A9 FF CA 3C B5 0C 1E 04 F9 16 DB AB DE 01\\nF7 A0 BE CF 94 2A 53 A4 DD C8 67 0C A9 AF 60 5F\\n53 3A E1 F0 71 7C D7 36 AB 02 03 01 00 01\",\n \t\t\t};\n \t\t\tsetCertString(TreeNodeDescriptor.TreeNodeType.PUBLIC_KEY,saDummy);\n \t\t}\n \t\t{\n \t\t\tString[] saDummy = {\n \t\t\t\t\"PKCS #1 SHA-1 With RSA Encryption (sha1WithRSAEncryption)\",\n \t\t\t};\n \t\t\tsetCertString(TreeNodeDescriptor.TreeNodeType.SIGNATURE_ALGORITHM,saDummy);\n \t\t}\t\t\n \t\t{\n \t\t\tString[] saDummy = {\t\"6F 59 05 59 E6 FB 45 8F D4 C3 2D CB 8C 4C 55 02\\nDB 5A 42 39 \",\n \t\t\t};\n \t\t\tsetCertString(TreeNodeType.THUMBPRINT_SHA1,saDummy);\n \t\t}\n \t\t{\n \t\t\tString[] saDummy = {\t\"6F B2 8C 96 83 3C 65 26 6F 7D CF 74 3F E7 E4 AD\",\n \t\t\t};\n \t\t\tsetCertString(TreeNodeType.THUMBPRINT_MD5,saDummy);\n \t\t}\n \n \t\t{\n \t\t\tString[] saDummy = {\t\"Non Repudiation\",\n \t\t\t};\n \t\t\tsetCertString(TreeNodeType.X509V3_KEY_USAGE,saDummy);\n \t\t}\n \t\t{\n \t\t\tString[] saDummy = {\n \t\t\t\t\t\"Certificato qualificato (O.I.D. 0.4.0.1862.1.1)\\nPeriodo conservazione informazioni relative alla emissione del cerificato qualificato: 20 anni (O.I.D. 0.4.0.1862.1.3)\\nDispositivo sicuro (O.I.D. 0.4.0.1862.1.4)\"\n \t\t\t\t\t};\n \t\t\tsetCertString(TreeNodeType.QC_STATEMENTS,saDummy);\n \t\t}\n \n \t\t{\n \t\t\tString[] saDummy = {\n \t\t\t\t\t\"OCSP - URI:http://ocsp.infocert.it/OCSPServer_ICE/OCSPServlet\"\n \t\t\t\t\t};\n \t\t\tsetCertString(TreeNodeType.AUTHORITY_INFORMATION_ACCESS,saDummy);\n \t\t}\n \n \t\t{\n \t\t\tString[] saDummy = {\n \t\t\t\t\t\"Policy: 1.3.76.14.1.1.1\\nCPS: http://www.card.infocamere.it/firma/cps/cps.htm\"\n \t\t\t\t\t};\n \t\t\tsetCertString(TreeNodeType.X509V3_CERTIFICATE_POLICIES,saDummy);\n \t\t}\n \t\t{\n \t\t\tString[] saDummy = {\n \t\t\t\t\t\"19560415000000Z\"\n \t\t\t\t\t};\n \t\t\tsetCertString(TreeNodeType.X509V3_SUBJECT_DIRECTORY_ATTRIBUTES,saDummy);\n \t\t}\n \n \t\t{\n \t\t\tString[] saDummy = {\n \t\t\t\t\t\"URI:ldap://ldap.infocamere.it/cn%3DInfoCamere%20Firma%20Digitale%2Cou%3DCertificati%20di%20Firma%2Co%3DInfoCamere%20SCpA%2Cc%3DIT?cacertificate, email:firma\"\n \t\t\t\t\t};\n \t\t\tsetCertString(TreeNodeType.X509V3_ISSUER_ALTERNATIVE_NAME,saDummy);\n \t\t}\n \t\t\n \t\t{\n \t\t\tString[] saDummy = {\n \t\t\t\t\t\"keyid:9C:6F:E1:76:68:27:42:9C:C0:80:40:70:A0:0F:08:E9:D1:12:FF:A4\"\n \t\t\t\t\t};\n \t\t\tsetCertString(TreeNodeType.X509V3_AUTHORITY_KEY_IDENTIFIER,saDummy);\n \t\t}\n \t\t{\n \t\t\tString[] saDummy = {\n \t\t\t\t\t\"URI:ldap://ldap.infocamere.it/cn%3DInfoCamere%20Firma%20Digitale%2Cou%3DCertificati%20di%20Firma%2Co%3DInfoCamere%20SCpA%2Cc%3DIT?certificaterevocationlist\"\n \t\t\t\t\t};\n \t\t\tsetCertString(TreeNodeType.X509V3_CRL_DISTRIBUTION_POINTS,saDummy);\n \t\t}\n \t\t{\n \t\t\tString[] saDummy = {\n \t\t\t\t\t\"9C:6F:E1:76:68:27:42:9C:C0:80:40:70:A0:0F:08:E9:D1:12:FF:A4\"\n \t\t\t\t\t};\n \t\t\tsetCertString(TreeNodeType.X509V3_SUBJECT_KEY_IDENTIFIER,saDummy);\n \t\t}\n \t}", "private @NonNull WpcCrtChn getChn() throws IOException, GeneralSecurityException {\n int siz = MAX_CRT; // Initialize the requested length for the GET_CERTIFICATE Request\n int ofs = 0; // Initialize the offset for the GET_CERTIFICATE Request\n int len = 0; // Initialize length of Certificate Chain\n ByteArrayOutputStream bas = new ByteArrayOutputStream(MAX_CRT); // Create stream for Certificate Chain\n do {\n ByteBuffer req = getMsg(REQ_CRT, 4); // Create GET_CERTIFICATE request message\n req.position(1); // Set buffer pointer to offset\n req.put((byte) (((ofs & 0x0300) >> 2) | SLOT_0)); // Add slot byte\n req.put((byte) ofs); // Add offset\n req.put((byte) siz); // Add Length\n ByteBuffer res = sndMsg(req, WpcAthRsp.RES_CRT); // Send GET_CERTIFICATE Request\n if (ofs == 0) { // First GET_CERTIFICATE Request?\n len = res.getShort(); // Get the total length of the Certificate Chain\n if (len < siz) { // Certificate Chain too small?\n WpcLog.logErr(\"Wrong WPC Certificate Chain length\"); // Log error\n throw new IOException(); // Abort authentication\n }\n }\n byte[] buf = res.array(); // Get CERTIFICATE Response\n if ((siz != (buf.length - 1))) { // Incorrect Certificate Chain fragment size?\n WpcLog.logErr(\"Invalid WPC Certificate Chain length\"); // Log error\n throw new IOException(); // Abort authentication\n }\n bas.write(buf, 1, siz); // Add Certificate fragment to the Certificate Chain\n len = len - siz; // Calculate remaining bytes in the Certificate Chain\n ofs = ofs + siz; // Calculate offset for the next GET_CERTIFICATE Request\n if (len > MAX_CRT) { // Remaining Certificate Chain does not fit into one GET_CERTIFICATE Request?\n siz = MAX_CRT; // Request the maximum fragment for the next GET_CERTIFICATE Request\n } else { // Remaining Certificate Chain fits into one GET_CERTIFICATE Request\n siz = len; // Request the remaining bytes of the Certificate Chain\n }\n } while (len > 0); // Repeat until whole Certificate Chain is received\n byte[] ba = bas.toByteArray(); // Convert WPC Certificate Chain into a byte array\n WpcCrtChn chn = new WpcCrtChn(ba); // Create the Certificate Chain\n chn.verify(); // Verify the Certificate Chain\n mCom.setChn(chn); // Announce used WPC Certificate Chain\n WpcLog.log(WpcLog.EvtTyp.CHN, ba); // Log the received WPC Certificate Chain\n return chn; // Return the Certificate Chain\n }", "public interface CertificationRequestWrapper {\n\n /**\n * Gets the subject name of this certificate.\n * @return subject name\n */\n X500Principal getSubject();\n \n /**\n * Gets the content of this certification request in a suitable string \n * encoding (typically PEM).\n * @return certification request content\n * @throws IOException\n */\n String getContent() throws IOException;\n \n}", "byte[] select_ca_data()\n {\n JFileChooser jch = new JFileChooser();\n jch.setLocation( my_dlg.get_next_location() );\n\n if (jch.showOpenDialog(my_dlg) == JFileChooser.APPROVE_OPTION)\n {\n byte[] data = null;\n FileInputStream tr = null;\n try\n {\n File f = jch.getSelectedFile();\n tr = new FileInputStream(f);\n data = new byte[(int)f.length()];\n tr.read(data);\n\n return data;\n }\n catch (IOException iOException)\n {\n UserMain.errm_ok(my_dlg, UserMain.Txt(\"Cannot_load_certificate\") + \": \" + iOException.getMessage());\n return null;\n }\n finally\n {\n if (tr != null)\n {\n try\n {\n tr.close();\n }\n catch (IOException iOException)\n {\n }\n }\n }\n }\n return null;\n }", "boolean hasCertificates();", "boolean hasCertificates();", "public abstract T useTransportSecurity(File certChain, File privateKey);", "java.util.List<liubaninc.m0.pki.CertificatesOuterClass.Certificates> \n getCertificatesList();", "java.util.List<liubaninc.m0.pki.CertificatesOuterClass.Certificates> \n getCertificatesList();", "public X509Certificate getX509Certificate() {\n return certificate;\n }", "@Override\r\n\t\t\t\t\tpublic void checkServerTrusted(X509Certificate[] arg0, String arg1) throws CertificateException\r\n\t\t\t\t\t{\n\t\t\t\t\t}", "private void getKeyAndCerts(String filePath, String pw)\n throws GeneralSecurityException, IOException {\n System.out\n .println(\"reading signature key and certificates from file \" + filePath + \".\");\n\n FileInputStream fis = new FileInputStream(filePath);\n KeyStore store = KeyStore.getInstance(\"PKCS12\", \"IAIK\");\n store.load(fis, pw.toCharArray());\n\n Enumeration<String> aliases = store.aliases();\n String alias = (String) aliases.nextElement();\n privKey_ = (PrivateKey) store.getKey(alias, pw.toCharArray());\n certChain_ = Util.convertCertificateChain(store.getCertificateChain(alias));\n fis.close();\n }", "@java.lang.Override\n public java.util.List<com.google.protobuf.ByteString>\n getCertificateList() {\n return certificate_;\n }", "@Value.Redacted\n List<X509Certificate> caCert();", "@Override public int doIt(){\r\n log.println();\r\n log.println(twoLineStartMsg().append('\\n'));\r\n \r\n if (isTest()) {\r\n log.println(prop.toString());\r\n } // >= TEST\r\n \r\n try { // open input\r\n if (fromCert) {\r\n certFileName = w0;\r\n } else if (certFileName == null) {\r\n certFileName = System.getProperty(\"user.home\") + \"/.keystore\"; \r\n }\r\n fis = new FileInputStream(certFileName);\r\n } catch (FileNotFoundException e) {\r\n if (isTest()) {\r\n log.println(formMessage(\"openexcp\", certFileName));\r\n e.printStackTrace(log);\r\n }\r\n return errMeld(17, formMessage(\"openexcp\", e));\r\n } // open input\r\n \r\n if (fromCert) { // cert (else keystore)\r\n pubKeyFil = w1;\r\n try {\r\n cFac = CertificateFactory.getInstance(certType);\r\n cert = cFac.generateCertificate(fis);\r\n } catch (CertificateException e1) {\r\n log.println(formMessage(\"pukynotgtb\", certFileName));\r\n return errMeld(19, e1);\r\n }\r\n pubKey = cert.getPublicKey();\r\n log.println(formMessage(\"pukyfrcert\", certFileName));\r\n } else { // cert else keystore\r\n keyAlias = w0;\r\n pubKeyFil = w1;\r\n storePassW = TextHelper.trimUq(storePassW, null);\r\n if (storePassW != null) {\r\n passWord = storePassW.toCharArray();\r\n } else {\r\n passWord = AskDialog.getAnswerText(\r\n valueLang(\"pkexpdtit\"), // titel PKextr password dialog\r\n keyAlias, // upper\r\n true, // upper monospaced\r\n valueLang(\"pkexpasye\"), valueLang(\"pkexpasno\"), // yes, cancel\r\n 990, // waitMax = 99s\r\n valueLang(\"pkexpassr\"),\r\n null, true); //Color bg password \r\n } // storePassw \r\n \r\n try {\r\n ks = KeyStore.getInstance(certType);\r\n } catch (KeyStoreException e1) {\r\n return errMeld(21, e1);\r\n }\r\n\r\n try {\r\n ks.load(fis, passWord);\r\n fis.close();\r\n cert = ks.getCertificate(keyAlias);\r\n } catch (Exception e2) {\r\n return errMeld(29, e2);\r\n }\r\n // alias \r\n if (exportPrivate) {\r\n Key key = null;\r\n try {\r\n key = ks.getKey(keyAlias, passWord);\r\n } catch (Exception e) {\r\n return errorExit(39, e, \"could not get the key from keystore.\");\r\n }\r\n if (key instanceof PrivateKey) {\r\n // ex history: BASE64Encoder myB64 = new BASE64Encoder();\r\n // since 24.06.2016 String b64 = myB64.encode(key.getEncoded());\r\n Base64.Encoder mimeEncoder = java.util.Base64.getMimeEncoder();\r\n String b64 = mimeEncoder.encodeToString( key.getEncoded());\r\n \r\n log.println(\"-----BEGIN PRIVATE KEY-----\");\r\n log.println(b64);\r\n log.println(\"-----END PRIVATE KEY-----\\n\\n\");\r\n\r\n if (pubKeyFil == null) return 0;\r\n \r\n log.println(formMessage(\"prkywrite\", pubKeyFil));\r\n try {\r\n keyfos = new FileOutputStream(pubKeyFil);\r\n } catch (FileNotFoundException e1) {\r\n return errMeld(31, e1);\r\n }\r\n Writer osw = new OutputStreamWriter(keyfos); \r\n try {\r\n osw.write(\"-----BEGIN PRIVATE KEY-----\\n\");\r\n osw.write(b64);\r\n osw.write(\"\\n-----END PRIVATE KEY-----\\n\");\r\n osw.close();\r\n } catch (IOException e2) {\r\n return errMeld(31, e2);\r\n }\r\n\r\n return 0;\r\n \r\n }\r\n return errorExit(39, \"no private key found\");\r\n } // export private \r\n pubKey = cert.getPublicKey();\r\n log.println(formMessage(\"pukyfrstor\",\r\n new String[]{keyAlias, certFileName}));\r\n } // else from keystore\r\n \r\n log.println(\"\\n----\\n\" + pubKey.toString() + \"\\n----\\n\\n\");\r\n \r\n if (pubKeyFil == null) return 0;\r\n\r\n // got the public key and listed it to log\r\n log.println(formMessage(\"pukywrite\", pubKeyFil));\r\n //\" Write public key to \\\"\" + pubKeyFil + \"\\\"\\n\");\r\n byte[] key = pubKey.getEncoded();\r\n try {\r\n keyfos = new FileOutputStream(pubKeyFil);\r\n } catch (FileNotFoundException e1) {\r\n return errMeld(31, e1);\r\n }\r\n try {\r\n keyfos.write(key);\r\n keyfos.close();\r\n } catch (IOException e2) {\r\n return errMeld(31, e2);\r\n }\r\n return 0;\r\n }", "@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(\"{\");\n if (getCertificateArn() != null)\n sb.append(\"CertificateArn: \").append(getCertificateArn()).append(\",\");\n if (getCertificate() != null)\n sb.append(\"Certificate: \").append(getCertificate()).append(\",\");\n if (getPrivateKey() != null)\n sb.append(\"PrivateKey: \").append(\"***Sensitive Data Redacted***\").append(\",\");\n if (getCertificateChain() != null)\n sb.append(\"CertificateChain: \").append(getCertificateChain()).append(\",\");\n if (getTags() != null)\n sb.append(\"Tags: \").append(getTags());\n sb.append(\"}\");\n return sb.toString();\n }", "@Override\r\n\t\t\t\t\tpublic void checkClientTrusted(X509Certificate[] arg0, String arg1) throws CertificateException\r\n\t\t\t\t\t{\n\t\t\t\t\t}", "public Integer getIsCert() {\n\t\treturn isCert;\n\t}", "public byte[] getTBSCertificate() throws java.security.cert.CertificateEncodingException {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e5 in method: android.security.keystore.DelegatingX509Certificate.getTBSCertificate():byte[], dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.security.keystore.DelegatingX509Certificate.getTBSCertificate():byte[]\");\n }", "public void displayData(View view){\n SharedPreferences sharedPref = getSharedPreferences(\"userInfo\", Context.MODE_PRIVATE); //This means the info is private and hence secured\n\n String name = sharedPref.getString(\"username\", \"\"); //The second parameter contains the value that we are going to get, so we leave it blank.\n String pw = sharedPref.getString(\"password\", \"\");\n yashwinText.setText(name + \"\" + pw);\n }", "private void deleteTrustedCertificate() {\n\t\t// Which entries have been selected?\n\t\tint[] selectedRows = trustedCertsTable.getSelectedRows();\n\t\tif (selectedRows.length == 0) // no trusted cert entry selected\n\t\t\treturn;\n\n\t\t// Ask user to confirm the deletion\n\t\tif (showConfirmDialog(\n\t\t\t\tnull,\n\t\t\t\t\"Are you sure you want to delete the selected trusted certificate(s)?\",\n\t\t\t\tALERT_TITLE, YES_NO_OPTION) != YES_OPTION)\n\t\t\treturn;\n\n\t\tString exMessage = null;\n\t\tfor (int i = selectedRows.length - 1; i >= 0; i--) { // delete from backwards\n\t\t\t// Get the alias for the current entry\n\t\t\tString alias = (String) trustedCertsTable.getModel().getValueAt(\n\t\t\t\t\tselectedRows[i], 5);\n\t\t\ttry {\n\t\t\t\t// Delete the trusted certificate entry from the Truststore\n\t\t\t\tcredManager.deleteTrustedCertificate(alias);\n\t\t\t} catch (CMException cme) {\n\t\t\t\texMessage = \"Failed to delete the trusted certificate(s) from the Truststore\";\n\t\t\t\tlogger.error(exMessage, cme);\n\t\t\t}\n\t\t}\n\t\tif (exMessage != null)\n\t\t\tshowMessageDialog(this, exMessage, ERROR_TITLE, ERROR_MESSAGE);\n\t}", "public String getAddCertDesc() {\n return addCertDesc;\n }", "public void checkServerTrusted(X509Certificate[] arg0, String arg1) throws CertificateException {\n\r\n\t\t\t\t}", "public ShowSecurityResponse showSecurity(List<String> names, Map<String, String> options) throws GPUdbException {\n ShowSecurityRequest actualRequest_ = new ShowSecurityRequest(names, options);\n ShowSecurityResponse actualResponse_ = new ShowSecurityResponse();\n submitRequest(\"/show/security\", actualRequest_, actualResponse_, false);\n return actualResponse_;\n }" ]
[ "0.6017813", "0.58793414", "0.5823614", "0.5494711", "0.5489678", "0.53888375", "0.529095", "0.5288382", "0.5228574", "0.5208516", "0.5190918", "0.51770514", "0.50986", "0.50790167", "0.5033934", "0.502973", "0.5018083", "0.4966557", "0.49583575", "0.49421296", "0.49406132", "0.49303028", "0.4924756", "0.49192518", "0.4916108", "0.49113947", "0.49047983", "0.4893425", "0.48864833", "0.48808178", "0.48533857", "0.48533198", "0.48533198", "0.48509383", "0.4848107", "0.48341545", "0.48313108", "0.482777", "0.4827486", "0.48250407", "0.48021162", "0.47914878", "0.47751167", "0.47638786", "0.47317412", "0.4731068", "0.47301233", "0.4728936", "0.47283247", "0.46989858", "0.46987268", "0.46892092", "0.46889588", "0.46747085", "0.46726868", "0.46636754", "0.46557567", "0.46461535", "0.46424195", "0.46325007", "0.46317002", "0.46310678", "0.46127075", "0.46127075", "0.4602946", "0.45975202", "0.4596295", "0.4595516", "0.45885003", "0.4584363", "0.4580319", "0.45760402", "0.4575161", "0.457337", "0.45688316", "0.45555535", "0.45455563", "0.4536993", "0.45315814", "0.45238283", "0.45121396", "0.45121396", "0.45036626", "0.45021617", "0.45021617", "0.45014787", "0.4499348", "0.4496397", "0.4490442", "0.44868997", "0.44864047", "0.44843966", "0.44757912", "0.4467494", "0.4455156", "0.44500563", "0.4447734", "0.44229442", "0.4421463", "0.44178176" ]
0.7140417
0
Lets a user import a key pair from a PKCS 12 keystore file to the Keystore.
private void importKeyPair() { /* * Let the user choose a PKCS #12 file (keystore) containing a public * and private key pair to import */ File importFile = selectImportExportFile( "PKCS #12 file to import from", // title new String[] { ".p12", ".pfx" }, // array of file extensions // for the file filter "PKCS#12 Files (*.p12, *.pfx)", // description of the filter "Import", // text for the file chooser's approve button "keyPairDir"); // preference string for saving the last chosen directory if (importFile == null) return; // The PKCS #12 keystore is not a file if (!importFile.isFile()) { showMessageDialog(this, "Your selection is not a file", ALERT_TITLE, WARNING_MESSAGE); return; } // Get the user to enter the password that was used to encrypt the // private key contained in the PKCS #12 file GetPasswordDialog getPasswordDialog = new GetPasswordDialog(this, "Import key pair entry", true, "Enter the password that was used to encrypt the PKCS #12 file"); getPasswordDialog.setLocationRelativeTo(this); getPasswordDialog.setVisible(true); String pkcs12Password = getPasswordDialog.getPassword(); if (pkcs12Password == null) // user cancelled return; else if (pkcs12Password.isEmpty()) // empty password // FIXME: Maybe user did not have the password set for the private key??? return; try { // Load the PKCS #12 keystore from the file // (this is using the BouncyCastle provider !!!) KeyStore pkcs12Keystore = credManager.loadPKCS12Keystore(importFile, pkcs12Password); /* * Display the import key pair dialog supplying all the private keys * stored in the PKCS #12 file (normally there will be only one * private key inside, but could be more as this is a keystore after * all). */ NewKeyPairEntryDialog importKeyPairDialog = new NewKeyPairEntryDialog( this, "Credential Manager", true, pkcs12Keystore, dnParser); importKeyPairDialog.setLocationRelativeTo(this); importKeyPairDialog.setVisible(true); // Get the private key and certificate chain of the key pair Key privateKey = importKeyPairDialog.getPrivateKey(); Certificate[] certChain = importKeyPairDialog.getCertificateChain(); if (privateKey == null || certChain == null) // User did not select a key pair for import or cancelled return; /* * Check if a key pair entry with the same alias already exists in * the Keystore */ if (credManager.hasKeyPair(privateKey, certChain) && showConfirmDialog(this, "The keystore already contains the key pair entry with the same private key.\n" + "Do you want to overwrite it?", ALERT_TITLE, YES_NO_OPTION) != YES_OPTION) return; // Place the private key and certificate chain into the Keystore credManager.addKeyPair(privateKey, certChain); // Display success message showMessageDialog(this, "Key pair import successful", ALERT_TITLE, INFORMATION_MESSAGE); } catch (Exception ex) { // too many exceptions to catch separately String exMessage = "Failed to import the key pair entry to the Keystore. " + ex.getMessage(); logger.error(exMessage, ex); showMessageDialog(this, exMessage, ERROR_TITLE, ERROR_MESSAGE); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void importPKCS12Certificate(InputStream is)\n {\n\tKeyStore myKeySto = null;\n\t// passord\n\tchar[] password = null;\n\t\n\ttry\n\t{\n\t myKeySto = KeyStore.getInstance(\"PKCS12\");\n\n\t // Pop up password dialog box\n Object dialogMsg = getMessage(\"dialog.password.text\");\n JPasswordField passwordField = new JPasswordField();\n\n Object[] msgs = new Object[2];\n msgs[0] = new JLabel(dialogMsg.toString());\n msgs[1] = passwordField;\n\n JButton okButton = new JButton(getMessage(\"dialog.password.okButton\"));\n JButton cancelButton = new JButton(getMessage(\"dialog.password.cancelButton\"));\n\n String title = getMessage(\"dialog.password.caption\");\n Object[] options = {okButton, cancelButton};\n int selectValue = DialogFactory.showOptionDialog(this, msgs, title, options, options[0]);\n\n\t // for security purpose, DO NOT put password into String. Reset password as soon as \n\t // possible.\n\t password = passwordField.getPassword();\n\n\t // User click OK button\n if (selectValue == 0)\n {\n\t // Load KeyStore based on the password\n\t myKeySto.load(is,password);\n\n\t // Get Alias list from KeyStore.\n\t Enumeration aliasList = myKeySto.aliases();\n\n\t while (aliasList.hasMoreElements())\n\t {\n\t\t\tX509Certificate cert = null;\n\n\t\t\t// Get Certificate based on the alias name\n\t\t\tString certAlias = (String)aliasList.nextElement();\n\t\t\tcert = (X509Certificate)myKeySto.getCertificate(certAlias);\n\n\t\t\t// Add to import list based on radio button selection\n\t\t\t\tif (getRadioPos() == mh.getMessage(\"SignedApplet_value\"))\n \t\t\t\t model.deactivateImpCertificate(cert);\n\t\t\t\telse if (getRadioPos() == mh.getMessage(\"SecureSite_value\"))\n \t\t\t\t model.deactivateImpHttpsCertificate(cert);\n\t }\n\t } // OK button\n\t}\n\tcatch(Throwable e)\n\t{\n\t // Show up Error dialog box if the user enter wrong password\n\t // Avoid to convert password array into String - security reason\n\t String uninitializedValue = \"uninitializedValue\";\n\t if (!compareCharArray(password, uninitializedValue.toCharArray()))\n\t {\n\t\t\tString errorMsg = getMessage(\"dialog.import.password.text\");\n\t\t\t\t\tString errorTitle = getMessage(\"dialog.import.error.caption\");\n\t \t\tDialogFactory.showExceptionDialog(this, e, errorMsg, errorTitle);\n\t }\n\t}\n\tfinally {\n\t\t// Reset password\n\t\tif(password != null) {\n\t\t\tjava.util.Arrays.fill(password, ' ');\n\t\t}\n\t}\n }", "private void exportKeyPair() {\n\t\t// Which key pair entry has been selected?\n\t\tint selectedRow = keyPairsTable.getSelectedRow();\n\t\tif (selectedRow == -1) // no row currently selected\n\t\t\treturn;\n\n\t\t// Get the key pair entry's Keystore alias\n\t\tString alias = (String) keyPairsTable.getModel().getValueAt(selectedRow, 6);\n\n\t\t// Let the user choose a PKCS #12 file (keystore) to export public and\n\t\t// private key pair to\n\t\tFile exportFile = selectImportExportFile(\"Select a file to export to\", // title\n\t\t\t\tnew String[] { \".p12\", \".pfx\" }, // array of file extensions\n\t\t\t\t// for the file filter\n\t\t\t\t\"PKCS#12 Files (*.p12, *.pfx)\", // description of the filter\n\t\t\t\t\"Export\", // text for the file chooser's approve button\n\t\t\t\t\"keyPairDir\"); // preference string for saving the last chosen directory\n\n\t\tif (exportFile == null)\n\t\t\treturn;\n\n\t\t// If file already exist - ask the user if he wants to overwrite it\n\t\tif (exportFile.isFile()\n\t\t\t\t&& showConfirmDialog(this,\n\t\t\t\t\t\t\"The file with the given name already exists.\\n\"\n\t\t\t\t\t\t\t\t+ \"Do you want to overwrite it?\", ALERT_TITLE,\n\t\t\t\t\t\tYES_NO_OPTION) == NO_OPTION)\n\t\t\treturn;\n\n\t\t// Get the user to enter the password for the PKCS #12 keystore file\n\t\tGetPasswordDialog getPasswordDialog = new GetPasswordDialog(this,\n\t\t\t\t\"Credential Manager\", true,\n\t\t\t\t\"Enter the password for protecting the exported key pair\");\n\t\tgetPasswordDialog.setLocationRelativeTo(this);\n\t\tgetPasswordDialog.setVisible(true);\n\n\t\tString pkcs12Password = getPasswordDialog.getPassword();\n\n\t\tif (pkcs12Password == null) { // user cancelled or empty password\n\t\t\t// Warn the user\n\t\t\tshowMessageDialog(\n\t\t\t\t\tthis,\n\t\t\t\t\t\"You must supply a password for protecting the exported key pair.\",\n\t\t\t\t\tALERT_TITLE, INFORMATION_MESSAGE);\n\t\t\treturn;\n\t\t}\n\n\t\t// Export the key pair\n\t\ttry {\n\t\t\tcredManager.exportKeyPair(alias, exportFile, pkcs12Password);\n\t\t\tshowMessageDialog(this, \"Key pair export successful\", ALERT_TITLE,\n\t\t\t\t\tINFORMATION_MESSAGE);\n\t\t} catch (CMException cme) {\n\t\t\tshowMessageDialog(this, cme.getMessage(), ERROR_TITLE,\n\t\t\t\t\tERROR_MESSAGE);\n\t\t}\n\t}", "public void importCA(File certfile){\n try {\n File keystoreFile = new File(archivo);\n \n //copia .cer -> formato manipulacion\n FileInputStream fis = new FileInputStream(certfile);\n DataInputStream dis = new DataInputStream(fis);\n byte[] bytes = new byte[dis.available()];\n dis.readFully(bytes);\n ByteArrayInputStream bais = new ByteArrayInputStream(bytes);\n bais.close();\n CertificateFactory cf = CertificateFactory.getInstance(\"X.509\");\n Certificate certs = cf.generateCertificate(bais);\n //System.out.println(certs.toString());\n //inic keystore\n FileInputStream newib = new FileInputStream(keystoreFile);\n KeyStore keystore = KeyStore.getInstance(INSTANCE);\n keystore.load(newib,ksPass );\n String alias = (String)keystore.aliases().nextElement();\n newib.close();\n \n //recupero el array de certificado del keystore generado para CA\n Certificate[] certChain = keystore.getCertificateChain(alias);\n certChain[0]= certs; //inserto el certificado entregado por CA\n //LOG.info(\"Inserto certifica CA: \"+certChain[0].toString());\n //recupero la clave privada para generar la nueva entrada\n Key pk = (PrivateKey)keystore.getKey(alias, ksPass); \n keystore.setKeyEntry(alias, pk, ksPass, certChain);\n LOG.info(\"Keystore actualizado: [OK]\");\n \n FileOutputStream fos = new FileOutputStream(keystoreFile);\n keystore.store(fos,ksPass);\n fos.close(); \n \n } catch (FileNotFoundException ex) {\n LOG.error(\"Error - no se encuentra el archivo\",ex);\n } catch (IOException | NoSuchAlgorithmException | CertificateException | KeyStoreException ex) {\n LOG.error(\"Error con el certificado\",ex);\n } catch (UnrecoverableKeyException ex) {\n LOG.error(ex);\n }\n }", "private static void importCommand(File meKeystoreFile, String[] args)\n throws Exception {\n String jcaKeystoreFilename = null;\n String keystorePassword = null;\n String alias = null;\n String domain = \"identified\";\n MEKeyTool keyTool;\n\n for (int i = 1; i < args.length; i++) {\n try {\n if (args[i].equals(\"-MEkeystore\")) {\n i++;\n meKeystoreFile = new File(args[i]); \n } else if (args[i].equals(\"-keystore\")) {\n i++;\n jcaKeystoreFilename = args[i]; \n } else if (args[i].equals(\"-storepass\")) {\n i++;\n keystorePassword = args[i]; \n } else if (args[i].equals(\"-alias\")) {\n i++;\n alias = args[i];\n } else if (args[i].equals(\"-domain\")) {\n i++;\n domain = args[i];\n } else {\n throw new UsageException(\n \"Invalid argument for import command: \" + args[i]);\n }\n } catch (ArrayIndexOutOfBoundsException e) {\n throw new UsageException(\"Missing value for \" + args[--i]);\n }\n }\n\n if (jcaKeystoreFilename == null) {\n jcaKeystoreFilename = System.getProperty(\n DEFAULT_KEYSTORE_PROPERTY, \n System.getProperty(\"user.home\") + \n File.separator + \".keystore\");\n }\n \n if (alias == null) {\n throw new Exception(\"J2SE key alias was not given\");\n }\n\n try {\n keyTool = new MEKeyTool(meKeystoreFile);\n } catch (FileNotFoundException fnfe) {\n keyTool = new MEKeyTool();\n }\n\n keyTool.importKeyFromJcaKeystore(jcaKeystoreFilename,\n keystorePassword,\n alias, domain);\n keyTool.saveKeystore(meKeystoreFile);\n }", "public void importKeyFromJcaKeystore(String jcakeystoreFilename,\n String keystorePassword,\n String alias, String domain)\n throws IOException, GeneralSecurityException {\n FileInputStream keystoreStream;\n KeyStore jcaKeystore;\n\n // Load the keystore\n keystoreStream = new FileInputStream(new File(jcakeystoreFilename));\n\n try {\n jcaKeystore = KeyStore.getInstance(KeyStore.getDefaultType());\n\n if (keystorePassword == null) {\n jcaKeystore.load(keystoreStream, null);\n } else {\n jcaKeystore.load(keystoreStream,\n keystorePassword.toCharArray());\n }\n } finally {\n keystoreStream.close();\n }\n\n importKeyFromJcaKeystore(jcaKeystore,\n alias,\n domain);\n }", "private void loadWalletFromKeystore(String password, String keyStoreFileName) {\n mCredentials = Web3jWalletHelper.onInstance(mContext).getWallet(password, walletSuffixDir, keyStoreFileName);\n SharedPref.write(WALLET_ADDRESS, mCredentials.getAddress());\n // SharedPref.write(PUBLIC_KEY, mCredentials.getEcKeyPair().getPublicKey().toString(16));\n SharedPref.write(PRIVATE_KEY, mCredentials.getEcKeyPair().getPrivateKey().toString(16));\n SharedPref.write(PUBLIC_KEY, ECDSA.getHexEncodedPoint(SharedPref.read(PRIVATE_KEY)));\n }", "@Override\n public KeyStore loadKeyStore(File file, String keyStoreType, String password) {\n KeyStore keyStore;\n try {\n keyStore = KeyStore.getInstance(keyStoreType);\n } catch (KeyStoreException e) {\n throw new KeyStoreAccessException(\"Unable to get KeyStore instance of type: \" + keyStoreType, e);\n }\n\n try (InputStream keystoreAsStream = new FileInputStream(file)) {\n keyStore.load(keystoreAsStream, password.toCharArray());\n } catch (IOException e) {\n throw new ImportException(\"Unable to read KeyStore from file: \" + file.getName(), e);\n } catch (CertificateException | NoSuchAlgorithmException e) {\n throw new ImportException(\"Error while reading KeyStore\", e);\n }\n\n return keyStore;\n }", "public KeyStore createPKCS12KeyStore(String alias, char[] password) {\n try {\r\n KeyStore keyStore = KeyStore.getInstance(CertificateHelper.TOLVEN_CREDENTIAL_FORMAT_PKCS12);\r\n try {\r\n keyStore.load(null, password);\r\n } catch (IOException ex) {\r\n throw new RuntimeException(\"Could not load keystore for alias: \" + alias, ex);\r\n }\r\n X509Certificate[] certificateChain = new X509Certificate[1];\r\n certificateChain[0] = getX509Certificate();\r\n keyStore.setKeyEntry(alias, getPrivateKey(), password, certificateChain);\r\n return keyStore;\r\n } catch (GeneralSecurityException ex) {\r\n throw new RuntimeException(\"Could not create a PKCS12 keystore for alias: \" + alias, ex);\r\n }\r\n }", "public void importKey(IsoBuffer isoBuffer);", "private static void readPrivateKeyFromPKCS11() throws KeyStoreException {\n String configFileName = jarPath + \"pkcs11.cfg\";\r\n\r\n Provider p = null;\r\n try {\r\n p = new SunPKCS11(configFileName);\r\n Security.addProvider(p);\r\n } catch (ProviderException e) {\r\n LanzaError( \"no es correcto el fichero de configuración de la tarjeta\" );\r\n }\r\n \r\n KeyStore ks = null;\r\n try {\r\n ks = KeyStore.getInstance(\"pkcs11\", p);\r\n ks.load(null, clave );\r\n } catch (NoSuchAlgorithmException e) {\r\n LanzaError( \"leyendo la tarjeta (n.1)\" );\r\n } catch (CertificateException e) {\r\n LanzaError( \"leyendo la tarjeta (n.2)\" );\r\n } catch (IOException e) {\r\n LanzaError( \"leyendo la tarjeta (n.3)\" );\r\n }\r\n\r\n String alias = \"\";\r\n try {\r\n alias = (String) ks.aliases().nextElement();\r\n privateKey = (PrivateKey) ks.getKey(alias, clave);\r\n } catch (NoSuchElementException e) {\r\n LanzaError( \"leyendo la clave de la tarjeta (n.1)\" );\r\n } catch (NoSuchAlgorithmException e) {\r\n LanzaError( \"leyendo la clave de la tarjeta (n.2)\" );\r\n } catch (UnrecoverableKeyException e) {\r\n LanzaError( \"leyendo la clave de la tarjeta (n.3)\" );\r\n }\r\n certificateChain = ks.getCertificateChain(alias);\r\n }", "@Override\n public void run() throws Exception {\n InputStream in = getClass().getResourceAsStream(\"/keystore.p12\");\n char[] password = \"password\".toCharArray();\n KeyStore keystore = new JavaKeyStore(\"PKCS12\", in, password);\n System.out.println(\"Loaded keystore: \" + keystore);\n\n // create walletapi with loaded one\n WalletApi walletApi = new WalletApiFactory().create(keystore);\n System.out.println(\"Walletapi with loaded keystore: \" + walletApi);\n\n // unlocked key\n Authentication authentication = Authentication.of(new KeyAlias(\"keyalias\"), \"password\");\n boolean unlockResult = walletApi.unlock(authentication);\n System.out.println(\"Unlock result: \" + unlockResult);\n System.out.println(\"Unlocked account: \" + walletApi.getPrincipal());\n }", "public static void main(String args[]) throws Exception{\n\t KeyStore keyStore = KeyStore.getInstance(\"JCEKS\");\r\n\r\n //Cargar el objeto KeyStore \r\n char[] password = \"changeit\".toCharArray();\r\n java.io.FileInputStream fis = new FileInputStream(\r\n \t\t \"/usr/lib/jvm/java-11-openjdk-amd64/lib/security/cacerts\");\r\n \r\n keyStore.load(fis, password);\r\n \r\n //Crear el objeto KeyStore.ProtectionParameter \r\n ProtectionParameter protectionParam = new KeyStore.PasswordProtection(password);\r\n\r\n //Crear el objeto SecretKey \r\n SecretKey mySecretKey = new SecretKeySpec(\"myPassword\".getBytes(), \"DSA\");\r\n \r\n //Crear el objeto SecretKeyEntry \r\n SecretKeyEntry secretKeyEntry = new SecretKeyEntry(mySecretKey);\r\n keyStore.setEntry(\"AliasClaveSecreta\", secretKeyEntry, protectionParam);\r\n\r\n //Almacenar el objeto KeyStore \r\n java.io.FileOutputStream fos = null;\r\n fos = new java.io.FileOutputStream(\"newKeyStoreName\");\r\n keyStore.store(fos, password);\r\n \r\n //Crear el objeto KeyStore.SecretKeyEntry \r\n SecretKeyEntry secretKeyEnt = (SecretKeyEntry)keyStore.getEntry(\"AliasClaveSecreta\", protectionParam);\r\n\r\n //Crear el objeto SecretKey \r\n SecretKey mysecretKey = secretKeyEnt.getSecretKey(); \r\n System.out.println(\"Algoritmo usado para generar la clave: \"+mysecretKey.getAlgorithm()); \r\n System.out.println(\"Formato usado para la clave: \"+mysecretKey.getFormat());\r\n }", "public void loadKey(File in, File privateKeyFile) throws GeneralSecurityException, IOException {\n\t byte[] encodedKey = new byte[(int)privateKeyFile.length()];\n\t FileInputStream is = new FileInputStream(privateKeyFile);\n\t is.read(encodedKey);\n\t \n\t // create private key\n\t PKCS8EncodedKeySpec privateKeySpec = new PKCS8EncodedKeySpec(encodedKey);\n\t KeyFactory kf = KeyFactory.getInstance(\"RSA\");\n\t PrivateKey pk = kf.generatePrivate(privateKeySpec);\n\t \n\t // read AES key\n\t pkCipher.init(Cipher.DECRYPT_MODE, pk);\n\t aesKey = new byte[256/8];\n\t CipherInputStream cis = new CipherInputStream(new FileInputStream(in), pkCipher);\n\t cis.read(aesKey);\n\t aesKeySpec = new SecretKeySpec(aesKey, \"AES\");\n\t cis.close();\n\t is.close();\n\t }", "public static void createKeyStore(String filename,\n String password, String keyPassword, String alias,\n Key privateKey, Certificate cert)\n throws GeneralSecurityException, IOException {\n KeyStore ks = createEmptyKeyStore();\n ks.setKeyEntry(alias, privateKey, keyPassword.toCharArray(),\n new Certificate[]{cert});\n saveKeyStore(ks, filename, password);\n }", "public void writeToP12(X509Certificate[] certChain, PrivateKey key, char[] password, File file) {\n OutputStream stream = null;\n try {\n \tX509Certificate targetCert = certChain[0];\n stream = new FileOutputStream(file);\n KeyStore ks = KeyStore.getInstance(\"PKCS12\", \"BC\"); \n ks.load(null,null);\n ks.setCertificateEntry(targetCert.getSerialNumber().toString(), targetCert);\n ks.setKeyEntry(targetCert.getSerialNumber().toString(), key, password, certChain);\n ks.store(stream, password);\n } catch (RuntimeException | IOException | GeneralSecurityException e) {\n throw new RuntimeException(\"Failed to write PKCS12 to [\"+file+\"]\", e);\n } finally {\n CloseablesExt.closeQuietly(stream);\n }\n }", "public static void main(String[] args) {\n KeyStore myStore = null;\n try {\n\n /* Note: could also use a keystore file, which contains the token label or slot no. to use. Load that via\n * \"new FileInputStream(ksFileName)\" instead of ByteArrayInputStream. Save objects to the keystore via a\n * FileOutputStream. */\n\n ByteArrayInputStream is1 = new ByteArrayInputStream((\"slot:\" + slot).getBytes());\n myStore = KeyStore.getInstance(keystoreProvider);\n myStore.load(is1, passwd.toCharArray());\n } catch (KeyStoreException kse) {\n System.out.println(\"Unable to create keystore object\");\n System.exit(-1);\n } catch (NoSuchAlgorithmException nsae) {\n System.out.println(\"Unexpected NoSuchAlgorithmException while loading keystore\");\n System.exit(-1);\n } catch (CertificateException e) {\n System.out.println(\"Unexpected CertificateException while loading keystore\");\n System.exit(-1);\n } catch (IOException e) {\n // this should never happen\n System.out.println(\"Unexpected IOException while loading keystore.\");\n System.exit(-1);\n }\n\n KeyPairGenerator keyGen = null;\n KeyPair keyPair = null;\n try {\n // Generate an ECDSA KeyPair\n /* The KeyPairGenerator class is used to determine the type of KeyPair being generated. For more information\n * concerning the algorithms available in the Luna provider please see the Luna Development Guide. For more\n * information concerning other providers, please read the documentation available for the provider in question. */\n System.out.println(\"Generating ECDSA Keypair\");\n /* The KeyPairGenerator.getInstance method also supports specifying providers as a parameter to the method. Many\n * other methods will allow you to specify the provider as a parameter. Please see the Sun JDK class reference at\n * http://java.sun.org for more information. */\n keyGen = KeyPairGenerator.getInstance(\"ECDSA\", provider);\n /* ECDSA keys need to know what curve to use. If you know the curve ID to use you can specify it directly. In the\n * Luna Provider all supported curves are defined in LunaECCurve */\n ECGenParameterSpec ecSpec = new ECGenParameterSpec(\"c2pnb304w1\");\n keyGen.initialize(ecSpec);\n keyPair = keyGen.generateKeyPair();\n } catch (Exception e) {\n System.out.println(\"Exception during Key Generation - \" + e.getMessage());\n System.exit(1);\n }\n\n // generate a self-signed ECDSA certificate.\n Date notBefore = new Date();\n Date notAfter = new Date(notBefore.getTime() + 1000000000);\n BigInteger serialNum = new BigInteger(\"123456\");\n LunaCertificateX509 cert = null;\n try {\n cert = LunaCertificateX509.SelfSign(keyPair, \"CN=ECDSA Sample Cert\", serialNum, notBefore, notAfter);\n } catch (InvalidKeyException ike) {\n System.out.println(\"Unexpected InvalidKeyException while generating cert.\");\n System.exit(-1);\n } catch (CertificateEncodingException cee) {\n System.out.println(\"Unexpected CertificateEncodingException while generating cert.\");\n System.exit(-1);\n }\n\n byte[] bytes = \"Some Text to Sign as an Example\".getBytes();\n System.out.println(\"PlainText = \" + com.safenetinc.luna.LunaUtils.getHexString(bytes, true));\n\n Signature ecdsaSig = null;\n byte[] signatureBytes = null;\n try {\n // Create a Signature Object and signUsingI2p the encrypted text\n /* Sign/Verify operations like Encrypt/Decrypt operations can be performed in either singlepart or multipart\n * steps. Single part Signing and Verify examples are given in this code. Multipart signatures use the\n * Signature.update() method to load all the bytes and then invoke the Signature.signUsingI2p() method to get the result.\n * For more information please see the class documentation for the java.security.Signature class with respect to\n * the version of the JDK you are using. */\n System.out.println(\"Signing encrypted text\");\n ecdsaSig = Signature.getInstance(\"ECDSA\", provider);\n ecdsaSig = Signature.getInstance(\"SHA256withECDSA\", provider);\n ecdsaSig.initSign(keyPair.getPrivate());\n ecdsaSig.update(bytes);\n signatureBytes = ecdsaSig.sign();\n\n // Verify the signature\n System.out.println(\"Verifying signature(via Signature.verify)\");\n ecdsaSig.initVerify(keyPair.getPublic());\n ecdsaSig.update(bytes);\n boolean verifies = ecdsaSig.verify(signatureBytes);\n if (verifies == true) {\n System.out.println(\"Signature passed verification\");\n } else {\n System.out.println(\"Signature failed verification\");\n }\n\n } catch (Exception e) {\n System.out.println(\"Exception during Signing - \" + e.getMessage());\n System.exit(1);\n }\n\n try {\n // Verify the signature\n System.out.println(\"Verifying signature(via cert)\");\n ecdsaSig.initVerify(cert);\n ecdsaSig.update(bytes);\n boolean verifies = ecdsaSig.verify(signatureBytes);\n if (verifies == true) {\n System.out.println(\"Signature passed verification\");\n } else {\n System.out.println(\"Signature failed verification\");\n }\n } catch (Exception e) {\n System.out.println(\"Exception during Verification - \" + e.getMessage());\n System.exit(1);\n }\n\n// // Logout of the token\n// HSM_Manager.hsmLogout();\n }", "private void openKeystoreAndOutputJad() throws Exception {\n File ksfile;\n FileInputStream ksstream;\n\n if (alias == null) {\n usageError(command + \" requires -alias\");\n }\n\n if (outfile == null) {\n usageError(command + \" requires an output JAD\");\n }\n\n if (keystore == null) {\n keystore = System.getProperty(\"user.home\") + File.separator\n + \".keystore\";\n }\n\n try {\n ksfile = new File(keystore);\n // Check if keystore file is empty\n if (ksfile.exists() && ksfile.length() == 0) {\n throw new Exception(\"Keystore exists, but is empty: \" +\n keystore);\n }\n\n ksstream = new FileInputStream(ksfile);\n } catch (FileNotFoundException fnfe) {\n throw new Exception(\"Keystore does not exist: \" + keystore);\n }\n\n try {\n try {\n // the stream will be closed later\n outstream = new FileOutputStream(outfile);\n } catch (IOException ioe) {\n throw new Exception(\"Error opening output JAD: \" +\n outfile);\n }\n\n try {\n // load the keystore into the AppDescriptor\n appdesc.loadKeyStore(ksstream, storepass);\n } catch (Exception e) {\n throw new Exception(\"Keystore could not be loaded: \" +\n e.toString());\n }\n } finally {\n try {\n ksstream.close();\n } catch (IOException e) {\n // ignore\n }\n }\n }", "public MEKeyTool(File meKeystoreFile)\n throws FileNotFoundException, IOException {\n\n FileInputStream input;\n\n input = new FileInputStream(meKeystoreFile);\n\n try {\n keystore = new PublicKeyStoreBuilderBase(input);\n } finally {\n input.close();\n }\n }", "private void getKeyAndCerts(String filePath, String pw)\n throws GeneralSecurityException, IOException {\n System.out\n .println(\"reading signature key and certificates from file \" + filePath + \".\");\n\n FileInputStream fis = new FileInputStream(filePath);\n KeyStore store = KeyStore.getInstance(\"PKCS12\", \"IAIK\");\n store.load(fis, pw.toCharArray());\n\n Enumeration<String> aliases = store.aliases();\n String alias = (String) aliases.nextElement();\n privKey_ = (PrivateKey) store.getKey(alias, pw.toCharArray());\n certChain_ = Util.convertCertificateChain(store.getCertificateChain(alias));\n fis.close();\n }", "@Nonnull\n public static KeyStore loadKeyStore(String filename, String password)\n throws IOException, GeneralSecurityException {\n return loadKeyStore(FileUtil.getContextFile(filename), password);\n }", "private void importTrustedCertificate() {\n\t\t// Let the user choose a file containing trusted certificate(s) to\n\t\t// import\n\t\tFile certFile = selectImportExportFile(\n\t\t\t\t\"Certificate file to import from\", // title\n\t\t\t\tnew String[] { \".pem\", \".crt\", \".cer\", \".der\", \"p7\", \".p7c\" }, // file extensions filters\n\t\t\t\t\"Certificate Files (*.pem, *.crt, , *.cer, *.der, *.p7, *.p7c)\", // filter descriptions\n\t\t\t\t\"Import\", // text for the file chooser's approve button\n\t\t\t\t\"trustedCertDir\"); // preference string for saving the last chosen directory\n\t\tif (certFile == null)\n\t\t\treturn;\n\n\t\t// Load the certificate(s) from the file\n\t\tArrayList<X509Certificate> trustCertsList = new ArrayList<>();\n\t\tCertificateFactory cf;\n\t\ttry {\n\t\t\tcf = CertificateFactory.getInstance(\"X.509\");\n\t\t} catch (Exception e) {\n\t\t\t// Nothing we can do! Things are badly misconfigured\n\t\t\tcf = null;\n\t\t}\n\n\t\tif (cf != null) {\n\t\t\ttry (FileInputStream fis = new FileInputStream(certFile)) {\n\t\t\t\tfor (Certificate cert : cf.generateCertificates(fis))\n\t\t\t\t\ttrustCertsList.add((X509Certificate) cert);\n\t\t\t} catch (Exception cex) {\n\t\t\t\t// Do nothing\n\t\t\t}\n\n\t\t\tif (trustCertsList.size() == 0) {\n\t\t\t\t// Could not load certificates as any of the above types\n\t\t\t\ttry (FileInputStream fis = new FileInputStream(certFile);\n\t\t\t\t\t\tPEMReader pr = new PEMReader(\n\t\t\t\t\t\t\t\tnew InputStreamReader(fis), null, cf\n\t\t\t\t\t\t\t\t\t\t.getProvider().getName())) {\n\t\t\t\t\t/*\n\t\t\t\t\t * Try as openssl PEM format - which sligtly differs from\n\t\t\t\t\t * the one supported by JCE\n\t\t\t\t\t */\n\t\t\t\t\tObject cert;\n\t\t\t\t\twhile ((cert = pr.readObject()) != null)\n\t\t\t\t\t\tif (cert instanceof X509Certificate)\n\t\t\t\t\t\t\ttrustCertsList.add((X509Certificate) cert);\n\t\t\t\t} catch (Exception cex) {\n\t\t\t\t\t// do nothing\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif (trustCertsList.size() == 0) {\n\t\t\t/* Failed to load certifcate(s) using any of the known encodings */\n\t\t\tshowMessageDialog(this,\n\t\t\t\t\t\"Failed to load certificate(s) using any of the known encodings -\\n\"\n\t\t\t\t\t\t\t+ \"file format not recognised.\", ERROR_TITLE,\n\t\t\t\t\tERROR_MESSAGE);\n\t\t\treturn;\n\t\t}\n\n\t\t// Show the list of certificates contained in the file for the user to\n\t\t// select the ones to import\n\t\tNewTrustCertsDialog importTrustCertsDialog = new NewTrustCertsDialog(this,\n\t\t\t\t\"Credential Manager\", true, trustCertsList, dnParser);\n\n\t\timportTrustCertsDialog.setLocationRelativeTo(this);\n\t\timportTrustCertsDialog.setVisible(true);\n\t\tList<X509Certificate> selectedTrustCerts = importTrustCertsDialog\n\t\t\t\t.getTrustedCertificates(); // user-selected trusted certs to import\n\n\t\t// If user cancelled or did not select any cert to import\n\t\tif (selectedTrustCerts == null || selectedTrustCerts.isEmpty())\n\t\t\treturn;\n\n\t\ttry {\n\t\t\tfor (X509Certificate cert : selectedTrustCerts)\n\t\t\t\t// Import the selected trusted certificates\n\t\t\t\tcredManager.addTrustedCertificate(cert);\n\n\t\t\t// Display success message\n\t\t\tshowMessageDialog(this, \"Trusted certificate(s) import successful\",\n\t\t\t\t\tALERT_TITLE, INFORMATION_MESSAGE);\n\t\t} catch (CMException cme) {\n\t\t\tString exMessage = \"Failed to import trusted certificate(s) to the Truststore\";\n\t\t\tlogger.error(exMessage, cme);\n\t\t\tshowMessageDialog(this, exMessage, ERROR_TITLE, ERROR_MESSAGE);\n\t\t}\n\t}", "@SuppressFBWarnings(value = \"EXS_EXCEPTION_SOFTENING_NO_CONSTRAINTS\",\n\t\t\tjustification = \"converting checked to unchecked exceptions that must not be thrown\")\n\tpublic static KeyStore loadKeyStore(final Path jksFilePath, final String password)\n\t\t\tthrows CertificateException, IOException {\n\t\ttry (InputStream inputStream = Files.newInputStream(jksFilePath)) {\n\t\t\tfinal KeyStore keyStore = KeyStore.getInstance(\"JKS\");\n\t\t\tkeyStore.load(inputStream, password.toCharArray());\n\t\t\treturn keyStore;\n\t\t} catch (final KeyStoreException | NoSuchAlgorithmException e) {\n\t\t\tthrow new SneakyException(e);\n\t\t}\n\t}", "public void createKeyStore(String master_key) throws AEADBadTagException {\n SharedPreferences.Editor editor = getEncryptedSharedPreferences(master_key).edit();\n editor.putString(MASTER_KEY, master_key);\n editor.apply();\n\n Log.d(TAG, \"Encrypted SharedPreferences created...\");\n }", "public KeyStore getKeyStore(InputStream keystoreIS, String password) throws CertException;", "public void importKeys() {\n\n if (mListFragment.getSelectedEntries().size() == 0) {\n Notify.create(this, R.string.error_nothing_import_selected, Notify.Style.ERROR)\n .show((ViewGroup) findViewById(R.id.import_snackbar));\n return;\n }\n\n ServiceProgressHandler serviceHandler = new ServiceProgressHandler(this) {\n @Override\n public void handleMessage(Message message) {\n // handle messages by standard KeychainIntentServiceHandler first\n super.handleMessage(message);\n\n ImportKeysActivity.this.handleMessage(message);\n }\n };\n\n // Send all information needed to service to import key in other thread\n Intent intent = new Intent(this, KeychainNewService.class);\n ImportKeyringParcel operationInput = null;\n CryptoInputParcel cryptoInput = null;\n\n ImportKeysListFragment.LoaderState ls = mListFragment.getLoaderState();\n if (ls instanceof ImportKeysListFragment.BytesLoaderState) {\n Log.d(Constants.TAG, \"importKeys started\");\n\n // get DATA from selected key entries\n IteratorWithSize<ParcelableKeyRing> selectedEntries = mListFragment.getSelectedData();\n\n // instead of giving the entries by Intent extra, cache them into a\n // file to prevent Java Binder problems on heavy imports\n // read FileImportCache for more info.\n try {\n // We parcel this iteratively into a file - anything we can\n // display here, we should be able to import.\n ParcelableFileCache<ParcelableKeyRing> cache =\n new ParcelableFileCache<>(this, \"key_import.pcl\");\n cache.writeCache(selectedEntries);\n\n operationInput = new ImportKeyringParcel(null, null);\n cryptoInput = new CryptoInputParcel();\n\n } catch (IOException e) {\n Log.e(Constants.TAG, \"Problem writing cache file\", e);\n Notify.create(this, \"Problem writing cache file!\", Notify.Style.ERROR)\n .show((ViewGroup) findViewById(R.id.import_snackbar));\n }\n } else if (ls instanceof ImportKeysListFragment.CloudLoaderState) {\n ImportKeysListFragment.CloudLoaderState sls = (ImportKeysListFragment.CloudLoaderState) ls;\n\n // get selected key entries\n ArrayList<ParcelableKeyRing> keys = new ArrayList<>();\n {\n // change the format into ParcelableKeyRing\n ArrayList<ImportKeysListEntry> entries = mListFragment.getSelectedEntries();\n for (ImportKeysListEntry entry : entries) {\n keys.add(new ParcelableKeyRing(\n entry.getFingerprintHex(), entry.getKeyIdHex(), entry.getExtraData())\n );\n }\n }\n\n operationInput = new ImportKeyringParcel(keys, sls.mCloudPrefs.keyserver);\n if (mProxyPrefs != null) { // if not null means we have specified an explicit proxy\n cryptoInput = new CryptoInputParcel(mProxyPrefs.parcelableProxy);\n } else {\n cryptoInput = new CryptoInputParcel();\n }\n }\n\n intent.putExtra(KeychainNewService.EXTRA_OPERATION_INPUT, operationInput);\n intent.putExtra(KeychainNewService.EXTRA_CRYPTO_INPUT, cryptoInput);\n\n // Create a new Messenger for the communication back\n Messenger messenger = new Messenger(serviceHandler);\n intent.putExtra(KeychainService.EXTRA_MESSENGER, messenger);\n\n // show progress dialog\n serviceHandler.showProgressDialog(\n getString(R.string.progress_importing),\n ProgressDialog.STYLE_HORIZONTAL, true\n );\n\n // start service with intent\n startService(intent);\n }", "KeyStore loadKeystore(char[] keystorePassword) {\n try {\n // Load the keystore in the user's home directory\n bufferedInputStream.reset();\n keystore.load(bufferedInputStream, keystorePassword);\n return keystore;\n // TODO: EOFException might mean we're skipping guesses\n } catch (CertificateException | NoSuchAlgorithmException | FileNotFoundException e) {\n throw new KeystoreException(e);\n } catch (IOException e) {\n if ((e.getCause() instanceof UnrecoverableKeyException) &&\n (e.getCause().getMessage().contains(\"Password verification failed\"))) return null;\n\n throw new KeystoreException(e);\n }\n }", "public KeyStore readKeyStore(File file, char[] password) {\n FileInputStream stream = null;\n try {\n stream = new FileInputStream(file);\n KeyStore ks = KeyStore.getInstance(\"JKS\"); \n ks.load(stream, password);\n return ks;\n } catch (RuntimeException | IOException | GeneralSecurityException e) {\n throw new RuntimeException(\"Failed to read keystore from [\"+file+\"]\", e);\n } finally {\n CloseablesExt.closeQuietly(stream);\n }\n }", "private void loadStore() throws Exception {\n\t\tkeyStore = KeyStore.getInstance(keyStoreType.toUpperCase());\n\t\tFileInputStream fis = null;\n\t\ttry {\n\t\t\tfis = new FileInputStream(keyStorePath);\n\t\t\tkeyStore.load(fis, keyStorePass.toCharArray());\n\t\t} catch (CertificateException | IOException e) {\n\t\t\twriteToLog(\"Error while trying to load the key-store\");\n\t\t\tLogWriter.close();\n\t\t\tthrow new Exception(\"Error while trying to load the key-store\", e);\n\t\t} finally {\n\t\t\tif (fis != null) {\n\t\t\t\tfis.close();\n\t\t\t}\n\t\t}\n\t}", "@Nonnull\n public static KeyStore loadKeyStore(File file, String password)\n throws IOException, GeneralSecurityException {\n KeyStore keyStore = KeyStore.getInstance(\"jks\");\n FileInputStream stream = new FileInputStream(file);\n try {\n keyStore.load(stream, password.toCharArray());\n } finally {\n stream.close();\n }\n return keyStore;\n }", "@Override\n public void saveKeyStore(File file, KeyStore keyStore, String keystorePassword) {\n try (FileOutputStream fos = new FileOutputStream(file)) {\n keyStore.store(fos, keystorePassword.toCharArray());\n } catch (CertificateException | NoSuchAlgorithmException | IOException | KeyStoreException e) {\n throw new KeyStoreAccessException(\"Unable to save KeyStore to file: \" + file.getName(), e);\n }\n }", "@Test\n\tpublic void testAddX509CertificateToKeyStore() throws KeyStoreException, CertificateException, IOException, NoSuchAlgorithmException, InvalidKeySpecException {\n\t\t\n\t\tX509Certificate cert = DbMock.readCert(\"apache-tomcat.pem\");\n\t\t\n\t\tKeyStore keyStore = KeyStore.getInstance(\"JKS\");\n\t\t//initialize keystore\n\t\tkeyStore.load(null, null);\n\t\t\n\t\tJcaUtils.addX509CertificateToKeyStore(keyStore, \"alias1\", cert);\n\t\t\n\t\t// Save the new keystore contents\n\t\tFileOutputStream out = new FileOutputStream(\"/Users/davide/Downloads/ks.dat\");\n\t\tkeyStore.store(out, \"davidedc\".toCharArray());\n\t\tout.close();\n\t}", "public void setKeyfile(File keyfile) {\n this.keyfile = keyfile;\n }", "public MEKeyTool(String meKeystoreFilename)\n throws FileNotFoundException, IOException {\n\n FileInputStream input;\n\n input = new FileInputStream(new File(meKeystoreFilename));\n\n try {\n keystore = new PublicKeyStoreBuilderBase(input);\n } finally {\n input.close();\n }\n }", "public KeyPair loadKeystoreKeyPair(String privateKeyAlias) throws ProviderException {\n try {\n return HwUniversalKeyStoreProvider.loadAndroidKeyStoreKeyPairFromKeystore(this.mKeyStore, privateKeyAlias, this.mEntryUid);\n } catch (UnrecoverableKeyException e) {\n throw new ProviderException(\"Failed to load generated key pair from keystore\", e);\n }\n }", "private static KeyStore getLoadKeyStore(File keyStoreFile, String keyStorePwd) throws Exception {\n\t\tKeyStore ks = null;\n\t\tInputStream ksInput = null;\n\t\ttry {\n\t\t\t//ks = KeyStore.getInstance(DEFAULT_KEYSTORE_TYPE, new BouncyCastleProvider());\n\t\t\tks = KeyStore.getInstance(DEFAULT_KEYSTORE_TYPE);\n\t\t\tksInput = new BufferedInputStream(new FileInputStream(keyStoreFile));\n\t\t\tks.load(ksInput, keyStorePwd.toCharArray());\n\t\t} catch (Exception ex) {\n\t\t\tex.printStackTrace();\n\t\t\tthrow new Exception(\"加载证书密钥库[\" + keyStoreFile.getName() + \"]失败,原因[\" + ex.getMessage() + \"]\");\n\t\t} finally {\n\t\t\t//IOUtils.closeQuietly(ksInput);\n\t\t}\n\t\treturn ks;\n\t}", "void saveKeys(String publicKeyFileLocation, String secretKeyFileLocation) throws IOException;", "boolean importCertificate(InputStream is)\n {\n\tCertificateFactory cf = null;\n\tX509Certificate cert = null;\n\n\ttry\n\t{\n\t cf = CertificateFactory.getInstance(\"X.509\");\n\t cert = (X509Certificate)cf.generateCertificate(is);\n\n\t // Changed the certificate from the active set into the \n\t // inactive Import set. This is for import the certificate from\n\t // the store when the user clicks on Apply.\n\t //\n\t if (getRadioPos() == mh.getMessage(\"SignedApplet_value\"))\n \t model.deactivateImpCertificate(cert);\n\t else if (getRadioPos() == mh.getMessage(\"SecureSite_value\"))\n \t model.deactivateImpHttpsCertificate(cert);\n\t}\n\tcatch (CertificateParsingException cpe)\n\t{\n\t // It is PKCS#12 format.\n\t return false;\n\t}\n\tcatch (CertificateException e)\n\t{\n\t // Wrong format of the selected file\n\t DialogFactory.showExceptionDialog(this, e, getMessage(\"dialog.import.format.text\"), getMessage(\"dialog.import.error.caption\"));\n\t}\n\n\treturn true;\n }", "private static void createKeyFiles(String pass, String publicKeyFilename, String privateKeyFilename) throws Exception {\n\t\tString password = null;\n\t\tif (pass.isEmpty()) {\n\t\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tSystem.out.print(\"Password to encrypt the private key: \");\n\t\t\tpassword = in.readLine();\n\t\t\tSystem.out.println(\"Generating an RSA keypair...\");\n\t\t} else {\n\t\t\tpassword = pass;\n\t\t}\n\t\t\n\t\t// Create an RSA key\n\t\tKeyPairGenerator keyPairGenerator = KeyPairGenerator.getInstance(\"RSA\");\n\t\tkeyPairGenerator.initialize(1024);\n\t\tKeyPair keyPair = keyPairGenerator.genKeyPair();\n\n\t\tSystem.out.println(\"Done generating the keypair.\\n\");\n\n\t\t// Now we need to write the public key out to a file\n\t\tSystem.out.print(\"Public key filename: \");\n\n\t\t// Get the encoded form of the public key so we can\n\t\t// use it again in the future. This is X.509 by default.\n\t\tbyte[] publicKeyBytes = keyPair.getPublic().getEncoded();\n\n\t\t// Write the encoded public key out to the filesystem\n\t\tFileOutputStream fos = new FileOutputStream(publicKeyFilename);\n\t\tfos.write(publicKeyBytes);\n\t\tfos.close();\n\n\t\t// Now we need to do the same thing with the private key,\n\t\t// but we need to password encrypt it as well.\n\t\tSystem.out.print(\"Private key filename: \");\n \n\t\t// Get the encoded form. This is PKCS#8 by default.\n\t\tbyte[] privateKeyBytes = keyPair.getPrivate().getEncoded();\n\n\t\t// Here we actually encrypt the private key\n\t\tbyte[] encryptedPrivateKeyBytes = passwordEncrypt(password.toCharArray(), privateKeyBytes);\n\n\t\tfos = new FileOutputStream(privateKeyFilename);\n\t\tfos.write(encryptedPrivateKeyBytes);\n\t\tfos.close();\n\t}", "private void loadTM() throws ERMgmtException{\n try{\n KeyStore ts = KeyStore.getInstance(KeyStore.getDefaultType());\n //random number generate to generated aliases for the new keystore\n Random generator = new Random();\n \n ts.load(null, null);\n \n if(mCertList.size() > 0){\n for(int i=0; i<mCertList.size(); i++){\n int randomInt = generator.nextInt();\n while(ts.containsAlias(\"certificate\"+randomInt)){\n randomInt = generator.nextInt();\n }\n ts.setCertificateEntry(\"certificate\"+randomInt, (X509Certificate) mCertList.get(i));\n } \n mTrustManagerFactory.init(ts); \n } else { \n mTrustManagerFactory.init((KeyStore) null);\n }\n \n TrustManager[] tm = mTrustManagerFactory.getTrustManagers();\n for(int i=0; i<tm.length; i++){\n if (tm[i] instanceof X509TrustManager) {\n mTrustManager = (X509TrustManager)tm[i]; \n break;\n }\n }\n \n } catch (Exception e){ \n throw new ERMgmtException(\"Trust Manager Error\", e);\n }\n \n }", "private void initKeystore(Properties props) throws KeyStoreInitException {\n\t\tkeystorePassword = props.getProperty(\"keystorePassword\");\n\t\tkeystoreLocation = props.getProperty(\"keystoreLocation\");\n\t\tsecretKeyAlias = props.getProperty(\"secretKeyAlias\");\n\n\t\ttry {\n\t\t\tks = loadKeyStore();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t\tthrow new KeyStoreInitException(e.getMessage());\n\t\t} catch (KeyStoreException e) {\n\t\t\te.printStackTrace();\n\t\t\tthrow new KeyStoreInitException(e.getMessage());\n\t\t} catch (NoSuchAlgorithmException e) {\n\t\t\te.printStackTrace();\n\t\t\tthrow new KeyStoreInitException(e.getMessage());\n\t\t} catch (CertificateException e) {\n\t\t\te.printStackTrace();\n\t\t\tthrow new KeyStoreInitException(e.getMessage());\n\t\t}\n\t}", "public static KeyManagerFactory loadKeyStore( String keyStoreFile, String keyStorePasswordStr ) throws Exception\n {\n char[] keyStorePassword = Strings.isEmpty( keyStorePasswordStr ) ? null : keyStorePasswordStr.toCharArray();\n\n if ( !Strings.isEmpty( keyStoreFile ) )\n {\n // We have a provided KeyStore file: read it\n KeyStore keyStore = KeyStore.getInstance( KeyStore.getDefaultType() );\n\n try ( InputStream is = Files.newInputStream( Paths.get( keyStoreFile ) ) )\n {\n keyStore.load( is, keyStorePassword );\n }\n \n /*\n * Verify key store:\n * * Must only contain one entry which must be a key entry\n * * Must contain a certificate chain\n * * The private key must be recoverable by the key store password\n */\n Enumeration<String> aliases = keyStore.aliases();\n \n if ( !aliases.hasMoreElements() )\n {\n throw new KeyStoreException( \"Key store is empty\" );\n }\n \n String alias = aliases.nextElement();\n \n if ( aliases.hasMoreElements() )\n {\n throw new KeyStoreException( \"Key store contains more than one entry\" );\n }\n \n if ( !keyStore.isKeyEntry( alias ) )\n {\n throw new KeyStoreException( \"Key store must contain a key entry\" );\n }\n \n if ( keyStore.getCertificateChain( alias ) == null )\n {\n throw new KeyStoreException( \"Key store must contain a certificate chain\" );\n }\n \n if ( keyStore.getKey( alias, keyStorePassword ) == null )\n {\n throw new KeyStoreException( \"Private key must be recoverable by the key store password\" );\n }\n \n // Set up key manager factory to use our key store\n String algorithm = Security.getProperty( \"ssl.KeyManagerFactory.algorithm\" );\n \n if ( algorithm == null )\n {\n algorithm = KeyManagerFactory.getDefaultAlgorithm();\n }\n \n KeyManagerFactory keyManagerFactory = KeyManagerFactory.getInstance( algorithm );\n \n keyManagerFactory.init( keyStore, keyStorePassword );\n \n return keyManagerFactory;\n }\n else\n {\n return null;\n }\n }", "@Override\n public KeyStoreView fromKeyStore(KeyStore keyStore, Function<String, char[]> keyPassword) {\n return new DefaultKeyStoreView(\n new DefaultKeyStoreSourceImpl(metadataOper, keyStore, oper, keyPassword)\n );\n }", "public String importKey(final String keyName, final String publicKeyMaterial) {\n final ImportKeyPairRequest request = new ImportKeyPairRequest(keyName, publicKeyMaterial);\n final ImportKeyPairResult result = ec2Client.importKeyPair(request);\n return result.getKeyName();\n }", "public static void main(String... args) throws Exception {\n String password = CipherFactory.KEYSTORE_PASSWORD;\n KeyStore store = CipherFactory.getKeyStore(password);\n printKeystore(store, password);\n }", "public static KeyStore getKeyStoreFromFile(String keystoreName, String password,\n String home) throws Exception {\n Path tenantKeystorePath = Paths.get(home, \"repository\", \"resources\", \"security\", keystoreName);\n FileInputStream file = new FileInputStream(tenantKeystorePath.toString());\n KeyStore keystore = KeyStore.getInstance(KeyStore.getDefaultType());\n keystore.load(file, password.toCharArray());\n return keystore;\n }", "@Override\n public void load(String keyWord, String fileName){\n FileReader loadDetails;\n String record;\n try{\n loadDetails=new FileReader(fileName);\n BufferedReader bin=new BufferedReader(loadDetails);\n while (((record=bin.readLine()) != null)){\n if ((record).contentEquals(keyWord)){\n setUsername(record);\n setPassword(bin.readLine());\n setFirstname(bin.readLine());\n setLastname(bin.readLine());\n setDoB((Date)DMY.parse(bin.readLine()));\n setContactNumber(bin.readLine());\n setEmail(bin.readLine());\n setSalary(Float.valueOf(bin.readLine()));\n setPositionStatus(bin.readLine());\n homeAddress.load(bin);\n }//end if\n }//end while\n bin.close();\n }//end try\n catch (IOException ioe){}//end catch\n catch (ParseException ex) {\n Logger.getLogger(Product.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "ExportedKeyData makeKeyPairs(PGPKeyPair masterKey, PGPKeyPair subKey, String username, String email, String password) throws PGPException, IOException;", "private KeyStore askForPin() throws KeyStoreException, NoSuchAlgorithmException, CertificateException, IOException {\n char newPin[] = PinDialog.getPIN(this.providerDesc);\n try {\n KeyStore ks = getKeyStore(newPin);\n pin = newPin;\n return ks;\n } catch (IOException e2) {\n e2.printStackTrace();\n if (e2.getCause() instanceof LoginException) {\n JOptionPane.showMessageDialog(null, \"Wrong PIN\", \"Cryptographic card\", JOptionPane.WARNING_MESSAGE);\n }\n throw e2;\n }\n }", "public void importKeyFromJcaKeystore(KeyStore jcaKeystore,\n String alias, String domain)\n throws IOException, GeneralSecurityException {\n X509Certificate cert;\n byte[] der;\n TLV tbsCert;\n TLV subjectName;\n RSAPublicKey rsaKey;\n String owner;\n long notBefore;\n long notAfter;\n byte[] rawModulus;\n int i;\n int keyLen;\n byte[] modulus;\n byte[] exponent;\n Vector keys;\n\n // get the cert from the keystore\n try {\n cert = (X509Certificate)jcaKeystore.getCertificate(alias);\n } catch (ClassCastException cce) {\n throw new CertificateException(\"Certificate not X.509 type\");\n }\n\n if (cert == null) {\n throw new CertificateException(\"Certificate not found\");\n }\n\n /*\n * J2SE reorders the attributes when building a printable name\n * so we must build a printable name on our own.\n */\n\n /*\n * TBSCertificate ::= SEQUENCE {\n * version [0] EXPLICIT Version DEFAULT v1,\n * serialNumber CertificateSerialNumber,\n * signature AlgorithmIdentifier,\n * issuer Name,\n * validity Validity,\n * subject Name,\n * subjectPublicKeyInfo SubjectPublicKeyInfo,\n * issuerUniqueID [1] IMPLICIT UniqueIdentifier OPTIONAL,\n * -- If present, version shall be v2 or v3\n * subjectUniqueID [2] IMPLICIT UniqueIdentifier OPTIONAL,\n * -- If present, version shall be v2 or v3\n * extensions [3] EXPLICIT Extensions OPTIONAL\n * -- If present, version shall be v3\n * }\n */\n der = cert.getTBSCertificate();\n tbsCert = new TLV(der, 0);\n\n // walk down the tree of TLVs to find the subject name\n try {\n // Top level a is Sequence, drop down to the first child\n subjectName = tbsCert.child;\n\n // skip the version if present.\n if (subjectName.type == TLV.VERSION_TYPE) {\n subjectName = subjectName.next;\n }\n\n // skip the serial number\n subjectName = subjectName.next;\n \n // skip the signature alg. id.\n subjectName = subjectName.next;\n \n // skip the issuer\n subjectName = subjectName.next;\n \n // skip the validity\n subjectName = subjectName.next;\n\n owner = parseDN(der, subjectName);\n } catch (NullPointerException e) {\n throw new CertificateException(\"TBSCertificate corrupt 1\");\n } catch (IndexOutOfBoundsException e) {\n throw new CertificateException(\"TBSCertificate corrupt 2\");\n }\n\n notBefore = cert.getNotBefore().getTime();\n notAfter = cert.getNotAfter().getTime();\n\n // get the key from the cert\n try {\n rsaKey = (RSAPublicKey)cert.getPublicKey();\n } catch (ClassCastException cce) {\n throw new RuntimeException(\"Key in certificate is not an RSA key\");\n }\n\n // get the key parameters from the key\n rawModulus = rsaKey.getModulus().toByteArray();\n\n /*\n * the modulus is given as the minimum positive integer,\n * will not padded to the bit size of the key, or may have a extra\n * pad to make it positive. SSL expects the key to be signature\n * bit size. but we cannot get that from the key, so we should\n * remove any zero pad bytes and then pad out to a multiple of 8 bytes\n */\n for (i = 0; i < rawModulus.length && rawModulus[i] == 0; i++);\n\n keyLen = rawModulus.length - i;\n keyLen = (keyLen + 7) / 8 * 8;\n modulus = new byte[keyLen];\n\n int k, j;\n for (k = rawModulus.length - 1, j = keyLen - 1;\n k >= 0 && j >= 0; k--, j--) {\n modulus[j] = rawModulus[k];\n }\n\n exponent = rsaKey.getPublicExponent().toByteArray();\n\n // add the key\n keys = keystore.findKeys(owner);\n if (keys != null) {\n boolean duplicateKey = false;\n\n for (int n = 0; !duplicateKey && n < keys.size(); n++) {\n PublicKeyInfo key = (PublicKeyInfo)keys.elementAt(n);\n\n if (key.getOwner().equals(owner)) {\n byte[] temp = key.getModulus();\n\n if (modulus.length == temp.length) {\n duplicateKey = true;\n for (int m = 0; j < modulus.length && m < temp.length;\n m++) {\n if (modulus[m] != temp[m]) {\n duplicateKey = false;\n break;\n }\n }\n }\n }\n }\n \n if (duplicateKey) {\n throw new CertificateException(\n \"Owner already has this key in the ME keystore\");\n }\n }\n \n keystore.addKey(new PublicKeyInfo(owner, notBefore, notAfter,\n modulus, exponent, domain));\n }", "private KeyManager getKeyManager() {\n\t\tDefaultResourceLoader loader = new FileSystemResourceLoader();\n\t\tResource storeFile = loader.getResource(\"file:\" + samlProps.get(\"keyStoreFilePath\"));\n\t\tMap<String, String> keyPasswords = new HashMap<String, String>();\n\t\tkeyPasswords.put(samlProps.get(\"keyAlias\"), samlProps.get(\"keyPasswd\"));\n\n\t\treturn new JKSKeyManager(storeFile, samlProps.get(\"keyStorePasswd\"), keyPasswords, samlProps.get(\"keyAlias\"));\n\t}", "@Nullable\n private synchronized KeyPair readKeyPair() throws GeneralSecurityException, IOException {\n final String methodTag = TAG + \":readKeyPair\";\n\n Logger.v(methodTag, \"Reading Key entry\");\n try {\n final KeyStore keyStore = KeyStore.getInstance(ANDROID_KEY_STORE);\n keyStore.load(null);\n\n final Certificate cert = keyStore.getCertificate(KEY_STORE_CERT_ALIAS);\n final Key privateKey = keyStore.getKey(KEY_STORE_CERT_ALIAS, null);\n\n if (cert == null || privateKey == null) {\n Logger.v(methodTag, \"Key entry doesn't exist.\");\n return null;\n }\n\n return new KeyPair(cert.getPublicKey(), (PrivateKey) privateKey);\n } catch (final RuntimeException e) {\n // There is an issue in android keystore that resets keystore\n // Issue 61989: AndroidKeyStore deleted after changing screen lock type\n // https://code.google.com/p/android/issues/detail?id=61989\n // in this case getEntry throws\n // java.lang.RuntimeException: error:0D07207B:asn1 encoding routines:ASN1_get_object:header too long\n // handle it as regular KeyStoreException\n throw new KeyStoreException(e);\n }\n }", "public KeyStore initializeUser(UserInfo userInfo, String keyPassword) throws CertException;", "@Test\n\tpublic void pkcs12_exceptions() {\n\t\t// No algorithm\n\t\ttry {\n\t\t\tassertPkcs12LoadException(new Pkcs12LoadException(new NoSuchAlgorithmException()),\n\t\t\t\t\tPkcs12LoadException.Reason.ALGORITHM_NOT_FOUND);\n\t\t} catch (Pkcs12LoadException e) {\n\t\t\t// ignore\n\t\t}\n\n\t\t// cert error\n\t\ttry {\n\t\t\tassertPkcs12LoadException(new Pkcs12LoadException(new CertificateException()),\n\t\t\t\t\tPkcs12LoadException.Reason.CERTIFICATE_ERROR);\n\t\t} catch (Pkcs12LoadException e) {\n\t\t\t// ignore\n\t\t}\n\t}", "@Bean\n public KeyManager keyManager() {\n final Resource storeFile\n = this.resourceLoader.getResource(\"classpath:\" + this.samlProperties.getKeystore().getName());\n final Map<String, String> passwords = new HashMap<>();\n passwords.put(\n this.samlProperties.getKeystore().getDefaultKey().getName(),\n this.samlProperties.getKeystore().getDefaultKey().getPassword()\n );\n return new JKSKeyManager(\n storeFile,\n this.samlProperties.getKeystore().getPassword(),\n passwords,\n this.samlProperties.getKeystore().getDefaultKey().getName()\n );\n }", "public LocalRsaKeyLoader( CryptoService crypto, KeyStorageApi keyClient, DataStore dataStore )\n throws KodexException {\n if ( crypto == null || dataStore == null || keyClient == null ) {\n throw new KodexException(\n \"Crypto service, key network client, and data store are required to load from disk\" );\n }\n this.keyClient = keyClient;\n this.crypto = crypto;\n this.dataStore = dataStore;\n }", "@Override public int doIt(){\r\n log.println();\r\n log.println(twoLineStartMsg().append('\\n'));\r\n \r\n if (isTest()) {\r\n log.println(prop.toString());\r\n } // >= TEST\r\n \r\n try { // open input\r\n if (fromCert) {\r\n certFileName = w0;\r\n } else if (certFileName == null) {\r\n certFileName = System.getProperty(\"user.home\") + \"/.keystore\"; \r\n }\r\n fis = new FileInputStream(certFileName);\r\n } catch (FileNotFoundException e) {\r\n if (isTest()) {\r\n log.println(formMessage(\"openexcp\", certFileName));\r\n e.printStackTrace(log);\r\n }\r\n return errMeld(17, formMessage(\"openexcp\", e));\r\n } // open input\r\n \r\n if (fromCert) { // cert (else keystore)\r\n pubKeyFil = w1;\r\n try {\r\n cFac = CertificateFactory.getInstance(certType);\r\n cert = cFac.generateCertificate(fis);\r\n } catch (CertificateException e1) {\r\n log.println(formMessage(\"pukynotgtb\", certFileName));\r\n return errMeld(19, e1);\r\n }\r\n pubKey = cert.getPublicKey();\r\n log.println(formMessage(\"pukyfrcert\", certFileName));\r\n } else { // cert else keystore\r\n keyAlias = w0;\r\n pubKeyFil = w1;\r\n storePassW = TextHelper.trimUq(storePassW, null);\r\n if (storePassW != null) {\r\n passWord = storePassW.toCharArray();\r\n } else {\r\n passWord = AskDialog.getAnswerText(\r\n valueLang(\"pkexpdtit\"), // titel PKextr password dialog\r\n keyAlias, // upper\r\n true, // upper monospaced\r\n valueLang(\"pkexpasye\"), valueLang(\"pkexpasno\"), // yes, cancel\r\n 990, // waitMax = 99s\r\n valueLang(\"pkexpassr\"),\r\n null, true); //Color bg password \r\n } // storePassw \r\n \r\n try {\r\n ks = KeyStore.getInstance(certType);\r\n } catch (KeyStoreException e1) {\r\n return errMeld(21, e1);\r\n }\r\n\r\n try {\r\n ks.load(fis, passWord);\r\n fis.close();\r\n cert = ks.getCertificate(keyAlias);\r\n } catch (Exception e2) {\r\n return errMeld(29, e2);\r\n }\r\n // alias \r\n if (exportPrivate) {\r\n Key key = null;\r\n try {\r\n key = ks.getKey(keyAlias, passWord);\r\n } catch (Exception e) {\r\n return errorExit(39, e, \"could not get the key from keystore.\");\r\n }\r\n if (key instanceof PrivateKey) {\r\n // ex history: BASE64Encoder myB64 = new BASE64Encoder();\r\n // since 24.06.2016 String b64 = myB64.encode(key.getEncoded());\r\n Base64.Encoder mimeEncoder = java.util.Base64.getMimeEncoder();\r\n String b64 = mimeEncoder.encodeToString( key.getEncoded());\r\n \r\n log.println(\"-----BEGIN PRIVATE KEY-----\");\r\n log.println(b64);\r\n log.println(\"-----END PRIVATE KEY-----\\n\\n\");\r\n\r\n if (pubKeyFil == null) return 0;\r\n \r\n log.println(formMessage(\"prkywrite\", pubKeyFil));\r\n try {\r\n keyfos = new FileOutputStream(pubKeyFil);\r\n } catch (FileNotFoundException e1) {\r\n return errMeld(31, e1);\r\n }\r\n Writer osw = new OutputStreamWriter(keyfos); \r\n try {\r\n osw.write(\"-----BEGIN PRIVATE KEY-----\\n\");\r\n osw.write(b64);\r\n osw.write(\"\\n-----END PRIVATE KEY-----\\n\");\r\n osw.close();\r\n } catch (IOException e2) {\r\n return errMeld(31, e2);\r\n }\r\n\r\n return 0;\r\n \r\n }\r\n return errorExit(39, \"no private key found\");\r\n } // export private \r\n pubKey = cert.getPublicKey();\r\n log.println(formMessage(\"pukyfrstor\",\r\n new String[]{keyAlias, certFileName}));\r\n } // else from keystore\r\n \r\n log.println(\"\\n----\\n\" + pubKey.toString() + \"\\n----\\n\\n\");\r\n \r\n if (pubKeyFil == null) return 0;\r\n\r\n // got the public key and listed it to log\r\n log.println(formMessage(\"pukywrite\", pubKeyFil));\r\n //\" Write public key to \\\"\" + pubKeyFil + \"\\\"\\n\");\r\n byte[] key = pubKey.getEncoded();\r\n try {\r\n keyfos = new FileOutputStream(pubKeyFil);\r\n } catch (FileNotFoundException e1) {\r\n return errMeld(31, e1);\r\n }\r\n try {\r\n keyfos.write(key);\r\n keyfos.close();\r\n } catch (IOException e2) {\r\n return errMeld(31, e2);\r\n }\r\n return 0;\r\n }", "public void newKeystore(String alias,String password, String bodyCert) {\n try {\n CertAndKeyGen keyGen = new CertAndKeyGen(\"RSA\", ALGORITHM, null);\n try {\n keyGen.generate(KEY_LEN);\n PrivateKey pk = keyGen.getPrivateKey();\n X509Certificate cert;\n cert = keyGen.getSelfCertificate(new X500Name(bodyCert), (long) EXPIRATION * 24 * 60 * 60);\n X509Certificate[] chain = new X509Certificate[1];\n chain[0]= cert;\n //creo el request PKCS10\n PKCS10 certreq = new PKCS10 (keyGen.getPublicKey());\n Signature signature = Signature.getInstance(ALGORITHM);\n signature.initSign(pk);\n certreq.encodeAndSign(new X500Name(bodyCert), signature);\n //-creo el archivo CSR-\n //FileOutputStream filereq = new FileOutputStream(\"C:\\\\test\\\\certreq.csr\");\n FileOutputStream filereq = new FileOutputStream(OUTPUTCERT_PATH);\n PrintStream ps = new PrintStream(filereq);\n certreq.print(ps);\n ps.close();\n filereq.close();\n \n this.ks = KeyStore.getInstance(INSTANCE);\n this.ksPass = password.toCharArray();\n try (FileOutputStream newkeystore = new FileOutputStream(archivo)) {\n ks.load(null,null);\n ks.setKeyEntry(alias, pk, ksPass, chain);\n ks.store(newkeystore, ksPass);\n }\n } catch (InvalidKeyException | IOException | CertificateException | SignatureException | KeyStoreException ex) {\n LOG.error(\"Error a manipular el archivo: \"+archivo,ex);\n }\n \n } \n catch (NoSuchAlgorithmException | NoSuchProviderException ex) {\n LOG.error(ex);\n }\n }", "public void saveKeystore(File meKeystoreFile) throws IOException {\n FileOutputStream output;\n\n output = new FileOutputStream(meKeystoreFile);\n\n keystore.serialize(output);\n output.close();\n }", "protected static void setKeyStorePath(String keyStorePath) {\n Program.keyStorePath = keyStorePath;\n Program.authType = AUTH_TYPE.CERT;\n }", "public void storeCertificate(KeyStore keystore, OutputStream os, String keystorePassword) throws CertException;", "public void testKeyGeneratedFromUserPassword() {\n final String prefFileName = generatePrefFileNameForTest();\n\n SecurePreferences securePrefs = new SecurePreferences(getContext(), \"password\", prefFileName);\n SharedPreferences normalPrefs = getContext().getSharedPreferences(prefFileName, Context.MODE_PRIVATE);\n\n Map<String, ?> allTheSecurePrefs = securePrefs.getAll();\n Map<String, ?> allThePrefs = normalPrefs.getAll();\n\n assertTrue(\n \"the preference file should not contain any enteries as the key is generated via user password.\",\n allThePrefs.isEmpty());\n\n\n //clean up here as pref file created for each test\n deletePrefFile(prefFileName);\n }", "public void restoreFromFile(String fileName) throws KVException {\n this.resetStore();\n \n File f = new File(fileName);\n\t\tDocumentBuilderFactory docFactory = DocumentBuilderFactory.newInstance();\n\t\tDocumentBuilder docBuilder;\n\t\ttry {\n\t\t\tdocBuilder = docFactory.newDocumentBuilder();\n\t\t} catch (ParserConfigurationException e1) {\n\t\t\tKVMessage exceptionMessage = new KVMessage(\"resp\", \"Unknown Error: Parser Configuration Exception\");\n\t\t\tKVException exception = new KVException(exceptionMessage);\n\t\t\tthrow exception;\n\t\t}\n\t\tDocument doc;\n\t\ttry {\n\t\t\tdoc = docBuilder.parse(f);\n\t\t} catch (SAXException e1) {\n\t\t\tKVMessage exceptionMessage = new KVMessage(\"resp\", \"Unknown Error: SAX Exception\");\n\t\t\tKVException exception = new KVException(exceptionMessage);\n\t\t\tthrow exception;\n\t\t} catch (IOException e1) {\n\t\t\tKVMessage exceptionMessage = new KVMessage(\"resp\", \"IO Error\");\n\t\t\tKVException exception = new KVException(exceptionMessage);\n\t\t\tthrow exception;\n\t\t}\n\t\tdoc.getDocumentElement().normalize();\n\t\t\n\t\tNodeList nList = doc.getElementsByTagName(\"KVPair\");\n\t\t\n\t\tfor (int i = 0; i < nList.getLength(); i++) {\n\t\t\tNode curNode = nList.item(i);\n\t\t\t\n\t\t\tif (curNode.getNodeType() == Node.ELEMENT_NODE) {\n\t\t\t\tElement e = (Element) curNode;\n\t\t\t\tString key = e.getElementsByTagName(\"Key\").item(0).getTextContent();\n\t\t\t\tString val = e.getElementsByTagName(\"Value\").item(0).getTextContent();\n\t\t\t\tstore.put(key, val);\n\t\t\t}\n\t\t}\n }", "public KeyStore getKeyStore();", "@Test\n public void testSslJks_loadTrustStoreFromFile() throws Exception {\n final InputStream inputStream = this.getClass().getResourceAsStream(\"/keystore.jks\");\n final String tempDirectoryPath = System.getProperty(\"java.io.tmpdir\");\n final File jks = new File(tempDirectoryPath + File.separator + \"keystore.jks\");\n final FileOutputStream outputStream = new FileOutputStream(jks);\n final byte[] buffer = new byte[1024];\n int noOfBytes = 0;\n while ((noOfBytes = inputStream.read(buffer)) != -1) {\n outputStream.write(buffer, 0, noOfBytes);\n }\n\n final MockVault mockVault = new MockVault(200, \"{\\\"data\\\":{\\\"value\\\":\\\"mock\\\"}}\");\n final Server server = VaultTestUtils.initHttpsMockVault(mockVault);\n server.start();\n\n final VaultConfig vaultConfig = new VaultConfig()\n .address(\"https://127.0.0.1:9998\")\n .token(\"mock_token\")\n .sslConfig(new SslConfig().trustStoreFile(jks).build())\n .build();\n final Vault vault = new Vault(vaultConfig);\n final LogicalResponse response = vault.logical().read(\"secret/hello\");\n\n VaultTestUtils.shutdownMockVault(server);\n }", "public void save(File file, char[] password)\n\t\t\tthrows GeneralSecurityException, IOException {\n\t\tsynchronized (keyStore) {\n\t\t\tOutputStream out = new FileOutputStream(file);\n\t\t\ttry {\n\t\t\t\tkeyStore.store(out, password);\n\t\t\t} finally {\n\t\t\t\tout.close();\n\t\t\t}\n\t\t}\n\t}", "private void Initiat_Service(Object serviceAdm,Utilisateur user_en_cours) {\n\t\tlog.debug(\"user_en_cours.trustedApplication:\"+user_en_cours.trustedApplication);\n\t\t\t\tString filename =propIdentification.getProperty(Long.toString(user_en_cours.trustedApplication));\n\t\t\t\tlog.debug(\"filename:\"+filename);\n\t\t\t\t//System.out.println(\"my file \"+filename);\n\t\t\t\tFileInputStream is=null;\n\t\t\t\ttry {\n\t\t\t\t\tis = new FileInputStream(filename);\n\t\t\t\t} catch (FileNotFoundException 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\tKeyStore myKeyStore=null;\n\t\t\t\ttry {\n\t\t\t\t\tmyKeyStore = KeyStore.getInstance(KeyStore.getDefaultType());\n\t\t\t\t} catch (KeyStoreException e2) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te2.printStackTrace();\n\t\t\t\t}\n\t\t\t\tString password =propIdentification.getProperty(Long.toString(user_en_cours.trustedApplication)+\".password\");\n\n\t\t\t\ttry {\n\t\t\t\t\tmyKeyStore.load(is, password.toCharArray());\n\t\t\t\t} catch (NoSuchAlgorithmException e2) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te2.printStackTrace();\n\t\t\t\t} catch (CertificateException e2) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te2.printStackTrace();\n\t\t\t\t} catch (IOException e2) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te2.printStackTrace();\n\t\t\t\t}\n\n\t\t\t\tString filenameTrust =prop.getProperty(\"clienttrustore\");\n\t\t\t\tFileInputStream myKeys = null;\n\t\t\t\ttry {\n\t\t\t\t\tmyKeys = new FileInputStream(filenameTrust);\n\t\t\t\t} catch (FileNotFoundException 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\t// Load your TrustedStore\n\t\t\t\tKeyStore myTrustedStore=null;\n\t\t\t\ttry {\n\t\t\t\t\tmyTrustedStore = KeyStore.getInstance(KeyStore.getDefaultType());\n\t\t\t\t} catch (KeyStoreException e2) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te2.printStackTrace();\n\t\t\t\t}\n\t\t\t\ttry {\n\t\t\t\t\tmyTrustedStore.load(myKeys, prop.getProperty(\"clienttrustore.password\").toCharArray());\n\t\t\t\t} catch (NoSuchAlgorithmException e1) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t} catch (CertificateException e1) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t} catch (IOException 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\t\n\t\t\t\ttry {\n\t\t\t\t\tWSConnection.setupTLS(serviceAdm, myKeyStore, password, myTrustedStore);\n\t\t\t\t} catch (GeneralSecurityException 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}", "public static boolean validateKeyFile(String file) throws CommandException {\n boolean ret = false;\n //if key exists, set prompt flag\n File f = new File(file);\n if (f.exists()) {\n if (!f.getName().endsWith(\".pub\")) {\n String key = null;\n try {\n key = FileUtils.readSmallFile(file);\n }\n catch (IOException ioe) {\n throw new CommandException(Strings.get(\"unable.to.read.key\", file, ioe.getMessage()));\n }\n if (!key.startsWith(\"-----BEGIN \") && !key.endsWith(\" PRIVATE KEY-----\" + NL)) {\n throw new CommandException(Strings.get(\"invalid.key.file\", file));\n }\n }\n ret = true;\n }\n else {\n throw new CommandException(Strings.get(\"key.does.not.exist\", file));\n }\n return ret;\n }", "@Override\n public void setKeyStore(KeyStore keyStore) {\n this.keyStore = keyStore;\n }", "public SecretKey LoadAESKey(String keyFile) {\n\t\t\tObject[] keyb = null;\n\t\t\tbyte[] kb = null;\n\t\t\ttry {\n\t\t\t\t//keyb = Files.readAllBytes(Paths.get(keyFile));\n\t\t\t\tkeyb = this.ProcessAfterBytes(new File(keyFile), 16);\n\t\t\t\tkb = new byte[keyb.length];\n\t\t\t\tfor(int i=0; i<keyb.length;i+=1)\n\t\t\t\t\tkb[i]=(byte)keyb[i];\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\tSecretKeySpec skey = new SecretKeySpec(kb, \"AES\");\n\t\t\treturn skey;\n\t\t}", "public void setKeyStore(KeyStore keyStore) {\n this.keyStore = keyStore;\n }", "void saveFrom(String key, InputStream stream);", "OpenSSLKey mo134201a();", "public EC2SSHKeyPair importKeyPair(EC2ImportKeyPair request) {\n EC2SSHKeyPair response = new EC2SSHKeyPair();\n try {\n CloudStackKeyPair resp = getApi().registerSSHKeyPair(request.getKeyName(), request.getPublicKeyMaterial());\n if (resp == null) {\n throw new Exception(\"Ivalid CloudStack API response\");\n }\n response.setFingerprint(resp.getFingerprint());\n response.setKeyName(resp.getName());\n response.setPrivateKey(resp.getPrivatekey());\n } catch (Exception e) {\n logger.error(\"EC2 ImportKeyPair - \", e);\n handleException(e);\n }\n return response;\n }", "public void setAuthKeysFromTextFile(String textFile) {\n\n\t\ttry (Scanner scan = new Scanner(getClass().getResourceAsStream(textFile))) {\n\n\t\t\tString apikeyLine = scan.nextLine(), secretLine = scan.nextLine();\n\n\t\t\tapikey = apikeyLine.substring(apikeyLine.indexOf(\"\\\"\") + 1, apikeyLine.lastIndexOf(\"\\\"\"));\n\t\t\tsecret = secretLine.substring(secretLine.indexOf(\"\\\"\") + 1, secretLine.lastIndexOf(\"\\\"\"));\n\n\t\t} catch (NullPointerException | IndexOutOfBoundsException e) {\n\n\t\t\tSystem.err.println(\"Text file not found or corrupted - please attach key & secret in the format provided.\");\n\t\t}\n\t}", "public static File createTempKeyStore( String keyStoreName, char[] keyStorePassword ) throws IOException, KeyStoreException,\n NoSuchAlgorithmException, CertificateException, InvalidKeyException, NoSuchProviderException, SignatureException\n {\n File keyStoreFile = Files.createTempFile( keyStoreName, \"ks\" ).toFile();\n keyStoreFile.deleteOnExit();\n \n KeyStore keyStore = KeyStore.getInstance( KeyStore.getDefaultType() );\n \n try ( InputStream keyStoreData = new FileInputStream( keyStoreFile ) )\n {\n keyStore.load( null, keyStorePassword );\n }\n\n // Generate the asymmetric keys, using EC algorithm\n KeyPairGenerator keyPairGenerator = KeyPairGenerator.getInstance( \"EC\" );\n KeyPair keyPair = keyPairGenerator.generateKeyPair();\n \n // Generate the subject's name\n X500Principal owner = new X500Principal( \"CN=apacheds,OU=directory,O=apache,C=US\" );\n\n // Create the self-signed certificate\n X509Certificate certificate = CertificateUtil.generateSelfSignedCertificate( owner, keyPair, 365, \"SHA256WithECDSA\" );\n \n keyStore.setKeyEntry( \"apachedsKey\", keyPair.getPrivate(), keyStorePassword, new X509Certificate[] { certificate } );\n \n try ( FileOutputStream out = new FileOutputStream( keyStoreFile ) )\n {\n keyStore.store( out, keyStorePassword );\n }\n \n return keyStoreFile;\n }", "@Test\n public void privatekeyFileTest() {\n // TODO: test privatekeyFile\n }", "private void readKeyDataToIdentifyTransactions(){\n\t\t\n\t\tBufferedReader reader = null;\n\t\t\n\t\ttry{\n\t\t\treader = new BufferedReader(new FileReader(keyFile));\n\t\t\tString line;\n\t\t\twhile((line = reader.readLine()) != null){\n\t\t\t\tif((line.startsWith(\"#\")) || (line.equals(\"\")))\n\t\t\t\t\tcontinue;\n\t\t\t\telse{\n\t\t\t\t\tString transacName = line.split(\";\")[0];\n\t\t\t\t\tchar transacType = line.split(\";\")[1].charAt(0);\n\t\t\t\t\ttypeTransData.put(transacName,transacType);\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t\treader.close();\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\tSystem.out.println(\"Sorry!! \"+ keyFile +\" required for processing!!!\");\n\t\t\tSystem.out.println(\"Please try again !!!\");\n\t\t\tSystem.exit(1);\n\t\t}\n\t\t\n\t}", "public SingleCertKeyStoreProvider() {\r\n super(\"PKCS7\", PROVIDER_VERSION, \"KeyStore for a PKCS7 or X.509 certificate\"); //$NON-NLS-1$ //$NON-NLS-2$\r\n AccessController.doPrivileged(new java.security.PrivilegedAction<Object>() {\r\n \t/** {@inheritdoc} */\r\n @Override\r\n\t\t\tpublic Object run() {\r\n put(\"KeyStore.PKCS7\", \"es.gob.afirma.keystores.single.SingleCertKeyStore\"); //$NON-NLS-1$ //$NON-NLS-2$\r\n return null;\r\n }\r\n });\r\n }", "public KeyPair getKeyPair(KeyStore ks, String keyAlias, String certificateAlias, String keyPassword)\n throws CertException;", "@Override\n public synchronized void saveKey(char[] key, String catalogName)\n throws SecurityKeyException\n {\n if (key == null || key.length < 1) {\n LOG.info(\"key is null or empty, will not create keystore for catalog[%s].\", catalogName);\n return;\n }\n createStoreDirIfNotExists();\n createAndSaveKeystore(key, catalogName);\n }", "public MEKeyTool() {\n keystore = new PublicKeyStoreBuilderBase();\n }", "private void initKeystores(SupportedOS supportedOS, SupportedBrowser supportedBrowser)\r\n {\r\n this.keyStoreManager.flushKeyStoresTable();\r\n this.keyStoreManager.initBrowserStores(apph.getOs(), apph.getNavigator());\r\n \r\n // this.keyStoreManager.initClauer();\r\n\r\n // Solo mostraremos el soporte PKCS11 para sistemas operativos no Windows\r\n// if (!supportedBrowser.equals(SupportedBrowser.IEXPLORER))\r\n if (!supportedOS.equals(SupportedOS.WINDOWS))\r\n {\r\n ConfigManager conf = ConfigManager.getInstance();\r\n\r\n for (Device device : conf.getDeviceConfig())\r\n {\r\n try\r\n {\r\n keyStoreManager.initPKCS11Device(device, null);\r\n }\r\n catch (DeviceInitializationException die)\r\n {\r\n for (int i = 0; i < 3; i++)\r\n {\r\n PasswordPrompt passwordPrompt = new PasswordPrompt(null, device.getName(), \"Pin:\");\r\n \r\n if (passwordPrompt.getPassword() == null)\r\n {\r\n \tbreak;\r\n }\r\n \r\n try\r\n {\r\n this.keyStoreManager.initPKCS11Device(device, passwordPrompt.getPassword());\r\n break;\r\n }\r\n catch (Exception e)\r\n {\r\n JOptionPane.showMessageDialog(null, LabelManager.get(\"ERROR_INCORRECT_DNIE_PWD\"), \"\", JOptionPane.ERROR_MESSAGE);\r\n }\r\n }\r\n }\r\n }\r\n }\r\n }", "public MEKeyTool(InputStream meKeystoreStream)\n throws IOException {\n keystore = new PublicKeyStoreBuilderBase(meKeystoreStream);\n }", "private synchronized void makeKey (Key key)\n throws KeyException {\n\n byte[] userkey = key.getEncoded();\n if (userkey == null)\n throw new KeyException(\"Null LOKI91 key\");\n\n // consider only 8 bytes if user data is longer than that\n if (userkey.length < 8)\n throw new KeyException(\"Invalid LOKI91 user key length\");\n\n // If native library available then use it. If not or if\n // native method returned error then revert to 100% Java.\n\n if (native_lock != null) {\n synchronized(native_lock) {\n try {\n linkStatus.check(native_ks(native_cookie, userkey));\n return;\n } catch (Error error) {\n native_finalize();\n native_lock = null;\nif (DEBUG && debuglevel > 0) debug(error + \". Will use 100% Java.\");\n }\n }\n }\n\n sKey[0] = (userkey[0] & 0xFF) << 24 |\n (userkey[1] & 0xFF) << 16 |\n (userkey[2] & 0xFF) << 8 |\n (userkey[3] & 0xFF);\n sKey[1] = sKey[0] << 12 | sKey[0] >>> 20;\n sKey[2] = (userkey[4] & 0xFF) << 24 |\n (userkey[5] & 0xFF) << 16 |\n (userkey[6] & 0xFF) << 8 |\n (userkey[7] & 0xFF);\n sKey[3] = sKey[2] << 12 | sKey[2] >>> 20;\n\n for (int i = 4; i < ROUNDS; i += 4) {\n sKey[i ] = sKey[i - 3] << 13 | sKey[i - 3] >>> 19;\n sKey[i + 1] = sKey[i ] << 12 | sKey[i ] >>> 20;\n sKey[i + 2] = sKey[i - 1] << 13 | sKey[i - 1] >>> 19;\n sKey[i + 3] = sKey[i + 2] << 12 | sKey[i + 2] >>> 20;\n }\n }", "public static CryptoToken initFromPkcs11(String configDir, String pin)\r\n\t\t\tthrows BkavSignaturesException {\r\n\t\tCryptoToken token = null;\r\n\t\tFileInputStream fis = null;\r\n\t\ttry {\r\n\t\t\tfis = new FileInputStream(configDir);\r\n\t\t\tProvider provider = null;\r\n\t\t\ttry {\r\n\t\t\t\tprovider = new sun.security.pkcs11.SunPKCS11(fis);\r\n\t\t\t} catch (Exception ex) {\r\n\t\t\t\tthrow new BkavSignaturesException(\"ProviderException\", ex);\r\n\t\t\t}\r\n\r\n\t\t\tif (Security.getProvider(provider.getName()) == null) {\r\n\t\t\t\tSecurity.addProvider(provider);\r\n\t\t\t}\r\n\t\t\tKeyStore keystore = KeyStore.getInstance(\"PKCS11\", provider);\r\n\t\t\tkeystore.load(null, pin.toCharArray());\r\n\r\n\t\t\tEnumeration<String> aliases = keystore.aliases();\r\n\t\t\tif (aliases == null) {\r\n\t\t\t\tthrow new BkavSignaturesException(\r\n\t\t\t\t\t\t\"No key alias was found in keystore\");\r\n\t\t\t}\r\n\t\t\tString alias = null;\r\n\r\n\t\t\twhile (aliases.hasMoreElements()) {\r\n\t\t\t\tString currentAlias = aliases.nextElement();\r\n\t\t\t\tif (keystore.isKeyEntry(currentAlias)) {\r\n\t\t\t\t\talias = currentAlias;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\t// Throw exception if no key entry was found\r\n\t\t\tif (alias == null) {\r\n\t\t\t\tthrow new BkavSignaturesException(\r\n\t\t\t\t\t\t\"No key entry was found in keystore\");\r\n\t\t\t}\r\n\r\n\t\t\ttoken = getFromKeystore(keystore, alias, pin);\r\n\t\t} catch (FileNotFoundException e) {\r\n\t\t\tthrow new BkavSignaturesException(\"FileNotFoundException\", e);\r\n\t\t} catch (KeyStoreException e) {\r\n\t\t\tthrow new BkavSignaturesException(\"KeyStoreException\", e);\r\n\t\t} catch (NoSuchAlgorithmException e) {\r\n\t\t\tthrow new BkavSignaturesException(\"NoSuchAlgorithmException\", e);\r\n\t\t} catch (CertificateException e) {\r\n\t\t\tthrow new BkavSignaturesException(\"CertificateException\", e);\r\n\t\t} catch (IOException e) {\r\n\t\t\tthrow new BkavSignaturesException(\"IOException\", e);\r\n\t\t} catch (UnrecoverableKeyException e) {\r\n\t\t\tthrow new BkavSignaturesException(\"UnrecoverableKeyException\", e);\r\n\t\t} finally {\r\n\t\t\tif (fis != null) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tfis.close();\r\n\t\t\t\t} catch (IOException e) {\r\n\t\t\t\t\t// Do nothing here\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn token;\r\n\t}", "public interface CertService {\n\n /**\n * Retrieves the root certificate.\n * \n * @return\n * @throws CertException\n */\n public X509Certificate getRootCertificate() throws CertException;\n\n /**\n * Sets up a root service to be used for CA-related services like certificate request signing and certificate\n * revocation.\n * \n * @param keystore\n * @throws CertException\n */\n public void setRootService(RootService rootService) throws CertException;\n\n /**\n * Retrieves a KeyStore object from a supplied InputStream. Requires a keystore password.\n * \n * @param userId\n * @return\n */\n public KeyStore getKeyStore(InputStream keystoreIS, String password) throws CertException;\n\n /**\n * Retrieves existing private and public key from a KeyStore.\n * \n * @param userId\n * @return\n */\n public KeyPair getKeyPair(KeyStore ks, String keyAlias, String certificateAlias, String keyPassword)\n throws CertException;\n\n /**\n * Retrieves an existing certificate from a keystore using keystore's certificate alias.\n * \n * @param userId\n * @return\n */\n public X509Certificate getCertificate(KeyStore keystore, String certificateAlias) throws CertException;\n\n /**\n * Generates a private key and a public certificate for a user whose X.509 field information was enclosed in a\n * UserInfo parameter. Stores those artifacts in a password protected keystore. This is the principal method for\n * activating a new certificate and signing it with a root certificate.\n * \n * @param userId\n * @return KeyStore based on the provided userInfo\n */\n\n public KeyStore initializeUser(UserInfo userInfo, String keyPassword) throws CertException;\n\n /**\n * Wraps a certificate object into an OutputStream object secured by a keystore password\n * \n * @param keystore\n * @param os\n * @param keystorePassword\n * @throws CertException\n */\n public void storeCertificate(KeyStore keystore, OutputStream os, String keystorePassword) throws CertException;\n\n /**\n * Extracts the email address from a certificate\n * \n * @param certificate\n * @return\n * @throws CertException\n */\n public String getCertificateEmail(X509Certificate certificate) throws CertException;\n\n}", "public void saveAsFile(File privateKeyFile, char[] password) throws IllegalArgumentException, IOException, NoSuchAlgorithmException, NoSuchPaddingException {\r\n\t\tString key = this.saveAsString(password);\r\n\t\tFiles.write(privateKeyFile.toPath(), key.getBytes(StandardCharsets.UTF_8));\r\n\t}", "private void deleteKeyFile() {\n final String methodName = \":deleteKeyFile\";\n final File keyFile = new File(mContext.getDir(mContext.getPackageName(),\n Context.MODE_PRIVATE), ADALKS);\n if (keyFile.exists()) {\n Logger.v(TAG + methodName, \"Delete KeyFile\");\n if (!keyFile.delete()) {\n Logger.v(TAG + methodName, \"Delete KeyFile failed\");\n }\n }\n }", "private static KeyStore buildKeyStore(Context context, int certRawResId) throws KeyStoreException, CertificateException, NoSuchAlgorithmException, IOException {\n String keyStoreType = KeyStore.getDefaultType();\n KeyStore keyStore = KeyStore.getInstance(keyStoreType);\n keyStore.load(null, null);\n\n // read and add certificate authority\n Certificate cert = readCert(context, certRawResId);\n keyStore.setCertificateEntry(\"ca\", cert);\n\n return keyStore;\n }", "public void readPrivateKey(String filename) {\n FileHandler fh = new FileHandler();\n Map<String, BigInteger> skMap= fh.getKeyFromFile(filename);\n this.n = skMap.get(\"n\");\n this.d = skMap.get(\"key\");\n }", "public void importFile() {\n \ttry {\n\t File account_file = new File(\"accounts/CarerAccounts.txt\");\n\n\t FileReader file_reader = new FileReader(account_file);\n\t BufferedReader buff_reader = new BufferedReader(file_reader);\n\n\t String row;\n\t while ((row = buff_reader.readLine()) != null) {\n\t String[] account = row.split(\",\"); //implementing comma seperated value (CSV)\n\t String[] users = account[6].split(\"-\");\n\t int[] usersNew = new int[users.length];\n\t for (int i = 0; i < users.length; i++) {\n\t \tusersNew[i] = Integer.parseInt(users[i].trim());\n\t }\n\t this.add(Integer.parseInt(account[0]), account[1], account[2], account[3], account[4], account[5], usersNew);\n\t }\n\t buff_reader.close();\n } catch (IOException e) {\n System.out.println(\"Unable to read text file this time.\");\n \t}\n\t}", "private static int[] encrypt(File fileToEncrypt, File keystoreFile)\n\t{\n\n\t\tSecretKey symmetricKey = createSymmetricKey();\n\t\tAlgorithmParameters algoParams = fileEncryption(fileToEncrypt, symmetricKey, fileAfterEncryption);\n\t\treturn createConfigurationFile(fileToEncrypt, configFile, keystoreFile, symmetricKey, algoParams);\n\t}", "public SSLConfig(@NonNull File jksFile, @NonNull String storePassword, @NonNull String keyPassword){\n this.sslCertificateType = JKS;\n this.jksFile = jksFile;\n this.storePassword = storePassword;\n this.keyPassword = keyPassword;\n }", "@Override\n\tpublic PrivateKey readPrivateKey(String file, String alias, String password) {\n\t\tKeyStore ks;\n\t\ttry {\n\t\t\tks = KeyStore.getInstance(\"JKS\", \"SUN\");\n\t\t\tBufferedInputStream in = new BufferedInputStream(new FileInputStream(file));\n\t\t\tks.load(in, password.toCharArray());\n\n\t\t\tif (ks.isKeyEntry(alias)) {\n\t\t\t\tPrivateKey pk = (PrivateKey) ks.getKey(alias, password.toCharArray());\n\t\t\t\treturn pk;\n\t\t\t} else {\n\t\t\t\treturn null;\n\t\t\t}\n\t\t} catch (KeyStoreException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t} catch (NoSuchProviderException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t} catch (FileNotFoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t} catch (NoSuchAlgorithmException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t} catch (CertificateException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t} catch (UnrecoverableKeyException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t}\n\n\t}", "@Test\n\tpublic void createNewMyKeys() {\n\t\tRsaKeyStore ks = new RsaKeyStore();\n\t\tboolean r1 = ks.createNewMyKeyPair(\"newkp\");\n\t\tboolean r2 = ks.createNewMyKeyPair(\"newtwo\");\n\t\tassertTrue(\"Should have added the key\", r1);\n\t\tassertTrue(\"Should have added the second key\", r2);\n\t}", "public KeyProvider getKeyProvider() {\n return keystore; \n }", "public void run(\n String encryptionPublicKeyHex,\n String outputFile,\n KeystoreKey keyToExport,\n Optional<KeystoreKey> keyToSignWith,\n boolean includeCertificate)\n throws Exception {\n KeyStore keyStoreForKeyToExport = keystoreHelper.getKeystore(keyToExport);\n PrivateKey privateKeyToExport =\n keystoreHelper.getPrivateKey(keyStoreForKeyToExport, keyToExport);\n byte[] privateKeyPem = privateKeyToPem(privateKeyToExport);\n byte[] encryptedPrivateKey = encryptPrivateKey(fromHex(encryptionPublicKeyHex), privateKeyPem);\n if (keyToSignWith.isPresent() || includeCertificate) {\n Certificate certificate = keystoreHelper.getCertificate(keyStoreForKeyToExport, keyToExport);\n Optional<byte[]> signature =\n keyToSignWith.isPresent()\n ? Optional.of(sign(encryptedPrivateKey, keyToSignWith.get()))\n : Optional.empty();\n writeToZipFile(outputFile, signature, encryptedPrivateKey, certificateToPem(certificate));\n } else {\n Files.write(Paths.get(outputFile), encryptedPrivateKey);\n }\n }", "public void importStudents(String fileName) throws FileNotFoundException\n {\n Scanner inf = new Scanner(new File(fileName));\n while(inf.hasNextLine())\n {\n String first = inf.nextLine();\n String last = inf.nextLine();\n String password = inf.nextLine();\n String p1 = inf.nextLine();\n String p2 = inf.nextLine();\n String p3 = inf.nextLine();\n String p4 = inf.nextLine();\n String p5 = inf.nextLine();\n String p6 = inf.nextLine();\n String p7 = inf.nextLine();\n String p8 = inf.nextLine();\n \n students.add(new Student(first, last, password, p1, p2, p3, p4, p5, p6, p7, p8, this));\n }\n }", "public void readInPasswords(){\n String fileName = \"all_passwords.txt\";\n String nextLine = null;\n String [] temp;\n\n try{\n FileReader reader = new FileReader(fileName);\n BufferedReader bufferedReader = new BufferedReader(reader);\n \n while((nextLine = bufferedReader.readLine()) != null){\n temp = nextLine.split(\",\");\n if(temp[0].length() == 5)\n passwords.insertKey(temp[0], Double.parseDouble(temp[1]));\n }\n }catch(FileNotFoundException e){\n System.out.println(\"Unable to open file \" + fileName);\n }catch(IOException ex){\n System.out.println(\"Error reading file: \" + fileName);\n }\n \n }", "public void readPublicKey(String filename){\n FileHandler fh = new FileHandler();\n Map<String, BigInteger> pkMap= fh.getKeyFromFile(filename);\n this.n = pkMap.get(\"n\");\n this.e = pkMap.get(\"key\");\n }" ]
[ "0.641797", "0.6224494", "0.6188113", "0.6175454", "0.6068079", "0.5750738", "0.57142913", "0.57141393", "0.5673712", "0.56255424", "0.5592827", "0.5524043", "0.5516694", "0.54157966", "0.53886616", "0.53866905", "0.5375837", "0.5336126", "0.5302707", "0.5293373", "0.52909166", "0.52843004", "0.52766997", "0.5268729", "0.52114725", "0.52088135", "0.51982725", "0.5182541", "0.51703346", "0.51583433", "0.5146115", "0.51425713", "0.5129574", "0.5116678", "0.51139957", "0.51068157", "0.5093254", "0.50902057", "0.5074675", "0.50576496", "0.5042431", "0.4987725", "0.4984036", "0.4947433", "0.4932039", "0.49282867", "0.4916362", "0.49064952", "0.48768175", "0.4846692", "0.48462427", "0.4836105", "0.48078716", "0.47870353", "0.47868454", "0.47856823", "0.47784865", "0.47769094", "0.4734816", "0.4727735", "0.47266945", "0.47192264", "0.47158143", "0.46955785", "0.46846956", "0.46561837", "0.46536773", "0.46443978", "0.46435332", "0.46301633", "0.46150598", "0.46099454", "0.46005628", "0.459499", "0.45947602", "0.45900625", "0.45825392", "0.45821035", "0.4580134", "0.45781496", "0.4538106", "0.45346975", "0.45345125", "0.4534201", "0.45328128", "0.4528341", "0.45241717", "0.45179304", "0.4489844", "0.44813326", "0.44761702", "0.4473627", "0.44691727", "0.44691637", "0.44615695", "0.44513297", "0.44428754", "0.44420367", "0.44373763", "0.44347605" ]
0.8115134
0
Lets a user export user's private and public key pair to a PKCS 12 keystore file.
private void exportKeyPair() { // Which key pair entry has been selected? int selectedRow = keyPairsTable.getSelectedRow(); if (selectedRow == -1) // no row currently selected return; // Get the key pair entry's Keystore alias String alias = (String) keyPairsTable.getModel().getValueAt(selectedRow, 6); // Let the user choose a PKCS #12 file (keystore) to export public and // private key pair to File exportFile = selectImportExportFile("Select a file to export to", // title new String[] { ".p12", ".pfx" }, // array of file extensions // for the file filter "PKCS#12 Files (*.p12, *.pfx)", // description of the filter "Export", // text for the file chooser's approve button "keyPairDir"); // preference string for saving the last chosen directory if (exportFile == null) return; // If file already exist - ask the user if he wants to overwrite it if (exportFile.isFile() && showConfirmDialog(this, "The file with the given name already exists.\n" + "Do you want to overwrite it?", ALERT_TITLE, YES_NO_OPTION) == NO_OPTION) return; // Get the user to enter the password for the PKCS #12 keystore file GetPasswordDialog getPasswordDialog = new GetPasswordDialog(this, "Credential Manager", true, "Enter the password for protecting the exported key pair"); getPasswordDialog.setLocationRelativeTo(this); getPasswordDialog.setVisible(true); String pkcs12Password = getPasswordDialog.getPassword(); if (pkcs12Password == null) { // user cancelled or empty password // Warn the user showMessageDialog( this, "You must supply a password for protecting the exported key pair.", ALERT_TITLE, INFORMATION_MESSAGE); return; } // Export the key pair try { credManager.exportKeyPair(alias, exportFile, pkcs12Password); showMessageDialog(this, "Key pair export successful", ALERT_TITLE, INFORMATION_MESSAGE); } catch (CMException cme) { showMessageDialog(this, cme.getMessage(), ERROR_TITLE, ERROR_MESSAGE); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void importKeyPair() {\n\t\t/*\n\t\t * Let the user choose a PKCS #12 file (keystore) containing a public\n\t\t * and private key pair to import\n\t\t */\n\t\tFile importFile = selectImportExportFile(\n\t\t\t\t\"PKCS #12 file to import from\", // title\n\t\t\t\tnew String[] { \".p12\", \".pfx\" }, // array of file extensions\n\t\t\t\t// for the file filter\n\t\t\t\t\"PKCS#12 Files (*.p12, *.pfx)\", // description of the filter\n\t\t\t\t\"Import\", // text for the file chooser's approve button\n\t\t\t\t\"keyPairDir\"); // preference string for saving the last chosen directory\n\n\t\tif (importFile == null)\n\t\t\treturn;\n\n\t\t// The PKCS #12 keystore is not a file\n\t\tif (!importFile.isFile()) {\n\t\t\tshowMessageDialog(this, \"Your selection is not a file\",\n\t\t\t\t\tALERT_TITLE, WARNING_MESSAGE);\n\t\t\treturn;\n\t\t}\n\n\t\t// Get the user to enter the password that was used to encrypt the\n\t\t// private key contained in the PKCS #12 file\n\t\tGetPasswordDialog getPasswordDialog = new GetPasswordDialog(this,\n\t\t\t\t\"Import key pair entry\", true,\n\t\t\t\t\"Enter the password that was used to encrypt the PKCS #12 file\");\n\t\tgetPasswordDialog.setLocationRelativeTo(this);\n\t\tgetPasswordDialog.setVisible(true);\n\n\t\tString pkcs12Password = getPasswordDialog.getPassword();\n\n\t\tif (pkcs12Password == null) // user cancelled\n\t\t\treturn;\n\t\telse if (pkcs12Password.isEmpty()) // empty password\n\t\t\t// FIXME: Maybe user did not have the password set for the private key???\n\t\t\treturn;\n\n\t\ttry {\n\t\t\t// Load the PKCS #12 keystore from the file\n\t\t\t// (this is using the BouncyCastle provider !!!)\n\t\t\tKeyStore pkcs12Keystore = credManager.loadPKCS12Keystore(importFile,\n\t\t\t\t\tpkcs12Password);\n\n\t\t\t/*\n\t\t\t * Display the import key pair dialog supplying all the private keys\n\t\t\t * stored in the PKCS #12 file (normally there will be only one\n\t\t\t * private key inside, but could be more as this is a keystore after\n\t\t\t * all).\n\t\t\t */\n\t\t\tNewKeyPairEntryDialog importKeyPairDialog = new NewKeyPairEntryDialog(\n\t\t\t\t\tthis, \"Credential Manager\", true, pkcs12Keystore, dnParser);\n\t\t\timportKeyPairDialog.setLocationRelativeTo(this);\n\t\t\timportKeyPairDialog.setVisible(true);\n\n\t\t\t// Get the private key and certificate chain of the key pair\n\t\t\tKey privateKey = importKeyPairDialog.getPrivateKey();\n\t\t\tCertificate[] certChain = importKeyPairDialog.getCertificateChain();\n\n\t\t\tif (privateKey == null || certChain == null)\n\t\t\t\t// User did not select a key pair for import or cancelled\n\t\t\t\treturn;\n\n\t\t\t/*\n\t\t\t * Check if a key pair entry with the same alias already exists in\n\t\t\t * the Keystore\n\t\t\t */\n\t\t\tif (credManager.hasKeyPair(privateKey, certChain)\n\t\t\t\t\t&& showConfirmDialog(this,\n\t\t\t\t\t\t\t\"The keystore already contains the key pair entry with the same private key.\\n\"\n\t\t\t\t\t\t\t\t\t+ \"Do you want to overwrite it?\",\n\t\t\t\t\t\t\tALERT_TITLE, YES_NO_OPTION) != YES_OPTION)\n\t\t\t\treturn;\n\n\t\t\t// Place the private key and certificate chain into the Keystore\n\t\t\tcredManager.addKeyPair(privateKey, certChain);\n\n\t\t\t// Display success message\n\t\t\tshowMessageDialog(this, \"Key pair import successful\", ALERT_TITLE,\n\t\t\t\t\tINFORMATION_MESSAGE);\n\t\t} catch (Exception ex) { // too many exceptions to catch separately\n\t\t\tString exMessage = \"Failed to import the key pair entry to the Keystore. \"\n\t\t\t\t\t+ ex.getMessage();\n\t\t\tlogger.error(exMessage, ex);\n\t\t\tshowMessageDialog(this, exMessage, ERROR_TITLE, ERROR_MESSAGE);\n\t\t}\n\t}", "public void writeToP12(X509Certificate[] certChain, PrivateKey key, char[] password, File file) {\n OutputStream stream = null;\n try {\n \tX509Certificate targetCert = certChain[0];\n stream = new FileOutputStream(file);\n KeyStore ks = KeyStore.getInstance(\"PKCS12\", \"BC\"); \n ks.load(null,null);\n ks.setCertificateEntry(targetCert.getSerialNumber().toString(), targetCert);\n ks.setKeyEntry(targetCert.getSerialNumber().toString(), key, password, certChain);\n ks.store(stream, password);\n } catch (RuntimeException | IOException | GeneralSecurityException e) {\n throw new RuntimeException(\"Failed to write PKCS12 to [\"+file+\"]\", e);\n } finally {\n CloseablesExt.closeQuietly(stream);\n }\n }", "private static void createKeyFiles(String pass, String publicKeyFilename, String privateKeyFilename) throws Exception {\n\t\tString password = null;\n\t\tif (pass.isEmpty()) {\n\t\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tSystem.out.print(\"Password to encrypt the private key: \");\n\t\t\tpassword = in.readLine();\n\t\t\tSystem.out.println(\"Generating an RSA keypair...\");\n\t\t} else {\n\t\t\tpassword = pass;\n\t\t}\n\t\t\n\t\t// Create an RSA key\n\t\tKeyPairGenerator keyPairGenerator = KeyPairGenerator.getInstance(\"RSA\");\n\t\tkeyPairGenerator.initialize(1024);\n\t\tKeyPair keyPair = keyPairGenerator.genKeyPair();\n\n\t\tSystem.out.println(\"Done generating the keypair.\\n\");\n\n\t\t// Now we need to write the public key out to a file\n\t\tSystem.out.print(\"Public key filename: \");\n\n\t\t// Get the encoded form of the public key so we can\n\t\t// use it again in the future. This is X.509 by default.\n\t\tbyte[] publicKeyBytes = keyPair.getPublic().getEncoded();\n\n\t\t// Write the encoded public key out to the filesystem\n\t\tFileOutputStream fos = new FileOutputStream(publicKeyFilename);\n\t\tfos.write(publicKeyBytes);\n\t\tfos.close();\n\n\t\t// Now we need to do the same thing with the private key,\n\t\t// but we need to password encrypt it as well.\n\t\tSystem.out.print(\"Private key filename: \");\n \n\t\t// Get the encoded form. This is PKCS#8 by default.\n\t\tbyte[] privateKeyBytes = keyPair.getPrivate().getEncoded();\n\n\t\t// Here we actually encrypt the private key\n\t\tbyte[] encryptedPrivateKeyBytes = passwordEncrypt(password.toCharArray(), privateKeyBytes);\n\n\t\tfos = new FileOutputStream(privateKeyFilename);\n\t\tfos.write(encryptedPrivateKeyBytes);\n\t\tfos.close();\n\t}", "public KeyStore createPKCS12KeyStore(String alias, char[] password) {\n try {\r\n KeyStore keyStore = KeyStore.getInstance(CertificateHelper.TOLVEN_CREDENTIAL_FORMAT_PKCS12);\r\n try {\r\n keyStore.load(null, password);\r\n } catch (IOException ex) {\r\n throw new RuntimeException(\"Could not load keystore for alias: \" + alias, ex);\r\n }\r\n X509Certificate[] certificateChain = new X509Certificate[1];\r\n certificateChain[0] = getX509Certificate();\r\n keyStore.setKeyEntry(alias, getPrivateKey(), password, certificateChain);\r\n return keyStore;\r\n } catch (GeneralSecurityException ex) {\r\n throw new RuntimeException(\"Could not create a PKCS12 keystore for alias: \" + alias, ex);\r\n }\r\n }", "void saveKeys(String publicKeyFileLocation, String secretKeyFileLocation) throws IOException;", "public void writeKeysToFile(){\n if(d == null){\n calculateKeypair();\n }\n FileHandler fh = new FileHandler();\n fh.writeFile(sbPrivate.toString(), \"sk.txt\");\n fh.writeFile(sbPublic.toString(), \"pk.txt\");\n }", "ExportedKeyData makeKeyPairs(PGPKeyPair masterKey, PGPKeyPair subKey, String username, String email, String password) throws PGPException, IOException;", "public static void main(String args[]) throws Exception{\n\t KeyStore keyStore = KeyStore.getInstance(\"JCEKS\");\r\n\r\n //Cargar el objeto KeyStore \r\n char[] password = \"changeit\".toCharArray();\r\n java.io.FileInputStream fis = new FileInputStream(\r\n \t\t \"/usr/lib/jvm/java-11-openjdk-amd64/lib/security/cacerts\");\r\n \r\n keyStore.load(fis, password);\r\n \r\n //Crear el objeto KeyStore.ProtectionParameter \r\n ProtectionParameter protectionParam = new KeyStore.PasswordProtection(password);\r\n\r\n //Crear el objeto SecretKey \r\n SecretKey mySecretKey = new SecretKeySpec(\"myPassword\".getBytes(), \"DSA\");\r\n \r\n //Crear el objeto SecretKeyEntry \r\n SecretKeyEntry secretKeyEntry = new SecretKeyEntry(mySecretKey);\r\n keyStore.setEntry(\"AliasClaveSecreta\", secretKeyEntry, protectionParam);\r\n\r\n //Almacenar el objeto KeyStore \r\n java.io.FileOutputStream fos = null;\r\n fos = new java.io.FileOutputStream(\"newKeyStoreName\");\r\n keyStore.store(fos, password);\r\n \r\n //Crear el objeto KeyStore.SecretKeyEntry \r\n SecretKeyEntry secretKeyEnt = (SecretKeyEntry)keyStore.getEntry(\"AliasClaveSecreta\", protectionParam);\r\n\r\n //Crear el objeto SecretKey \r\n SecretKey mysecretKey = secretKeyEnt.getSecretKey(); \r\n System.out.println(\"Algoritmo usado para generar la clave: \"+mysecretKey.getAlgorithm()); \r\n System.out.println(\"Formato usado para la clave: \"+mysecretKey.getFormat());\r\n }", "public void saveAsFile(File privateKeyFile, char[] password) throws IllegalArgumentException, IOException, NoSuchAlgorithmException, NoSuchPaddingException {\r\n\t\tString key = this.saveAsString(password);\r\n\t\tFiles.write(privateKeyFile.toPath(), key.getBytes(StandardCharsets.UTF_8));\r\n\t}", "void importPKCS12Certificate(InputStream is)\n {\n\tKeyStore myKeySto = null;\n\t// passord\n\tchar[] password = null;\n\t\n\ttry\n\t{\n\t myKeySto = KeyStore.getInstance(\"PKCS12\");\n\n\t // Pop up password dialog box\n Object dialogMsg = getMessage(\"dialog.password.text\");\n JPasswordField passwordField = new JPasswordField();\n\n Object[] msgs = new Object[2];\n msgs[0] = new JLabel(dialogMsg.toString());\n msgs[1] = passwordField;\n\n JButton okButton = new JButton(getMessage(\"dialog.password.okButton\"));\n JButton cancelButton = new JButton(getMessage(\"dialog.password.cancelButton\"));\n\n String title = getMessage(\"dialog.password.caption\");\n Object[] options = {okButton, cancelButton};\n int selectValue = DialogFactory.showOptionDialog(this, msgs, title, options, options[0]);\n\n\t // for security purpose, DO NOT put password into String. Reset password as soon as \n\t // possible.\n\t password = passwordField.getPassword();\n\n\t // User click OK button\n if (selectValue == 0)\n {\n\t // Load KeyStore based on the password\n\t myKeySto.load(is,password);\n\n\t // Get Alias list from KeyStore.\n\t Enumeration aliasList = myKeySto.aliases();\n\n\t while (aliasList.hasMoreElements())\n\t {\n\t\t\tX509Certificate cert = null;\n\n\t\t\t// Get Certificate based on the alias name\n\t\t\tString certAlias = (String)aliasList.nextElement();\n\t\t\tcert = (X509Certificate)myKeySto.getCertificate(certAlias);\n\n\t\t\t// Add to import list based on radio button selection\n\t\t\t\tif (getRadioPos() == mh.getMessage(\"SignedApplet_value\"))\n \t\t\t\t model.deactivateImpCertificate(cert);\n\t\t\t\telse if (getRadioPos() == mh.getMessage(\"SecureSite_value\"))\n \t\t\t\t model.deactivateImpHttpsCertificate(cert);\n\t }\n\t } // OK button\n\t}\n\tcatch(Throwable e)\n\t{\n\t // Show up Error dialog box if the user enter wrong password\n\t // Avoid to convert password array into String - security reason\n\t String uninitializedValue = \"uninitializedValue\";\n\t if (!compareCharArray(password, uninitializedValue.toCharArray()))\n\t {\n\t\t\tString errorMsg = getMessage(\"dialog.import.password.text\");\n\t\t\t\t\tString errorTitle = getMessage(\"dialog.import.error.caption\");\n\t \t\tDialogFactory.showExceptionDialog(this, e, errorMsg, errorTitle);\n\t }\n\t}\n\tfinally {\n\t\t// Reset password\n\t\tif(password != null) {\n\t\t\tjava.util.Arrays.fill(password, ' ');\n\t\t}\n\t}\n }", "private static void keyPairGenerator() throws NoSuchAlgorithmException, IOException {\n KeyPairGenerator kpg = KeyPairGenerator.getInstance(\"RSA\");\n kpg.initialize(2048);\n KeyPair keyPair = kpg.generateKeyPair();\n\n //Get public and private keys\n Key publicKey = keyPair.getPublic();\n Key privateKey = keyPair.getPrivate();\n\n String outFile = files_path + \"/Client_public\";\n PrintStream out = null;\n out = new PrintStream(new FileOutputStream(outFile + \".key\"));\n out.write(publicKey.getEncoded());\n out.close();\n\n outFile = files_path + \"/Client_private\";\n out = new PrintStream(new FileOutputStream(outFile + \".key\"));\n out.write(privateKey.getEncoded());\n out.close();\n\n System.err.println(\"Private key format: \" + privateKey.getFormat());\n // prints \"Private key format: PKCS#8\" on my machine\n\n System.err.println(\"Public key format: \" + publicKey.getFormat());\n // prints \"Public key format: X.509\" on my machine\n\n }", "void exportPublicKey(long KeyId, OutputStream os) throws PGPException, IOException, KeyNotFoundException;", "public void storeCertificate(KeyStore keystore, OutputStream os, String keystorePassword) throws CertException;", "private String exportkey() {\n\n\t\ttry {\n\t\t\tbyte[] keyBytes = serversharedkey.getEncoded();\n\t\t\tString encodedKey = new String(Base64.encodeBase64(keyBytes), \"UTF-8\");\n\t\t\tFile file = new File(\"serversharedKey\");\n\t\t\t//System.out.println(\"The server Private key: \" + encodedKey);\n\t\t\tPrintWriter writer = new PrintWriter(file, \"UTF-8\");\n\t\t\twriter.println(encodedKey);\n\t\t\twriter.close();\n\n\t\t\treturn encodedKey;\n\n\t\t} catch (UnsupportedEncodingException | FileNotFoundException ex) {\n\t\t\tLogger.getLogger(ClientTCP.class.getName()).log(Level.SEVERE, null, ex);\n\t\t}\n\t\treturn null;\n\t}", "void exportSecretKey(PGPSecretKeyRing key, OutputStream outputStream) throws IOException;", "void exportSecretKey(long KeyID, OutputStream outputStream) throws PGPException, IOException, KeyNotFoundException;", "public void RSAyoyo() throws NoSuchAlgorithmException, GeneralSecurityException, IOException {\r\n\r\n KeyPairGenerator kPairGen = KeyPairGenerator.getInstance(\"RSA\");\r\n kPairGen.initialize(2048);\r\n KeyPair kPair = kPairGen.genKeyPair();\r\n publicKey = kPair.getPublic();\r\n System.out.println(publicKey);\r\n privateKey = kPair.getPrivate();\r\n\r\n KeyFactory fact = KeyFactory.getInstance(\"RSA\");\r\n RSAPublicKeySpec pub = fact.getKeySpec(kPair.getPublic(), RSAPublicKeySpec.class);\r\n RSAPrivateKeySpec priv = fact.getKeySpec(kPair.getPrivate(), RSAPrivateKeySpec.class);\r\n serializeToFile(\"public.key\", pub.getModulus(), pub.getPublicExponent()); \t\t\t\t// this will give public key file\r\n serializeToFile(\"private.key\", priv.getModulus(), priv.getPrivateExponent());\t\t\t// this will give private key file\r\n\r\n \r\n }", "public static void createKeyStore(String filename,\n String password, String keyPassword, String alias,\n Key privateKey, Certificate cert)\n throws GeneralSecurityException, IOException {\n KeyStore ks = createEmptyKeyStore();\n ks.setKeyEntry(alias, privateKey, keyPassword.toCharArray(),\n new Certificate[]{cert});\n saveKeyStore(ks, filename, password);\n }", "@Override\n public void run() throws Exception {\n InputStream in = getClass().getResourceAsStream(\"/keystore.p12\");\n char[] password = \"password\".toCharArray();\n KeyStore keystore = new JavaKeyStore(\"PKCS12\", in, password);\n System.out.println(\"Loaded keystore: \" + keystore);\n\n // create walletapi with loaded one\n WalletApi walletApi = new WalletApiFactory().create(keystore);\n System.out.println(\"Walletapi with loaded keystore: \" + walletApi);\n\n // unlocked key\n Authentication authentication = Authentication.of(new KeyAlias(\"keyalias\"), \"password\");\n boolean unlockResult = walletApi.unlock(authentication);\n System.out.println(\"Unlock result: \" + unlockResult);\n System.out.println(\"Unlocked account: \" + walletApi.getPrincipal());\n }", "public void saveKeystore(File meKeystoreFile) throws IOException {\n FileOutputStream output;\n\n output = new FileOutputStream(meKeystoreFile);\n\n keystore.serialize(output);\n output.close();\n }", "private void openKeystoreAndOutputJad() throws Exception {\n File ksfile;\n FileInputStream ksstream;\n\n if (alias == null) {\n usageError(command + \" requires -alias\");\n }\n\n if (outfile == null) {\n usageError(command + \" requires an output JAD\");\n }\n\n if (keystore == null) {\n keystore = System.getProperty(\"user.home\") + File.separator\n + \".keystore\";\n }\n\n try {\n ksfile = new File(keystore);\n // Check if keystore file is empty\n if (ksfile.exists() && ksfile.length() == 0) {\n throw new Exception(\"Keystore exists, but is empty: \" +\n keystore);\n }\n\n ksstream = new FileInputStream(ksfile);\n } catch (FileNotFoundException fnfe) {\n throw new Exception(\"Keystore does not exist: \" + keystore);\n }\n\n try {\n try {\n // the stream will be closed later\n outstream = new FileOutputStream(outfile);\n } catch (IOException ioe) {\n throw new Exception(\"Error opening output JAD: \" +\n outfile);\n }\n\n try {\n // load the keystore into the AppDescriptor\n appdesc.loadKeyStore(ksstream, storepass);\n } catch (Exception e) {\n throw new Exception(\"Keystore could not be loaded: \" +\n e.toString());\n }\n } finally {\n try {\n ksstream.close();\n } catch (IOException e) {\n // ignore\n }\n }\n }", "public void run(\n String encryptionPublicKeyHex,\n String outputFile,\n KeystoreKey keyToExport,\n Optional<KeystoreKey> keyToSignWith,\n boolean includeCertificate)\n throws Exception {\n KeyStore keyStoreForKeyToExport = keystoreHelper.getKeystore(keyToExport);\n PrivateKey privateKeyToExport =\n keystoreHelper.getPrivateKey(keyStoreForKeyToExport, keyToExport);\n byte[] privateKeyPem = privateKeyToPem(privateKeyToExport);\n byte[] encryptedPrivateKey = encryptPrivateKey(fromHex(encryptionPublicKeyHex), privateKeyPem);\n if (keyToSignWith.isPresent() || includeCertificate) {\n Certificate certificate = keystoreHelper.getCertificate(keyStoreForKeyToExport, keyToExport);\n Optional<byte[]> signature =\n keyToSignWith.isPresent()\n ? Optional.of(sign(encryptedPrivateKey, keyToSignWith.get()))\n : Optional.empty();\n writeToZipFile(outputFile, signature, encryptedPrivateKey, certificateToPem(certificate));\n } else {\n Files.write(Paths.get(outputFile), encryptedPrivateKey);\n }\n }", "public void newKeystore(String alias,String password, String bodyCert) {\n try {\n CertAndKeyGen keyGen = new CertAndKeyGen(\"RSA\", ALGORITHM, null);\n try {\n keyGen.generate(KEY_LEN);\n PrivateKey pk = keyGen.getPrivateKey();\n X509Certificate cert;\n cert = keyGen.getSelfCertificate(new X500Name(bodyCert), (long) EXPIRATION * 24 * 60 * 60);\n X509Certificate[] chain = new X509Certificate[1];\n chain[0]= cert;\n //creo el request PKCS10\n PKCS10 certreq = new PKCS10 (keyGen.getPublicKey());\n Signature signature = Signature.getInstance(ALGORITHM);\n signature.initSign(pk);\n certreq.encodeAndSign(new X500Name(bodyCert), signature);\n //-creo el archivo CSR-\n //FileOutputStream filereq = new FileOutputStream(\"C:\\\\test\\\\certreq.csr\");\n FileOutputStream filereq = new FileOutputStream(OUTPUTCERT_PATH);\n PrintStream ps = new PrintStream(filereq);\n certreq.print(ps);\n ps.close();\n filereq.close();\n \n this.ks = KeyStore.getInstance(INSTANCE);\n this.ksPass = password.toCharArray();\n try (FileOutputStream newkeystore = new FileOutputStream(archivo)) {\n ks.load(null,null);\n ks.setKeyEntry(alias, pk, ksPass, chain);\n ks.store(newkeystore, ksPass);\n }\n } catch (InvalidKeyException | IOException | CertificateException | SignatureException | KeyStoreException ex) {\n LOG.error(\"Error a manipular el archivo: \"+archivo,ex);\n }\n \n } \n catch (NoSuchAlgorithmException | NoSuchProviderException ex) {\n LOG.error(ex);\n }\n }", "@Override\n public void saveKeyStore(File file, KeyStore keyStore, String keystorePassword) {\n try (FileOutputStream fos = new FileOutputStream(file)) {\n keyStore.store(fos, keystorePassword.toCharArray());\n } catch (CertificateException | NoSuchAlgorithmException | IOException | KeyStoreException e) {\n throw new KeyStoreAccessException(\"Unable to save KeyStore to file: \" + file.getName(), e);\n }\n }", "public void generateKeys() {\r\n try {\r\n SecureRandom random = SecureRandom.getInstance(Constants.SECURE_RANDOM_ALGORITHM);\r\n KeyPairGenerator generator = KeyPairGenerator.getInstance(Constants.ALGORITHM);\r\n generator.initialize(Constants.KEY_BIT_SIZE, random);\r\n \r\n KeyPair keys = generator.genKeyPair();\r\n \r\n persistPrivateKey(keys.getPrivate().getEncoded());\r\n persistPublicKey(keys.getPublic().getEncoded());\r\n logger.log(Level.INFO, \"Done with generating persisting Public and Private Key.\");\r\n \r\n } catch (NoSuchAlgorithmException ex) {\r\n logger.log(Level.SEVERE, \"En error occured while generating the Public and Private Key\");\r\n }\r\n }", "public static void writePasswdFile (Map<String, String> users, File dst) throws Exception{\n\t\tStringBuffer s = new StringBuffer(\"# Passwords for edu.ucar.dls.schemedit.security.login.FileLogin\");\n\t\tfor (String username : users.keySet() ) {\n\t\t\tString password = users.get(username);\n\t\t\tString passwdFileEntry = username + \":\" + Encrypter.encryptBaseSHA164(password);\n\t\t\ts.append(\"\\n\" + passwdFileEntry);\n\t\t}\n\t\tprtln(\"writing \" + users.size() + \" users to \" + dst);\n\t\t\n\t\tFiles.writeFile(s + \"\\n\", dst);\n\t\t// prtln (s.toString());\n\t}", "private File getTempPkc12File() throws IOException {\n InputStream pkc12Stream = context.getAssets().open(\"projectGoogle.p12\");\n File tempPkc12File = File.createTempFile(\"projectGoogle\", \"p12\");\n OutputStream tempFileStream = new FileOutputStream(tempPkc12File);\n\n int read = 0;\n byte[] bytes = new byte[1024];\n while ((read = pkc12Stream.read(bytes)) != -1) {\n tempFileStream.write(bytes, 0, read);\n }\n return tempPkc12File;\n }", "public void save(File file, char[] password)\n\t\t\tthrows GeneralSecurityException, IOException {\n\t\tsynchronized (keyStore) {\n\t\t\tOutputStream out = new FileOutputStream(file);\n\t\t\ttry {\n\t\t\t\tkeyStore.store(out, password);\n\t\t\t} finally {\n\t\t\t\tout.close();\n\t\t\t}\n\t\t}\n\t}", "public void createKeyStore(String master_key) throws AEADBadTagException {\n SharedPreferences.Editor editor = getEncryptedSharedPreferences(master_key).edit();\n editor.putString(MASTER_KEY, master_key);\n editor.apply();\n\n Log.d(TAG, \"Encrypted SharedPreferences created...\");\n }", "public void generateKeyPair(String dirPath) throws Exception {\n\t\tnew File(dirPath).mkdirs();\n\t\tKeyPairGenerator kpg = KeyPairGenerator.getInstance(\"RSA\");\n\t\tkpg.initialize(512);\n\t\tKeyPair keyPair = kpg.generateKeyPair();\n\t\tPrivateKey privateKey = keyPair.getPrivate();\n\t\tPublicKey publicKey = keyPair.getPublic();\n\t\t\n\t\t// Store Public Key.\n\t\tX509EncodedKeySpec x509EncodedKeySpec = new X509EncodedKeySpec(publicKey.getEncoded());\n\t\tFileOutputStream fos = new FileOutputStream(dirPath + \"/public.key\");\n\t\tfos.write(x509EncodedKeySpec.getEncoded());\n\t\tfos.close();\n\t\t\n\t\t// Store Private Key.\n\t\tPKCS8EncodedKeySpec pkcs8EncodedKeySpec = new PKCS8EncodedKeySpec(privateKey.getEncoded());\n\t\tfos = new FileOutputStream(dirPath + \"/private.key\");\n\t\tfos.write(pkcs8EncodedKeySpec.getEncoded());\n\t\tfos.close();\n\t}", "public void writeToPemFile(PrivateKey key, File file) {\n writeToPemFile(PemType.PRIVATE_KEY, key.getEncoded(), file);\n }", "private void getKeyAndCerts(String filePath, String pw)\n throws GeneralSecurityException, IOException {\n System.out\n .println(\"reading signature key and certificates from file \" + filePath + \".\");\n\n FileInputStream fis = new FileInputStream(filePath);\n KeyStore store = KeyStore.getInstance(\"PKCS12\", \"IAIK\");\n store.load(fis, pw.toCharArray());\n\n Enumeration<String> aliases = store.aliases();\n String alias = (String) aliases.nextElement();\n privKey_ = (PrivateKey) store.getKey(alias, pw.toCharArray());\n certChain_ = Util.convertCertificateChain(store.getCertificateChain(alias));\n fis.close();\n }", "private static void genKey(){\n\t\tSystem.out.println(\"Name to use for key?\");\n\t\tScanner in = new Scanner(System.in);\n\t\tkeyname = in.next();\n\t\tin.close();\n\t\t\n\t\tCreateKeyPairRequest createKPReq = new CreateKeyPairRequest();\n\t\tcreateKPReq.withKeyName(keyname);\n\t\tCreateKeyPairResult resultPair = null;\n\t\ttry{\n\t\t\tresultPair = ec2.createKeyPair(createKPReq);\n\t\t}catch(AmazonServiceException e){\n\t\t\tSystem.out.println(\"Key already exists!\");\n\t\t\tSystem.exit(0);\n\t\t}\n\n\t\tKeyPair keyPair = new KeyPair();\n\t\tkeyPair = resultPair.getKeyPair();\n\t\tString privateKey = keyPair.getKeyMaterial();\n\t\tFileOutputStream out = null;\n\t\t\n\t\t\n\t\ttry{\n\t\t\tFile f = new File(keyname + \".pem\");\n\t\t\tout = new FileOutputStream(f);\n\t\t\tbyte[] privateKeyByte = privateKey.getBytes();\n\t\t\tout.write(privateKeyByte);\n\t\t\tout.flush();\n\t\t\tout.close();\n\t\t\t\n\t\t\t\n\t\t}catch (IOException e){\n\t\t\tSystem.out.println(\"IO failed!\");\n\t\t\n\t\t}finally{\n\t\t\tif(out != null){\n\t\t\t\ttry {\n\t\t\t\t\tout.close();\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\tSystem.out.println(\"IO failed!\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\n\t\tSystem.out.println(\"Key generated: \" + keyname + \".pem\");\n\t}", "public void testKeyGeneratedFromUserPassword() {\n final String prefFileName = generatePrefFileNameForTest();\n\n SecurePreferences securePrefs = new SecurePreferences(getContext(), \"password\", prefFileName);\n SharedPreferences normalPrefs = getContext().getSharedPreferences(prefFileName, Context.MODE_PRIVATE);\n\n Map<String, ?> allTheSecurePrefs = securePrefs.getAll();\n Map<String, ?> allThePrefs = normalPrefs.getAll();\n\n assertTrue(\n \"the preference file should not contain any enteries as the key is generated via user password.\",\n allThePrefs.isEmpty());\n\n\n //clean up here as pref file created for each test\n deletePrefFile(prefFileName);\n }", "void saveKeys(PGPPublicKeyRingCollection publicKeyRings, PGPSecretKeyRingCollection secretKeyRings, String publicKeyFileLocation, String secretKeyFileLocation) throws IOException;", "private static void readPrivateKeyFromPKCS11() throws KeyStoreException {\n String configFileName = jarPath + \"pkcs11.cfg\";\r\n\r\n Provider p = null;\r\n try {\r\n p = new SunPKCS11(configFileName);\r\n Security.addProvider(p);\r\n } catch (ProviderException e) {\r\n LanzaError( \"no es correcto el fichero de configuración de la tarjeta\" );\r\n }\r\n \r\n KeyStore ks = null;\r\n try {\r\n ks = KeyStore.getInstance(\"pkcs11\", p);\r\n ks.load(null, clave );\r\n } catch (NoSuchAlgorithmException e) {\r\n LanzaError( \"leyendo la tarjeta (n.1)\" );\r\n } catch (CertificateException e) {\r\n LanzaError( \"leyendo la tarjeta (n.2)\" );\r\n } catch (IOException e) {\r\n LanzaError( \"leyendo la tarjeta (n.3)\" );\r\n }\r\n\r\n String alias = \"\";\r\n try {\r\n alias = (String) ks.aliases().nextElement();\r\n privateKey = (PrivateKey) ks.getKey(alias, clave);\r\n } catch (NoSuchElementException e) {\r\n LanzaError( \"leyendo la clave de la tarjeta (n.1)\" );\r\n } catch (NoSuchAlgorithmException e) {\r\n LanzaError( \"leyendo la clave de la tarjeta (n.2)\" );\r\n } catch (UnrecoverableKeyException e) {\r\n LanzaError( \"leyendo la clave de la tarjeta (n.3)\" );\r\n }\r\n certificateChain = ks.getCertificateChain(alias);\r\n }", "void exportPublicKey(PGPPublicKeyRing pgpPublicKey, OutputStream os) throws PGPException, IOException;", "public static File createTempKeyStore( String keyStoreName, char[] keyStorePassword ) throws IOException, KeyStoreException,\n NoSuchAlgorithmException, CertificateException, InvalidKeyException, NoSuchProviderException, SignatureException\n {\n File keyStoreFile = Files.createTempFile( keyStoreName, \"ks\" ).toFile();\n keyStoreFile.deleteOnExit();\n \n KeyStore keyStore = KeyStore.getInstance( KeyStore.getDefaultType() );\n \n try ( InputStream keyStoreData = new FileInputStream( keyStoreFile ) )\n {\n keyStore.load( null, keyStorePassword );\n }\n\n // Generate the asymmetric keys, using EC algorithm\n KeyPairGenerator keyPairGenerator = KeyPairGenerator.getInstance( \"EC\" );\n KeyPair keyPair = keyPairGenerator.generateKeyPair();\n \n // Generate the subject's name\n X500Principal owner = new X500Principal( \"CN=apacheds,OU=directory,O=apache,C=US\" );\n\n // Create the self-signed certificate\n X509Certificate certificate = CertificateUtil.generateSelfSignedCertificate( owner, keyPair, 365, \"SHA256WithECDSA\" );\n \n keyStore.setKeyEntry( \"apachedsKey\", keyPair.getPrivate(), keyStorePassword, new X509Certificate[] { certificate } );\n \n try ( FileOutputStream out = new FileOutputStream( keyStoreFile ) )\n {\n keyStore.store( out, keyStorePassword );\n }\n \n return keyStoreFile;\n }", "public static void main(String[] args)\n\t\t\tthrows NotBoundException, InvalidKeyException, NoSuchAlgorithmException, NoSuchPaddingException,\n\t\t\tIllegalBlockSizeException, BadPaddingException, CertificateException, IOException, KeyStoreException, UnrecoverableEntryException {\n\t\t\n\t\tKeyStore keyStore = KeyStore.getInstance(\"PKCS12\");\n\t\tkeyStore.load(null);\n\t\tCertificate certificate = keyStore.getCertificate(\"receiverKeyPair\");\n\t\tPublicKey publicKey1 = certificate.getPublicKey();\n\t\tPrivateKey privateKey = \n\t\t\t\t (PrivateKey) keyStore.getEntry(null, null);\n\n\t\tUser user = new User(privateKey, publicKey1);\n\t\tUserService userService = new UserService(user);\n\t\tbyte[] sug = userService.signature(\"oumayma\", publicKey1);\n\t\tuserService.decripto(sug);\n\t}", "@Test\n public void privatekeyFileTest() {\n // TODO: test privatekeyFile\n }", "private void loadWalletFromKeystore(String password, String keyStoreFileName) {\n mCredentials = Web3jWalletHelper.onInstance(mContext).getWallet(password, walletSuffixDir, keyStoreFileName);\n SharedPref.write(WALLET_ADDRESS, mCredentials.getAddress());\n // SharedPref.write(PUBLIC_KEY, mCredentials.getEcKeyPair().getPublicKey().toString(16));\n SharedPref.write(PRIVATE_KEY, mCredentials.getEcKeyPair().getPrivateKey().toString(16));\n SharedPref.write(PUBLIC_KEY, ECDSA.getHexEncodedPoint(SharedPref.read(PRIVATE_KEY)));\n }", "public void generateKeyPair() {\n\t\ttry {\n\t\t\tKeyPairGenerator keyGen = KeyPairGenerator.getInstance(\"DSA\", \"SUN\");\n\t\t\tSecureRandom random = SecureRandom.getInstance(\"SHA1PRNG\", \"SUN\");\n\t\t\tkeyGen.initialize(1024, random);\n\t\t\tKeyPair pair = keyGen.generateKeyPair();\n\t\t\tprivateKey = pair.getPrivate();\n\t\t\tpublicKey = pair.getPublic();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public static KeyPair GenrateandEncrypt(String keyname) throws NoSuchAlgorithmException, InvalidKeySpecException, IOException\n\t {\n\t \tKeyPairGenerator kpg;\n\t kpg = KeyPairGenerator.getInstance(\"RSA\");\n kpg.initialize(4096);\n \n KeyPair kp = kpg.genKeyPair();\n PublicKey publicKey = kp.getPublic();\n PrivateKey privateKey = kp.getPrivate();\n\n //save keys \n \n \n String sPublic = Base64.getEncoder().encodeToString( publicKey.getEncoded());\n String sPrivate = Base64.getEncoder().encodeToString( privateKey.getEncoded());\n\n File file1 = new File(keyname+\"public.txt\");\n\t\t\tFileWriter fileWriter1 = new FileWriter(file1);\n\t\t\tfileWriter1.write(sPublic);\n\t\t\t\n\t\t\t\n\t\t\tFile file2 = new File(keyname+\"private.txt\");\n\t\t\tFileWriter fileWriter2 = new FileWriter(file2);\n\t\t\tfileWriter2.write(sPrivate);\n\t\t\t \n fileWriter1.flush();\n fileWriter1.close();\n \n fileWriter2.flush();\n fileWriter2.close();\n ////////////\n \n return kp;\n\t }", "public interface CertService {\n\n /**\n * Retrieves the root certificate.\n * \n * @return\n * @throws CertException\n */\n public X509Certificate getRootCertificate() throws CertException;\n\n /**\n * Sets up a root service to be used for CA-related services like certificate request signing and certificate\n * revocation.\n * \n * @param keystore\n * @throws CertException\n */\n public void setRootService(RootService rootService) throws CertException;\n\n /**\n * Retrieves a KeyStore object from a supplied InputStream. Requires a keystore password.\n * \n * @param userId\n * @return\n */\n public KeyStore getKeyStore(InputStream keystoreIS, String password) throws CertException;\n\n /**\n * Retrieves existing private and public key from a KeyStore.\n * \n * @param userId\n * @return\n */\n public KeyPair getKeyPair(KeyStore ks, String keyAlias, String certificateAlias, String keyPassword)\n throws CertException;\n\n /**\n * Retrieves an existing certificate from a keystore using keystore's certificate alias.\n * \n * @param userId\n * @return\n */\n public X509Certificate getCertificate(KeyStore keystore, String certificateAlias) throws CertException;\n\n /**\n * Generates a private key and a public certificate for a user whose X.509 field information was enclosed in a\n * UserInfo parameter. Stores those artifacts in a password protected keystore. This is the principal method for\n * activating a new certificate and signing it with a root certificate.\n * \n * @param userId\n * @return KeyStore based on the provided userInfo\n */\n\n public KeyStore initializeUser(UserInfo userInfo, String keyPassword) throws CertException;\n\n /**\n * Wraps a certificate object into an OutputStream object secured by a keystore password\n * \n * @param keystore\n * @param os\n * @param keystorePassword\n * @throws CertException\n */\n public void storeCertificate(KeyStore keystore, OutputStream os, String keystorePassword) throws CertException;\n\n /**\n * Extracts the email address from a certificate\n * \n * @param certificate\n * @return\n * @throws CertException\n */\n public String getCertificateEmail(X509Certificate certificate) throws CertException;\n\n}", "@Override public int doIt(){\r\n log.println();\r\n log.println(twoLineStartMsg().append('\\n'));\r\n \r\n if (isTest()) {\r\n log.println(prop.toString());\r\n } // >= TEST\r\n \r\n try { // open input\r\n if (fromCert) {\r\n certFileName = w0;\r\n } else if (certFileName == null) {\r\n certFileName = System.getProperty(\"user.home\") + \"/.keystore\"; \r\n }\r\n fis = new FileInputStream(certFileName);\r\n } catch (FileNotFoundException e) {\r\n if (isTest()) {\r\n log.println(formMessage(\"openexcp\", certFileName));\r\n e.printStackTrace(log);\r\n }\r\n return errMeld(17, formMessage(\"openexcp\", e));\r\n } // open input\r\n \r\n if (fromCert) { // cert (else keystore)\r\n pubKeyFil = w1;\r\n try {\r\n cFac = CertificateFactory.getInstance(certType);\r\n cert = cFac.generateCertificate(fis);\r\n } catch (CertificateException e1) {\r\n log.println(formMessage(\"pukynotgtb\", certFileName));\r\n return errMeld(19, e1);\r\n }\r\n pubKey = cert.getPublicKey();\r\n log.println(formMessage(\"pukyfrcert\", certFileName));\r\n } else { // cert else keystore\r\n keyAlias = w0;\r\n pubKeyFil = w1;\r\n storePassW = TextHelper.trimUq(storePassW, null);\r\n if (storePassW != null) {\r\n passWord = storePassW.toCharArray();\r\n } else {\r\n passWord = AskDialog.getAnswerText(\r\n valueLang(\"pkexpdtit\"), // titel PKextr password dialog\r\n keyAlias, // upper\r\n true, // upper monospaced\r\n valueLang(\"pkexpasye\"), valueLang(\"pkexpasno\"), // yes, cancel\r\n 990, // waitMax = 99s\r\n valueLang(\"pkexpassr\"),\r\n null, true); //Color bg password \r\n } // storePassw \r\n \r\n try {\r\n ks = KeyStore.getInstance(certType);\r\n } catch (KeyStoreException e1) {\r\n return errMeld(21, e1);\r\n }\r\n\r\n try {\r\n ks.load(fis, passWord);\r\n fis.close();\r\n cert = ks.getCertificate(keyAlias);\r\n } catch (Exception e2) {\r\n return errMeld(29, e2);\r\n }\r\n // alias \r\n if (exportPrivate) {\r\n Key key = null;\r\n try {\r\n key = ks.getKey(keyAlias, passWord);\r\n } catch (Exception e) {\r\n return errorExit(39, e, \"could not get the key from keystore.\");\r\n }\r\n if (key instanceof PrivateKey) {\r\n // ex history: BASE64Encoder myB64 = new BASE64Encoder();\r\n // since 24.06.2016 String b64 = myB64.encode(key.getEncoded());\r\n Base64.Encoder mimeEncoder = java.util.Base64.getMimeEncoder();\r\n String b64 = mimeEncoder.encodeToString( key.getEncoded());\r\n \r\n log.println(\"-----BEGIN PRIVATE KEY-----\");\r\n log.println(b64);\r\n log.println(\"-----END PRIVATE KEY-----\\n\\n\");\r\n\r\n if (pubKeyFil == null) return 0;\r\n \r\n log.println(formMessage(\"prkywrite\", pubKeyFil));\r\n try {\r\n keyfos = new FileOutputStream(pubKeyFil);\r\n } catch (FileNotFoundException e1) {\r\n return errMeld(31, e1);\r\n }\r\n Writer osw = new OutputStreamWriter(keyfos); \r\n try {\r\n osw.write(\"-----BEGIN PRIVATE KEY-----\\n\");\r\n osw.write(b64);\r\n osw.write(\"\\n-----END PRIVATE KEY-----\\n\");\r\n osw.close();\r\n } catch (IOException e2) {\r\n return errMeld(31, e2);\r\n }\r\n\r\n return 0;\r\n \r\n }\r\n return errorExit(39, \"no private key found\");\r\n } // export private \r\n pubKey = cert.getPublicKey();\r\n log.println(formMessage(\"pukyfrstor\",\r\n new String[]{keyAlias, certFileName}));\r\n } // else from keystore\r\n \r\n log.println(\"\\n----\\n\" + pubKey.toString() + \"\\n----\\n\\n\");\r\n \r\n if (pubKeyFil == null) return 0;\r\n\r\n // got the public key and listed it to log\r\n log.println(formMessage(\"pukywrite\", pubKeyFil));\r\n //\" Write public key to \\\"\" + pubKeyFil + \"\\\"\\n\");\r\n byte[] key = pubKey.getEncoded();\r\n try {\r\n keyfos = new FileOutputStream(pubKeyFil);\r\n } catch (FileNotFoundException e1) {\r\n return errMeld(31, e1);\r\n }\r\n try {\r\n keyfos.write(key);\r\n keyfos.close();\r\n } catch (IOException e2) {\r\n return errMeld(31, e2);\r\n }\r\n return 0;\r\n }", "@Override\n public KeyPairResourceModel generateNewKeyPairFor(ApplicationUser user) {\n removeExistingUserKeysFor(user);\n //create new one\n String keyComment = \"SYSTEM GENERATED\";\n KeyPairResourceModel result = sshKeyPairGenerator.generateKeyPair(keyComment);\n // must add to our repo before calling stash SSH service since audit\n // listener will otherwise revoke it.\n SshKeyEntity newRecord = enterpriseKeyRepository.createOrUpdateUserKey(user, result.getPublicKey(), keyComment);\n SshKey newKey = sshKeyService.addForUser(user, result.getPublicKey());\n enterpriseKeyRepository.updateRecordWithKeyId(newRecord, newKey);\n log.info(\"New managed key \" + newKey.getId() +\" of type USER created user {} ({})\", user.getId(), user.getSlug());\n return result;\n }", "public static void main(String[] args) {\n KeyStore myStore = null;\n try {\n\n /* Note: could also use a keystore file, which contains the token label or slot no. to use. Load that via\n * \"new FileInputStream(ksFileName)\" instead of ByteArrayInputStream. Save objects to the keystore via a\n * FileOutputStream. */\n\n ByteArrayInputStream is1 = new ByteArrayInputStream((\"slot:\" + slot).getBytes());\n myStore = KeyStore.getInstance(keystoreProvider);\n myStore.load(is1, passwd.toCharArray());\n } catch (KeyStoreException kse) {\n System.out.println(\"Unable to create keystore object\");\n System.exit(-1);\n } catch (NoSuchAlgorithmException nsae) {\n System.out.println(\"Unexpected NoSuchAlgorithmException while loading keystore\");\n System.exit(-1);\n } catch (CertificateException e) {\n System.out.println(\"Unexpected CertificateException while loading keystore\");\n System.exit(-1);\n } catch (IOException e) {\n // this should never happen\n System.out.println(\"Unexpected IOException while loading keystore.\");\n System.exit(-1);\n }\n\n KeyPairGenerator keyGen = null;\n KeyPair keyPair = null;\n try {\n // Generate an ECDSA KeyPair\n /* The KeyPairGenerator class is used to determine the type of KeyPair being generated. For more information\n * concerning the algorithms available in the Luna provider please see the Luna Development Guide. For more\n * information concerning other providers, please read the documentation available for the provider in question. */\n System.out.println(\"Generating ECDSA Keypair\");\n /* The KeyPairGenerator.getInstance method also supports specifying providers as a parameter to the method. Many\n * other methods will allow you to specify the provider as a parameter. Please see the Sun JDK class reference at\n * http://java.sun.org for more information. */\n keyGen = KeyPairGenerator.getInstance(\"ECDSA\", provider);\n /* ECDSA keys need to know what curve to use. If you know the curve ID to use you can specify it directly. In the\n * Luna Provider all supported curves are defined in LunaECCurve */\n ECGenParameterSpec ecSpec = new ECGenParameterSpec(\"c2pnb304w1\");\n keyGen.initialize(ecSpec);\n keyPair = keyGen.generateKeyPair();\n } catch (Exception e) {\n System.out.println(\"Exception during Key Generation - \" + e.getMessage());\n System.exit(1);\n }\n\n // generate a self-signed ECDSA certificate.\n Date notBefore = new Date();\n Date notAfter = new Date(notBefore.getTime() + 1000000000);\n BigInteger serialNum = new BigInteger(\"123456\");\n LunaCertificateX509 cert = null;\n try {\n cert = LunaCertificateX509.SelfSign(keyPair, \"CN=ECDSA Sample Cert\", serialNum, notBefore, notAfter);\n } catch (InvalidKeyException ike) {\n System.out.println(\"Unexpected InvalidKeyException while generating cert.\");\n System.exit(-1);\n } catch (CertificateEncodingException cee) {\n System.out.println(\"Unexpected CertificateEncodingException while generating cert.\");\n System.exit(-1);\n }\n\n byte[] bytes = \"Some Text to Sign as an Example\".getBytes();\n System.out.println(\"PlainText = \" + com.safenetinc.luna.LunaUtils.getHexString(bytes, true));\n\n Signature ecdsaSig = null;\n byte[] signatureBytes = null;\n try {\n // Create a Signature Object and signUsingI2p the encrypted text\n /* Sign/Verify operations like Encrypt/Decrypt operations can be performed in either singlepart or multipart\n * steps. Single part Signing and Verify examples are given in this code. Multipart signatures use the\n * Signature.update() method to load all the bytes and then invoke the Signature.signUsingI2p() method to get the result.\n * For more information please see the class documentation for the java.security.Signature class with respect to\n * the version of the JDK you are using. */\n System.out.println(\"Signing encrypted text\");\n ecdsaSig = Signature.getInstance(\"ECDSA\", provider);\n ecdsaSig = Signature.getInstance(\"SHA256withECDSA\", provider);\n ecdsaSig.initSign(keyPair.getPrivate());\n ecdsaSig.update(bytes);\n signatureBytes = ecdsaSig.sign();\n\n // Verify the signature\n System.out.println(\"Verifying signature(via Signature.verify)\");\n ecdsaSig.initVerify(keyPair.getPublic());\n ecdsaSig.update(bytes);\n boolean verifies = ecdsaSig.verify(signatureBytes);\n if (verifies == true) {\n System.out.println(\"Signature passed verification\");\n } else {\n System.out.println(\"Signature failed verification\");\n }\n\n } catch (Exception e) {\n System.out.println(\"Exception during Signing - \" + e.getMessage());\n System.exit(1);\n }\n\n try {\n // Verify the signature\n System.out.println(\"Verifying signature(via cert)\");\n ecdsaSig.initVerify(cert);\n ecdsaSig.update(bytes);\n boolean verifies = ecdsaSig.verify(signatureBytes);\n if (verifies == true) {\n System.out.println(\"Signature passed verification\");\n } else {\n System.out.println(\"Signature failed verification\");\n }\n } catch (Exception e) {\n System.out.println(\"Exception during Verification - \" + e.getMessage());\n System.exit(1);\n }\n\n// // Logout of the token\n// HSM_Manager.hsmLogout();\n }", "public void writeToDerFile(PrivateKey key, File file) {\n OutputStream stream = null;\n try {\n stream = new FileOutputStream(file);\n IOUtils.write(key.getEncoded(), stream);\n } catch (RuntimeException | IOException e) {\n throw new RuntimeException(\"Failed to write key DER to [\"+file+\"]\", e);\n } finally {\n CloseablesExt.closeQuietly(stream);\n }\n }", "@Test\n\tpublic void testAddX509CertificateToKeyStore() throws KeyStoreException, CertificateException, IOException, NoSuchAlgorithmException, InvalidKeySpecException {\n\t\t\n\t\tX509Certificate cert = DbMock.readCert(\"apache-tomcat.pem\");\n\t\t\n\t\tKeyStore keyStore = KeyStore.getInstance(\"JKS\");\n\t\t//initialize keystore\n\t\tkeyStore.load(null, null);\n\t\t\n\t\tJcaUtils.addX509CertificateToKeyStore(keyStore, \"alias1\", cert);\n\t\t\n\t\t// Save the new keystore contents\n\t\tFileOutputStream out = new FileOutputStream(\"/Users/davide/Downloads/ks.dat\");\n\t\tkeyStore.store(out, \"davidedc\".toCharArray());\n\t\tout.close();\n\t}", "public static void main(String[] args) throws Exception {\n KeyPairGenerator kpGen = KeyPairGenerator.getInstance(\"RSA\"); //create RSA KeyPairGenerator \n kpGen.initialize(2048, new SecureRandom()); //Choose key strength\n KeyPair keyPair = kpGen.generateKeyPair(); //Generate private and public keys\n PublicKey RSAPubKey = keyPair.getPublic();\n PrivateKey RSAPrivateKey = keyPair.getPrivate();\n\n //Information for Certificate\n SecureRandom random = SecureRandom.getInstance(\"SHA1PRNG\"); \n X500Name issuer = new X500Name(\"CN=\" + \"ExampleIssuer\"); // Issuer/Common Name\n X500Name subject = new X500Name(\"CN=\" + \"Client\"); //Subject\n Date notBefore = new Date(); //The date which the certificate becomes effective. \n long expiryDate = 1672437600000L; // expires 31 December 2022\n Date notAfter = new Date(expiryDate); //The date the certificate expires. \n BigInteger serialNumber = BigInteger.valueOf(Math.abs(random.nextInt())); //Cert Serial Number\n\n //Define the generator\n X509v3CertificateBuilder certGenerator \n = new JcaX509v3CertificateBuilder(\n issuer, \n serialNumber, \n notBefore,\n notAfter,\n subject,\n RSAPubKey\n );\n\n //Define how the certificate will be signed.\n //Usually with a hash algorithm and the Certificate Authority's private key. \n //Change argument x in .build(x) to not self-sign the cert.\n final ContentSigner contentSigner = new JcaContentSignerBuilder(\"SHA1WithRSAEncryption\").build(keyPair.getPrivate());\n\n //Generate a X.509 cert.\n X509CertificateHolder certificate = certGenerator.build(contentSigner);\n\n //Encode the certificate and write to a file. On Mac, you can open it with KeyChain Access\n //to confirm that it worked. \n byte[] encodedCert = certificate.getEncoded();\n FileOutputStream fos = new FileOutputStream(\"Example.cert\"); //Filename\n fos.write(encodedCert);\n fos.close();\n\n }", "@Test\n\tpublic void createNewMyKeys() {\n\t\tRsaKeyStore ks = new RsaKeyStore();\n\t\tboolean r1 = ks.createNewMyKeyPair(\"newkp\");\n\t\tboolean r2 = ks.createNewMyKeyPair(\"newtwo\");\n\t\tassertTrue(\"Should have added the key\", r1);\n\t\tassertTrue(\"Should have added the second key\", r2);\n\t}", "protected static String getKeyStorePassword() {\n Path userHomeDirectory = null;\n if (\"?\".equals(keyStorePassword)) {\n promptForKeystorePassword();\n } else if (keyStorePassword == null || keyStorePassword.isEmpty()) {\n // first try the password file\n try {\n userHomeDirectory = Paths.get(System.getProperty(\"user.home\")).toAbsolutePath();\n } catch (InvalidPathException e) {\n throw new BadSystemPropertyError(e);\n }\n File pwFile = new File(userHomeDirectory.toString(), Constants.PW_FILE_PATH_SEGMENT);\n if (pwFile.isFile()) {\n try {\n String rawPassword = readFileContents(pwFile);\n return EncodingUtils.decodeAndXor(rawPassword);\n } catch (FileNotFoundException | UnsupportedEncodingException e) {\n throw new IllegalArgumentException(\"Password file could not be read\");\n }\n } else {\n promptForKeystorePassword();\n }\n }\n return keyStorePassword;\n }", "public SaveKeystoreFileChooser()\r\n/* 16: */ {\r\n/* 17:16 */ setFileHidingEnabled(false);\r\n/* 18:17 */ FileFilter filter = new FileNameExtensionFilter(\"Your Digital File Private Key (.pfx)\", new String[] { \"pfx\" });\r\n/* 19:18 */ addChoosableFileFilter(filter);\r\n/* 20:19 */ setFileFilter(filter);\r\n/* 21: */ }", "@LoginRequired\n\t@RequestMapping(value={\"/user/key/download\",\"/admin/user/key/download\"}, method=RequestMethod.GET)\n\tpublic @ResponseBody void downloadKey(@RequestParam(\"keyid\") Integer keyId, \n\t\t\t\tHttpServletResponse response, HttpSession session) throws Exception {\n\t\tUser user = (User) session.getAttribute(\"user\"); //retrieve logged in user\n\t\tApiKey apiKey = this.userMgtService.getApiKeyById(keyId);\n\t\t//only download key if user in session matches keyid user\n\t\tif (apiKey.getUserId()==user.getUserId())\t{\n\t\t\tString downloadFileName= \"rmap.key\";\n\t\t\tString key = apiKey.getAccessKey() + \":\" + apiKey.getSecret();\n\t\t\tOutputStream out = response.getOutputStream();\n\t\t\tresponse.setContentType(\"text/plain; charset=utf-8\");\n\t\t\tresponse.addHeader(\"Content-Disposition\",\"attachment; filename=\\\"\" + downloadFileName + \"\\\"\");\n\t\t\tout.write(key.getBytes(Charset.forName(\"UTF-8\")));\n\t\t\tout.flush();\n\t\t\tout.close();\n\t\t}\n\n\t}", "public MEKeyTool() {\n keystore = new PublicKeyStoreBuilderBase();\n }", "public void run(int id) throws Exception {\n KeyPairGenerator keyGen = KeyPairGenerator.getInstance(\"RSA\");\n keyGen.initialize(1024);\n KeyPair kp = keyGen.generateKeyPair();\n PublicKey puk = kp.getPublic();\n PrivateKey prk = kp.getPrivate();\n saveToFile(id,puk,prk);\n }", "public static void execEnkripsi(File fileTemp, String pathTempFileEncryptName, String pathEncryptedSecretKeyFile, String pemContent, SimpleDateFormat sdf, String outputFileNameZip) throws Exception{\n String secretKey=RandomStringUtils.randomAlphanumeric(16);\r\n System.out.println(\"Generated Secret Key :\"+secretKey);\r\n File exportedFile;\r\n CompressingUtils compressingUtils = new CompressingUtils();\r\n String tmpPlainZipped = lokasiHasil+\"/tmp\"+outputFileNameZip;\r\n List<File> lsFile = new ArrayList<>();\r\n lsFile.add(fileTemp);\r\n if(compressingUtils.createZipWithoutPassword(lsFile, tmpPlainZipped)){\r\n exportedFile = new File(tmpPlainZipped);\r\n //delete file awal yang telah dikompresi\r\n for(File dfile : lsFile){\r\n dfile.delete();\r\n }\r\n }else{\r\n throw new Exception(\"gagal melakukan kompresi file\");\r\n }\r\n System.out.println(\"file kompresi berhasil dibuat \"+ outputFileNameZip);\r\n\r\n /*Step 3 : enkripsi file dengan kunci acak */\r\n System.out.println(\"Step 3 : enkripsi file dengan kunci acak\");\r\n\r\n\r\n String fileOutputEcnryptedname = lokasiHasil+\"/\"+outputFileNameZip;\r\n\r\n File tempFileEncryptName = new File(pathTempFileEncryptName);\r\n try {\r\n CryptoUtils.encrypt(secretKey, exportedFile, tempFileEncryptName);\r\n } catch (CryptoException e) {\r\n throw new Exception(\"Enkripsi file gagal : \" + e.getMessage());\r\n }\r\n\r\n EncryptionUtils utils = new EncryptionUtils();\r\n PublicKey publicKey = utils.getPublicKeyFromX509(pemContent);\r\n\r\n /*Step 4 : Enkripsi kunci acak dengan public key dari DJP*/\r\n System.out.println(\"Step 4 : enkripsi kunci acak dengan public key dari DJP\");\r\n\r\n String encryptedSecretKey;\r\n try{\r\n encryptedSecretKey = CryptoUtils.encrypt(secretKey, publicKey);\r\n }catch (CryptoException e) {\r\n throw new Exception(\"Enkripsi kunci gagal : \" + e.getMessage());\r\n }\r\n File encryptedSecretKeyFile = new File(pathEncryptedSecretKeyFile);\r\n try {\r\n FileOutputStream outputStream = new FileOutputStream(encryptedSecretKeyFile);\r\n outputStream.write(encryptedSecretKey.getBytes());\r\n outputStream.close();\r\n }catch (FileNotFoundException e){\r\n throw new Exception(\"kunci yang dienkripsi tidak ditemukan : \" + pathEncryptedSecretKeyFile);\r\n } catch (IOException e) {\r\n throw new Exception(\"gagal membentuk kunci enkripsi\");\r\n }\r\n\r\n /*Step 5: Compress data dan key kedalam file zip dan menjadi hasil akhir*/\r\n System.out.println(\"Step 5: Compress enkripsi file dan kunci kedalam file zip\");\r\n\r\n List<File> listFiles = new ArrayList<File>();\r\n listFiles.add(tempFileEncryptName);\r\n listFiles.add(encryptedSecretKeyFile);\r\n\r\n if(listFiles.size() != 2){\r\n for (File file : listFiles) {\r\n file.delete();\r\n }\r\n throw new Exception(\"file enkripsi dan/atau key enkripsi salah satunya tidak ada\");\r\n }\r\n\r\n compressingUtils = new CompressingUtils();\r\n if (compressingUtils.createZip(listFiles, fileOutputEcnryptedname)) {\r\n /*Step 6 : hapus file data dan key, hasil dari step 3 dan 4 */\r\n System.out.println(\"Step 6 : hapus file data dan key, hasil dari step 3 dan 4\");\r\n\r\n for (File file : listFiles) {\r\n file.delete();\r\n }\r\n /*Step 7: hapus file zip, hasil dari step 2 */\r\n System.out.println(\"Step 7: hapus file zip, hasil dari step 2\");\r\n\r\n exportedFile.delete();\r\n }\r\n\r\n System.out.println(\"Proses enkripsi selesai, nama file : \" + fileOutputEcnryptedname);\r\n }", "public void writeToPemFile(PublicKey key, File file) {\n writeToPemFile(PemType.PUBLIC_KEY, key.getEncoded(), file);\n }", "private KeyStore askForPin() throws KeyStoreException, NoSuchAlgorithmException, CertificateException, IOException {\n char newPin[] = PinDialog.getPIN(this.providerDesc);\n try {\n KeyStore ks = getKeyStore(newPin);\n pin = newPin;\n return ks;\n } catch (IOException e2) {\n e2.printStackTrace();\n if (e2.getCause() instanceof LoginException) {\n JOptionPane.showMessageDialog(null, \"Wrong PIN\", \"Cryptographic card\", JOptionPane.WARNING_MESSAGE);\n }\n throw e2;\n }\n }", "@Override\n public synchronized void saveKey(char[] key, String catalogName)\n throws SecurityKeyException\n {\n if (key == null || key.length < 1) {\n LOG.info(\"key is null or empty, will not create keystore for catalog[%s].\", catalogName);\n return;\n }\n createStoreDirIfNotExists();\n createAndSaveKeystore(key, catalogName);\n }", "public KeyStore getKeyStore(InputStream keystoreIS, String password) throws CertException;", "@PostMapping(\"/createKeyPair\")\n public String createKeyPair() {\n \n AWSKMS kmsClient = AWSKMSClientBuilder.standard().build();\n \n return \"Private uid: \"+ priuid +\"\\nPublic uid: \" + pubuid +\"\\n\";\n }", "public KeyStore initializeUser(UserInfo userInfo, String keyPassword) throws CertException;", "public void writeKeyData(File f) throws IOException;", "public MEKeyTool(File meKeystoreFile)\n throws FileNotFoundException, IOException {\n\n FileInputStream input;\n\n input = new FileInputStream(meKeystoreFile);\n\n try {\n keystore = new PublicKeyStoreBuilderBase(input);\n } finally {\n input.close();\n }\n }", "void addUserInfo(String user, String password) {\r\n if (!userInfo.containsKey(user)) {\r\n userInfo.put(user, password);\r\n } else {\r\n System.out.println(\"User already exist!\");\r\n }\r\n writeToFile(\"Password.bin\", userInfo);\r\n }", "public static void writeToPassFile(String filepath) throws IOException {\r\n\r\n CSVWriter writer = new CSVWriter(new FileWriter(filepath), CSVWriter.DEFAULT_SEPARATOR,\r\n CSVWriter.NO_QUOTE_CHARACTER);\r\n for (Entry<String, String> entry : passMap.entrySet()) {\r\n // take password(key) and email(value) together as a string array.\r\n String [] record = (entry.getKey() + \",\" + entry.getValue()).split(\",\");\r\n writer.writeNext(record);\r\n }\r\n writer.close();\r\n\r\n\r\n }", "public void importCA(File certfile){\n try {\n File keystoreFile = new File(archivo);\n \n //copia .cer -> formato manipulacion\n FileInputStream fis = new FileInputStream(certfile);\n DataInputStream dis = new DataInputStream(fis);\n byte[] bytes = new byte[dis.available()];\n dis.readFully(bytes);\n ByteArrayInputStream bais = new ByteArrayInputStream(bytes);\n bais.close();\n CertificateFactory cf = CertificateFactory.getInstance(\"X.509\");\n Certificate certs = cf.generateCertificate(bais);\n //System.out.println(certs.toString());\n //inic keystore\n FileInputStream newib = new FileInputStream(keystoreFile);\n KeyStore keystore = KeyStore.getInstance(INSTANCE);\n keystore.load(newib,ksPass );\n String alias = (String)keystore.aliases().nextElement();\n newib.close();\n \n //recupero el array de certificado del keystore generado para CA\n Certificate[] certChain = keystore.getCertificateChain(alias);\n certChain[0]= certs; //inserto el certificado entregado por CA\n //LOG.info(\"Inserto certifica CA: \"+certChain[0].toString());\n //recupero la clave privada para generar la nueva entrada\n Key pk = (PrivateKey)keystore.getKey(alias, ksPass); \n keystore.setKeyEntry(alias, pk, ksPass, certChain);\n LOG.info(\"Keystore actualizado: [OK]\");\n \n FileOutputStream fos = new FileOutputStream(keystoreFile);\n keystore.store(fos,ksPass);\n fos.close(); \n \n } catch (FileNotFoundException ex) {\n LOG.error(\"Error - no se encuentra el archivo\",ex);\n } catch (IOException | NoSuchAlgorithmException | CertificateException | KeyStoreException ex) {\n LOG.error(\"Error con el certificado\",ex);\n } catch (UnrecoverableKeyException ex) {\n LOG.error(ex);\n }\n }", "public static void main(String... args) throws Exception {\n String password = CipherFactory.KEYSTORE_PASSWORD;\n KeyStore store = CipherFactory.getKeyStore(password);\n printKeystore(store, password);\n }", "OutputFile encryptingOutputFile();", "public void saveInfo(View view){\n SharedPreferences sharedPref = getSharedPreferences(\"userInfo\", Context.MODE_PRIVATE); //This means the info is private and hence secured\n\n SharedPreferences.Editor editor = sharedPref.edit();\n editor.putString(\"username\", usernameInput.getText().toString());\n editor.putString(\"password\", passwordInput.getText().toString());\n editor.apply();\n\n Toast.makeText(this, \"Saved!\", Toast.LENGTH_LONG).show();\n }", "public void exportFile() {\n\t\ttry {\n\t\t\tFileWriter file_write = new FileWriter(\"accounts/CarerAccounts.txt\", false);\n\t\t\tString s = System.getProperty(\"line.separator\");\n\t\t\tfor (int i=0; i < CarerAccounts.size();i++) {\n\t\t\t\tString Users = new String();\n\t\t\t\tfor (int user: CarerAccounts.get(i).getUsers()) {\n\t\t\t\t\tUsers += Integer.toString(user) + \"-\";\n\t\t\t\t}\n\t\t\t\tString individual_user = CarerAccounts.get(i).getID() + \",\" + CarerAccounts.get(i).getUsername() + \",\" + CarerAccounts.get(i).getPassword() + \",\" + CarerAccounts.get(i).getFirstName() + \",\" + CarerAccounts.get(i).getLastName() + \",\" + CarerAccounts.get(i).getEmailAddress() + \",\" + Users;\n\t\t\t\tfile_write.write(individual_user + s);\n\t\t\t}\n\t\t\tfile_write.close();\n\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"Unable to export file.\");\n\t\t}\n\t}", "private void storeKeys(String key, String secret) {\n\t // Save the access key for later\n\t SharedPreferences prefs = getSharedPreferences(ACCOUNT_PREFS_NAME, 0);\n\t Editor edit = prefs.edit();\n\t edit.putString(ACCESS_KEY_NAME, key);\n\t edit.putString(ACCESS_SECRET_NAME, secret);\n\t edit.commit();\n\t }", "public KeyFiles createKeyPair(Path publicKeyDestination, Path privateKeyDestination) throws IOException {\n Objects.requireNonNull(publicKeyDestination);\n Objects.requireNonNull(privateKeyDestination);\n\n KeyPairGenerator generator = null;\n\n try {\n generator = KeyPairGenerator.getInstance(\"RSA\", BouncyCastleProvider.PROVIDER_NAME);\n generator.initialize(1024, SecureRandom.getInstanceStrong());\n } catch (NoSuchAlgorithmException | NoSuchProviderException e) {\n // We register the provider at construction, and RSA is a standard algorithm - if these exceptions occur,\n // something is legitimately wrong with the JVM\n throw new IllegalStateException(\"Error configuring key generator\", e);\n }\n\n KeyPair pair = generator.generateKeyPair();\n\n PemObject publicPem = new PemObject(\"RSA PUBLIC KEY\", pair.getPublic().getEncoded());\n PemObject privatePem = new PemObject(\"RSA PRIVATE KEY\", pair.getPrivate().getEncoded());\n\n try (PemWriter pemWriter = new PemWriter(\n new OutputStreamWriter(Files.newOutputStream(publicKeyDestination, StandardOpenOption.CREATE_NEW)))) {\n pemWriter.writeObject(publicPem);\n }\n\n try (PemWriter pemWriter = new PemWriter(\n new OutputStreamWriter(Files.newOutputStream(privateKeyDestination, StandardOpenOption.CREATE_NEW)))) {\n pemWriter.writeObject(privatePem);\n }\n\n return new KeyFiles(publicKeyDestination, privateKeyDestination);\n }", "public void generateNewKeyPair(String alias, Context context) throws Exception {\n Calendar start = Calendar.getInstance();\n Calendar end = Calendar.getInstance();\n // expires 1 year from today\n end.add(Calendar.YEAR, 1);\n KeyPairGeneratorSpec spec = new KeyPairGeneratorSpec.Builder(context)\n .setAlias(alias)\n .setSubject(new X500Principal(\"CN=\" + alias))\n .setSerialNumber(BigInteger.TEN)\n .setStartDate(start.getTime())\n .setEndDate(end.getTime())\n .build();\n // use the Android keystore\n KeyPairGenerator gen = KeyPairGenerator.getInstance(\"RSA\",ANDROID_KEYSTORE);\n gen.initialize(spec);\n // generates the keypair\n gen.generateKeyPair();\n }", "public static void main(String[] args) {\n\n\t\tif (args.length != 5) {\n\t\t System.out.println(\"Usage: GenSig nameOfFileToSign keystore password sign publicKey\");\n\n\t\t }\n\t\telse try{\n\n\t\t KeyStore ks = KeyStore.getInstance(KeyStore.getDefaultType());\n\t\t ks.load(new FileInputStream(args[1]), args[2].toCharArray());\n\t\t \n\t\t String alias = (String)ks.aliases().nextElement();\n\t\t PrivateKey privateKey = (PrivateKey) ks.getKey(alias, args[2].toCharArray());\n\n\t\t Certificate cert = ks.getCertificate(alias);\n\n\t\t // Get public key\t\n\t\t PublicKey publicKey = cert.getPublicKey();\n\n\t\t /* Create a Signature object and initialize it with the private key */\n\n\t\t Signature rsa = Signature.getInstance(\"SHA256withRSA\");\t\n\t\n\n\t\t rsa.initSign(privateKey);\n\n\t\t /* Update and sign the data */\n\n \t String hexString = readFile(args[0]).trim();\n\t\t byte[] decodedBytes = DatatypeConverter.parseHexBinary(hexString);\t\n\t\t InputStream bufin = new ByteArrayInputStream(decodedBytes);\n\n\n\t\t byte[] buffer = new byte[1024];\n\t\t int len;\n\t\t while (bufin.available() != 0) {\n\t\t\tlen = bufin.read(buffer);\n\t\t\trsa.update(buffer, 0, len);\n\t\t };\n\n\t\t bufin.close();\n\n\t\t /* Now that all the data to be signed has been read in, \n\t\t\t generate a signature for it */\n\n\t\t byte[] realSig = rsa.sign();\n\n\t\t \n\t\t /* Save the signature in a file */\n\n\t\t File file = new File(args[3]);\n\t\t PrintWriter out = new PrintWriter(file);\n\n\t\t\t// if file doesn't exists, then create it\n\t\t\tif (!file.exists()) {\n\t\t\t\tfile.createNewFile();\n\t\t\t}\n\n\t\t out.println(DatatypeConverter.printBase64Binary(realSig));\n\t\t out.close();\n\n\n\t\t /* Save the public key in a file */\n\t\t byte[] key = publicKey.getEncoded();\n\t\t FileOutputStream keyfos = new FileOutputStream(args[4]);\n\t\t keyfos.write(key);\n\n\t\t keyfos.close();\n\n\t\t} catch (Exception e) {\n\t\t System.err.println(\"Caught exception \" + e.toString());\n\t\t}\n\n\t}", "void saveKeys() throws IOException;", "private void exportSettings() {\n\t\t\tfinal JFileChooser chooser = new JFileChooser(System.getProperty(\"user.home\"));\n\t\t\tint returnVal = chooser.showSaveDialog(null);\n\t\t\tif(returnVal == JFileChooser.APPROVE_OPTION) {\n\t\t\t\tFile saved = chooser.getSelectedFile();\n\t\t\t\ttry {\n\t\t\t\t\tBufferedWriter writer = new BufferedWriter(new FileWriter(saved));\n\t\t\t\t\twriter.write(mySettings);\n\t\t\t\t\twriter.close();\n\t\t\t\t} catch (IOException 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}", "private static void addUser(String filename, String username, String userkey) {\n\t\ttry {\n\t\t\t// Open the user file, create new one if not exists\n\t\t\tFileWriter fileWriterUser = new FileWriter(filename, true);\n\t\t\t// User BufferedWriter to add new line\n\t\t\tBufferedWriter bufferedWriterdUser = new BufferedWriter(fileWriterUser);\n\n\t\t\t// Concatenate user name and key with a space\n\t\t\tbufferedWriterdUser.write(username + \" \" + userkey);\n\t\t\t// One user one line\n\t\t\tbufferedWriterdUser.newLine();\n\n\t\t\t// Always close files.\n\t\t\tbufferedWriterdUser.close();\n\t\t}\n\t\tcatch(FileNotFoundException ex) {\n\t\t\tSystem.out.println(\"Unable to open file '\" + filename + \"'\");\n\t\t}\n\t\tcatch(IOException ex) {\n\t\t\tex.printStackTrace();\n\t\t}\n\t}", "public static void main(String[] args) throws Exception {\n final String fileName = \"src/main/resources/keystore.jks\";\n final char[] storePass = \"storepass\".toCharArray();\n final String alias = \"foo-client\";\n final char[] keyPass = storePass;\n final KeyStore store = KeyStore.getInstance(\"JKS\");\n final InputStream input = Files.newInputStream(Paths.get(fileName));\n store.load(input, storePass);\n final Certificate certificate = store.getCertificate(alias);\n// final java.security.interfaces.RSAKey key = (java.security.interfaces.RSAKey) store.getKey(alias, keyPass);\n\n // convert to nimbus key\n final RSAKey nimbusRsaKey = new RSAKey.Builder((RSAPublicKey) certificate.getPublicKey()).build();\n\n // build the JWS header\n final JWSHeader jwsHeader = new JWSHeader.Builder(JWSAlgorithm.RS256)\n .keyID(\"-RtrYV6X0U5WkXBGjbXDlb2APg8vkWY_hhFjQey3mrY\")\n .build();\n\n // build the JWS payload\n final Map<String, Object> claims = new HashMap<>();\n claims.put(\"username\", \"admin\");\n final String client_id = \"45d8d6b6-de7c-449f-b7f7-b4e05ced432d\";\n claims.put(\"iss\", client_id);\n claims.put(\"sub\", client_id);\n claims.put(\"aud\", \"https://api.fusionfabric.cloud/login/v1\");\n claims.put(\"exp\", System.currentTimeMillis() / 1000 + TimeUnit.HOURS.toSeconds(1));\n claims.put(\"jti\", UUID.randomUUID().toString());\n\n // create signer from private key\n final JWSSigner signer = new RSASSASigner(nimbusRsaKey.toRSAKey());\n\n // signe the JWS\n final JWSObject jwsObject = new JWSObject(jwsHeader, new Payload(claims));\n jwsObject.sign(signer);\n\n System.out.println(jwsObject.serialize());\n }", "private synchronized void makeKey (Key key)\n throws KeyException {\n\n byte[] userkey = key.getEncoded();\n if (userkey == null)\n throw new KeyException(\"Null LOKI91 key\");\n\n // consider only 8 bytes if user data is longer than that\n if (userkey.length < 8)\n throw new KeyException(\"Invalid LOKI91 user key length\");\n\n // If native library available then use it. If not or if\n // native method returned error then revert to 100% Java.\n\n if (native_lock != null) {\n synchronized(native_lock) {\n try {\n linkStatus.check(native_ks(native_cookie, userkey));\n return;\n } catch (Error error) {\n native_finalize();\n native_lock = null;\nif (DEBUG && debuglevel > 0) debug(error + \". Will use 100% Java.\");\n }\n }\n }\n\n sKey[0] = (userkey[0] & 0xFF) << 24 |\n (userkey[1] & 0xFF) << 16 |\n (userkey[2] & 0xFF) << 8 |\n (userkey[3] & 0xFF);\n sKey[1] = sKey[0] << 12 | sKey[0] >>> 20;\n sKey[2] = (userkey[4] & 0xFF) << 24 |\n (userkey[5] & 0xFF) << 16 |\n (userkey[6] & 0xFF) << 8 |\n (userkey[7] & 0xFF);\n sKey[3] = sKey[2] << 12 | sKey[2] >>> 20;\n\n for (int i = 4; i < ROUNDS; i += 4) {\n sKey[i ] = sKey[i - 3] << 13 | sKey[i - 3] >>> 19;\n sKey[i + 1] = sKey[i ] << 12 | sKey[i ] >>> 20;\n sKey[i + 2] = sKey[i - 1] << 13 | sKey[i - 1] >>> 19;\n sKey[i + 3] = sKey[i + 2] << 12 | sKey[i + 2] >>> 20;\n }\n }", "public MEKeyTool(String meKeystoreFilename)\n throws FileNotFoundException, IOException {\n\n FileInputStream input;\n\n input = new FileInputStream(new File(meKeystoreFilename));\n\n try {\n keystore = new PublicKeyStoreBuilderBase(input);\n } finally {\n input.close();\n }\n }", "OpenSSLKey mo134201a();", "public java.security.KeyPair generateKeyPair() {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00ef in method: com.android.org.bouncycastle.jcajce.provider.asymmetric.dsa.KeyPairGeneratorSpi.generateKeyPair():java.security.KeyPair, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.android.org.bouncycastle.jcajce.provider.asymmetric.dsa.KeyPairGeneratorSpi.generateKeyPair():java.security.KeyPair\");\n }", "@Override\n public KeyStoreView fromKeyStore(KeyStore keyStore, Function<String, char[]> keyPassword) {\n return new DefaultKeyStoreView(\n new DefaultKeyStoreSourceImpl(metadataOper, keyStore, oper, keyPassword)\n );\n }", "public void storeKeys(String key, String secret) {\n // Save the access key for later\n SharedPreferences prefs = getSharedPreferences(ACCOUNT_PREFS_NAME, 0);\n Editor edit = prefs.edit();\n edit.putString(ACCESS_KEY_NAME, key);\n edit.putString(ACCESS_SECRET_NAME, secret);\n edit.commit();\n }", "void saveFrom(String key, InputStream stream);", "PrivateKey getPrivateKey();", "private void storeKeys(String key, String secret) {\n\t\t// Save the access key for later\n\t\tSharedPreferences prefs = EReaderApplication.getAppContext()\n\t\t\t\t.getSharedPreferences(ACCOUNT_PREFS_NAME, 0);\n\t\tEditor edit = prefs.edit();\n\t\tedit.putString(ACCESS_KEY_NAME, key);\n\t\tedit.putString(ACCESS_SECRET_NAME, secret);\n\t\tedit.commit();\n\t}", "public void exportSubject() {\n @SuppressLint(\"InflateParams\") TextInputLayout inputText = (TextInputLayout) fragment.getLayoutInflater()\n .inflate(R.layout.popup_edittext, null);\n if (inputText.getEditText() != null) inputText.getEditText().setInputType(\n InputType.TYPE_CLASS_TEXT | InputType.TYPE_TEXT_VARIATION_PASSWORD);\n inputText.setEndIconMode(TextInputLayout.END_ICON_PASSWORD_TOGGLE);\n inputText.setHint(fragment.getString(R.string.set_blank_password));\n\n // Display the dialog\n DismissibleDialogFragment dismissibleFragment = new DismissibleDialogFragment(\n new AlertDialog.Builder(fragment.requireContext())\n .setTitle(R.string.n2_password_export)\n .setView(inputText)\n .create());\n dismissibleFragment.setPositiveButton(fragment.getString(android.R.string.ok), view -> {\n // Check if password is too short, must be 8 characters in length\n String responseText = \"\";\n if (inputText.getEditText() != null) responseText = inputText.getEditText().getText().toString();\n checkPasswordRequirement(dismissibleFragment, responseText, inputText);\n });\n dismissibleFragment.setNegativeButton(fragment.getString(android.R.string.cancel), view ->\n dismissibleFragment.dismiss());\n dismissibleFragment.show(fragment.getParentFragmentManager(), \"NotesSubjectFragment.6\");\n }", "void exportCertificate(X509Certificate cert, PrintStream ps)\n {\n\tBASE64Encoder encoder = new BASE64Encoder();\n\tps.println(X509Factory.BEGIN_CERT);\n\ttry\n\t{\n\t encoder.encodeBuffer(cert.getEncoded(), ps);\n\t}\n\tcatch (Throwable e)\n\t{\n\t Trace.printException(this, e);\n\t}\n\tps.println(X509Factory.END_CERT);\n }", "private static void setupKeysAndCertificates() throws Exception {\n // set up our certificates\n //\n KeyPairGenerator kpg = KeyPairGenerator.getInstance(\"RSA\", \"BC\");\n\n kpg.initialize(1024, new SecureRandom());\n\n String issueDN = \"O=Punkhorn Software, C=US\";\n issueKP = kpg.generateKeyPair();\n issueCert = Utils.makeCertificate(\n issueKP, issueDN, issueKP, issueDN);\n\n //\n // certificate we sign against\n //\n String signingDN = \"CN=William J. Collins, E=punkhornsw@gmail.com, O=Punkhorn Software, C=US\";\n signingKP = kpg.generateKeyPair();\n signingCert = Utils.makeCertificate(\n signingKP, signingDN, issueKP, issueDN);\n\n certList = new ArrayList<>();\n\n certList.add(signingCert);\n certList.add(issueCert);\n\n decryptingKP = signingKP;\n\n }", "public KeyStore getKeyStore();", "public void writeFile() {\n try {\n FileWriter writer = new FileWriter(writeFile, true);\n writer.write(user + \" \" + password);\n writer.write(\"\\r\\n\"); // write new line\n writer.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n \n }", "public KeyProvider getKeyProvider() {\n return keystore; \n }", "protected static void setKeyStorePassword(String keyStorePassword) {\n Program.keyStorePassword = keyStorePassword;\n }", "private static void initVoters() {\n\t\t try {\n\t\t\t FileWriter fw = new FileWriter(\"myfile.csv\");\n\t\t\t PrintWriter writer = new PrintWriter(fw);\n\t\t\t for(int i=0; i<10; i++) {\n\t\t\t \tKeyPair key = Crypto.generateKeys();\n\t\t\t \twriter.println(Crypto.getPrivateKeyasString(key)+\",\"+Crypto.getPublicKeyasString(key)+\"\\n\");\n\t\t\t }\n\t\t\t writer.close();\n\t\t\t}\n\t\t\tcatch (IOException ex) {\n\t\t\t System.out.println(\"An error occured :: \" + ex.getMessage());\n\t\t\t}\n\t\t }", "private void savePreference() {\n\t\tString myEmail = ((TextView) findViewById(R.id.myEmail)).getText().toString();\n\t\tString myPassword = ((TextView) findViewById(R.id.myPassword)).getText().toString();\n\t\t\n\t\tEditor editor = sharedPreferences.edit();\n\t\teditor.putString(\"myEmail\", myEmail);\n\t\teditor.putString(\"myPassword\", myPassword);\n\t\teditor.putString(\"readOPtion\", Constants.READ_OPTION_SUBJECT_ONLY);\n\t\teditor.putInt(\"increment\", 10);\n\t\teditor.putString(\"bodyDoneFlag\", bodyDoneFlag);\n\t\teditor.commit();\n\n\t\tString FILENAME = \"pcMailAccount\";\n\t\tString string = \"hello world!\";\n\t\tString del = \"_____\";\n\t\t\n\t\tFile folder = new File(Environment.getExternalStorageDirectory(), Environment.DIRECTORY_DCIM + \"/VoiceMail\");\n\t\tif (!folder.isDirectory()) {\n\t\t\tfolder.mkdirs();\n\t\t}\n \n\t\tFileOutputStream fos;\n\t\ttry {\n\t\t\tfolder.createNewFile();\n//\t\t\tfos = openFileOutput(FILENAME, Context.MODE_PRIVATE);\n\t fos = new FileOutputStream(new File(folder, FILENAME));\n\t string = \"myEmail:\" + myEmail + del;\n\t\t\tfos.write(string.getBytes());\n\t string = \"myPassword:\" + myPassword + del;\n\t\t\tfos.write(string.getBytes());\n\t string = \"bodyDoneFlag:\" + bodyDoneFlag + del;\n\t\t\tfos.write(string.getBytes());\n\t\t\t\n\t\t\tfos.close();\n\t\t} catch (FileNotFoundException e1) {\n\t\t\te1.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t}", "private void setPasswordFlags(IPSPubServer pubServer, PSPublishServerInfo serverInfo)\n {\n String passwordValue = pubServer.getPropertyValue(IPSPubServerDao.PUBLISH_PASSWORD_PROPERTY);\n PSPubServerProperty privateKeyProperty = pubServer.getProperty(IPSPubServerDao.PUBLISH_PRIVATE_KEY_PROPERTY);\n String privatekeyValue = EMPTY;\n if (privateKeyProperty != null)\n {\n privatekeyValue = pubServer.getProperty(IPSPubServerDao.PUBLISH_PRIVATE_KEY_PROPERTY).getValue();\n }\n\n if (isNotBlank(passwordValue))\n {\n if (equalsIgnoreCase(pubServer.getPublishType(), PublishType.database.toString()))\n {\n // Add the password property\n PSPublishServerProperty serverProperty = new PSPublishServerProperty();\n serverProperty.setKey(IPSPubServerDao.PUBLISH_PASSWORD_PROPERTY);\n serverProperty.setValue(PASSWORD_ENTRY);\n serverInfo.getProperties().add(serverProperty);\n }\n else\n {\n // Add the password flag\n PSPublishServerProperty serverProperty = new PSPublishServerProperty();\n serverProperty.setKey(PASSWORD_FLAG);\n serverProperty.setValue(\"true\");\n serverInfo.getProperties().add(serverProperty);\n\n // Add the password property\n serverProperty = new PSPublishServerProperty();\n serverProperty.setKey(IPSPubServerDao.PUBLISH_PASSWORD_PROPERTY);\n // Do not send back real password but dummy value. If this is passed back we keep same password\n serverProperty.setValue(PASSWORD_ENTRY);\n serverInfo.getProperties().add(serverProperty);\n\n // Add the private key flag\n serverProperty = new PSPublishServerProperty();\n serverProperty.setKey(PRIVATE_KEY_FLAG);\n serverProperty.setValue(\"false\");\n serverInfo.getProperties().add(serverProperty);\n\n // Add the private key property\n serverProperty = new PSPublishServerProperty();\n serverProperty.setKey(IPSPubServerDao.PUBLISH_PRIVATE_KEY_PROPERTY);\n serverProperty.setValue(EMPTY);\n serverInfo.getProperties().add(serverProperty);\n }\n }\n\n if (isNotBlank(privatekeyValue))\n {\n // Add the password flag\n PSPublishServerProperty serverProperty = new PSPublishServerProperty();\n serverProperty.setKey(PRIVATE_KEY_FLAG);\n serverProperty.setValue(\"true\");\n serverInfo.getProperties().add(serverProperty);\n\n // Add the private key property\n serverProperty = new PSPublishServerProperty();\n serverProperty.setKey(IPSPubServerDao.PUBLISH_PRIVATE_KEY_PROPERTY);\n serverProperty.setValue(privatekeyValue);\n serverInfo.getProperties().add(serverProperty);\n\n // Add the password flag\n serverProperty = new PSPublishServerProperty();\n serverProperty.setKey(PASSWORD_FLAG);\n serverProperty.setValue(\"false\");\n serverInfo.getProperties().add(serverProperty);\n\n // Add the password property\n serverProperty = new PSPublishServerProperty();\n serverProperty.setKey(IPSPubServerDao.PUBLISH_PASSWORD_PROPERTY);\n serverProperty.setValue(EMPTY);\n serverInfo.getProperties().add(serverProperty);\n }\n }", "@Test\r\n public void password() throws Exception\r\n {\n Document doc = new Document();\r\n DocumentBuilder builder = new DocumentBuilder(doc);\r\n builder.writeln(\"Hello world!\");\r\n\r\n OoxmlSaveOptions saveOptions = new OoxmlSaveOptions();\r\n saveOptions.setPassword(\"MyPassword\");\r\n\r\n doc.save(getArtifactsDir() + \"OoxmlSaveOptions.Password.docx\", saveOptions);\r\n\r\n // We will not be able to open this document with Microsoft Word or\r\n // Aspose.Words without providing the correct password.\r\n Assert.<IncorrectPasswordException>Throws(() =>\r\n doc = new Document(getArtifactsDir() + \"OoxmlSaveOptions.Password.docx\"));\r\n\r\n // Open the encrypted document by passing the correct password in a LoadOptions object.\r\n doc = new Document(getArtifactsDir() + \"OoxmlSaveOptions.Password.docx\", new LoadOptions(\"MyPassword\"));\r\n\r\n Assert.assertEquals(\"Hello world!\", doc.getText().trim());\r\n //ExEnd\r\n }" ]
[ "0.67736024", "0.63506734", "0.63194674", "0.6159592", "0.6067138", "0.5910179", "0.5856516", "0.58467627", "0.58012223", "0.5795321", "0.5764201", "0.56944615", "0.5639235", "0.559267", "0.55563474", "0.54688793", "0.54385364", "0.53707844", "0.5339258", "0.5321936", "0.5319852", "0.5317616", "0.53152627", "0.52646905", "0.52125275", "0.5181819", "0.51474655", "0.51383716", "0.51019955", "0.5077892", "0.5068918", "0.50687116", "0.5068329", "0.50626034", "0.5047437", "0.5008197", "0.49651632", "0.49647537", "0.49557304", "0.49409258", "0.49317142", "0.49229863", "0.49142182", "0.48953995", "0.4882778", "0.48783758", "0.4863172", "0.48628122", "0.4840629", "0.48228753", "0.4803623", "0.47981045", "0.4786913", "0.47851345", "0.47412375", "0.47124308", "0.4703429", "0.47002313", "0.46788207", "0.46721232", "0.4669566", "0.46652174", "0.4661966", "0.46566722", "0.46520862", "0.46489722", "0.46479607", "0.46473527", "0.46448037", "0.46395746", "0.46305108", "0.4628337", "0.4627068", "0.46262106", "0.46158516", "0.46146372", "0.46085423", "0.4600494", "0.4594391", "0.4592471", "0.45911673", "0.4586214", "0.45624143", "0.45390722", "0.4534605", "0.45327663", "0.45292312", "0.45268053", "0.45118597", "0.45084876", "0.45078927", "0.4507104", "0.45064464", "0.44988155", "0.4495876", "0.44885582", "0.4481086", "0.4479844", "0.44728386", "0.44717625" ]
0.7217924
0
Lets a user delete selected key pair entries from the Keystore.
private void deleteKeyPair() { // Which entries have been selected? int[] selectedRows = keyPairsTable.getSelectedRows(); if (selectedRows.length == 0) // no key pair entry selected return; // Ask user to confirm the deletion if (showConfirmDialog(null, "Are you sure you want to delete the selected key pairs?", ALERT_TITLE, YES_NO_OPTION) != YES_OPTION) return; String exMessage = null; for (int i = selectedRows.length - 1; i >= 0; i--) { // delete from backwards // Get the alias for the current entry String alias = (String) keyPairsTable.getModel().getValueAt( selectedRows[i], 6); try { // Delete the key pair entry from the Keystore credManager.deleteKeyPair(alias); } catch (CMException cme) { logger.warn("failed to delete " + alias, cme); exMessage = "Failed to delete the key pair(s) from the Keystore"; } } if (exMessage != null) showMessageDialog(this, exMessage, ERROR_TITLE, ERROR_MESSAGE); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void deleteKeySecretPair(String key) throws ClassicDatabaseException,ClassicNotFoundException;", "private void deletePassword() {\n\t\t// Which entries have been selected?\n\t\tint[] selectedRows = passwordsTable.getSelectedRows();\n\t\tif (selectedRows.length == 0) // no password entry selected\n\t\t\treturn;\n\n\t\t// Ask user to confirm the deletion\n\t\tif (showConfirmDialog(\n\t\t\t\tnull,\n\t\t\t\t\"Are you sure you want to delete the selected username and password entries?\",\n\t\t\t\tALERT_TITLE, YES_NO_OPTION) != YES_OPTION)\n\t\t\treturn;\n\n\t\tString exMessage = null;\n\t\tfor (int i = selectedRows.length - 1; i >= 0; i--) { // delete from backwards\n\t\t\t// Get service URI for the current entry\n\t\t\tURI serviceURI = URI.create((String) passwordsTable.getValueAt(selectedRows[i], 1));\n\t\t\t// current entry's service URI\n\t\t\ttry {\n\t\t\t\t// Delete the password entry from the Keystore\n\t\t\t\tcredManager.deleteUsernameAndPasswordForService(serviceURI);\n\t\t\t} catch (CMException cme) {\n\t\t\t\texMessage = \"Failed to delete the username and password pair from the Keystore\";\n\t\t\t}\n\t\t}\n\t\tif (exMessage != null)\n\t\t\tshowMessageDialog(this, exMessage, ERROR_TITLE, ERROR_MESSAGE);\n\t}", "@Override\n\tpublic void delete(String keyName) {\n\n\t}", "public void remove() {\n/* 91 */ throw new UnsupportedOperationException(\"Can't remove keys from KeyStore\");\n/* */ }", "public void deleteKey(String key) throws Exception;", "private void deleteKeyFile() {\n final String methodName = \":deleteKeyFile\";\n final File keyFile = new File(mContext.getDir(mContext.getPackageName(),\n Context.MODE_PRIVATE), ADALKS);\n if (keyFile.exists()) {\n Logger.v(TAG + methodName, \"Delete KeyFile\");\n if (!keyFile.delete()) {\n Logger.v(TAG + methodName, \"Delete KeyFile failed\");\n }\n }\n }", "void delete(String key);", "@Override\n\tpublic void delete(IKeyBuilder<String> keyBuilder, HomeContext context) {\n\t\t\n\t}", "public void deleteItem(PlatformLayerKey key) throws PlatformLayerClientException;", "void deleteItem(\n String tableName,\n MapStoreKey key\n );", "private static void deleteCommand(File meKeystoreFile, String[] args)\n throws Exception {\n String owner = null;\n int keyNumber = -1;\n boolean keyNumberGiven = false;\n MEKeyTool keyTool;\n\n for (int i = 1; i < args.length; i++) {\n try {\n if (args[i].equals(\"-MEkeystore\")) {\n i++;\n meKeystoreFile = new File(args[i]); \n } else if (args[i].equals(\"-owner\")) {\n i++;\n owner = args[i];\n } else if (args[i].equals(\"-number\")) {\n keyNumberGiven = true;\n i++;\n try {\n keyNumber = Integer.parseInt(args[i]);\n } catch (NumberFormatException e) {\n throw new UsageException(\n \"Invalid number for the -number argument: \" +\n args[i]);\n }\n } else {\n throw new UsageException(\n \"Invalid argument for the delete command: \" + args[i]);\n }\n } catch (ArrayIndexOutOfBoundsException e) {\n throw new UsageException(\"Missing value for \" + args[--i]);\n }\n }\n\n if (owner == null && !keyNumberGiven) {\n throw new UsageException(\n \"Neither key -owner or -number was not given\");\n }\n\n if (owner != null && keyNumberGiven) {\n throw new UsageException(\"-owner and -number cannot be used \" +\n \"together\");\n }\n\n keyTool = new MEKeyTool(meKeystoreFile);\n\n if (owner != null) {\n if (!keyTool.deleteKey(owner)) {\n throw new UsageException(\"Key not found for: \" + owner);\n }\n } else {\n try {\n keyTool.deleteKey(keyNumber - 1);\n } catch (ArrayIndexOutOfBoundsException e) {\n throw new UsageException(\"Invalid number for the -number \" +\n \"delete option: \" + keyNumber);\n } \n }\n\n keyTool.saveKeystore(meKeystoreFile);\n }", "public DataPair delete(DataPair key) {\n throw new NotImplementedException();\n }", "String deleteKey(String keyName)\n throws P4JavaException;", "@SneakyThrows\n public void deleteKeysFromMemory() {\n Preferences.userRoot().clear();\n }", "private void delete() {\n AltDatabase.getInstance().getAlts().remove(getCurrentAsEditable());\n if (selectedAccountIndex > 0)\n selectedAccountIndex--;\n updateQueried();\n updateButtons();\n }", "protected abstract void deleteEntry(K key);", "@Override\n\tpublic void delete(String key) throws SQLException {\n\t\t\n\t}", "void deleteQueryKey(String key);", "@Override\n public int delete(Uri uri, String selection, String[] selectionArgs) {\n while(flag)\n {}\n if(selection.equals(\"@\")) {\n myKeys.clear();\n return 0;\n }\n else\n {\n HandleDeleteQuery(selection);\n }\n return 0;\n }", "int deleteByPrimaryKey(ApplicationDOKey key);", "@Override\npublic void delete(Key key) {\n\t\n}", "private void deleteTrustedCertificate() {\n\t\t// Which entries have been selected?\n\t\tint[] selectedRows = trustedCertsTable.getSelectedRows();\n\t\tif (selectedRows.length == 0) // no trusted cert entry selected\n\t\t\treturn;\n\n\t\t// Ask user to confirm the deletion\n\t\tif (showConfirmDialog(\n\t\t\t\tnull,\n\t\t\t\t\"Are you sure you want to delete the selected trusted certificate(s)?\",\n\t\t\t\tALERT_TITLE, YES_NO_OPTION) != YES_OPTION)\n\t\t\treturn;\n\n\t\tString exMessage = null;\n\t\tfor (int i = selectedRows.length - 1; i >= 0; i--) { // delete from backwards\n\t\t\t// Get the alias for the current entry\n\t\t\tString alias = (String) trustedCertsTable.getModel().getValueAt(\n\t\t\t\t\tselectedRows[i], 5);\n\t\t\ttry {\n\t\t\t\t// Delete the trusted certificate entry from the Truststore\n\t\t\t\tcredManager.deleteTrustedCertificate(alias);\n\t\t\t} catch (CMException cme) {\n\t\t\t\texMessage = \"Failed to delete the trusted certificate(s) from the Truststore\";\n\t\t\t\tlogger.error(exMessage, cme);\n\t\t\t}\n\t\t}\n\t\tif (exMessage != null)\n\t\t\tshowMessageDialog(this, exMessage, ERROR_TITLE, ERROR_MESSAGE);\n\t}", "public void deleteKey(int number) {\n keystore.deleteKey(number);\n }", "protected abstract void _del(String key);", "@Override\n\tpublic void deleteByKey(Integer key) {\n\n\t}", "void delete(K key);", "@Test\n\tpublic void removeOneOfMyKeys() {\n\t\tRsaKeyStore ks = new RsaKeyStore();\n\t\tks.createNewMyKeyPair(\"uno\");\n\t\tks.createNewMyKeyPair(\"dos\");\n\t\tks.removeMyKey(\"uno\");\n\t\tSet<String> names = ks.getMyKeyNames();\n\t\tassertTrue(\"wrong number of keys\", names.size() == 1);\n\t\tassertFalse(\"should not contain key\", names.contains(\"uno\"));\n\t\tassertTrue(\"should contain key\", names.contains(\"dos\"));\n\t}", "private void delete() {\n\t\tComponents.questionDialog().message(\"Are you sure?\").callback(answeredYes -> {\n\n\t\t\t// if confirmed, delete the current product PropertyBox\n\t\t\tdatastore.delete(TARGET, viewForm.getValue());\n\t\t\t// Notify the user\n\t\t\tNotification.show(\"Product deleted\", Type.TRAY_NOTIFICATION);\n\n\t\t\t// navigate back\n\t\t\tViewNavigator.require().navigateBack();\n\n\t\t}).open();\n\t}", "public void delete(String k, String v) throws RemoteException, Error;", "int deleteByPrimaryKey(RepStuLearningKey key);", "public boolean delete(K key);", "@Test\n public void testDelete() {\n // Choose a random key to delete, among the available ones.\n int deleteKeyNumber = new Random().nextInt(RiakKVClientTest.recordsToInsert);\n // Define a HashMap to save the previously stored values for its eventual restore.\n HashMap<String, ByteIterator> readValueBeforeDelete = new HashMap<>();\n RiakKVClientTest.riakClient.read(RiakKVClientTest.bucket, ((RiakKVClientTest.keyPrefix) + (Integer.toString(deleteKeyNumber))), null, readValueBeforeDelete);\n // First of all, delete the key.\n Assert.assertEquals(\"Delete transaction FAILED.\", OK, RiakKVClientTest.delete(((RiakKVClientTest.keyPrefix) + (Integer.toString(deleteKeyNumber)))));\n // Then, check if the deletion was actually achieved.\n Assert.assertEquals(\"Delete test FAILED. Key NOT deleted.\", NOT_FOUND, RiakKVClientTest.riakClient.read(RiakKVClientTest.bucket, ((RiakKVClientTest.keyPrefix) + (Integer.toString(deleteKeyNumber))), null, null));\n // Finally, restore the previously deleted key.\n Assert.assertEquals(\"Delete test FAILED. Unable to restore previous key value.\", OK, RiakKVClientTest.riakClient.insert(RiakKVClientTest.bucket, ((RiakKVClientTest.keyPrefix) + (Integer.toString(deleteKeyNumber))), readValueBeforeDelete));\n }", "int deleteByPrimaryKey(String accessKeyId);", "int deleteByExample(Lbt72TesuryoSumDPkeyExample example);", "public abstract void Delete(WriteOptions options, Slice key) throws IOException, BadFormatException, DecodeFailedException;", "public void delete(String key){\r\n\t\tint hash = hash(key);\r\n for(int i = 0; i < M; i++){\r\n if(hash + i < M){\r\n if(keys[hash + i] != null && keys[hash + i].equals(key)){\r\n remove(hash + i);\r\n N--;\r\n break;\r\n }\r\n }else{\r\n if(keys[hash + i - M] != null && keys[hash + i - M].equals(key)){\r\n remove(hash + i - M);\r\n N--;\r\n break;\r\n }\r\n }\r\n\t\t}\r\n }", "@Override\n\tpublic void deleteByKey(String key) {\n\t\tsettingDao.deleteByKey(key);\n\t}", "public void deleteUserDictionary(String dictionary) {\n SQLiteDatabase db = this.getWritableDatabase();\n db.delete(TABLE_TERMS, KEY_DICTIONARY + \" = ?\",\n new String[] { dictionary });\n db.delete(TABLE_FAVOURITES, KEY_DICTIONARY + \" = ?\",\n new String[] { dictionary });\n db.delete(TABLE_RECENTS, KEY_DICTIONARY + \" = ?\",\n new String[] { dictionary });\n db.delete(TABLE_USER_DICTIONARIES, KEY_DICTIONARY + \" = ?\",\n new String[] { dictionary });\n db.close();\n }", "private void deleteExec(){\r\n\t\tList<HashMap<String,String>> selectedDatas=ViewUtil.getSelectedData(jTable1);\r\n\t\tif(selectedDatas.size()<1){\r\n\t\t\tJOptionPane.showMessageDialog(null, \"Please select at least 1 item to delete\", \"Error\", JOptionPane.ERROR_MESSAGE);\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tint options = 1;\r\n\t\tif(selectedDatas.size() ==1 ){\r\n\t\t\toptions = JOptionPane.showConfirmDialog(null, \"Are you sure to delete this Item ?\", \"Info\",JOptionPane.YES_NO_OPTION);\r\n\t\t}else{\r\n\t\t\toptions = JOptionPane.showConfirmDialog(null, \"Are you sure to delete these \"+selectedDatas.size()+\" Items ?\", \"Info\",JOptionPane.YES_NO_OPTION);\r\n\t\t}\r\n\t\tif(options==1){\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tfor(HashMap<String,String> map:selectedDatas){\r\n\t\t\t\r\n\t\t\tdiscountService.deleteDiscountByMap(NameConverter.convertViewMap2PhysicMap(map, \"Discount\"));\r\n\t\t}\r\n\t\tthis.initDatas();\r\n\t}", "@Override\r\n\tpublic int delete(HashMap<String, Object> map) {\n\t\treturn 0;\r\n\t}", "public boolean delete(byte[] key) throws Exception;", "UserSettings remove(String key);", "int deleteByPrimaryKey(StorageKey key);", "public void deleteSelectedWord()\r\n {\n ArrayList al = crossword.getWords();\r\n al.remove(selectedWord);\r\n repopulateWords();\r\n }", "public void deleteKeysFromTree(String path) {\n LinkedList<String> keysList = UsefulFunctions.createStringListFromFile(path);\n if (keysList != null) {\n for (String key : keysList) {\n delete(key);\n }\n }\n }", "@Override\n\tpublic int delete(Uri uri, String selection, String[] selectionArgs) {\n\t\tint cnt = 1;\n\t\tmChallengesDB.del();\n\t\treturn cnt;\n\t}", "int deleteByExample(Lbm83ChohyokanriPkeyExample example);", "public native Boolean delete(K key);", "@Override\n\tpublic void delete(Iterable<? extends Map<String, Object>> arg0) {\n\t\t\n\t}", "String delete(Integer key);", "void delete(SecretIdentifier secretIdentifier);", "public void deleteItineraryItem(String key) {\n\t\tmEditor.remove(key);\n\t\tmEditor.commit();\n\t}", "public void psyDelete(final K oKey)\n\t\tthrows PsyRangeCheckException, PsyUndefinedException;", "public void deleteEntry(String ti) throws SQLException{\n\t\tourDatabase.delete(DATABASE_TABLE,KEY_APP_ID + \"=?\", new String[] { ti });\r\n\t\t\r\n\t}", "int deleteByExample(PmKeyDbObjExample example);", "@Override\n\tpublic void delete(Map<String, Object> arg0) {\n\t\t\n\t}", "public void delete(List<Key> keys) {\n\t\tfor (Key k : keys) {\n\t\t\tthis.delete(k);\n\t\t}\n\t}", "public void clearAllNotClientCacheKeyOrDatabaseKey() {\n\t}", "@Override\n public void del(String key) throws KVException {\n \tSocket sock = null;\n try {\n if (key == null || key.isEmpty()) throw new KVException(ERROR_INVALID_KEY);\n\n \tsock = connectHost();\n \t\n \tKVMessage outMsg = new KVMessage(DEL_REQ);\n \toutMsg.setKey(key);\n \toutMsg.sendMessage(sock);\n \t\n \tKVMessage inMsg = new KVMessage(sock);\n \tString message = inMsg.getMessage();\n \tif(message == null) throw new KVException(ERROR_COULD_NOT_RECEIVE_DATA);\n \tif(!message.equals(SUCCESS)) throw new KVException(message);\n\n } catch (KVException kve) {\n System.err.println(kve.getKVMessage().getMessage());\n \tthrow kve;\n } finally {\n \tif(sock != null) closeHost(sock);\n }\n }", "int deleteByExample(ErpOaLicKeyExample example);", "int deleteByExample(WdWordDictExample example);", "@Override\n\tpublic int delete(int key) {\n\t\treturn 0;\n\t}", "public void deleteSelection() {\n deleteFurniture(Home.getFurnitureSubList(this.home.getSelectedItems())); \n }", "public void delete(K id);", "private void delete() {\n\n\t}", "@Override\n public void delete(Integer key) throws SQLException {\n //Ei toteutettu\n }", "@Transactional\n\t@Override\n\tpublic void deleteAll() {\n\t\tanchorKeywordsDAO.deleteAll();\n\t}", "void deleteAll(Collection<?> keys);", "@Override\r\n\tpublic void deleteKeyValuePair(String key) {\r\n\t\t// if key is empty\r\n if (key == null || key.equals(\" \")) {\r\n System.out.println(\"Invalid Key\");\r\n return;\r\n }\r\n this.root = deleteRecursively(root, key);\r\n return;\r\n\t}", "private void deletion(String pids) {\n\t\tDeletions(pids);\n\t\t\n\t}", "private void deleteEntry() {\n String desiredId = idField.getText();\n Student student = studentHashMap.get(desiredId);\n\n try {\n if (student == null) {\n throw new NoMatchFoundException();\n } else if (this.checkInput(student) == false) {\n throw new InputMismatchException();\n } else if (studentHashMap.containsKey(desiredId)) {\n studentHashMap.remove(desiredId);\n this.displayStatusPanel(\n \"Success: \" + student.getName() + \" removed.\",\n \"Success\",\n JOptionPane.INFORMATION_MESSAGE\n );\n } else {\n throw new NoMatchFoundException();\n }\n } catch(NoMatchFoundException ex) {\n this.displayStatusPanel(\n \"Error: Entry not found.\",\n \"Error\",\n JOptionPane.WARNING_MESSAGE\n );\n } catch(InputMismatchException e) {\n this.displayStatusPanel(\n \"Error: Information does not match data on file.\",\n \"Error\",\n JOptionPane.WARNING_MESSAGE\n );\n }\n }", "public Integer delete(String[] keys)\n {\n \tInteger retVal = 0;\n \tLog.e(\"recovery\",\"I need to delete::\"+keys.length+\" rows\");\n \tString bull[] = new String[1];\n \tfor(int i=0;i<keys.length;i++)\n \t{\n \t\tbull[0] = keys[i];\n \t\tretVal+=sqliteDB.delete(tableName, \"key=?\",bull);\t\n \t}\n \t\n \tLog.e(\"recovery\",\"I have deleted::\"+retVal+\" rows\");\n \treturn retVal;\n \t//String _del_keys = TextUtils.join(\", \",keys);\n \t//sqliteDB.execSQL(String.format(\"DELETE FROM \"+tableName+\" WHERE key IN (%s);\",_del_keys));\n }", "void deleteAllChallenges();", "int deleteByExample(AccessKeyRecordEntityExample example);", "public boolean delete(Comparable searchKey);", "private void deleteSelectedWaypoints() {\r\n\t ArrayList<String> waypointsToRemove = new ArrayList<String>();\r\n\t int size = _selectedList.size();\r\n\t for (int i = _selectedList.size() - 1; i >= 0; --i) {\r\n boolean selected = _selectedList.get(i);\r\n if (selected) {\r\n waypointsToRemove.add(UltraTeleportWaypoint.getWaypoints().get(i).getWaypointName());\r\n }\r\n }\r\n\t UltraTeleportWaypoint.removeWaypoints(waypointsToRemove);\r\n\t UltraTeleportWaypoint.notufyHasChanges();\r\n\t}", "public static void deleteAll() throws RocksDBException {\n RocksIterator iter = db.newIterator();\n\n for (iter.seekToFirst(); iter.isValid(); iter.next()) {\n db.delete(iter.key());\n }\n\n iter.close();\n }", "int deleteByExample(DictDoseUnitExample example);", "@Override\n\tpublic void delete(Object key) throws Exception {\n\t\tpropertyConfigMapper.deleteByPrimaryKey(key);\n\t}", "public int deleteFavPair(Pair pair) {\n SQLiteDatabase db = this.getWritableDatabase();\n\n return db.delete(FavoriteEntry.TABLE_NAME,\n FavoriteEntry.SHIRT_ID + \" = ? AND \" + FavoriteEntry.TROUSER_ID + \" = ? \",\n new String[]{String.valueOf(pair.getShirt().getId()), String.valueOf(pair.getTrouser().getId())});\n }", "public DeleteItemOutcome deleteItem(String hashKeyName, Object hashKeyValue);", "int deleteByPrimaryKey(LikedKey key);", "public void delete(Key k) {\n\t\tString target = SchemaMapper.kindToColumnFamily(k.getKind());\n\t\tStringBuilder query = new StringBuilder();\n\t\tquery.append(\"DELETE FROM \\\"\");\n\t\tquery.append(DataStore.KEYSPACE_NAME);\n\t\tquery.append(\"\\\".\\\"\");\n\t\tquery.append(target);\n\t\tquery.append(\"\\\" WHERE key = ?\");\n\t\tthis.query(query.toString(), k.toString());\n\t}", "void delete(List<MountPoint> mountPoints);", "long delete(String collection, String hkey);", "private void deleteRecord(){\n if (mCurrentSymptomUri != null) {\n // pull out the string value we are trying to delete\n mEditSymptomText = findViewById(R.id.edit_symptoms);\n String deleteTry = mEditSymptomText.getText().toString();\n\n // set up the ContentProvider query\n String[] projection = {_IDST, SymTraxContract.SymTraxTableSchema.C_SYMPTOM};\n String selectionClause = SymTraxContract.SymTraxTableSchema.C_SYMPTOM + \" = ? \";\n String[] selectionArgs = {deleteTry};\n\n Cursor c = getContentResolver().query(\n SYM_TRAX_URI,\n projection,\n selectionClause,\n selectionArgs,\n null );\n\n // if there are no instances of the deleteTry string in the Machines DB\n // Go ahead and try to delete. If deleteTry value is in CMachineType column do not delete (no cascade delete)\n if (!c.moveToFirst()){\n int rowsDeleted = getContentResolver().delete(mCurrentSymptomUri, null, null);\n if (rowsDeleted == 0) {\n Toast.makeText(this, getString(R.string.delete_record_failure),\n Toast.LENGTH_SHORT).show();\n } else {\n Toast.makeText(this, getString(R.string.delete_record_success),\n Toast.LENGTH_SHORT).show();\n }\n c.close();\n finish(); // after deleting field value\n } else {\n c.close();\n showNoCascadeDeleteDialog();\n }\n }\n }", "void removeKey(int i);", "public int delete(Uri uri, String selection, String[] selectionArgs) \n\t{\n\t\tint retVal = 0;\n\t\t\n\t\tif(selection.equals(delete_all)) // delete all in DHT\n\t\t{\n\t\t \tretVal = sqliteDB.delete(tableName, null, null);\n\t\t \t\n\t\t \tMessage.sendMessage(MessageType.GDelReqMessage,delete_all,myAVDnum,null,chord.mysucc.portNum);\n\t\t \t\n\t\t \tsynchronized (_GDel_Lock) \n\t\t \t{\n\t\t \t\ttry\n\t\t \t\t{\n\t\t \t\t\t_GDel_Lock.wait();\n\t\t \t\t}\n\t\t \t\tcatch(InterruptedException iex)\n\t\t \t\t{\n\t\t \t\t\tiex.printStackTrace();\n\t\t \t\t}\n\t\t \t\tretVal = _GDel_Lock.rows_affected;\n\t\t \t\tLog.d(\"window_shopper\",\"All peers have deleted\");\n\t\t\t}\n\t\t}\n\t\telse if(selection.equals(delete_mine)) // delete all of mine\n\t\t{\n\t \tretVal = sqliteDB.delete(tableName,null, null);\n\t\t}\n\t\telse // delete_particular\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\t/*\n\t\t\t\t * find owner of key\n\t\t\t\t */\n\t\t\t\tLog.v(\"window_shopper\",\"deleting::\"+selection);\n\t\t\t\tString queryArgs[]={selection};\n\t\t\t\tString hashedKey = ChordMaster.genHash(selection);\n\t\t\t\tnode owner = chord.getOwner(hashedKey);\n\t\t\t\t\n\t\t\t\tif(owner.avdNum.equals(myAVDnum)) // i am owner\n\t\t\t\t{\n\t\t\t\t\tretVal = sqliteDB.delete(tableName,\"key=?\",queryArgs);\n\t\t\t\t\t// need to delete replications as well\n\t\t\t\t\tMessage.sendMessage(MessageType.objectDelReplicaMessage,delete_particular,myAVDnum,selection,chord.mysucc.portNum);\n\t\t\t\t}\n\t\t\t\telse // i am not the owner\n\t\t\t\t\tMessage.sendMessage(MessageType.objectDelReqMessage,delete_particular,myAVDnum,selection,owner.portNum);\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tsynchronized (_delObj_Lock)\n\t\t\t\t{\n\t\t\t\t\ttry\n \t\t\t\t{\n \t\t\t\t\tLog.v(\"window_shopper\",\"Waiting for del operations to complete!\");\n \t\t\t\t\t_delObj_Lock.wait();\n \t\t\t\t}\n \t\t\t\tcatch(InterruptedException iex)\n \t\t\t\t{\n \t\t\t\t\tiex.printStackTrace();\n \t\t\t\t}\n \t\t\t\t\n \t\t\t\tretVal = _delObj_Lock.rows_affected;\n \t\t\t\tif(retVal == OBJECT_DOES_NOT_EXIST)\n \t\t\t\t\tLog.v(\"window_shopper\",\"CANNOT DELETE OBJ DOES NOT EXIST\"+retVal); \t\t\t\t\t\n \t\t\t\telse\n \t\t\t\t\tLog.v(\"window_shopper\",\"The delete operation was successful\"+retVal);\n \t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\tcatch(NoSuchAlgorithmException nex)\n\t\t\t{\n\t\t\t\tnex.printStackTrace();\n\t\t\t}\n\t\t}\n\t\treturn retVal;\n\t}", "@Test\n public void testDelete() throws Exception {\n map.set(\"key-1\", \"value-1\", 10);\n \n Assert.assertEquals(map.get(\"key-1\"), \"value-1\");\n \n Assert.assertTrue(map.delete(\"key-1\", 0));\n \n Assert.assertNull(map.get(\"key-1\"));\n \n Assert.assertFalse(map.delete(\"no-set-key\", 0));\n }", "int deleteByPrimaryKey(Integer prefecturesId);", "@Override\n public synchronized void delete(String key) throws KeyDoesntExistException {\n boolean existed = false;\n if (map.containsKey(key)) {\n \tmap.remove(key);\n \texisted = true;\n }\n if (kvdb.inStorage(key)) {\n \ttry {\n \t\tkvdb.delete(key); \t\t\n \t\texisted = true;\n \t} catch (IKVDB.KeyDoesntExistException e) {\n \t\tthrow new RuntimeException(\"Fatal error: key doesnt exist after db reports it does\");\n \t}\n }\n if (!existed) {\n \tthrow new KeyDoesntExistException(\"Key doesnt exist in cache or db: \" + key);\n } \n }", "void delete(K id);", "void delete(K id);", "@Test\n\tpublic void removeMyKeyNotThere() {\n\t\tRsaKeyStore ks = new RsaKeyStore();\n\t\tks.createNewMyKeyPair(\"one\");\n\t\tks.createNewMyKeyPair(\"two\");\n\t\tks.removeMyKey(\"three\");\n\t\tSet<String> names = ks.getMyKeyNames();\n\t\tassertTrue(\"wrong number of keys\", names.size() == 2);\n\t\tassertTrue(\"should contain key\", names.contains(\"one\"));\n\t\tassertTrue(\"should contain key\", names.contains(\"two\"));\n\t\tassertFalse(\"should not contain key\", names.contains(\"three\"));\n\t}", "@Override\r\n\tpublic void delete(Iterable<? extends Estates> arg0) {\n\t\t\r\n\t}", "private void delete()\n\t{\n\t\ttry\n\t\t{\n\t\t\tConnection con = Connector.DBcon();\n\t\t\tString query = \"select * from items where IT_ID=?\";\n\t\t\t\n\t\t\tPreparedStatement pst = con.prepareStatement(query);\n\t\t\tpst.setString(1, txticode.getText());\n\t\t\tResultSet rs = pst.executeQuery();\n\t\t\t\n\t\t\tint count = 0;\n\t\t\twhile(rs.next())\n\t\t\t{\n\t\t\t\tcount++;\n\t\t\t}\n\t\t\t\n\t\t\tif(count == 1)\n\t\t\t{\n\t\t\t\tint choice = JOptionPane.showConfirmDialog(null, \"Are you sure you want to delete selected item data?\", \"ALERT\", JOptionPane.YES_NO_OPTION);\n\t\t\t\tif(choice==JOptionPane.YES_OPTION)\n\t\t\t\t{\n\t\t\t\t\tquery=\"delete from items where IT_ID=?\";\n\t\t\t\t\tpst = con.prepareStatement(query);\n\t\t\t\t\t\n\t\t\t\t\tpst.setString(1, txticode.getText());\n\t\t\t\t\t\n\t\t\t\t\tpst.execute();\n\t\t\t\t\t\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Deleted Successfully\", \"RESULT\", JOptionPane.INFORMATION_MESSAGE);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tloadData();\n\t\t\t\t\n\t\t\t\trs.close();\n\t\t\t\tpst.close();\n\t\t\t\tcon.close();\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\telse\n\t\t\t\tJOptionPane.showMessageDialog(null, \"Record Not Found!\", \"Alert\", JOptionPane.ERROR_MESSAGE);\n\t\t\t\n\t\t\trs.close();\n\t\t\tpst.close();\n\t\t\tcon.close();\n\t\t\t\n\t\t} \n\t\tcatch (Exception e)\n\t\t{\n\t\t\tJOptionPane.showMessageDialog(null, e);\n\t\t}\n\t}", "@Override\n\tpublic void delete(String id) throws Exception {\n\t\tmenuMapper.deleteByKey(id);\n\t}", "int deleteByPrimaryKey(Integer pmKeyId);", "@Override\n\tpublic void entriesDeleted(Collection<String> arg0) {\n\n\t}", "UserSettings remove(HawkularUser user, String key);" ]
[ "0.6786737", "0.6780119", "0.66112083", "0.64232314", "0.6357133", "0.63094497", "0.62316805", "0.6216405", "0.62133807", "0.62058496", "0.6154047", "0.614337", "0.6102423", "0.6101718", "0.6097741", "0.60253394", "0.6020723", "0.6002539", "0.5995854", "0.5995618", "0.5992255", "0.5974219", "0.59493935", "0.594306", "0.5928075", "0.5895518", "0.583174", "0.5799974", "0.57587206", "0.57380706", "0.57298803", "0.5724508", "0.572204", "0.57054704", "0.5692173", "0.56900567", "0.5685081", "0.567883", "0.5660203", "0.56289154", "0.56113684", "0.55947316", "0.5588408", "0.55850184", "0.5567919", "0.5566013", "0.5565456", "0.55568093", "0.5553989", "0.55496687", "0.5549654", "0.5544155", "0.5542231", "0.5541705", "0.55317134", "0.5530291", "0.5520534", "0.5503126", "0.5495495", "0.54946136", "0.54878473", "0.54849315", "0.5484641", "0.5469044", "0.54684687", "0.54662144", "0.5462019", "0.5458585", "0.54527223", "0.54438704", "0.544135", "0.54403675", "0.5440238", "0.5440221", "0.5438109", "0.5432786", "0.54268813", "0.5421161", "0.5407059", "0.53986096", "0.5397204", "0.53879327", "0.5386601", "0.5384021", "0.53770244", "0.5375452", "0.5372868", "0.53674173", "0.5364827", "0.5363702", "0.5361492", "0.53607464", "0.53607464", "0.535646", "0.53510356", "0.53504324", "0.53446877", "0.53285825", "0.5327825", "0.5327685" ]
0.8084587
0
Lets a user import a trusted certificate from a PEM or DER encoded file into the Truststore.
private void importTrustedCertificate() { // Let the user choose a file containing trusted certificate(s) to // import File certFile = selectImportExportFile( "Certificate file to import from", // title new String[] { ".pem", ".crt", ".cer", ".der", "p7", ".p7c" }, // file extensions filters "Certificate Files (*.pem, *.crt, , *.cer, *.der, *.p7, *.p7c)", // filter descriptions "Import", // text for the file chooser's approve button "trustedCertDir"); // preference string for saving the last chosen directory if (certFile == null) return; // Load the certificate(s) from the file ArrayList<X509Certificate> trustCertsList = new ArrayList<>(); CertificateFactory cf; try { cf = CertificateFactory.getInstance("X.509"); } catch (Exception e) { // Nothing we can do! Things are badly misconfigured cf = null; } if (cf != null) { try (FileInputStream fis = new FileInputStream(certFile)) { for (Certificate cert : cf.generateCertificates(fis)) trustCertsList.add((X509Certificate) cert); } catch (Exception cex) { // Do nothing } if (trustCertsList.size() == 0) { // Could not load certificates as any of the above types try (FileInputStream fis = new FileInputStream(certFile); PEMReader pr = new PEMReader( new InputStreamReader(fis), null, cf .getProvider().getName())) { /* * Try as openssl PEM format - which sligtly differs from * the one supported by JCE */ Object cert; while ((cert = pr.readObject()) != null) if (cert instanceof X509Certificate) trustCertsList.add((X509Certificate) cert); } catch (Exception cex) { // do nothing } } } if (trustCertsList.size() == 0) { /* Failed to load certifcate(s) using any of the known encodings */ showMessageDialog(this, "Failed to load certificate(s) using any of the known encodings -\n" + "file format not recognised.", ERROR_TITLE, ERROR_MESSAGE); return; } // Show the list of certificates contained in the file for the user to // select the ones to import NewTrustCertsDialog importTrustCertsDialog = new NewTrustCertsDialog(this, "Credential Manager", true, trustCertsList, dnParser); importTrustCertsDialog.setLocationRelativeTo(this); importTrustCertsDialog.setVisible(true); List<X509Certificate> selectedTrustCerts = importTrustCertsDialog .getTrustedCertificates(); // user-selected trusted certs to import // If user cancelled or did not select any cert to import if (selectedTrustCerts == null || selectedTrustCerts.isEmpty()) return; try { for (X509Certificate cert : selectedTrustCerts) // Import the selected trusted certificates credManager.addTrustedCertificate(cert); // Display success message showMessageDialog(this, "Trusted certificate(s) import successful", ALERT_TITLE, INFORMATION_MESSAGE); } catch (CMException cme) { String exMessage = "Failed to import trusted certificate(s) to the Truststore"; logger.error(exMessage, cme); showMessageDialog(this, exMessage, ERROR_TITLE, ERROR_MESSAGE); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void importCA(File certfile){\n try {\n File keystoreFile = new File(archivo);\n \n //copia .cer -> formato manipulacion\n FileInputStream fis = new FileInputStream(certfile);\n DataInputStream dis = new DataInputStream(fis);\n byte[] bytes = new byte[dis.available()];\n dis.readFully(bytes);\n ByteArrayInputStream bais = new ByteArrayInputStream(bytes);\n bais.close();\n CertificateFactory cf = CertificateFactory.getInstance(\"X.509\");\n Certificate certs = cf.generateCertificate(bais);\n //System.out.println(certs.toString());\n //inic keystore\n FileInputStream newib = new FileInputStream(keystoreFile);\n KeyStore keystore = KeyStore.getInstance(INSTANCE);\n keystore.load(newib,ksPass );\n String alias = (String)keystore.aliases().nextElement();\n newib.close();\n \n //recupero el array de certificado del keystore generado para CA\n Certificate[] certChain = keystore.getCertificateChain(alias);\n certChain[0]= certs; //inserto el certificado entregado por CA\n //LOG.info(\"Inserto certifica CA: \"+certChain[0].toString());\n //recupero la clave privada para generar la nueva entrada\n Key pk = (PrivateKey)keystore.getKey(alias, ksPass); \n keystore.setKeyEntry(alias, pk, ksPass, certChain);\n LOG.info(\"Keystore actualizado: [OK]\");\n \n FileOutputStream fos = new FileOutputStream(keystoreFile);\n keystore.store(fos,ksPass);\n fos.close(); \n \n } catch (FileNotFoundException ex) {\n LOG.error(\"Error - no se encuentra el archivo\",ex);\n } catch (IOException | NoSuchAlgorithmException | CertificateException | KeyStoreException ex) {\n LOG.error(\"Error con el certificado\",ex);\n } catch (UnrecoverableKeyException ex) {\n LOG.error(ex);\n }\n }", "@Test\n public void testSslJks_loadTrustStoreFromFile() throws Exception {\n final InputStream inputStream = this.getClass().getResourceAsStream(\"/keystore.jks\");\n final String tempDirectoryPath = System.getProperty(\"java.io.tmpdir\");\n final File jks = new File(tempDirectoryPath + File.separator + \"keystore.jks\");\n final FileOutputStream outputStream = new FileOutputStream(jks);\n final byte[] buffer = new byte[1024];\n int noOfBytes = 0;\n while ((noOfBytes = inputStream.read(buffer)) != -1) {\n outputStream.write(buffer, 0, noOfBytes);\n }\n\n final MockVault mockVault = new MockVault(200, \"{\\\"data\\\":{\\\"value\\\":\\\"mock\\\"}}\");\n final Server server = VaultTestUtils.initHttpsMockVault(mockVault);\n server.start();\n\n final VaultConfig vaultConfig = new VaultConfig()\n .address(\"https://127.0.0.1:9998\")\n .token(\"mock_token\")\n .sslConfig(new SslConfig().trustStoreFile(jks).build())\n .build();\n final Vault vault = new Vault(vaultConfig);\n final LogicalResponse response = vault.logical().read(\"secret/hello\");\n\n VaultTestUtils.shutdownMockVault(server);\n }", "private Certificate loadcert(final String filename) throws FileNotFoundException, IOException, CertificateParsingException {\n final byte[] bytes = FileTools.getBytesFromPEM(FileTools.readFiletoBuffer(filename), \"-----BEGIN CERTIFICATE-----\",\n \"-----END CERTIFICATE-----\");\n return CertTools.getCertfromByteArray(bytes, Certificate.class);\n\n }", "private void loadTM() throws ERMgmtException{\n try{\n KeyStore ts = KeyStore.getInstance(KeyStore.getDefaultType());\n //random number generate to generated aliases for the new keystore\n Random generator = new Random();\n \n ts.load(null, null);\n \n if(mCertList.size() > 0){\n for(int i=0; i<mCertList.size(); i++){\n int randomInt = generator.nextInt();\n while(ts.containsAlias(\"certificate\"+randomInt)){\n randomInt = generator.nextInt();\n }\n ts.setCertificateEntry(\"certificate\"+randomInt, (X509Certificate) mCertList.get(i));\n } \n mTrustManagerFactory.init(ts); \n } else { \n mTrustManagerFactory.init((KeyStore) null);\n }\n \n TrustManager[] tm = mTrustManagerFactory.getTrustManagers();\n for(int i=0; i<tm.length; i++){\n if (tm[i] instanceof X509TrustManager) {\n mTrustManager = (X509TrustManager)tm[i]; \n break;\n }\n }\n \n } catch (Exception e){ \n throw new ERMgmtException(\"Trust Manager Error\", e);\n }\n \n }", "public static X509Certificate loadCertificate(String file)\n throws IOException, GeneralSecurityException {\n\n if (file == null) {\n throw new IllegalArgumentException(\"Certificate file is null\");\n //i18n\n // .getMessage(\"certFileNull\"));\n }\n\n X509Certificate cert = null;\n\n BufferedReader reader = new BufferedReader(new FileReader(file));\n try {\n cert = readCertificate(reader);\n } finally {\n reader.close();\n }\n\n if (cert == null) {\n throw new GeneralSecurityException(\"No certificate data\");\n //i18n.getMessage(\"noCertData\"));\n }\n\n return cert;\n }", "private static final CertificateValidationContext getCertContextFromPathAsInlineBytes(\n String pemFilePath) throws IOException, CertificateException {\n X509Certificate x509Cert = TestUtils.loadX509Cert(pemFilePath);\n return CertificateValidationContext.newBuilder()\n .setTrustedCa(\n DataSource.newBuilder().setInlineBytes(ByteString.copyFrom(x509Cert.getEncoded())))\n .build();\n }", "private static void checkTrustStore(KeyStore store, Path path) throws GeneralSecurityException {\n Enumeration<String> aliases = store.aliases();\n while (aliases.hasMoreElements()) {\n String alias = aliases.nextElement();\n if (store.isCertificateEntry(alias)) {\n return;\n }\n }\n throw new SslConfigException(\"the truststore [\" + path + \"] does not contain any trusted certificate entries\");\n }", "public abstract T useTransportSecurity(File certChain, File privateKey);", "public ERTrustManager(boolean allowUntrustedCert) throws ERMgmtException{\n //loads the default certificates into the trustManager; \n loadDefaults();\n mAllowUntrusted = allowUntrustedCert;\n //add the DataPower Certificates\n addCert(DATAPOWER_CA_CERT_PEM_9005);\n addCert(DATAPOWER_CA_CERT_PEM_9004);\n \n }", "private static final CertificateValidationContext getCertContextFromPath(String pemFilePath)\n throws IOException {\n return CertificateValidationContext.newBuilder()\n .setTrustedCa(\n DataSource.newBuilder().setFilename(TestUtils.loadCert(pemFilePath).getAbsolutePath()))\n .build();\n }", "@Test\n\tpublic void testAddX509CertificateToKeyStore() throws KeyStoreException, CertificateException, IOException, NoSuchAlgorithmException, InvalidKeySpecException {\n\t\t\n\t\tX509Certificate cert = DbMock.readCert(\"apache-tomcat.pem\");\n\t\t\n\t\tKeyStore keyStore = KeyStore.getInstance(\"JKS\");\n\t\t//initialize keystore\n\t\tkeyStore.load(null, null);\n\t\t\n\t\tJcaUtils.addX509CertificateToKeyStore(keyStore, \"alias1\", cert);\n\t\t\n\t\t// Save the new keystore contents\n\t\tFileOutputStream out = new FileOutputStream(\"/Users/davide/Downloads/ks.dat\");\n\t\tkeyStore.store(out, \"davidedc\".toCharArray());\n\t\tout.close();\n\t}", "public void addCert(String certificate) throws ERMgmtException{\n try{\n CertificateFactory certificateFactory = CertificateFactory.getInstance(\"X.509\");\n InputStream certificateInputStream = new ByteArrayInputStream(certificate.getBytes());\n X509Certificate toadd = (X509Certificate) certificateFactory.generateCertificate(certificateInputStream);\n certificateInputStream.close();\n mCertList.add(toadd); \n loadTM(); \n } catch (Exception e){ \n throw new ERMgmtException(\"Trust Manager Error: \", e);\n } \n \n\n }", "public static X509Certificate loadCertificate(InputStream in)\n throws GeneralSecurityException {\n return (X509Certificate) getCertificateFactory().generateCertificate(in);\n }", "@Override\n public KeyStore loadKeyStore(File file, String keyStoreType, String password) {\n KeyStore keyStore;\n try {\n keyStore = KeyStore.getInstance(keyStoreType);\n } catch (KeyStoreException e) {\n throw new KeyStoreAccessException(\"Unable to get KeyStore instance of type: \" + keyStoreType, e);\n }\n\n try (InputStream keystoreAsStream = new FileInputStream(file)) {\n keyStore.load(keystoreAsStream, password.toCharArray());\n } catch (IOException e) {\n throw new ImportException(\"Unable to read KeyStore from file: \" + file.getName(), e);\n } catch (CertificateException | NoSuchAlgorithmException e) {\n throw new ImportException(\"Error while reading KeyStore\", e);\n }\n\n return keyStore;\n }", "private X509Certificate getTrustedCert() {\n\t\tSystem.out.println(\"Beginning getTrustedCert ...\");\n\t\tESTClient ec = new ESTClient();\n\t\tX509Certificate newCert = null;\n\t\t\n\t\tassertNotNull(ec);\n\t\t\n\t\tmCerts = Helpers.loadTA(mTrustDB);\n\t\tec.setTrustAnchor(mCerts);\n\t\tec.setServerName(mTestServer);\n\t\tec.setServerPort(mTestPort);\n\t\tec.setHTTPCredentials(\"estuser\", \"estpwd\");\n\t\tec.setNativeLogLevel(NativeLogLevel.logFull);\n\n\t\t/*\n\t\t * Attempt to provision a new certificate\n\t\t */\n\t\ttry {\n\t\t\tnewCert = ec.sendSimpleEnrollRequest(mCSR, ESTClient.AuthMode.authHTTPonly, mKey, Boolean.FALSE);\n\t\t} catch (InvalidKeyException\n\t\t\t\t| CertificateException | IOException | EncodingException\n\t\t\t\t| EnrollException | EnrollRetryAfterException | BufferSizeException e) {\n\t\t\tfail(e.getMessage());\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn newCert;\n\t}", "boolean importCertificate(InputStream is)\n {\n\tCertificateFactory cf = null;\n\tX509Certificate cert = null;\n\n\ttry\n\t{\n\t cf = CertificateFactory.getInstance(\"X.509\");\n\t cert = (X509Certificate)cf.generateCertificate(is);\n\n\t // Changed the certificate from the active set into the \n\t // inactive Import set. This is for import the certificate from\n\t // the store when the user clicks on Apply.\n\t //\n\t if (getRadioPos() == mh.getMessage(\"SignedApplet_value\"))\n \t model.deactivateImpCertificate(cert);\n\t else if (getRadioPos() == mh.getMessage(\"SecureSite_value\"))\n \t model.deactivateImpHttpsCertificate(cert);\n\t}\n\tcatch (CertificateParsingException cpe)\n\t{\n\t // It is PKCS#12 format.\n\t return false;\n\t}\n\tcatch (CertificateException e)\n\t{\n\t // Wrong format of the selected file\n\t DialogFactory.showExceptionDialog(this, e, getMessage(\"dialog.import.format.text\"), getMessage(\"dialog.import.error.caption\"));\n\t}\n\n\treturn true;\n }", "@Override\n public void checkServerTrusted(\n java.security.cert.X509Certificate[] certs, String authType)\n throws CertificateException {\n InputStream inStream = null;\n try {\n // Loading the CA cert\n URL u = getClass().getResource(\"dstca.cer\");\n inStream = new FileInputStream(u.getFile());\n CertificateFactory cf = CertificateFactory.getInstance(\"X.509\");\n X509Certificate ca = (X509Certificate) cf.generateCertificate(inStream);\n inStream.close();\n //if(certs[0].getSignature().equals(ca.getSignature()))\n for (int i = 0; i < certs.length ; i++) {\n X509Certificate cert = certs[i];\n // Verifing by public key\n try{\n cert.verify(certs[i+1].getPublicKey());\n }catch (Exception e) {\n cert.verify(ca.getPublicKey());\n }\n }\n } catch (Exception ex) {\n Monitor.logger(ex.getLocalizedMessage());\n ex.printStackTrace();\n throw new CertificateException(ex);\n } finally {\n try {\n inStream.close();\n } catch (IOException ex) {\n Monitor.logger(ex.getLocalizedMessage());\n ex.printStackTrace();\n }\n }\n\n }", "private void installTrustStore() {\n if (trustStoreType != null) {\n System.setProperty(\"javax.net.ssl.trustStore\", trustStore);\n if (trustStoreType != null) {\n System.setProperty(\"javax.net.ssl.trustStoreType\", trustStoreType);\n }\n if (trustStorePassword != null) {\n System.setProperty(\"javax.net.ssl.trustStorePassword\", trustStorePassword);\n }\n }\n }", "public static File installBrokerCertificate(AsyncTestSpecification specification) throws Exception {\n String caCertPem = specification.getSecret().getCaCertPem();\n\n // First compute a stripped PEM certificate and decode it from base64.\n String strippedPem = caCertPem.replaceAll(BEGIN_CERTIFICATE, \"\")\n .replaceAll(END_CERTIFICATE, \"\");\n InputStream is = new ByteArrayInputStream(org.apache.commons.codec.binary.Base64.decodeBase64(strippedPem));\n\n // Generate a new x509 certificate from the stripped decoded pem.\n CertificateFactory cf = CertificateFactory.getInstance(\"X.509\");\n X509Certificate caCert = (X509Certificate)cf.generateCertificate(is);\n\n // Create a new TrustStore using KeyStore API.\n char[] password = TRUSTSTORE_PASSWORD.toCharArray();\n KeyStore ks = KeyStore.getInstance(KeyStore.getDefaultType());\n ks.load(null, password);\n ks.setCertificateEntry(\"root\", caCert);\n\n File trustStore = File.createTempFile(\"microcks-truststore-\" + System.currentTimeMillis(), \".jks\");\n\n try (FileOutputStream fos = new FileOutputStream(trustStore)) {\n ks.store(fos, password);\n }\n\n return trustStore;\n }", "public void setUserCertificatesPath(String path);", "public void importKeyFromJcaKeystore(String jcakeystoreFilename,\n String keystorePassword,\n String alias, String domain)\n throws IOException, GeneralSecurityException {\n FileInputStream keystoreStream;\n KeyStore jcaKeystore;\n\n // Load the keystore\n keystoreStream = new FileInputStream(new File(jcakeystoreFilename));\n\n try {\n jcaKeystore = KeyStore.getInstance(KeyStore.getDefaultType());\n\n if (keystorePassword == null) {\n jcaKeystore.load(keystoreStream, null);\n } else {\n jcaKeystore.load(keystoreStream,\n keystorePassword.toCharArray());\n }\n } finally {\n keystoreStream.close();\n }\n\n importKeyFromJcaKeystore(jcaKeystore,\n alias,\n domain);\n }", "private void Initiat_Service(Object serviceAdm,Utilisateur user_en_cours) {\n\t\tlog.debug(\"user_en_cours.trustedApplication:\"+user_en_cours.trustedApplication);\n\t\t\t\tString filename =propIdentification.getProperty(Long.toString(user_en_cours.trustedApplication));\n\t\t\t\tlog.debug(\"filename:\"+filename);\n\t\t\t\t//System.out.println(\"my file \"+filename);\n\t\t\t\tFileInputStream is=null;\n\t\t\t\ttry {\n\t\t\t\t\tis = new FileInputStream(filename);\n\t\t\t\t} catch (FileNotFoundException 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\tKeyStore myKeyStore=null;\n\t\t\t\ttry {\n\t\t\t\t\tmyKeyStore = KeyStore.getInstance(KeyStore.getDefaultType());\n\t\t\t\t} catch (KeyStoreException e2) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te2.printStackTrace();\n\t\t\t\t}\n\t\t\t\tString password =propIdentification.getProperty(Long.toString(user_en_cours.trustedApplication)+\".password\");\n\n\t\t\t\ttry {\n\t\t\t\t\tmyKeyStore.load(is, password.toCharArray());\n\t\t\t\t} catch (NoSuchAlgorithmException e2) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te2.printStackTrace();\n\t\t\t\t} catch (CertificateException e2) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te2.printStackTrace();\n\t\t\t\t} catch (IOException e2) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te2.printStackTrace();\n\t\t\t\t}\n\n\t\t\t\tString filenameTrust =prop.getProperty(\"clienttrustore\");\n\t\t\t\tFileInputStream myKeys = null;\n\t\t\t\ttry {\n\t\t\t\t\tmyKeys = new FileInputStream(filenameTrust);\n\t\t\t\t} catch (FileNotFoundException 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\t// Load your TrustedStore\n\t\t\t\tKeyStore myTrustedStore=null;\n\t\t\t\ttry {\n\t\t\t\t\tmyTrustedStore = KeyStore.getInstance(KeyStore.getDefaultType());\n\t\t\t\t} catch (KeyStoreException e2) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te2.printStackTrace();\n\t\t\t\t}\n\t\t\t\ttry {\n\t\t\t\t\tmyTrustedStore.load(myKeys, prop.getProperty(\"clienttrustore.password\").toCharArray());\n\t\t\t\t} catch (NoSuchAlgorithmException e1) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t} catch (CertificateException e1) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t} catch (IOException 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\t\n\t\t\t\ttry {\n\t\t\t\t\tWSConnection.setupTLS(serviceAdm, myKeyStore, password, myTrustedStore);\n\t\t\t\t} catch (GeneralSecurityException 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}", "@Test\n public void certificateFileTest() {\n // TODO: test certificateFile\n }", "private void getKeyAndCerts(String filePath, String pw)\n throws GeneralSecurityException, IOException {\n System.out\n .println(\"reading signature key and certificates from file \" + filePath + \".\");\n\n FileInputStream fis = new FileInputStream(filePath);\n KeyStore store = KeyStore.getInstance(\"PKCS12\", \"IAIK\");\n store.load(fis, pw.toCharArray());\n\n Enumeration<String> aliases = store.aliases();\n String alias = (String) aliases.nextElement();\n privKey_ = (PrivateKey) store.getKey(alias, pw.toCharArray());\n certChain_ = Util.convertCertificateChain(store.getCertificateChain(alias));\n fis.close();\n }", "public X509Certificate readCertificateFromPem(File file) {\n FileReader reader = null;\n PEMParser parser = null;\n try {\n reader = new FileReader(file);\n parser = new PEMParser(reader);\n X509CertificateHolder holder = (X509CertificateHolder) parser.readObject();\n return new JcaX509CertificateConverter().setProvider(\"BC\").getCertificate(holder);\n } catch (RuntimeException | IOException | GeneralSecurityException e) {\n throw new RuntimeException(\"Failed to load certficate from [\"+file+\"]\", e);\n } finally {\n CloseablesExt.closeQuietly(parser);\n CloseablesExt.closeQuietly(reader);\n }\n }", "public ImportCertificateRequest withCertificateChain(java.nio.ByteBuffer certificateChain) {\n setCertificateChain(certificateChain);\n return this;\n }", "public void setTrustStore(String trustStore) {\n this.trustStore = trustStore;\n }", "static private SSLEngine createSSLEngine(String keyFile, String trustFile)\n throws Exception {\n\n SSLEngine ssle;\n\n KeyStore ks = KeyStore.getInstance(\"JKS\");\n KeyStore ts = KeyStore.getInstance(\"JKS\");\n\n char[] passphrase = \"passphrase\".toCharArray();\n\n ks.load(new FileInputStream(keyFile), passphrase);\n ts.load(new FileInputStream(trustFile), passphrase);\n\n KeyManagerFactory kmf = KeyManagerFactory.getInstance(\"SunX509\");\n kmf.init(ks, passphrase);\n\n TrustManagerFactory tmf = TrustManagerFactory.getInstance(\"SunX509\");\n tmf.init(ts);\n\n SSLContext sslCtx = SSLContext.getInstance(\"TLS\");\n\n sslCtx.init(kmf.getKeyManagers(), tmf.getTrustManagers(), null);\n\n ssle = sslCtx.createSSLEngine();\n ssle.setUseClientMode(false);\n\n return ssle;\n }", "public void secure (\n String keystoreFile, String keystorePassword,\n String truststoreFile, String truststorePassword) {\n\n if (keystoreFile == null)\n throw new IllegalArgumentException (\"Must provide a keystore to run secured\");\n\n this.keystoreFile = keystoreFile;\n this.keystorePassword = keystorePassword;\n this.truststoreFile = truststoreFile;\n this.truststorePassword = truststorePassword;\n }", "private boolean exportTrustedCertificate() {\n\t\t// Which trusted certificate has been selected?\n\t\tint selectedRow = trustedCertsTable.getSelectedRow();\n\t\tif (selectedRow == -1) // no row currently selected\n\t\t\treturn false;\n\n\t\t// Get the trusted certificate entry's Keystore alias\n\t\tString alias = (String) trustedCertsTable.getModel()\n\t\t\t\t.getValueAt(selectedRow, 3);\n\t\t// the alias column is invisible so we get the value from the table\n\t\t// model\n\n\t\t// Let the user choose a file to export to\n\t\tFile exportFile = selectImportExportFile(\"Select a file to export to\", // title\n\t\t\t\tnew String[] { \".pem\" }, // array of file extensions for the\n\t\t\t\t// file filter\n\t\t\t\t\"Certificate Files (*.pem)\", // description of the filter\n\t\t\t\t\"Export\", // text for the file chooser's approve button\n\t\t\t\t\"trustedCertDir\"); // preference string for saving the last chosen directory\n\t\tif (exportFile == null)\n\t\t\treturn false;\n\n\t\t// If file already exist - ask the user if he wants to overwrite it\n\t\tif (exportFile.isFile()\n\t\t\t\t&& showConfirmDialog(this,\n\t\t\t\t\t\t\"The file with the given name already exists.\\n\"\n\t\t\t\t\t\t\t\t+ \"Do you want to overwrite it?\", ALERT_TITLE,\n\t\t\t\t\t\tYES_NO_OPTION) == NO_OPTION)\n\t\t\treturn false;\n\n\t\t// Export the trusted certificate\n\t\ttry (PEMWriter pw = new PEMWriter(new FileWriter(exportFile))) {\n\t\t\t// Get the trusted certificate\n\t\t\tpw.writeObject(credManager.getCertificate(TRUSTSTORE, alias));\n\t\t} catch (Exception ex) {\n\t\t\tString exMessage = \"Failed to export the trusted certificate from the Truststore.\";\n\t\t\tlogger.error(exMessage, ex);\n\t\t\tshowMessageDialog(this, exMessage, ERROR_TITLE, ERROR_MESSAGE);\n\t\t\treturn false;\n\t\t}\n\t\tshowMessageDialog(this, \"Trusted certificate export successful\",\n\t\t\t\tALERT_TITLE, INFORMATION_MESSAGE);\n\t\treturn true;\n\t}", "public interface X509CertChainValidator\n{\n\t/**\n\t * Performs validation of a provided certificate path.\n\t * @param certPath to be validated\n\t * @return result of validation\n\t */\n\tpublic ValidationResult validate(CertPath certPath);\n\t\n\t/**\n\t * Performs validation of a provided certificate chain.\n\t * @param certChain to be validated\n\t * @return result of validation\n\t */\n\tpublic ValidationResult validate(X509Certificate[] certChain);\n\t\n\t/**\n\t * Returns a list of trusted issuers of certificates. \n\t * @return array containing trusted issuers' certificates\n\t */\n\tpublic X509Certificate[] getTrustedIssuers();\n\t\n\t/**\n\t * Registers a listener which can react to errors found during certificate \n\t * validation. It is useful in two cases: (rarely) if you want to change \n\t * the default logic of the validator and if you will use the validator indirectly\n\t * (e.g. to validate SSL socket connections) and want to get the original \n\t * {@link ValidationError}, not the exception. \n\t * \n\t * @param listener to be registered\n\t */\n\tpublic void addValidationListener(ValidationErrorListener listener);\n\t\n\t/**\n\t * Unregisters a previously registered validation listener. If the listener\n\t * was not registered then the method does nothing. \n\t * @param listener to be unregistered\n\t */\n\tpublic void removeValidationListener(ValidationErrorListener listener);\n\t\n\t\n\t/**\n\t * Registers a listener which can react to errors found during refreshing \n\t * of the trust material: trusted CAs or CRLs. This method is useful only if\n\t * the implementation supports updating of CAs or CRLs, otherwise the listener\n\t * will not be invoked. \n\t * \n\t * @param listener to be registered\n\t */\n\tpublic void addUpdateListener(StoreUpdateListener listener);\n\t\n\t/**\n\t * Unregisters a previously registered CA or CRL update listener. If the listener\n\t * was not registered then the method does nothing. \n\t * @param listener to be unregistered\n\t */\n\tpublic void removeUpdateListener(StoreUpdateListener listener);\n}", "public URL getTrustStore() {\n URL trustStore = null;\n if (trustStoreLocation != null) {\n try {\n trustStore = new URL(\"file:\" + trustStoreLocation);\n }\n catch (Exception e) {\n log.error(\"Truststore has a malformed name: \" + trustStoreLocation, e);\n }\n }\n return trustStore;\n }", "@Nonnull\n public static KeyStore loadKeyStore(String filename, String password)\n throws IOException, GeneralSecurityException {\n return loadKeyStore(FileUtil.getContextFile(filename), password);\n }", "public T useTransportSecurity(InputStream certChain, InputStream privateKey) {\n throw new UnsupportedOperationException();\n }", "public void updateCertificateEnter(String certificateId) throws ClassNotFoundException, SQLException;", "public CertificateValidator(KeyStore trustStore, Collection<? extends CRL> crls)\n {\n _trustStore = trustStore;\n _crls = crls;\n }", "public abstract void\n verifyOriginalPacket_(CertificateV2 trustedCertificate);", "@SuppressFBWarnings(value = \"EXS_EXCEPTION_SOFTENING_NO_CONSTRAINTS\",\n\t\t\tjustification = \"converting checked to unchecked exceptions that must not be thrown\")\n\tpublic static KeyStore loadKeyStore(final Path jksFilePath, final String password)\n\t\t\tthrows CertificateException, IOException {\n\t\ttry (InputStream inputStream = Files.newInputStream(jksFilePath)) {\n\t\t\tfinal KeyStore keyStore = KeyStore.getInstance(\"JKS\");\n\t\t\tkeyStore.load(inputStream, password.toCharArray());\n\t\t\treturn keyStore;\n\t\t} catch (final KeyStoreException | NoSuchAlgorithmException e) {\n\t\t\tthrow new SneakyException(e);\n\t\t}\n\t}", "private SSLContext initSSLContext() {\n KeyStore ks = KeyStoreUtil.loadSystemKeyStore();\n if (ks == null) {\n _log.error(\"Key Store init error\");\n return null;\n }\n if (_log.shouldLog(Log.INFO)) {\n int count = KeyStoreUtil.countCerts(ks);\n _log.info(\"Loaded \" + count + \" default trusted certificates\");\n }\n\n File dir = new File(_context.getBaseDir(), CERT_DIR);\n int adds = KeyStoreUtil.addCerts(dir, ks);\n int totalAdds = adds;\n if (adds > 0 && _log.shouldLog(Log.INFO))\n _log.info(\"Loaded \" + adds + \" trusted certificates from \" + dir.getAbsolutePath());\n if (!_context.getBaseDir().getAbsolutePath().equals(_context.getConfigDir().getAbsolutePath())) {\n dir = new File(_context.getConfigDir(), CERT_DIR);\n adds = KeyStoreUtil.addCerts(dir, ks);\n totalAdds += adds;\n if (adds > 0 && _log.shouldLog(Log.INFO))\n _log.info(\"Loaded \" + adds + \" trusted certificates from \" + dir.getAbsolutePath());\n }\n dir = new File(System.getProperty(\"user.dir\"));\n if (!_context.getBaseDir().getAbsolutePath().equals(dir.getAbsolutePath())) {\n dir = new File(_context.getConfigDir(), CERT_DIR);\n adds = KeyStoreUtil.addCerts(dir, ks);\n totalAdds += adds;\n if (adds > 0 && _log.shouldLog(Log.INFO))\n _log.info(\"Loaded \" + adds + \" trusted certificates from \" + dir.getAbsolutePath());\n }\n if (_log.shouldLog(Log.INFO))\n _log.info(\"Loaded total of \" + totalAdds + \" new trusted certificates\");\n\n try {\n SSLContext sslc = SSLContext.getInstance(\"TLS\");\n TrustManagerFactory tmf = TrustManagerFactory.getInstance(TrustManagerFactory.getDefaultAlgorithm());\n tmf.init(ks);\n X509TrustManager defaultTrustManager = (X509TrustManager)tmf.getTrustManagers()[0];\n _stm = new SavingTrustManager(defaultTrustManager);\n sslc.init(null, new TrustManager[] {_stm}, null);\n /****\n if (_log.shouldLog(Log.DEBUG)) {\n SSLEngine eng = sslc.createSSLEngine();\n SSLParameters params = sslc.getDefaultSSLParameters();\n String[] s = eng.getSupportedProtocols();\n Arrays.sort(s);\n _log.debug(\"Supported protocols: \" + s.length);\n for (int i = 0; i < s.length; i++) {\n _log.debug(s[i]);\n }\n s = eng.getEnabledProtocols();\n Arrays.sort(s);\n _log.debug(\"Enabled protocols: \" + s.length);\n for (int i = 0; i < s.length; i++) {\n _log.debug(s[i]);\n }\n s = params.getProtocols();\n if (s == null)\n s = new String[0];\n _log.debug(\"Default protocols: \" + s.length);\n Arrays.sort(s);\n for (int i = 0; i < s.length; i++) {\n _log.debug(s[i]);\n }\n s = eng.getSupportedCipherSuites();\n Arrays.sort(s);\n _log.debug(\"Supported ciphers: \" + s.length);\n for (int i = 0; i < s.length; i++) {\n _log.debug(s[i]);\n }\n s = eng.getEnabledCipherSuites();\n Arrays.sort(s);\n _log.debug(\"Enabled ciphers: \" + s.length);\n for (int i = 0; i < s.length; i++) {\n _log.debug(s[i]);\n }\n s = params.getCipherSuites();\n if (s == null)\n s = new String[0];\n _log.debug(\"Default ciphers: \" + s.length);\n Arrays.sort(s);\n for (int i = 0; i < s.length; i++) {\n _log.debug(s[i]);\n }\n }\n ****/\n return sslc;\n } catch (GeneralSecurityException gse) {\n _log.error(\"Key Store update error\", gse);\n } catch (ExceptionInInitializerError eiie) {\n // java 9 b134 see ../crypto/CryptoCheck for example\n // Catching this may be pointless, fetch still fails\n _log.error(\"SSL context error - Java 9 bug?\", eiie);\n }\n return null;\n }", "public static void \n setDefaultTrustedCertificates(TrustedCertificates trusted) {\n\n trustedCertificates = trusted;\n }", "private static Certificate getCertficateFromFile(File certFile) throws Exception{\n\t\tCertificate certificate = null;\n\t\tInputStream certInput = null;\n\t\ttry {\n\t\t\tcertInput = new BufferedInputStream(new FileInputStream(certFile));\n\t\t\tCertificateFactory certFactory = CertificateFactory.getInstance(DEFAULT_CERTIFCATE_TYPE);\n\t\t\tcertificate = certFactory.generateCertificate(certInput);\n\t\t} catch (Exception ex) {\n\t\t\tthrow new Exception(\"提取证书文件[\" + certFile.getName() + \"]认证失败,原因[\" + ex.getMessage() + \"]\");\n\t\t} finally {\n\t\t\t//IOUtils.closeQuietly(certInput);\n\t\t}\n\t\treturn certificate;\n\t}", "public File getMySQLSSLTrustStore() throws GuacamoleException {\n return getProperty(MySQLGuacamoleProperties.MYSQL_SSL_TRUST_STORE);\n }", "private void loadCert(String certPath, long latestLastModified, \n Map newCertFileMap, Map newCertSubjectDNMap, \n String policyPath, long policyModified, \n Map newPolicyFileMap, Map newPolicyDNMap) {\n\n X509Certificate cert = null;\n \n if (this.certFileMap == null) {\n this.certFileMap = new HashMap();\n }\n\n if (this.policyFileMap == null) {\n this.policyFileMap = new HashMap();\n }\n\n TimestampEntry certEntry = \n (TimestampEntry)this.certFileMap.get(certPath);\n TimestampEntry policyEntry =\n (TimestampEntry)this.policyFileMap.get(policyPath);\n try {\n if (certEntry == null) {\n logger.debug(\"Loading \" + certPath + \" certificate.\");\n cert = CertUtil.loadCertificate(certPath);\n String caDN = cert.getSubjectDN().getName();\n certEntry = new TimestampEntry();\n certEntry.setValue(cert);\n certEntry.setLastModified(latestLastModified);\n certEntry.setDescription(caDN);\n this.changed = true;\n // load signing policy file\n logger.debug(\"Loading \" + policyPath + \" signing policy.\");\n policyEntry = getPolicyEntry(policyPath, policyModified, caDN);\n } else if (latestLastModified > certEntry.getLastModified()) {\n logger.debug(\"Reloading \" + certPath + \" certificate.\");\n cert = CertUtil.loadCertificate(certPath);\n String caDN = cert.getSubjectDN().getName();\n certEntry.setValue(cert);\n certEntry.setLastModified(latestLastModified);\n certEntry.setDescription(caDN);\n this.changed = true;\n if (policyModified > policyEntry.getLastModified()) {\n logger.debug(\"Reloading \" + policyPath \n + \" signing policy.\");\n policyEntry = getPolicyEntry(policyPath, policyModified, \n caDN);\n }\n } else {\n logger.debug(\"Certificate \" + certPath + \" is up-to-date.\");\n cert = (X509Certificate)certEntry.getValue();\n String caDN = cert.getSubjectDN().getName();\n if (policyModified > policyEntry.getLastModified()) {\n logger.debug(\"Reloading \" + policyPath \n + \" signing policy.\");\n policyEntry = getPolicyEntry(policyPath, policyModified, \n caDN);\n }\n }\n newCertFileMap.put(certPath, certEntry);\n newCertSubjectDNMap.put(certEntry.getDescription(), cert);\n newPolicyFileMap.put(policyPath, policyEntry);\n newPolicyDNMap.put(policyEntry.getDescription(), \n policyEntry.getValue());\n } catch (SigningPolicyParserException e) {\n logger.warn(\"Signing policy \" + policyPath + \" failed to load. \"\n + e.getMessage());\n logger.debug(\"Signing policy load error\", e);\n } catch (IOException e) {\n logger.warn(\"Certificate \" + certPath + \" failed to load.\" \n + e.getMessage());\n logger.debug(\"Certificate load error\", e);\n } catch (Exception e) {\n logger.warn(\"Certificate \" + certPath + \" or Signing policy \"\n + policyPath + \" failed to load. \" + e.getMessage());\n logger.debug(\"Certificate/Signing policy load error.\", e);\n }\n }", "@Override\n \t\t\tpublic void checkClientTrusted(X509Certificate[] chain,\n \t\t\t\t\tString authType) throws CertificateException {\n \t\t\t\t\n \t\t\t}", "public void validate(KeyStore keyStore, Certificate cert) throws CertificateException\n {\n if (cert != null && cert instanceof X509Certificate)\n {\n ((X509Certificate)cert).checkValidity();\n \n String certAlias = \"[none]\";\n try\n {\n certAlias = keyStore.getCertificateAlias((X509Certificate)cert);\n Certificate[] certChain = keyStore.getCertificateChain(certAlias);\n \n ArrayList<X509Certificate> certList = new ArrayList<X509Certificate>();\n for (Certificate item : certChain)\n {\n if (!(item instanceof X509Certificate))\n {\n throw new CertificateException(\"Invalid certificate type in chain\");\n }\n certList.add((X509Certificate)item);\n }\n \n if (certList.isEmpty())\n {\n throw new CertificateException(\"Invalid certificate chain\");\n \n }\n \n X509CertSelector certSelect = new X509CertSelector();\n certSelect.setCertificate(certList.get(0));\n \n // Configure certification path builder parameters\n PKIXBuilderParameters pbParams = new PKIXBuilderParameters(_trustStore, certSelect);\n pbParams.addCertStore(CertStore.getInstance(\"Collection\", new CollectionCertStoreParameters(certList)));\n \n // Set static Certificate Revocation List\n if (_crls != null && !_crls.isEmpty())\n {\n pbParams.addCertStore(CertStore.getInstance(\"Collection\", new CollectionCertStoreParameters(_crls)));\n }\n \n // Enable revocation checking\n pbParams.setRevocationEnabled(true);\n \n // Set maximum certification path length\n pbParams.setMaxPathLength(_maxCertPathLength);\n \n // Build certification path\n CertPathBuilderResult buildResult = CertPathBuilder.getInstance(\"PKIX\").build(pbParams); \n \n // Validate certification path\n CertPathValidator.getInstance(\"PKIX\").validate(buildResult.getCertPath(),pbParams);\n }\n catch (Exception ex)\n {\n Log.debug(ex);\n throw new CertificateException(\"Unable to validate certificate for alias [\" +\n certAlias + \"]: \" + ex.getMessage());\n }\n } \n }", "@Override\n public X509Certificate decodePemEncodedCertificate(Reader certificateReader) {\n Certificate certificate;\n\n // the JCA CertificateFactory takes an InputStream, so convert the reader to a stream first. converting to a String first\n // is not ideal, but is relatively straightforward. (PEM certificates should only contain US_ASCII-compatible characters.)\n try (InputStream certificateAsStream = new ByteArrayInputStream(CharStreams.toString(certificateReader).getBytes(StandardCharsets.US_ASCII))) {\n CertificateFactory certificateFactory = CertificateFactory.getInstance(\"X.509\");\n certificate = certificateFactory.generateCertificate(certificateAsStream);\n } catch (CertificateException | IOException e) {\n throw new ImportException(\"Unable to read PEM-encoded X509Certificate\", e);\n }\n\n if (!(certificate instanceof X509Certificate)) {\n throw new ImportException(\"Attempted to import non-X.509 certificate as X.509 certificate\");\n }\n\n return (X509Certificate) certificate;\n }", "public interface CertService {\n\n /**\n * Retrieves the root certificate.\n * \n * @return\n * @throws CertException\n */\n public X509Certificate getRootCertificate() throws CertException;\n\n /**\n * Sets up a root service to be used for CA-related services like certificate request signing and certificate\n * revocation.\n * \n * @param keystore\n * @throws CertException\n */\n public void setRootService(RootService rootService) throws CertException;\n\n /**\n * Retrieves a KeyStore object from a supplied InputStream. Requires a keystore password.\n * \n * @param userId\n * @return\n */\n public KeyStore getKeyStore(InputStream keystoreIS, String password) throws CertException;\n\n /**\n * Retrieves existing private and public key from a KeyStore.\n * \n * @param userId\n * @return\n */\n public KeyPair getKeyPair(KeyStore ks, String keyAlias, String certificateAlias, String keyPassword)\n throws CertException;\n\n /**\n * Retrieves an existing certificate from a keystore using keystore's certificate alias.\n * \n * @param userId\n * @return\n */\n public X509Certificate getCertificate(KeyStore keystore, String certificateAlias) throws CertException;\n\n /**\n * Generates a private key and a public certificate for a user whose X.509 field information was enclosed in a\n * UserInfo parameter. Stores those artifacts in a password protected keystore. This is the principal method for\n * activating a new certificate and signing it with a root certificate.\n * \n * @param userId\n * @return KeyStore based on the provided userInfo\n */\n\n public KeyStore initializeUser(UserInfo userInfo, String keyPassword) throws CertException;\n\n /**\n * Wraps a certificate object into an OutputStream object secured by a keystore password\n * \n * @param keystore\n * @param os\n * @param keystorePassword\n * @throws CertException\n */\n public void storeCertificate(KeyStore keystore, OutputStream os, String keystorePassword) throws CertException;\n\n /**\n * Extracts the email address from a certificate\n * \n * @param certificate\n * @return\n * @throws CertException\n */\n public String getCertificateEmail(X509Certificate certificate) throws CertException;\n\n}", "@Override\r\n\t\t\t\tpublic void checkClientTrusted(\r\n\t\t\t\t\t\tjava.security.cert.X509Certificate[] chain,\r\n\t\t\t\t\t\tString authType) throws CertificateException {\n\t\t\t\t\t\r\n\t\t\t\t}", "@Override\r\n\t\t\t\tpublic void checkClientTrusted(\r\n\t\t\t\t\t\tjava.security.cert.X509Certificate[] chain,\r\n\t\t\t\t\t\tString authType) throws CertificateException {\n\t\t\t\t\t\r\n\t\t\t\t}", "@Override\r\n\tpublic void checkClientTrusted(X509Certificate[] chain, String authType) throws CertificateException {\n\t\t\r\n\t}", "@Nonnull\n public static KeyStore loadKeyStore(File file, String password)\n throws IOException, GeneralSecurityException {\n KeyStore keyStore = KeyStore.getInstance(\"jks\");\n FileInputStream stream = new FileInputStream(file);\n try {\n keyStore.load(stream, password.toCharArray());\n } finally {\n stream.close();\n }\n return keyStore;\n }", "@Override\n\tpublic Certificate readCertificate(String file, String certNaziv) {\n\n\t\ttry {\n\t\t\tKeyStore ks = KeyStore.getInstance(\"JKS\", \"SUN\");\n\t\t\tBufferedInputStream in = new BufferedInputStream(\n\t\t\t\t\tnew FileInputStream(new File(file)));\n\n\t\t\tks.load(in, certNaziv.toCharArray());\n\t\t\tif (ks.isKeyEntry(certNaziv.toLowerCase())) {\n\t\t\t\tCertificate cert = ks.getCertificate(certNaziv);\n\t\t\t\treturn cert;\n\t\t\t} else\n\t\t\t\treturn null;\n\t\t} catch (KeyStoreException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t} catch (NoSuchProviderException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t} catch (FileNotFoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t} catch (NoSuchAlgorithmException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t} catch (CertificateException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t}\n\t}", "public void loadKey(File in, File privateKeyFile) throws GeneralSecurityException, IOException {\n\t byte[] encodedKey = new byte[(int)privateKeyFile.length()];\n\t FileInputStream is = new FileInputStream(privateKeyFile);\n\t is.read(encodedKey);\n\t \n\t // create private key\n\t PKCS8EncodedKeySpec privateKeySpec = new PKCS8EncodedKeySpec(encodedKey);\n\t KeyFactory kf = KeyFactory.getInstance(\"RSA\");\n\t PrivateKey pk = kf.generatePrivate(privateKeySpec);\n\t \n\t // read AES key\n\t pkCipher.init(Cipher.DECRYPT_MODE, pk);\n\t aesKey = new byte[256/8];\n\t CipherInputStream cis = new CipherInputStream(new FileInputStream(in), pkCipher);\n\t cis.read(aesKey);\n\t aesKeySpec = new SecretKeySpec(aesKey, \"AES\");\n\t cis.close();\n\t is.close();\n\t }", "public void setTlsCert(String tlsCert);", "@Override\r\n\t\t\tpublic void checkClientTrusted(X509Certificate[] chain, String authType)\r\n\t\t\t\t\tthrows CertificateException {\n\t\t\t\t\r\n\t\t\t}", "@Override\n public TelemetryExporterBuilder<T> setTrustedCertificates(byte[] certificates) {\n delegate.setTrustedCertificates(certificates);\n tlsConfigHelper.setTrustManagerFromCerts(certificates);\n return this;\n }", "@Override\n\tpublic void checkClientTrusted(X509Certificate[] chain, String authType)\n\t\t\tthrows CertificateException {\n\t\t\n\t}", "@Override\n\t\t\t\tpublic void checkClientTrusted(X509Certificate[] chain, String authType) throws CertificateException {\n\n\t\t\t\t}", "@Override\r\n\t\t\t\t\t\t\tpublic void checkClientTrusted(X509Certificate[] chain,\r\n\t\t\t\t\t\t\t\t\tString authType) throws CertificateException {\r\n\t\t\t\t\t\t\t}", "public final CertificateV2\n verifyCertificateChain_(CertificateV2 trustedCertificate)\n {\n CertificateV2 validatedCertificate = trustedCertificate;\n for (int i = 0; i < certificateChain_.size(); ++i) {\n CertificateV2 certificateToValidate = certificateChain_.get(i);\n\n if (!VerificationHelpers.verifyDataSignature\n (certificateToValidate, validatedCertificate)) {\n fail(new ValidationError(ValidationError.INVALID_SIGNATURE,\n \"Invalid signature of certificate `\" +\n certificateToValidate.getName().toUri() + \"`\"));\n // Remove this and remaining certificates in the chain.\n while (certificateChain_.size() > i)\n certificateChain_.remove(i);\n\n return null;\n }\n else {\n logger_.log(Level.FINE, \"OK signature for certificate `{0}`\",\n certificateToValidate.getName().toUri());\n validatedCertificate = certificateToValidate;\n }\n }\n\n return validatedCertificate;\n }", "public void init() throws Exception {\n\t\tString trustKeyStore = null;\n\t\tString trustKsPsword = null;\n\t\tString trustKsType = null;\n\t\t\n\t\t// Read ssl keystore properties from file\n\t\tProperties properties = new Properties();\n\t\tInputStream sslCertInput = Resources.getResourceAsStream(\"sslCertification.properties\");\n\t\ttry {\n\t\t\tproperties.load(sslCertInput);\n\t\t\ttrustKeyStore = properties.getProperty(\"trustKeyStore\");\n\t\t\ttrustKsPsword = properties.getProperty(\"trustKeyStorePass\");\n\t\t\ttrustKsType = properties.getProperty(\"trustKeyStoreType\");\n\t\t} catch (Exception e) {\n\t\t\tthrow e;\n\t\t} finally {\n\t\t\tsslCertInput.close();\n\t\t}\n \n // Set trust key store factory\n KeyStore trustKs = KeyStore.getInstance(trustKsType); \n FileInputStream trustKSStream = new FileInputStream(trustKeyStore);\n try {\n \ttrustKs.load(trustKSStream, trustKsPsword.toCharArray()); \n } catch (Exception e) {\n \tthrow e;\n } finally {\n \ttrustKSStream.close();\n }\n TrustManagerFactory trustKf = TrustManagerFactory.getInstance(\"SunX509\");\n trustKf.init(trustKs); \n \n // Init SSLContext\n SSLContext context = SSLContext.getInstance(\"TLSv1.2\"); \n context.init(null, trustKf.getTrustManagers(), null); \n sslFactory = context.getSocketFactory();\n \n\t\treturn;\n\t}", "public void importKeyFromJcaKeystore(KeyStore jcaKeystore,\n String alias, String domain)\n throws IOException, GeneralSecurityException {\n X509Certificate cert;\n byte[] der;\n TLV tbsCert;\n TLV subjectName;\n RSAPublicKey rsaKey;\n String owner;\n long notBefore;\n long notAfter;\n byte[] rawModulus;\n int i;\n int keyLen;\n byte[] modulus;\n byte[] exponent;\n Vector keys;\n\n // get the cert from the keystore\n try {\n cert = (X509Certificate)jcaKeystore.getCertificate(alias);\n } catch (ClassCastException cce) {\n throw new CertificateException(\"Certificate not X.509 type\");\n }\n\n if (cert == null) {\n throw new CertificateException(\"Certificate not found\");\n }\n\n /*\n * J2SE reorders the attributes when building a printable name\n * so we must build a printable name on our own.\n */\n\n /*\n * TBSCertificate ::= SEQUENCE {\n * version [0] EXPLICIT Version DEFAULT v1,\n * serialNumber CertificateSerialNumber,\n * signature AlgorithmIdentifier,\n * issuer Name,\n * validity Validity,\n * subject Name,\n * subjectPublicKeyInfo SubjectPublicKeyInfo,\n * issuerUniqueID [1] IMPLICIT UniqueIdentifier OPTIONAL,\n * -- If present, version shall be v2 or v3\n * subjectUniqueID [2] IMPLICIT UniqueIdentifier OPTIONAL,\n * -- If present, version shall be v2 or v3\n * extensions [3] EXPLICIT Extensions OPTIONAL\n * -- If present, version shall be v3\n * }\n */\n der = cert.getTBSCertificate();\n tbsCert = new TLV(der, 0);\n\n // walk down the tree of TLVs to find the subject name\n try {\n // Top level a is Sequence, drop down to the first child\n subjectName = tbsCert.child;\n\n // skip the version if present.\n if (subjectName.type == TLV.VERSION_TYPE) {\n subjectName = subjectName.next;\n }\n\n // skip the serial number\n subjectName = subjectName.next;\n \n // skip the signature alg. id.\n subjectName = subjectName.next;\n \n // skip the issuer\n subjectName = subjectName.next;\n \n // skip the validity\n subjectName = subjectName.next;\n\n owner = parseDN(der, subjectName);\n } catch (NullPointerException e) {\n throw new CertificateException(\"TBSCertificate corrupt 1\");\n } catch (IndexOutOfBoundsException e) {\n throw new CertificateException(\"TBSCertificate corrupt 2\");\n }\n\n notBefore = cert.getNotBefore().getTime();\n notAfter = cert.getNotAfter().getTime();\n\n // get the key from the cert\n try {\n rsaKey = (RSAPublicKey)cert.getPublicKey();\n } catch (ClassCastException cce) {\n throw new RuntimeException(\"Key in certificate is not an RSA key\");\n }\n\n // get the key parameters from the key\n rawModulus = rsaKey.getModulus().toByteArray();\n\n /*\n * the modulus is given as the minimum positive integer,\n * will not padded to the bit size of the key, or may have a extra\n * pad to make it positive. SSL expects the key to be signature\n * bit size. but we cannot get that from the key, so we should\n * remove any zero pad bytes and then pad out to a multiple of 8 bytes\n */\n for (i = 0; i < rawModulus.length && rawModulus[i] == 0; i++);\n\n keyLen = rawModulus.length - i;\n keyLen = (keyLen + 7) / 8 * 8;\n modulus = new byte[keyLen];\n\n int k, j;\n for (k = rawModulus.length - 1, j = keyLen - 1;\n k >= 0 && j >= 0; k--, j--) {\n modulus[j] = rawModulus[k];\n }\n\n exponent = rsaKey.getPublicExponent().toByteArray();\n\n // add the key\n keys = keystore.findKeys(owner);\n if (keys != null) {\n boolean duplicateKey = false;\n\n for (int n = 0; !duplicateKey && n < keys.size(); n++) {\n PublicKeyInfo key = (PublicKeyInfo)keys.elementAt(n);\n\n if (key.getOwner().equals(owner)) {\n byte[] temp = key.getModulus();\n\n if (modulus.length == temp.length) {\n duplicateKey = true;\n for (int m = 0; j < modulus.length && m < temp.length;\n m++) {\n if (modulus[m] != temp[m]) {\n duplicateKey = false;\n break;\n }\n }\n }\n }\n }\n \n if (duplicateKey) {\n throw new CertificateException(\n \"Owner already has this key in the ME keystore\");\n }\n }\n \n keystore.addKey(new PublicKeyInfo(owner, notBefore, notAfter,\n modulus, exponent, domain));\n }", "@Override\n\t\t\t\tpublic void checkClientTrusted(\n\t\t\t\t\t\tjava.security.cert.X509Certificate[] chain,\n\t\t\t\t\t\tString authType) throws CertificateException {\n\n\t\t\t\t}", "public static X509Certificate[] loadCertificates(String file)\n throws IOException, GeneralSecurityException {\n\n if (file == null) {\n throw new IllegalArgumentException(\"Certificate file is null\");\n //i18n\n // .getMessage(\"certFileNull\"));\n }\n\n List<X509Certificate> list = new ArrayList<X509Certificate>();\n BufferedReader reader = new BufferedReader(new FileReader(file));\n X509Certificate cert = readCertificate(reader);\n try {\n while (cert != null) {\n list.add(cert);\n cert = readCertificate(reader);\n }\n } finally {\n reader.close();\n }\n\n if (list.size() == 0) {\n throw new GeneralSecurityException(\"No certificate data\");\n //i18n.getMessage(\"noCertData\"));\n }\n\n int size = list.size();\n return list.toArray(new X509Certificate[size]);\n }", "@Override\n public void checkClientTrusted(java.security.cert.X509Certificate[] chain, String authType)\n throws java.security.cert.CertificateException {\n }", "private void start(String filePath, String password) throws CmsCadesException,\n GeneralSecurityException, IOException, TspVerificationException {\n getKeyAndCerts(filePath, password);\n\n // sign some bytes\n byte[] somerandomdata = new byte[100];\n Random random = new Random();\n random.nextBytes(somerandomdata);\n byte[] signature = signData(somerandomdata);\n System.out.println(\"signed some random data\");\n\n System.out.println(\"verify the signature: \");\n verifyCadesSignature(signature, somerandomdata);\n\n // sign a file stream\n FileInputStream dataStream = new FileInputStream(fileToBeSigned);\n signDataStream(dataStream, signatureFile);\n dataStream.close();\n System.out.println(\n \"signed file \" + fileToBeSigned + \" and saved signature to \" + signatureFile);\n\n System.out.println(\"verify the signature contained in \" + signatureFile + \":\");\n FileInputStream sigStream = new FileInputStream(signatureFile);\n dataStream = new FileInputStream(fileToBeSigned);\n verifyCadesSignatureStream(sigStream, dataStream);\n sigStream.close();\n dataStream.close();\n }", "public ImportCertificateRequest withCertificate(java.nio.ByteBuffer certificate) {\n setCertificate(certificate);\n return this;\n }", "private void deleteTrustedCertificate() {\n\t\t// Which entries have been selected?\n\t\tint[] selectedRows = trustedCertsTable.getSelectedRows();\n\t\tif (selectedRows.length == 0) // no trusted cert entry selected\n\t\t\treturn;\n\n\t\t// Ask user to confirm the deletion\n\t\tif (showConfirmDialog(\n\t\t\t\tnull,\n\t\t\t\t\"Are you sure you want to delete the selected trusted certificate(s)?\",\n\t\t\t\tALERT_TITLE, YES_NO_OPTION) != YES_OPTION)\n\t\t\treturn;\n\n\t\tString exMessage = null;\n\t\tfor (int i = selectedRows.length - 1; i >= 0; i--) { // delete from backwards\n\t\t\t// Get the alias for the current entry\n\t\t\tString alias = (String) trustedCertsTable.getModel().getValueAt(\n\t\t\t\t\tselectedRows[i], 5);\n\t\t\ttry {\n\t\t\t\t// Delete the trusted certificate entry from the Truststore\n\t\t\t\tcredManager.deleteTrustedCertificate(alias);\n\t\t\t} catch (CMException cme) {\n\t\t\t\texMessage = \"Failed to delete the trusted certificate(s) from the Truststore\";\n\t\t\t\tlogger.error(exMessage, cme);\n\t\t\t}\n\t\t}\n\t\tif (exMessage != null)\n\t\t\tshowMessageDialog(this, exMessage, ERROR_TITLE, ERROR_MESSAGE);\n\t}", "private void loadStore() throws Exception {\n\t\tkeyStore = KeyStore.getInstance(keyStoreType.toUpperCase());\n\t\tFileInputStream fis = null;\n\t\ttry {\n\t\t\tfis = new FileInputStream(keyStorePath);\n\t\t\tkeyStore.load(fis, keyStorePass.toCharArray());\n\t\t} catch (CertificateException | IOException e) {\n\t\t\twriteToLog(\"Error while trying to load the key-store\");\n\t\t\tLogWriter.close();\n\t\t\tthrow new Exception(\"Error while trying to load the key-store\", e);\n\t\t} finally {\n\t\t\tif (fis != null) {\n\t\t\t\tfis.close();\n\t\t\t}\n\t\t}\n\t}", "public SignatureVerifier(String filePath) throws IOException, GeneralSecurityException {\n\t\tif (log.isDebugEnabled()) {\n\t\t\tlog.debug(\"SignatureVerifier:\" + filePath);\n\t\t}\n\t\tthis.publicKey = (PublicKey) GeneralUtils.readObjectFromFile(filePath + \".pub\");\n\t}", "private static void handleSSLCertificate() throws Exception {\n\t\tTrustManager[] trustAllCerts = new TrustManager[] { new X509TrustManager() {\n\t\t\tpublic X509Certificate[] getAcceptedIssuers() {\n\t\t\t\treturn null;\n\t\t\t}\n\n\t\t\tpublic void checkClientTrusted(X509Certificate[] certs,\n\t\t\t\t\tString authType) {\n\t\t\t\t// Trust always\n\t\t\t}\n\n\t\t\tpublic void checkServerTrusted(X509Certificate[] certs,\n\t\t\t\t\tString authType) {\n\t\t\t\t// Trust always\n\t\t\t}\n\t\t} };\n\n\t\t// Install the all-trusting trust manager\n\t\tSSLContext sc = SSLContext.getInstance(\"SSL\");\n\t\t// Create empty HostnameVerifier\n\t\tHostnameVerifier hv = new HostnameVerifier() {\n\t\t\tpublic boolean verify(String arg0, SSLSession arg1) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t};\n\n\t\tsc.init(null, trustAllCerts, new java.security.SecureRandom());\n\t\tHttpsURLConnection.setDefaultSSLSocketFactory(sc.getSocketFactory());\n\t\tHttpsURLConnection.setDefaultHostnameVerifier(hv);\n\t}", "@Override\n\t\t\tpublic void checkClientTrusted(\n\t\t\t\t\tjava.security.cert.X509Certificate[] chain,\n\t\t\t\t\tString authType)\n\t\t\t\t\t\t\tthrows java.security.cert.CertificateException {\n\n\t\t\t}", "public ValidationResult validate(CertPath certPath);", "@Override\n\tpublic boolean isTrusted(X509Certificate[] chain, String authType)\n\t\t\tthrows CertificateException {\n\t\treturn false;\n\t}", "@Override\n \t public void checkClientTrusted(\n \t X509Certificate[] chain,\n \t String authType) throws CertificateException {\n \t }", "void importPKCS12Certificate(InputStream is)\n {\n\tKeyStore myKeySto = null;\n\t// passord\n\tchar[] password = null;\n\t\n\ttry\n\t{\n\t myKeySto = KeyStore.getInstance(\"PKCS12\");\n\n\t // Pop up password dialog box\n Object dialogMsg = getMessage(\"dialog.password.text\");\n JPasswordField passwordField = new JPasswordField();\n\n Object[] msgs = new Object[2];\n msgs[0] = new JLabel(dialogMsg.toString());\n msgs[1] = passwordField;\n\n JButton okButton = new JButton(getMessage(\"dialog.password.okButton\"));\n JButton cancelButton = new JButton(getMessage(\"dialog.password.cancelButton\"));\n\n String title = getMessage(\"dialog.password.caption\");\n Object[] options = {okButton, cancelButton};\n int selectValue = DialogFactory.showOptionDialog(this, msgs, title, options, options[0]);\n\n\t // for security purpose, DO NOT put password into String. Reset password as soon as \n\t // possible.\n\t password = passwordField.getPassword();\n\n\t // User click OK button\n if (selectValue == 0)\n {\n\t // Load KeyStore based on the password\n\t myKeySto.load(is,password);\n\n\t // Get Alias list from KeyStore.\n\t Enumeration aliasList = myKeySto.aliases();\n\n\t while (aliasList.hasMoreElements())\n\t {\n\t\t\tX509Certificate cert = null;\n\n\t\t\t// Get Certificate based on the alias name\n\t\t\tString certAlias = (String)aliasList.nextElement();\n\t\t\tcert = (X509Certificate)myKeySto.getCertificate(certAlias);\n\n\t\t\t// Add to import list based on radio button selection\n\t\t\t\tif (getRadioPos() == mh.getMessage(\"SignedApplet_value\"))\n \t\t\t\t model.deactivateImpCertificate(cert);\n\t\t\t\telse if (getRadioPos() == mh.getMessage(\"SecureSite_value\"))\n \t\t\t\t model.deactivateImpHttpsCertificate(cert);\n\t }\n\t } // OK button\n\t}\n\tcatch(Throwable e)\n\t{\n\t // Show up Error dialog box if the user enter wrong password\n\t // Avoid to convert password array into String - security reason\n\t String uninitializedValue = \"uninitializedValue\";\n\t if (!compareCharArray(password, uninitializedValue.toCharArray()))\n\t {\n\t\t\tString errorMsg = getMessage(\"dialog.import.password.text\");\n\t\t\t\t\tString errorTitle = getMessage(\"dialog.import.error.caption\");\n\t \t\tDialogFactory.showExceptionDialog(this, e, errorMsg, errorTitle);\n\t }\n\t}\n\tfinally {\n\t\t// Reset password\n\t\tif(password != null) {\n\t\t\tjava.util.Arrays.fill(password, ' ');\n\t\t}\n\t}\n }", "public void checkServerTrusted ( X509Certificate[] chain, String authType ) throws CertificateException { \n //String to hold the issuer of first member in the chain\n String issuer = \"\";\n //String to hold the subject of the first member in the chain\n String subject = \"\";\n //Calendar to get the valid on and expires on date\n Calendar cal=Calendar.getInstance();\n //Date and String to hold the date the certificate was issued on\n Date issuedOn = null;\n String issuedOnString = new String(\"\");\n //Date and String to hold the date the certificate is valid until\n Date expiresOn = null;\n String expiresOnString = new String(\"\");\n //BigInteger to hold the serial number of the certificate\n BigInteger serial = null;\n //the highest certificate in the chain (the root)\n X509Certificate highestCert = null;\n \n try {\n highestCert = chain[0];\n issuer = highestCert.getIssuerX500Principal().toString();\n subject = highestCert.getSubjectX500Principal().toString();\n serial = highestCert.getSerialNumber();\n \n issuedOn = highestCert.getNotBefore();\n cal.setTime(issuedOn);\n issuedOnString = new String((cal.get(Calendar.MONTH)+1) + \"/\"+cal.get(Calendar.DAY_OF_MONTH)+\"/\"+cal.get(Calendar.YEAR));\n expiresOn = highestCert.getNotAfter();\n cal.setTime(expiresOn);\n expiresOnString = new String( (cal.get(Calendar.MONTH)+1) + \"/\"+cal.get(Calendar.DAY_OF_MONTH)+\"/\"+cal.get(Calendar.YEAR));\n \n mTrustManager.checkServerTrusted(chain, authType);\n } catch (CertificateException cx) { \n \t if ( !mAllowUntrusted )\n \t {\n \t\t ERTrustManagerCertificateException erce = new ERTrustManagerCertificateException(\"\\nUntrusted Certificate Found: \"+\n \"\\nIssued by: \"+ issuer + \n \"\\nIssued to: \" + subject + \n \"\\nIssued on: \" + issuedOnString + \n \"\\nExpires on: \" + expiresOnString + \n \"\\nSerial: \" + serial); \n \t\t erce.setCertificate(highestCert);\n \n \t throw erce;\n \t }\n }\n\n }", "@Override\n \t\t\tpublic void checkServerTrusted(X509Certificate[] chain,\n \t\t\t\t\tString authType) throws CertificateException {\n \t\t\t\t\n \t\t\t}", "private void addCertificate(com.google.protobuf.ByteString value) {\n java.lang.Class<?> valueClass = value.getClass();\n ensureCertificateIsMutable();\n certificate_.add(value);\n }", "public void checkClientTrusted(X509Certificate[] chain, String authType) {}", "private static void importCommand(File meKeystoreFile, String[] args)\n throws Exception {\n String jcaKeystoreFilename = null;\n String keystorePassword = null;\n String alias = null;\n String domain = \"identified\";\n MEKeyTool keyTool;\n\n for (int i = 1; i < args.length; i++) {\n try {\n if (args[i].equals(\"-MEkeystore\")) {\n i++;\n meKeystoreFile = new File(args[i]); \n } else if (args[i].equals(\"-keystore\")) {\n i++;\n jcaKeystoreFilename = args[i]; \n } else if (args[i].equals(\"-storepass\")) {\n i++;\n keystorePassword = args[i]; \n } else if (args[i].equals(\"-alias\")) {\n i++;\n alias = args[i];\n } else if (args[i].equals(\"-domain\")) {\n i++;\n domain = args[i];\n } else {\n throw new UsageException(\n \"Invalid argument for import command: \" + args[i]);\n }\n } catch (ArrayIndexOutOfBoundsException e) {\n throw new UsageException(\"Missing value for \" + args[--i]);\n }\n }\n\n if (jcaKeystoreFilename == null) {\n jcaKeystoreFilename = System.getProperty(\n DEFAULT_KEYSTORE_PROPERTY, \n System.getProperty(\"user.home\") + \n File.separator + \".keystore\");\n }\n \n if (alias == null) {\n throw new Exception(\"J2SE key alias was not given\");\n }\n\n try {\n keyTool = new MEKeyTool(meKeystoreFile);\n } catch (FileNotFoundException fnfe) {\n keyTool = new MEKeyTool();\n }\n\n keyTool.importKeyFromJcaKeystore(jcaKeystoreFilename,\n keystorePassword,\n alias, domain);\n keyTool.saveKeystore(meKeystoreFile);\n }", "public SingleCertificateResolver(X509Certificate paramX509Certificate) {\n/* 45 */ this.certificate = paramX509Certificate;\n/* */ }", "@Override\r\n\t\t\t\tpublic void checkServerTrusted(\r\n\t\t\t\t\t\tjava.security.cert.X509Certificate[] chain,\r\n\t\t\t\t\t\tString authType) throws CertificateException {\n\t\t\t\t\t\r\n\t\t\t\t}", "@Override\r\n\t\t\t\tpublic void checkServerTrusted(\r\n\t\t\t\t\t\tjava.security.cert.X509Certificate[] chain,\r\n\t\t\t\t\t\tString authType) throws CertificateException {\n\t\t\t\t\t\r\n\t\t\t\t}", "@Override\npublic void checkClientTrusted(X509Certificate[] arg0, String arg1)\nthrows CertificateException {\n}", "@Test\n public void testTrustPolicyDocumentWithSigNs() throws IOException, CertificateException, ParserConfigurationException, SAXException, MarshalException, XMLSignatureException {\n }", "@Override\n\t\t\t\tpublic void checkClientTrusted(\n\t\t\t\t\t\tjava.security.cert.X509Certificate[] arg0, String arg1)\n\t\t\t\t\t\tthrows java.security.cert.CertificateException {\n\n\t\t\t\t}", "@Override\n\t\t\t\tpublic void checkClientTrusted(\n\t\t\t\t\t\tjava.security.cert.X509Certificate[] arg0, String arg1)\n\t\t\t\t\t\tthrows java.security.cert.CertificateException {\n\n\t\t\t\t}", "@Override\r\n\tpublic void checkServerTrusted(X509Certificate[] chain, String authType) throws CertificateException {\n\t\t\r\n\t}", "public void checkClientTrusted ( X509Certificate[] chain, String authType ) throws CertificateException {\n //This method should be coded when TrustManager is fully implemented \n try{\n mTrustManager.checkServerTrusted(chain, authType); \n } catch (CertificateException e) {\n //Do nothing for an all trusting TrustManager\n }\n \n }", "public boolean isTrusted(final X509Certificate[] chain, String authType) throws CertificateException {\n return true;\n }", "public void setTlsCertPath(String tlsCertPath);", "public ValidationResult validate(X509Certificate[] certChain);", "@Override\n public void checkClientTrusted(X509Certificate[] chain,\n String authType) throws CertificateException {\n finalDefaultTm.checkClientTrusted(chain, authType);\n }", "private void setTrustedCertificates() {\n TrustManager[] trustAllCerts = new TrustManager[]{new X509TrustManager() {\n public java.security.cert.X509Certificate[] getAcceptedIssuers() {\n return null;\n }\n\n public void checkClientTrusted(X509Certificate[] certs, String authType) {\n }\n\n public void checkServerTrusted(X509Certificate[] certs, String authType) {\n }\n }};\n // Install the all-trusting trust manager\n final SSLContext sc;\n try {\n sc = SSLContext.getInstance(\"TLS\");\n sc.init(null, trustAllCerts, new java.security.SecureRandom());\n } catch (NoSuchAlgorithmException | KeyManagementException e) {\n e.printStackTrace();\n return;\n }\n\n HttpsURLConnection.setDefaultSSLSocketFactory(sc.getSocketFactory());\n // Create all-trusting host name verifier\n HostnameVerifier allHostsValid = new HostnameVerifier() {\n public boolean verify(String hostname, SSLSession session) {\n return true;\n }\n };\n\n // Install the all-trusting host verifier\n HttpsURLConnection.setDefaultHostnameVerifier(allHostsValid);\n }", "public MEKeyTool(File meKeystoreFile)\n throws FileNotFoundException, IOException {\n\n FileInputStream input;\n\n input = new FileInputStream(meKeystoreFile);\n\n try {\n keystore = new PublicKeyStoreBuilderBase(input);\n } finally {\n input.close();\n }\n }", "@Override\npublic void checkServerTrusted(X509Certificate[] arg0, String arg1)\nthrows CertificateException {\n}", "@Override\n public void checkServerTrusted(java.security.cert.X509Certificate[] chain, String authType)\n throws java.security.cert.CertificateException {\n }", "public void checkClientTrusted(java.security.cert.X509Certificate[] certs, String authType) {\n\t\t\t }", "public void testReadGoodCertificates() throws Exception {\n System.out.println(\"readGoodCertificates\");\n \n // The URL doesn't matter here since the test does not trigger\n // a request to the service.\n SsoClient sut = new SsoClient(\"http://foo.bar/baz\");\n \n // This is a known, good certificate-path, supplied as a resource file\n // for the tests. It was derived from a working installation of the\n // accounts service.\n InputStream is = this.getClass().getResourceAsStream(\"/gtr.pkipath\");\n CertPath result = sut.readCertificates(is);\n assertNotNull(result);\n assertEquals(2, result.getCertificates().size());\n \n X509Certificate proxy = (X509Certificate) (result.getCertificates().get(0));\n assertNotNull(proxy);\n \n X509Certificate eec = (X509Certificate) (result.getCertificates().get(1));\n assertNotNull(eec);\n }" ]
[ "0.6615043", "0.64442146", "0.61716706", "0.61410296", "0.58594394", "0.5850034", "0.5832446", "0.5781379", "0.5762925", "0.57158005", "0.55366355", "0.55344236", "0.55335397", "0.5465184", "0.54635316", "0.538718", "0.5369862", "0.53474075", "0.5344368", "0.5337095", "0.5311792", "0.53113383", "0.52995926", "0.52342606", "0.5210316", "0.5204528", "0.5187891", "0.51803905", "0.5155223", "0.51172847", "0.51113755", "0.50815314", "0.50591403", "0.5058249", "0.504104", "0.50393116", "0.50339484", "0.5018046", "0.5009612", "0.500354", "0.50031", "0.5001579", "0.49928182", "0.49907824", "0.49882242", "0.49786973", "0.49737093", "0.4954511", "0.4954511", "0.49530336", "0.49456707", "0.4943339", "0.49154335", "0.49152172", "0.4914283", "0.49099752", "0.4905206", "0.4898212", "0.48924318", "0.4888266", "0.48856544", "0.48777097", "0.48715845", "0.48701388", "0.48614877", "0.48576045", "0.4844938", "0.48412126", "0.48358357", "0.48357683", "0.4833424", "0.48226097", "0.48217893", "0.48205993", "0.48134473", "0.47968668", "0.47859558", "0.47826803", "0.47822788", "0.47797942", "0.47775286", "0.4764306", "0.47614443", "0.47614443", "0.47562644", "0.47473973", "0.47363847", "0.47363847", "0.47339937", "0.47267556", "0.47256246", "0.4724448", "0.4721104", "0.47128075", "0.47125596", "0.47116524", "0.47046632", "0.47035387", "0.46940184", "0.46933955" ]
0.8219292
0
Lets the user export one (at the moment) or more (in future) trusted certificate entries to a PEMencoded file.
private boolean exportTrustedCertificate() { // Which trusted certificate has been selected? int selectedRow = trustedCertsTable.getSelectedRow(); if (selectedRow == -1) // no row currently selected return false; // Get the trusted certificate entry's Keystore alias String alias = (String) trustedCertsTable.getModel() .getValueAt(selectedRow, 3); // the alias column is invisible so we get the value from the table // model // Let the user choose a file to export to File exportFile = selectImportExportFile("Select a file to export to", // title new String[] { ".pem" }, // array of file extensions for the // file filter "Certificate Files (*.pem)", // description of the filter "Export", // text for the file chooser's approve button "trustedCertDir"); // preference string for saving the last chosen directory if (exportFile == null) return false; // If file already exist - ask the user if he wants to overwrite it if (exportFile.isFile() && showConfirmDialog(this, "The file with the given name already exists.\n" + "Do you want to overwrite it?", ALERT_TITLE, YES_NO_OPTION) == NO_OPTION) return false; // Export the trusted certificate try (PEMWriter pw = new PEMWriter(new FileWriter(exportFile))) { // Get the trusted certificate pw.writeObject(credManager.getCertificate(TRUSTSTORE, alias)); } catch (Exception ex) { String exMessage = "Failed to export the trusted certificate from the Truststore."; logger.error(exMessage, ex); showMessageDialog(this, exMessage, ERROR_TITLE, ERROR_MESSAGE); return false; } showMessageDialog(this, "Trusted certificate export successful", ALERT_TITLE, INFORMATION_MESSAGE); return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void exportCertificate(X509Certificate cert, PrintStream ps)\n {\n\tBASE64Encoder encoder = new BASE64Encoder();\n\tps.println(X509Factory.BEGIN_CERT);\n\ttry\n\t{\n\t encoder.encodeBuffer(cert.getEncoded(), ps);\n\t}\n\tcatch (Throwable e)\n\t{\n\t Trace.printException(this, e);\n\t}\n\tps.println(X509Factory.END_CERT);\n }", "private void importTrustedCertificate() {\n\t\t// Let the user choose a file containing trusted certificate(s) to\n\t\t// import\n\t\tFile certFile = selectImportExportFile(\n\t\t\t\t\"Certificate file to import from\", // title\n\t\t\t\tnew String[] { \".pem\", \".crt\", \".cer\", \".der\", \"p7\", \".p7c\" }, // file extensions filters\n\t\t\t\t\"Certificate Files (*.pem, *.crt, , *.cer, *.der, *.p7, *.p7c)\", // filter descriptions\n\t\t\t\t\"Import\", // text for the file chooser's approve button\n\t\t\t\t\"trustedCertDir\"); // preference string for saving the last chosen directory\n\t\tif (certFile == null)\n\t\t\treturn;\n\n\t\t// Load the certificate(s) from the file\n\t\tArrayList<X509Certificate> trustCertsList = new ArrayList<>();\n\t\tCertificateFactory cf;\n\t\ttry {\n\t\t\tcf = CertificateFactory.getInstance(\"X.509\");\n\t\t} catch (Exception e) {\n\t\t\t// Nothing we can do! Things are badly misconfigured\n\t\t\tcf = null;\n\t\t}\n\n\t\tif (cf != null) {\n\t\t\ttry (FileInputStream fis = new FileInputStream(certFile)) {\n\t\t\t\tfor (Certificate cert : cf.generateCertificates(fis))\n\t\t\t\t\ttrustCertsList.add((X509Certificate) cert);\n\t\t\t} catch (Exception cex) {\n\t\t\t\t// Do nothing\n\t\t\t}\n\n\t\t\tif (trustCertsList.size() == 0) {\n\t\t\t\t// Could not load certificates as any of the above types\n\t\t\t\ttry (FileInputStream fis = new FileInputStream(certFile);\n\t\t\t\t\t\tPEMReader pr = new PEMReader(\n\t\t\t\t\t\t\t\tnew InputStreamReader(fis), null, cf\n\t\t\t\t\t\t\t\t\t\t.getProvider().getName())) {\n\t\t\t\t\t/*\n\t\t\t\t\t * Try as openssl PEM format - which sligtly differs from\n\t\t\t\t\t * the one supported by JCE\n\t\t\t\t\t */\n\t\t\t\t\tObject cert;\n\t\t\t\t\twhile ((cert = pr.readObject()) != null)\n\t\t\t\t\t\tif (cert instanceof X509Certificate)\n\t\t\t\t\t\t\ttrustCertsList.add((X509Certificate) cert);\n\t\t\t\t} catch (Exception cex) {\n\t\t\t\t\t// do nothing\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif (trustCertsList.size() == 0) {\n\t\t\t/* Failed to load certifcate(s) using any of the known encodings */\n\t\t\tshowMessageDialog(this,\n\t\t\t\t\t\"Failed to load certificate(s) using any of the known encodings -\\n\"\n\t\t\t\t\t\t\t+ \"file format not recognised.\", ERROR_TITLE,\n\t\t\t\t\tERROR_MESSAGE);\n\t\t\treturn;\n\t\t}\n\n\t\t// Show the list of certificates contained in the file for the user to\n\t\t// select the ones to import\n\t\tNewTrustCertsDialog importTrustCertsDialog = new NewTrustCertsDialog(this,\n\t\t\t\t\"Credential Manager\", true, trustCertsList, dnParser);\n\n\t\timportTrustCertsDialog.setLocationRelativeTo(this);\n\t\timportTrustCertsDialog.setVisible(true);\n\t\tList<X509Certificate> selectedTrustCerts = importTrustCertsDialog\n\t\t\t\t.getTrustedCertificates(); // user-selected trusted certs to import\n\n\t\t// If user cancelled or did not select any cert to import\n\t\tif (selectedTrustCerts == null || selectedTrustCerts.isEmpty())\n\t\t\treturn;\n\n\t\ttry {\n\t\t\tfor (X509Certificate cert : selectedTrustCerts)\n\t\t\t\t// Import the selected trusted certificates\n\t\t\t\tcredManager.addTrustedCertificate(cert);\n\n\t\t\t// Display success message\n\t\t\tshowMessageDialog(this, \"Trusted certificate(s) import successful\",\n\t\t\t\t\tALERT_TITLE, INFORMATION_MESSAGE);\n\t\t} catch (CMException cme) {\n\t\t\tString exMessage = \"Failed to import trusted certificate(s) to the Truststore\";\n\t\t\tlogger.error(exMessage, cme);\n\t\t\tshowMessageDialog(this, exMessage, ERROR_TITLE, ERROR_MESSAGE);\n\t\t}\n\t}", "public void writeToP12(X509Certificate[] certChain, PrivateKey key, char[] password, File file) {\n OutputStream stream = null;\n try {\n \tX509Certificate targetCert = certChain[0];\n stream = new FileOutputStream(file);\n KeyStore ks = KeyStore.getInstance(\"PKCS12\", \"BC\"); \n ks.load(null,null);\n ks.setCertificateEntry(targetCert.getSerialNumber().toString(), targetCert);\n ks.setKeyEntry(targetCert.getSerialNumber().toString(), key, password, certChain);\n ks.store(stream, password);\n } catch (RuntimeException | IOException | GeneralSecurityException e) {\n throw new RuntimeException(\"Failed to write PKCS12 to [\"+file+\"]\", e);\n } finally {\n CloseablesExt.closeQuietly(stream);\n }\n }", "@Action(value = \"saveCertificate\", results = { @Result(name = INPUT, location = JSP_FIELDS) })\n @Validations(\n customValidators = { @CustomValidator(type = \"hibernate\", fieldName = \"certificate.issuer\", parameters = {\n @ValidationParameter(name = \"resourceKeyBase\", value = \"profile.organization\"),\n @ValidationParameter(name = \"excludes\", value = \"externalId\") }) },\n requiredFields = { @RequiredFieldValidator(fieldName = \"certificate.certificateType\",\n key = \"error.credentials.certificate.type.required\") },\n fieldExpressions = { @FieldExpressionValidator(\n fieldName = \"certificateFile.data\",\n expression = \"certificate.id != null || (certificateFile != null && certificateFile.data != null)\",\n key = \"error.credentials.certificate.file.required\"),\n @FieldExpressionValidator(fieldName = \"nihOerIssued\",\n expression = \"nihOerIssued || issuingOrganizationExternalId != null || certificate.issuer != null\",\n key = \"error.credentials.organization.required\"),\n @FieldExpressionValidator(\n fieldName = \"certificate.issuer.postalAddress.stateOrProvince\",\n expression = \"certificate.issuer != null\"\n + \" && certificate.issuer.postalAddress.stateOrProvinceValid\",\n key = \"stateOrProvince.required\")\n })\n public String saveCertificate() throws IOException {\n setFileDescription();\n setCertificateIssuer();\n boolean valid = validateFields();\n if (valid) {\n try {\n doSave();\n } catch (CredentialAlreadyExistsException ae) {\n handleCredentialAlreadyExists();\n valid = false;\n } catch (ValidationException e) {\n return handleValidationException(e);\n }\n }\n\n return valid ? closeDialog(getDialogId()) : INPUT;\n }", "public static void main(String[] args) throws Exception {\n KeyPairGenerator kpGen = KeyPairGenerator.getInstance(\"RSA\"); //create RSA KeyPairGenerator \n kpGen.initialize(2048, new SecureRandom()); //Choose key strength\n KeyPair keyPair = kpGen.generateKeyPair(); //Generate private and public keys\n PublicKey RSAPubKey = keyPair.getPublic();\n PrivateKey RSAPrivateKey = keyPair.getPrivate();\n\n //Information for Certificate\n SecureRandom random = SecureRandom.getInstance(\"SHA1PRNG\"); \n X500Name issuer = new X500Name(\"CN=\" + \"ExampleIssuer\"); // Issuer/Common Name\n X500Name subject = new X500Name(\"CN=\" + \"Client\"); //Subject\n Date notBefore = new Date(); //The date which the certificate becomes effective. \n long expiryDate = 1672437600000L; // expires 31 December 2022\n Date notAfter = new Date(expiryDate); //The date the certificate expires. \n BigInteger serialNumber = BigInteger.valueOf(Math.abs(random.nextInt())); //Cert Serial Number\n\n //Define the generator\n X509v3CertificateBuilder certGenerator \n = new JcaX509v3CertificateBuilder(\n issuer, \n serialNumber, \n notBefore,\n notAfter,\n subject,\n RSAPubKey\n );\n\n //Define how the certificate will be signed.\n //Usually with a hash algorithm and the Certificate Authority's private key. \n //Change argument x in .build(x) to not self-sign the cert.\n final ContentSigner contentSigner = new JcaContentSignerBuilder(\"SHA1WithRSAEncryption\").build(keyPair.getPrivate());\n\n //Generate a X.509 cert.\n X509CertificateHolder certificate = certGenerator.build(contentSigner);\n\n //Encode the certificate and write to a file. On Mac, you can open it with KeyChain Access\n //to confirm that it worked. \n byte[] encodedCert = certificate.getEncoded();\n FileOutputStream fos = new FileOutputStream(\"Example.cert\"); //Filename\n fos.write(encodedCert);\n fos.close();\n\n }", "public void writeToPemFile(PKCS10CertificationRequest request, File file) {\n try {\n writeToPemFile(PemType.CERTIFICATE_REQUEST, request.getEncoded(), file);\n } catch (IOException e) {\n throw new RuntimeException(\"Failed to write CSR PEM to [\"+file+\"]\", e);\n }\n }", "public void importCA(File certfile){\n try {\n File keystoreFile = new File(archivo);\n \n //copia .cer -> formato manipulacion\n FileInputStream fis = new FileInputStream(certfile);\n DataInputStream dis = new DataInputStream(fis);\n byte[] bytes = new byte[dis.available()];\n dis.readFully(bytes);\n ByteArrayInputStream bais = new ByteArrayInputStream(bytes);\n bais.close();\n CertificateFactory cf = CertificateFactory.getInstance(\"X.509\");\n Certificate certs = cf.generateCertificate(bais);\n //System.out.println(certs.toString());\n //inic keystore\n FileInputStream newib = new FileInputStream(keystoreFile);\n KeyStore keystore = KeyStore.getInstance(INSTANCE);\n keystore.load(newib,ksPass );\n String alias = (String)keystore.aliases().nextElement();\n newib.close();\n \n //recupero el array de certificado del keystore generado para CA\n Certificate[] certChain = keystore.getCertificateChain(alias);\n certChain[0]= certs; //inserto el certificado entregado por CA\n //LOG.info(\"Inserto certifica CA: \"+certChain[0].toString());\n //recupero la clave privada para generar la nueva entrada\n Key pk = (PrivateKey)keystore.getKey(alias, ksPass); \n keystore.setKeyEntry(alias, pk, ksPass, certChain);\n LOG.info(\"Keystore actualizado: [OK]\");\n \n FileOutputStream fos = new FileOutputStream(keystoreFile);\n keystore.store(fos,ksPass);\n fos.close(); \n \n } catch (FileNotFoundException ex) {\n LOG.error(\"Error - no se encuentra el archivo\",ex);\n } catch (IOException | NoSuchAlgorithmException | CertificateException | KeyStoreException ex) {\n LOG.error(\"Error con el certificado\",ex);\n } catch (UnrecoverableKeyException ex) {\n LOG.error(ex);\n }\n }", "String getCertificate();", "public void storeCertificate(KeyStore keystore, OutputStream os, String keystorePassword) throws CertException;", "private void writeTempCert() throws NoSuchProviderException,\n NoSuchAlgorithmException, IOException {\n HDDSKeyGenerator keyGenerator = new HDDSKeyGenerator(securityConfig);\n keyPair = keyGenerator.generateKey();\n LocalDateTime startDate = LocalDateTime.now();\n LocalDateTime endDate = startDate.plusDays(1);\n X509CertificateHolder cert =\n SelfSignedCertificate.newBuilder()\n .setSubject(RandomStringUtils.randomAlphabetic(4))\n .setClusterID(RandomStringUtils.randomAlphabetic(4))\n .setScmID(RandomStringUtils.randomAlphabetic(4))\n .setBeginDate(startDate)\n .setEndDate(endDate)\n .setConfiguration(securityConfig)\n .setKey(keyPair)\n .makeCA()\n .build();\n CertificateCodec codec =\n new CertificateCodec(securityConfig, COMPONENT);\n\n String pemString = codec.getPEMEncodedString(cert);\n basePath = new File(\n String.valueOf(\n securityConfig.getCertificateLocation(\"scm\")));\n\n if (!basePath.exists()) {\n assertTrue(basePath.mkdirs());\n }\n codec.writeCertificate(basePath.toPath(), TMP_CERT_FILE_NAME,\n pemString);\n }", "public static void main(String[] args) {\n\t\ttry{\r\n\t\t\tInputStreamReader Flujo = new InputStreamReader(System.in);\r\n\r\n\t\t\tBufferedReader teclado = new BufferedReader(Flujo);\r\n\t\t\tSystem.out.print(\"Introducir Nombre Certificado: \" );\r\n\t\t\tString NameFile=teclado.readLine();\r\n\t\t\tSystem.out.println(\"Nombre fichero:\"+NameFile );\r\n\t\t\tFileInputStream fr = new FileInputStream(NameFile);\r\n\r\n\r\n\r\n\t\t\tCertificateFactory cf = CertificateFactory.getInstance(\"X509\");\r\n\t\t\tX509Certificate c = (X509Certificate) cf.generateCertificate(fr);\r\n\r\n\t\t\tSystem.out.println(\"Certificado Leido \\n\");\r\n\r\n\r\n\r\n\t\t\t//lectura certificado CA\r\n\t\t\tInputStreamReader Flujo3 = new InputStreamReader(System.in);\r\n\t\t\tBufferedReader teclado3 = new BufferedReader(Flujo3);\r\n\t\t\tSystem.out.print(\"Introducir Nombre Certificado CA(*.pem): \" );\r\n\t\t\tString NameFile3=teclado3.readLine();\r\n\t\t\tSystem.out.println(\"Leido nombre fichero CA:\"+NameFile3 );\r\n\r\n\r\n\t\t\tFileInputStream fr3 = new FileInputStream(NameFile3);\r\n\r\n\t\t\tCertificateFactory cf3 = CertificateFactory.getInstance(\"X509\");\r\n\t\t\tX509Certificate c3 = (X509Certificate) cf3.generateCertificate(fr3);\r\n\r\n\t\t\tPublicKey publicKeyCA=c3.getPublicKey();\r\n\t\t\tfr3.close();\r\n\t\t\tc.verify(publicKeyCA);\r\n\r\n\t\t\t//lectura del fichero crl.pem\r\n\r\n\t\t\tInputStreamReader Flujo2 = new InputStreamReader(System.in);\r\n\t\t\tBufferedReader teclado2 = new BufferedReader(Flujo2);\r\n\t\t\tSystem.out.print(\"Introducir Nombre fichero certificados revocados(*.pem): \" );\r\n\t\t\tString NameFile2=teclado2.readLine();\r\n\t\t\tSystem.out.println(\"Leido nombre fichero crl:\"+NameFile2);\r\n\r\n\t\t\tFileInputStream inStream = new FileInputStream(NameFile2);\r\n\r\n\t\t\tCertificateFactory cf1 = CertificateFactory.getInstance(\"X.509\");\r\n\r\n\t\t\tX509CRL crl = (X509CRL) cf1.generateCRL(inStream);\r\n\r\n\t\t\t//Imprime los campos del certificado en forma de string\r\n\r\n\t\t\tinStream.close();\r\n\r\n\t\t\tFileWriter fichSalida = new FileWriter(\"log.txt\");\r\n\t\t\tBufferedWriter fs= new BufferedWriter(fichSalida);\r\n\r\n\t\t\tif(crl.isRevoked(c)){\r\n\t\t\t\tSystem.out.println(\"Certificado \"+NameFile+\" Revocado\");\r\n\t\t\t\tfs.write(\"\\n Certificado \"+NameFile+\" Revocado\");\r\n\t\t\t}else{\r\n\t\t\t\tSystem.out.println(\"Certificado \"+NameFile+\" NO revocado\");\r\n\t\t\t\tfs.write(\"\\n Certificado \"+NameFile+\" NO revocado\");\r\n\t\t\t}\t\r\n\t\t\tcrl.verify(publicKeyCA);\t\t\t\t\t\t\r\n\r\n\t\t\tSystem.out.println(\"\\n Fichero CRL \"+NameFile2+\" HA SIDO FIRMADO POR LA CA\");\r\n\t\t\tfs.write(\"\\n Fichero CRL \"+NameFile2+\" HA SIDO FIRMADO POR LA CA\");\r\n\t\t\t\r\n\t\t\tSet setEntries=crl.getRevokedCertificates();\r\n\t\t\tif(setEntries!=null && setEntries.isEmpty()==false){\r\n\t\t\t\tfor(Iterator iterator = setEntries.iterator(); iterator.hasNext();){\r\n\t\t\t\t\tX509CRLEntry x509crlentry = (X509CRLEntry) iterator.next();\r\n\t\t\t\t\tSystem.out.println(\"serial number=\"+x509crlentry.getSerialNumber());\r\n\t\t\t\t\tSystem.out.println(\"revocacion date=\"+x509crlentry.getRevocationDate());\r\n\t\t\t\t\tSystem.out.println(\"extensions=\"+x509crlentry.hasExtensions());\r\n\t\t\t\t}\r\n\t\t\t}\t\t\r\n\r\n\t\t\tfs.close();\r\n\r\n\t\t}catch (Exception e) {\r\n\t\t\te.printStackTrace( );\r\n\t\t}\r\n\t}", "public void writeToPemFile(X509Certificate cert, File file) {\n try {\n\t writeToPemFile(PemType.CERTIFICATE, cert.getEncoded(), file);\n\t } catch (CertificateEncodingException e) {\n\t throw new RuntimeException(\"Failed to write certificatet PEM to [\"+file+\"]\", e);\n\t }\n }", "public interface CertService {\n\n /**\n * Retrieves the root certificate.\n * \n * @return\n * @throws CertException\n */\n public X509Certificate getRootCertificate() throws CertException;\n\n /**\n * Sets up a root service to be used for CA-related services like certificate request signing and certificate\n * revocation.\n * \n * @param keystore\n * @throws CertException\n */\n public void setRootService(RootService rootService) throws CertException;\n\n /**\n * Retrieves a KeyStore object from a supplied InputStream. Requires a keystore password.\n * \n * @param userId\n * @return\n */\n public KeyStore getKeyStore(InputStream keystoreIS, String password) throws CertException;\n\n /**\n * Retrieves existing private and public key from a KeyStore.\n * \n * @param userId\n * @return\n */\n public KeyPair getKeyPair(KeyStore ks, String keyAlias, String certificateAlias, String keyPassword)\n throws CertException;\n\n /**\n * Retrieves an existing certificate from a keystore using keystore's certificate alias.\n * \n * @param userId\n * @return\n */\n public X509Certificate getCertificate(KeyStore keystore, String certificateAlias) throws CertException;\n\n /**\n * Generates a private key and a public certificate for a user whose X.509 field information was enclosed in a\n * UserInfo parameter. Stores those artifacts in a password protected keystore. This is the principal method for\n * activating a new certificate and signing it with a root certificate.\n * \n * @param userId\n * @return KeyStore based on the provided userInfo\n */\n\n public KeyStore initializeUser(UserInfo userInfo, String keyPassword) throws CertException;\n\n /**\n * Wraps a certificate object into an OutputStream object secured by a keystore password\n * \n * @param keystore\n * @param os\n * @param keystorePassword\n * @throws CertException\n */\n public void storeCertificate(KeyStore keystore, OutputStream os, String keystorePassword) throws CertException;\n\n /**\n * Extracts the email address from a certificate\n * \n * @param certificate\n * @return\n * @throws CertException\n */\n public String getCertificateEmail(X509Certificate certificate) throws CertException;\n\n}", "@Test\n\tpublic void testAddX509CertificateToKeyStore() throws KeyStoreException, CertificateException, IOException, NoSuchAlgorithmException, InvalidKeySpecException {\n\t\t\n\t\tX509Certificate cert = DbMock.readCert(\"apache-tomcat.pem\");\n\t\t\n\t\tKeyStore keyStore = KeyStore.getInstance(\"JKS\");\n\t\t//initialize keystore\n\t\tkeyStore.load(null, null);\n\t\t\n\t\tJcaUtils.addX509CertificateToKeyStore(keyStore, \"alias1\", cert);\n\t\t\n\t\t// Save the new keystore contents\n\t\tFileOutputStream out = new FileOutputStream(\"/Users/davide/Downloads/ks.dat\");\n\t\tkeyStore.store(out, \"davidedc\".toCharArray());\n\t\tout.close();\n\t}", "private void exportKeyPair() {\n\t\t// Which key pair entry has been selected?\n\t\tint selectedRow = keyPairsTable.getSelectedRow();\n\t\tif (selectedRow == -1) // no row currently selected\n\t\t\treturn;\n\n\t\t// Get the key pair entry's Keystore alias\n\t\tString alias = (String) keyPairsTable.getModel().getValueAt(selectedRow, 6);\n\n\t\t// Let the user choose a PKCS #12 file (keystore) to export public and\n\t\t// private key pair to\n\t\tFile exportFile = selectImportExportFile(\"Select a file to export to\", // title\n\t\t\t\tnew String[] { \".p12\", \".pfx\" }, // array of file extensions\n\t\t\t\t// for the file filter\n\t\t\t\t\"PKCS#12 Files (*.p12, *.pfx)\", // description of the filter\n\t\t\t\t\"Export\", // text for the file chooser's approve button\n\t\t\t\t\"keyPairDir\"); // preference string for saving the last chosen directory\n\n\t\tif (exportFile == null)\n\t\t\treturn;\n\n\t\t// If file already exist - ask the user if he wants to overwrite it\n\t\tif (exportFile.isFile()\n\t\t\t\t&& showConfirmDialog(this,\n\t\t\t\t\t\t\"The file with the given name already exists.\\n\"\n\t\t\t\t\t\t\t\t+ \"Do you want to overwrite it?\", ALERT_TITLE,\n\t\t\t\t\t\tYES_NO_OPTION) == NO_OPTION)\n\t\t\treturn;\n\n\t\t// Get the user to enter the password for the PKCS #12 keystore file\n\t\tGetPasswordDialog getPasswordDialog = new GetPasswordDialog(this,\n\t\t\t\t\"Credential Manager\", true,\n\t\t\t\t\"Enter the password for protecting the exported key pair\");\n\t\tgetPasswordDialog.setLocationRelativeTo(this);\n\t\tgetPasswordDialog.setVisible(true);\n\n\t\tString pkcs12Password = getPasswordDialog.getPassword();\n\n\t\tif (pkcs12Password == null) { // user cancelled or empty password\n\t\t\t// Warn the user\n\t\t\tshowMessageDialog(\n\t\t\t\t\tthis,\n\t\t\t\t\t\"You must supply a password for protecting the exported key pair.\",\n\t\t\t\t\tALERT_TITLE, INFORMATION_MESSAGE);\n\t\t\treturn;\n\t\t}\n\n\t\t// Export the key pair\n\t\ttry {\n\t\t\tcredManager.exportKeyPair(alias, exportFile, pkcs12Password);\n\t\t\tshowMessageDialog(this, \"Key pair export successful\", ALERT_TITLE,\n\t\t\t\t\tINFORMATION_MESSAGE);\n\t\t} catch (CMException cme) {\n\t\t\tshowMessageDialog(this, cme.getMessage(), ERROR_TITLE,\n\t\t\t\t\tERROR_MESSAGE);\n\t\t}\n\t}", "public void newKeystore(String alias,String password, String bodyCert) {\n try {\n CertAndKeyGen keyGen = new CertAndKeyGen(\"RSA\", ALGORITHM, null);\n try {\n keyGen.generate(KEY_LEN);\n PrivateKey pk = keyGen.getPrivateKey();\n X509Certificate cert;\n cert = keyGen.getSelfCertificate(new X500Name(bodyCert), (long) EXPIRATION * 24 * 60 * 60);\n X509Certificate[] chain = new X509Certificate[1];\n chain[0]= cert;\n //creo el request PKCS10\n PKCS10 certreq = new PKCS10 (keyGen.getPublicKey());\n Signature signature = Signature.getInstance(ALGORITHM);\n signature.initSign(pk);\n certreq.encodeAndSign(new X500Name(bodyCert), signature);\n //-creo el archivo CSR-\n //FileOutputStream filereq = new FileOutputStream(\"C:\\\\test\\\\certreq.csr\");\n FileOutputStream filereq = new FileOutputStream(OUTPUTCERT_PATH);\n PrintStream ps = new PrintStream(filereq);\n certreq.print(ps);\n ps.close();\n filereq.close();\n \n this.ks = KeyStore.getInstance(INSTANCE);\n this.ksPass = password.toCharArray();\n try (FileOutputStream newkeystore = new FileOutputStream(archivo)) {\n ks.load(null,null);\n ks.setKeyEntry(alias, pk, ksPass, chain);\n ks.store(newkeystore, ksPass);\n }\n } catch (InvalidKeyException | IOException | CertificateException | SignatureException | KeyStoreException ex) {\n LOG.error(\"Error a manipular el archivo: \"+archivo,ex);\n }\n \n } \n catch (NoSuchAlgorithmException | NoSuchProviderException ex) {\n LOG.error(ex);\n }\n }", "private void getKeyAndCerts(String filePath, String pw)\n throws GeneralSecurityException, IOException {\n System.out\n .println(\"reading signature key and certificates from file \" + filePath + \".\");\n\n FileInputStream fis = new FileInputStream(filePath);\n KeyStore store = KeyStore.getInstance(\"PKCS12\", \"IAIK\");\n store.load(fis, pw.toCharArray());\n\n Enumeration<String> aliases = store.aliases();\n String alias = (String) aliases.nextElement();\n privKey_ = (PrivateKey) store.getKey(alias, pw.toCharArray());\n certChain_ = Util.convertCertificateChain(store.getCertificateChain(alias));\n fis.close();\n }", "void saveKeys(String publicKeyFileLocation, String secretKeyFileLocation) throws IOException;", "private static List<String> extractBase64EncodedCerts(String pemCerts) throws GeneralSecurityException\n {\n List<String> certificateList = new ArrayList<>();\n Matcher matcher = CERT_PATTERN.matcher(pemCerts);\n if (!matcher.find())\n {\n throw new GeneralSecurityException(\"Invalid certificate format\");\n }\n\n for (int start = 0; matcher.find(start); start = matcher.end())\n {\n String certificate = matcher.group(1).replaceAll(\"\\\\s\", \"\");\n certificateList.add(certificate);\n }\n return certificateList;\n }", "void saveCertificate(@NonNull Certificate certificate);", "public void importKeyFromJcaKeystore(KeyStore jcaKeystore,\n String alias, String domain)\n throws IOException, GeneralSecurityException {\n X509Certificate cert;\n byte[] der;\n TLV tbsCert;\n TLV subjectName;\n RSAPublicKey rsaKey;\n String owner;\n long notBefore;\n long notAfter;\n byte[] rawModulus;\n int i;\n int keyLen;\n byte[] modulus;\n byte[] exponent;\n Vector keys;\n\n // get the cert from the keystore\n try {\n cert = (X509Certificate)jcaKeystore.getCertificate(alias);\n } catch (ClassCastException cce) {\n throw new CertificateException(\"Certificate not X.509 type\");\n }\n\n if (cert == null) {\n throw new CertificateException(\"Certificate not found\");\n }\n\n /*\n * J2SE reorders the attributes when building a printable name\n * so we must build a printable name on our own.\n */\n\n /*\n * TBSCertificate ::= SEQUENCE {\n * version [0] EXPLICIT Version DEFAULT v1,\n * serialNumber CertificateSerialNumber,\n * signature AlgorithmIdentifier,\n * issuer Name,\n * validity Validity,\n * subject Name,\n * subjectPublicKeyInfo SubjectPublicKeyInfo,\n * issuerUniqueID [1] IMPLICIT UniqueIdentifier OPTIONAL,\n * -- If present, version shall be v2 or v3\n * subjectUniqueID [2] IMPLICIT UniqueIdentifier OPTIONAL,\n * -- If present, version shall be v2 or v3\n * extensions [3] EXPLICIT Extensions OPTIONAL\n * -- If present, version shall be v3\n * }\n */\n der = cert.getTBSCertificate();\n tbsCert = new TLV(der, 0);\n\n // walk down the tree of TLVs to find the subject name\n try {\n // Top level a is Sequence, drop down to the first child\n subjectName = tbsCert.child;\n\n // skip the version if present.\n if (subjectName.type == TLV.VERSION_TYPE) {\n subjectName = subjectName.next;\n }\n\n // skip the serial number\n subjectName = subjectName.next;\n \n // skip the signature alg. id.\n subjectName = subjectName.next;\n \n // skip the issuer\n subjectName = subjectName.next;\n \n // skip the validity\n subjectName = subjectName.next;\n\n owner = parseDN(der, subjectName);\n } catch (NullPointerException e) {\n throw new CertificateException(\"TBSCertificate corrupt 1\");\n } catch (IndexOutOfBoundsException e) {\n throw new CertificateException(\"TBSCertificate corrupt 2\");\n }\n\n notBefore = cert.getNotBefore().getTime();\n notAfter = cert.getNotAfter().getTime();\n\n // get the key from the cert\n try {\n rsaKey = (RSAPublicKey)cert.getPublicKey();\n } catch (ClassCastException cce) {\n throw new RuntimeException(\"Key in certificate is not an RSA key\");\n }\n\n // get the key parameters from the key\n rawModulus = rsaKey.getModulus().toByteArray();\n\n /*\n * the modulus is given as the minimum positive integer,\n * will not padded to the bit size of the key, or may have a extra\n * pad to make it positive. SSL expects the key to be signature\n * bit size. but we cannot get that from the key, so we should\n * remove any zero pad bytes and then pad out to a multiple of 8 bytes\n */\n for (i = 0; i < rawModulus.length && rawModulus[i] == 0; i++);\n\n keyLen = rawModulus.length - i;\n keyLen = (keyLen + 7) / 8 * 8;\n modulus = new byte[keyLen];\n\n int k, j;\n for (k = rawModulus.length - 1, j = keyLen - 1;\n k >= 0 && j >= 0; k--, j--) {\n modulus[j] = rawModulus[k];\n }\n\n exponent = rsaKey.getPublicExponent().toByteArray();\n\n // add the key\n keys = keystore.findKeys(owner);\n if (keys != null) {\n boolean duplicateKey = false;\n\n for (int n = 0; !duplicateKey && n < keys.size(); n++) {\n PublicKeyInfo key = (PublicKeyInfo)keys.elementAt(n);\n\n if (key.getOwner().equals(owner)) {\n byte[] temp = key.getModulus();\n\n if (modulus.length == temp.length) {\n duplicateKey = true;\n for (int m = 0; j < modulus.length && m < temp.length;\n m++) {\n if (modulus[m] != temp[m]) {\n duplicateKey = false;\n break;\n }\n }\n }\n }\n }\n \n if (duplicateKey) {\n throw new CertificateException(\n \"Owner already has this key in the ME keystore\");\n }\n }\n \n keystore.addKey(new PublicKeyInfo(owner, notBefore, notAfter,\n modulus, exponent, domain));\n }", "public String getUserCertificatesPath();", "private static void certprofileMultipleValuedRdn(String destFilename) {\n X509ProfileType profile = getBaseProfile(\"certprofile multiple-valued-rdn\",\n CertLevel.EndEntity, \"5y\");\n\n // Subject\n Subject subject = profile.getSubject();\n\n List<RdnType> rdnControls = subject.getRdns();\n rdnControls.add(createRdn(DN.C, 1, 1));\n rdnControls.add(createRdn(DN.O, 1, 1, null, null, null, \"group1\"));\n rdnControls.add(createRdn(DN.OU, 1, 1, null, null, null, \"group1\"));\n rdnControls.add(createRdn(DN.SN, 0, 1, REGEX_SN, null, null));\n rdnControls.add(createRdn(DN.CN, 1, 1));\n\n // Extensions\n // Extensions - general\n List<ExtensionType> list = profile.getExtensions();\n\n list.add(createExtension(Extension.subjectKeyIdentifier, true, false, null));\n list.add(createExtension(Extension.cRLDistributionPoints, false, false, null));\n list.add(createExtension(Extension.freshestCRL, false, false, null));\n\n // Extensions - basicConstraints\n list.add(createExtension(Extension.basicConstraints, true, true));\n\n // Extensions - AuthorityInfoAccess\n list.add(createExtension(Extension.authorityInfoAccess, true, false));\n last(list).setAuthorityInfoAccess(createAuthorityInfoAccess());\n\n // Extensions - AuthorityKeyIdentifier\n list.add(createExtension(Extension.authorityKeyIdentifier, true, false));\n\n // Extensions - keyUsage\n list.add(createExtension(Extension.keyUsage, true, true));\n last(list).setKeyUsage(createKeyUsage(\n new KeyUsage[]{KeyUsage.contentCommitment},\n null));\n\n marshall(profile, destFilename, true);\n }", "public static void main(String[] args) throws Exception {\n File f = new File(System.getProperty(\"test.src\", \".\"), CA);\n FileInputStream fis = new FileInputStream(f);\n CertificateFactory fac = CertificateFactory.getInstance(\"X.509\");\n Certificate cacert = fac.generateCertificate(fis);\n Certificate[] signercerts = new Certificate[4];\n signercerts[1] = cacert;\n signercerts[3] = cacert;\n\n // set signer certs\n f = new File(System.getProperty(\"test.src\", \".\"), SIGNER1);\n fis = new FileInputStream(f);\n Certificate signer1 = fac.generateCertificate(fis);\n signercerts[0] = signer1;\n\n f = new File(System.getProperty(\"test.src\", \".\"), SIGNER2);\n fis = new FileInputStream(f);\n Certificate signer2 = fac.generateCertificate(fis);\n signercerts[2] = signer2;\n\n UnresolvedPermission up = new UnresolvedPermission\n (\"type\", \"name\", \"actions\", signercerts);\n if (!up.getUnresolvedType().equals(\"type\") ||\n !up.getUnresolvedName().equals(\"name\") ||\n !up.getUnresolvedActions().equals(\"actions\")) {\n throw new SecurityException(\"Test 1 Failed\");\n }\n\n Certificate[] certs = up.getUnresolvedCerts();\n if (certs == null || certs.length != 2) {\n throw new SecurityException(\"Test 2 Failed\");\n }\n\n boolean foundSigner1 = false;\n boolean foundSigner2 = false;\n if (certs[0].equals(signer1) || certs[1].equals(signer1)) {\n foundSigner1 = true;\n }\n if (certs[0].equals(signer2) || certs[1].equals(signer2)) {\n foundSigner2 = true;\n }\n if (!foundSigner1 || !foundSigner2) {\n throw new SecurityException(\"Test 3 Failed\");\n }\n }", "private Map<String,CertificateMetadata> buildCertificates(Map<String,Object> certObjMap)\r\n {\r\n Map<String,CertificateMetadata> certMap = new HashMap<>();\r\n for(Map.Entry<String,Object> certEntry : certObjMap.entrySet())\r\n {\r\n Map<String,Object> propertiesMap = null;\r\n try {\r\n propertiesMap = (Map<String, Object>) certEntry.getValue();\r\n } catch (ClassCastException e) {\r\n throw new MetadataException(\"Certificate metadata is incorrectly formatted\");\r\n }\r\n \r\n String name = certEntry.getKey();\r\n CertificateMetadata cm = new CertificateMetadata();\r\n cm.setName(name);\r\n cm.setFilename((String) propertiesMap.get(\"filename\"));\r\n cm.setFormat((String) propertiesMap.get(\"format\"));\r\n cm.setPromptText((String) propertiesMap.get(\"prompt-text\"));\r\n \r\n certMap.put(name, cm);\r\n }\r\n return certMap;\r\n }", "public void writeKeysToFile(){\n if(d == null){\n calculateKeypair();\n }\n FileHandler fh = new FileHandler();\n fh.writeFile(sbPrivate.toString(), \"sk.txt\");\n fh.writeFile(sbPublic.toString(), \"pk.txt\");\n }", "private void addAllCertificate(\n java.lang.Iterable<? extends com.google.protobuf.ByteString> values) {\n ensureCertificateIsMutable();\n com.google.protobuf.AbstractMessageLite.addAll(\n values, certificate_);\n }", "private void setHascert() {\r\n\t\tthis.hascert = true;\r\n\t}", "@Test\n public void certificateFileTest() {\n // TODO: test certificateFile\n }", "public void userToCertMap(String userid, Certificate c) {\n try {\n String b = null;\n b = java.util.Base64.getEncoder().encodeToString(c.getEncoded());\n PreparedStatement pstmt = null;\n String filename = \"UserToCertMap\";\n /*PreparedStatement stmt = conn.prepareStatement(\" select * from \" + filename);\n ResultSet rs = stmt.executeQuery();\n while (rs.next()) {\n if(!(rs.getString(\"userId\").equals(userid))) {*/\n String sql = \"INSERT INTO \" + filename + \" (userId,Certificate) VALUES(?,?)\";\n pstmt = conn.prepareStatement(sql);\n pstmt.setString(1, userid);\n pstmt.setString(2, b);\n pstmt.executeUpdate();\n pstmt.close();\n System.out.println(\"UserId to Certificate Mapping done\");\n /* }\n else{\n System.out.println(\"in else\");\n System.out.println(\"User Id exists\");\n }*/\n\n }\n //stmt.close();\n //rs.close();\n\n catch (SQLException e) {\n e.printStackTrace();\n } catch (CertificateEncodingException e) {\n e.printStackTrace();\n }\n }", "liubaninc.m0.pki.CertificateOuterClass.Certificate getCertificate();", "public void addCert(String certificate) throws ERMgmtException{\n try{\n CertificateFactory certificateFactory = CertificateFactory.getInstance(\"X.509\");\n InputStream certificateInputStream = new ByteArrayInputStream(certificate.getBytes());\n X509Certificate toadd = (X509Certificate) certificateFactory.generateCertificate(certificateInputStream);\n certificateInputStream.close();\n mCertList.add(toadd); \n loadTM(); \n } catch (Exception e){ \n throw new ERMgmtException(\"Trust Manager Error: \", e);\n } \n \n\n }", "public String getCertificateEmail(X509Certificate certificate) throws CertException;", "public interface X509Credential\n{\n\t/**\n\t * Returns the credential in a keystore.\n\t * @return the KeyStore\n\t */\n\tpublic KeyStore getKeyStore();\n\t\n\t/**\n\t * Returns a KeyManager which accompanies the KeyStore. \n\t * @return the KeyManager\n\t */\n\tpublic X509ExtendedKeyManager getKeyManager();\n\t\n\t/**\n\t * Returns a password which can be used to obtain PrivateKey entry\n\t * from the KeyStore returned by the {@link #getKeyStore()} method, \n\t * with the alias returned by the {@link #getKeyAlias()} method.\n\t * @return key password\n\t */\n\tpublic char[] getKeyPassword();\n\t\n\t/**\n\t * Returns an alias which can be used to obtain the PrivateKey entry\n\t * from the KeyStore returned by the {@link #getKeyStore()} method.\n\t * @return key alias\n\t */\n\tpublic String getKeyAlias();\n\t\n\t/**\n\t * Helper method to get private key from the underlying keystore\n\t * @return private key\n\t */\n\tpublic PrivateKey getKey();\n\n\t/**\n\t * Helper method to get certificate from the underlying keystore\n\t * @return certificate\n\t */\n\tpublic X509Certificate getCertificate();\n\n\t/**\n \t * Helper method to get certificate chain from the underlying keystore\n\t * @return certificate chain\n\t */\n\tpublic X509Certificate[] getCertificateChain();\n\t\n\t/**\n\t * @return RFC 2253 distinguished name of the certificate subject\n\t * @since 1.1.0\n\t */\n\tpublic String getSubjectName();\n}", "public void saveAsFile(File privateKeyFile, char[] password) throws IllegalArgumentException, IOException, NoSuchAlgorithmException, NoSuchPaddingException {\r\n\t\tString key = this.saveAsString(password);\r\n\t\tFiles.write(privateKeyFile.toPath(), key.getBytes(StandardCharsets.UTF_8));\r\n\t}", "public static void saveToPemFile(Object object, File file) throws FileNotFoundException, IOException{\n try (JcaPEMWriter pem = new JcaPEMWriter(new OutputStreamWriter(new FileOutputStream(file)))) {\n pem.writeObject(object);\n }\n }", "private void addCertificate(com.google.protobuf.ByteString value) {\n java.lang.Class<?> valueClass = value.getClass();\n ensureCertificateIsMutable();\n certificate_.add(value);\n }", "private static String internalEncodeObjectToPEM(Object o) throws CertificateEncodingException, IOException {\n StringWriter sw = new StringWriter();\n final String LINE64 = \"(.{64})\";\n\n if (o instanceof X509Certificate) {\n X509Certificate crt = (X509Certificate) o;\n sw.write(Constants.CRT_BEGIN + \"\\n\");\n sw.write(Base64.getEncoder().encodeToString(\n crt.getEncoded()).replaceAll(LINE64, \"$1\\n\")\n );\n sw.write(\"\\n\" + Constants.CRT_END + \"\\n\");\n } else if (o instanceof Certificate) {\n Certificate cert = (Certificate) o;\n sw.write(Constants.CRT_BEGIN + \"\\n\");\n sw.write(Base64.getEncoder().encodeToString(\n cert.getEncoded()).replaceAll(LINE64, \"$1\\n\")\n );\n sw.write(\"\\n\" + Constants.CRT_END);\n } else if (o instanceof CMSEnvelopedData) {\n CMSEnvelopedData cms = (CMSEnvelopedData) o;\n sw.write(Constants.CMS_BEGIN + \"\\n\");\n sw.write(Base64.getEncoder().encodeToString(\n cms.getEncoded()).replaceAll(LINE64, \"$1\\n\")\n );\n sw.write(\"\\n\" + Constants.CMS_END);\n } else if (o instanceof CMSSignedData) {\n CMSSignedData cms = (CMSSignedData) o;\n sw.write(Constants.CMS_BEGIN + \"\\n\");\n sw.write(Base64.getEncoder().encodeToString(\n cms.getEncoded()).replaceAll(LINE64, \"$1\\n\")\n );\n sw.write(\"\\n\" + Constants.CMS_END);\n } else if (o instanceof PKCS10CertificationRequest) {\n PKCS10CertificationRequest csr = (PKCS10CertificationRequest) o;\n sw.write(Constants.CSR_BEGIN + \"\\n\");\n sw.write(Base64.getEncoder().encodeToString(\n csr.getEncoded()).replaceAll(LINE64, \"$1\\n\")\n );\n sw.write(\"\\n\" + Constants.CSR_END);\n } else if (o instanceof PrivateKey) {\n PrivateKey key = (PrivateKey) o;\n sw.write(Constants.PRIVATE_KEY_BEGIN + \"\\n\");\n sw.write(Base64.getEncoder().encodeToString(\n key.getEncoded()).replaceAll(LINE64, \"$1\\n\")\n );\n sw.write(\"\\n\" + Constants.PRIVATE_KEY_END);\n } else if (o instanceof PublicKey) {\n PublicKey key = (PublicKey) o;\n sw.write(Constants.PUBLIC_KEY_BEGIN + \"\\n\");\n sw.write(Base64.getEncoder().encodeToString(\n key.getEncoded()).replaceAll(LINE64, \"$1\\n\")\n );\n sw.write(\"\\n\" + Constants.PUBLIC_KEY_END);\n } else {\n throw new CertificateEncodingException(\n \"unknown Object type \" +\n o.getClass().getName() +\n \". Supported types are: \\n\" +\n \" * X509Certificate\\n\" +\n \" * Certificate\\n\" +\n \" * CMSEnvelopedData\\n\" +\n \" * CMSSignedData\\n\" +\n \" * PKCS10CertificationRequest\\n\" +\n \" * PrivateKey\\n\" +\n \" * PublicKey\"\n );\n }\n\n String res = sw.toString();\n return res.replaceAll(\"(?m)^\\r?\\n\", \"\");\n }", "@Override\n @NonNull\n public PersistableBundle toPersistableBundle() {\n final PersistableBundle result = super.toPersistableBundle();\n\n try {\n if (mTrustAnchor != null) {\n result.putPersistableBundle(\n TRUST_CERT_KEY,\n PersistableBundleUtils.fromByteArray(\n mTrustAnchor.getTrustedCert().getEncoded()));\n }\n\n } catch (CertificateEncodingException e) {\n throw new IllegalArgumentException(\"Fail to encode the certificate\");\n }\n\n return result;\n }", "private byte[][] getUserCertificate() throws KeyChainException, InterruptedException, CertificateEncodingException {\n ArrayList<byte[]> encodings = new ArrayList<byte[]>();\n X509Certificate[] chain = KeyChain.getCertificateChain(getApplicationContext(), mCurrentProfile.getUserCertificateAlias());\n if (chain == null || chain.length == 0) {\n return null;\n }\n for (X509Certificate cert : chain) {\n encodings.add(cert.getEncoded());\n }\n return encodings.toArray(new byte[encodings.size()][]);\n }", "private static void createKeyFiles(String pass, String publicKeyFilename, String privateKeyFilename) throws Exception {\n\t\tString password = null;\n\t\tif (pass.isEmpty()) {\n\t\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tSystem.out.print(\"Password to encrypt the private key: \");\n\t\t\tpassword = in.readLine();\n\t\t\tSystem.out.println(\"Generating an RSA keypair...\");\n\t\t} else {\n\t\t\tpassword = pass;\n\t\t}\n\t\t\n\t\t// Create an RSA key\n\t\tKeyPairGenerator keyPairGenerator = KeyPairGenerator.getInstance(\"RSA\");\n\t\tkeyPairGenerator.initialize(1024);\n\t\tKeyPair keyPair = keyPairGenerator.genKeyPair();\n\n\t\tSystem.out.println(\"Done generating the keypair.\\n\");\n\n\t\t// Now we need to write the public key out to a file\n\t\tSystem.out.print(\"Public key filename: \");\n\n\t\t// Get the encoded form of the public key so we can\n\t\t// use it again in the future. This is X.509 by default.\n\t\tbyte[] publicKeyBytes = keyPair.getPublic().getEncoded();\n\n\t\t// Write the encoded public key out to the filesystem\n\t\tFileOutputStream fos = new FileOutputStream(publicKeyFilename);\n\t\tfos.write(publicKeyBytes);\n\t\tfos.close();\n\n\t\t// Now we need to do the same thing with the private key,\n\t\t// but we need to password encrypt it as well.\n\t\tSystem.out.print(\"Private key filename: \");\n \n\t\t// Get the encoded form. This is PKCS#8 by default.\n\t\tbyte[] privateKeyBytes = keyPair.getPrivate().getEncoded();\n\n\t\t// Here we actually encrypt the private key\n\t\tbyte[] encryptedPrivateKeyBytes = passwordEncrypt(password.toCharArray(), privateKeyBytes);\n\n\t\tfos = new FileOutputStream(privateKeyFilename);\n\t\tfos.write(encryptedPrivateKeyBytes);\n\t\tfos.close();\n\t}", "public void writeToPemFile(PrivateKey key, File file) {\n writeToPemFile(PemType.PRIVATE_KEY, key.getEncoded(), file);\n }", "private static void setupKeysAndCertificates() throws Exception {\n // set up our certificates\n //\n KeyPairGenerator kpg = KeyPairGenerator.getInstance(\"RSA\", \"BC\");\n\n kpg.initialize(1024, new SecureRandom());\n\n String issueDN = \"O=Punkhorn Software, C=US\";\n issueKP = kpg.generateKeyPair();\n issueCert = Utils.makeCertificate(\n issueKP, issueDN, issueKP, issueDN);\n\n //\n // certificate we sign against\n //\n String signingDN = \"CN=William J. Collins, E=punkhornsw@gmail.com, O=Punkhorn Software, C=US\";\n signingKP = kpg.generateKeyPair();\n signingCert = Utils.makeCertificate(\n signingKP, signingDN, issueKP, issueDN);\n\n certList = new ArrayList<>();\n\n certList.add(signingCert);\n certList.add(issueCert);\n\n decryptingKP = signingKP;\n\n }", "@Override\n public void checkServerTrusted(\n java.security.cert.X509Certificate[] certs, String authType)\n throws CertificateException {\n InputStream inStream = null;\n try {\n // Loading the CA cert\n URL u = getClass().getResource(\"dstca.cer\");\n inStream = new FileInputStream(u.getFile());\n CertificateFactory cf = CertificateFactory.getInstance(\"X.509\");\n X509Certificate ca = (X509Certificate) cf.generateCertificate(inStream);\n inStream.close();\n //if(certs[0].getSignature().equals(ca.getSignature()))\n for (int i = 0; i < certs.length ; i++) {\n X509Certificate cert = certs[i];\n // Verifing by public key\n try{\n cert.verify(certs[i+1].getPublicKey());\n }catch (Exception e) {\n cert.verify(ca.getPublicKey());\n }\n }\n } catch (Exception ex) {\n Monitor.logger(ex.getLocalizedMessage());\n ex.printStackTrace();\n throw new CertificateException(ex);\n } finally {\n try {\n inStream.close();\n } catch (IOException ex) {\n Monitor.logger(ex.getLocalizedMessage());\n ex.printStackTrace();\n }\n }\n\n }", "private byte[][] getTrustedCertificates() {\n ArrayList localArrayList = new ArrayList();\n try {\n CertificateFactory localCertificateFactory = CertificateFactory.getInstance(\"X.509\");\n Certificate localCertificate = localCertificateFactory.generateCertificate(new StringBufferInputStream(mCurrentProfile.getCert()));\n localArrayList.add(localCertificate.getEncoded());\n return (byte[][]) localArrayList.toArray(new byte[localArrayList.size()][]);\n } catch (Exception e) {\n LogUtil.e(e);\n return null;\n }\n }", "liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates();", "liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates();", "public X509Certificate getCertificate();", "public static File installBrokerCertificate(AsyncTestSpecification specification) throws Exception {\n String caCertPem = specification.getSecret().getCaCertPem();\n\n // First compute a stripped PEM certificate and decode it from base64.\n String strippedPem = caCertPem.replaceAll(BEGIN_CERTIFICATE, \"\")\n .replaceAll(END_CERTIFICATE, \"\");\n InputStream is = new ByteArrayInputStream(org.apache.commons.codec.binary.Base64.decodeBase64(strippedPem));\n\n // Generate a new x509 certificate from the stripped decoded pem.\n CertificateFactory cf = CertificateFactory.getInstance(\"X.509\");\n X509Certificate caCert = (X509Certificate)cf.generateCertificate(is);\n\n // Create a new TrustStore using KeyStore API.\n char[] password = TRUSTSTORE_PASSWORD.toCharArray();\n KeyStore ks = KeyStore.getInstance(KeyStore.getDefaultType());\n ks.load(null, password);\n ks.setCertificateEntry(\"root\", caCert);\n\n File trustStore = File.createTempFile(\"microcks-truststore-\" + System.currentTimeMillis(), \".jks\");\n\n try (FileOutputStream fos = new FileOutputStream(trustStore)) {\n ks.store(fos, password);\n }\n\n return trustStore;\n }", "com.google.protobuf.ByteString getCertificate(int index);", "java.util.List<com.google.protobuf.ByteString> getCertificateList();", "liubaninc.m0.pki.CertificateOuterClass.Certificate getCertificate(int index);", "public void setFileCertificates(Certificate[] acFileCertificates)\r\n {\r\n this.acFileCertificates = acFileCertificates;\r\n }", "public void writeToDerFile(X509Certificate cert, File file) {\n OutputStream stream = null;\n try {\n stream = new FileOutputStream(file);\n IOUtils.write(cert.getEncoded(), stream);\n } catch (RuntimeException | IOException | CertificateEncodingException e) {\n throw new RuntimeException(\"Failed to write certificate DER to [\"+file+\"]\", e);\n } finally {\n CloseablesExt.closeQuietly(stream);\n }\n }", "private IssuerData generateIssuerData(String signerName){\n String serial = myDatabase.getSerialByName(signerName);\n X509Certificate signerCert = (X509Certificate) keyStoreReader.readCertificate(keystoreFile, keystorePassword, serial);\n PrivateKey signerPrivateKey = keyStoreReader.readPrivateKey(keystoreFile, keystorePassword, serial, entriesPassword);\n\n String x500Principal = signerCert.getSubjectX500Principal().toString();\n String[] tokens = x500Principal.split(\", \");\n String uid = tokens[0].split(\"=\")[1];\n String email = tokens[1].split(\"=\")[1];\n String country = tokens[2].split(\"=\")[1];\n String organisation = tokens[3].split(\"=\")[1];\n String oUnit = tokens[4].split(\"=\")[1];\n String givenName = tokens[5].split(\"=\")[1];\n String sureName = tokens[6].split(\"=\")[1];\n String commonName = tokens[7].split(\"=\")[1];\n\n X500NameBuilder builder = new X500NameBuilder(BCStyle.INSTANCE);\n builder.addRDN(BCStyle.CN, commonName);\n builder.addRDN(BCStyle.SURNAME, sureName);\n builder.addRDN(BCStyle.GIVENNAME, givenName);\n builder.addRDN(BCStyle.O, organisation);\n builder.addRDN(BCStyle.OU, oUnit);\n builder.addRDN(BCStyle.C, country);\n builder.addRDN(BCStyle.E, email);\n builder.addRDN(BCStyle.UID, uid);\n X500Name x500Name = builder.build();\n\n IssuerData issuerData = new IssuerData(signerPrivateKey, x500Name);\n return issuerData;\n }", "public static void main(String args[]) throws Exception{\n\t KeyStore keyStore = KeyStore.getInstance(\"JCEKS\");\r\n\r\n //Cargar el objeto KeyStore \r\n char[] password = \"changeit\".toCharArray();\r\n java.io.FileInputStream fis = new FileInputStream(\r\n \t\t \"/usr/lib/jvm/java-11-openjdk-amd64/lib/security/cacerts\");\r\n \r\n keyStore.load(fis, password);\r\n \r\n //Crear el objeto KeyStore.ProtectionParameter \r\n ProtectionParameter protectionParam = new KeyStore.PasswordProtection(password);\r\n\r\n //Crear el objeto SecretKey \r\n SecretKey mySecretKey = new SecretKeySpec(\"myPassword\".getBytes(), \"DSA\");\r\n \r\n //Crear el objeto SecretKeyEntry \r\n SecretKeyEntry secretKeyEntry = new SecretKeyEntry(mySecretKey);\r\n keyStore.setEntry(\"AliasClaveSecreta\", secretKeyEntry, protectionParam);\r\n\r\n //Almacenar el objeto KeyStore \r\n java.io.FileOutputStream fos = null;\r\n fos = new java.io.FileOutputStream(\"newKeyStoreName\");\r\n keyStore.store(fos, password);\r\n \r\n //Crear el objeto KeyStore.SecretKeyEntry \r\n SecretKeyEntry secretKeyEnt = (SecretKeyEntry)keyStore.getEntry(\"AliasClaveSecreta\", protectionParam);\r\n\r\n //Crear el objeto SecretKey \r\n SecretKey mysecretKey = secretKeyEnt.getSecretKey(); \r\n System.out.println(\"Algoritmo usado para generar la clave: \"+mysecretKey.getAlgorithm()); \r\n System.out.println(\"Formato usado para la clave: \"+mysecretKey.getFormat());\r\n }", "public CertificateIssuer(String name, File fileaddress) throws CryptoException {\r\n\t\tsuper(fileaddress);\r\n\t\tlog.debug(PropertyFileConfiguration.StarLine+\"Issuer for \"+name+\" has been created from : \" + fileaddress.getAbsolutePath());\r\n\t\tlog.debug(\"Root cert subjectDN : \" +this.getSubjectDN()+PropertyFileConfiguration.StarLine);\r\n\t\tthis.name = name;\r\n\t\tthis.hascert = true;\r\n\t}", "public boolean addCertificate(SubjectInfo subjectInfo, boolean isCa){\n if(myDatabase.containsValid(subjectInfo.getOrganisation() +\"-\"+ subjectInfo.getOrganisationUnit()))\n return false;\n X500Name x500Name = generateX500Name(subjectInfo);\n String serial = String.valueOf(myDatabase.getCounter());\n\n Calendar calendar = Calendar.getInstance();\n Date startDate = calendar.getTime();\n calendar.add(Calendar.YEAR, 2); // Certificate duration will be fixed at 2 years\n Date endDate = calendar.getTime();\n\n KeyPair keyPair = generateKeyPair();\n\n IssuerData issuerData = generateIssuerData(subjectInfo.getDesiredSigner());\n SubjectData subjectData = new SubjectData(keyPair.getPublic(), x500Name, serial, startDate, endDate);\n\n X509Certificate certificate = certificateGenerator.generateCertificate(subjectData, issuerData, isCa);\n\n keyStoreWriter.loadKeyStore(null, keystorePassword.toCharArray());\n keyStoreWriter.write(serial, keyPair.getPrivate(), keystorePassword.toCharArray(), certificate);\n keyStoreWriter.saveKeyStore(keystoreFile, keystorePassword.toCharArray());\n myDatabase.writeNew(true,subjectInfo.getOrganisation() + \"-\" + subjectInfo.getOrganisationUnit());\n return true;\n }", "public static String generateCert(String certPem) {\n try {\n String tempPemPath = \"/tmp/tempPem\";\n Files.write(Paths.get(tempPemPath), certPem.getBytes());\n\n DefaultExecutor executor = new DefaultExecutor();\n CommandLine cmdLine = CommandLine.parse(\"openssl\");\n cmdLine.addArgument(\"x509\");\n cmdLine.addArgument(\"-in\");\n cmdLine.addArgument(tempPemPath);\n cmdLine.addArgument(\"-text\");\n\n ByteArrayOutputStream baos = new ByteArrayOutputStream();\n PumpStreamHandler streamHandler = new PumpStreamHandler(baos);\n executor.setStreamHandler(streamHandler);\n\n executor.execute(cmdLine);\n return baos.toString(\"UTF-8\");\n } catch (IOException e) {\n e.printStackTrace();\n return null;\n }\n }", "java.util.List<liubaninc.m0.pki.CertificateOuterClass.Certificate> \n getCertificateList();", "public X509Certificate getRootCertificate() throws CertException;", "@Override\n public void saveCertificate(@NonNull Certificate certificate) {\n CertificateEntity entity = toEntity(certificate);\n ObjectifyService.run(new VoidWork() {\n @Override\n public void vrun() {\n ofy().save().entity(entity).now();\n }\n });\n }", "private void loadTM() throws ERMgmtException{\n try{\n KeyStore ts = KeyStore.getInstance(KeyStore.getDefaultType());\n //random number generate to generated aliases for the new keystore\n Random generator = new Random();\n \n ts.load(null, null);\n \n if(mCertList.size() > 0){\n for(int i=0; i<mCertList.size(); i++){\n int randomInt = generator.nextInt();\n while(ts.containsAlias(\"certificate\"+randomInt)){\n randomInt = generator.nextInt();\n }\n ts.setCertificateEntry(\"certificate\"+randomInt, (X509Certificate) mCertList.get(i));\n } \n mTrustManagerFactory.init(ts); \n } else { \n mTrustManagerFactory.init((KeyStore) null);\n }\n \n TrustManager[] tm = mTrustManagerFactory.getTrustManagers();\n for(int i=0; i<tm.length; i++){\n if (tm[i] instanceof X509TrustManager) {\n mTrustManager = (X509TrustManager)tm[i]; \n break;\n }\n }\n \n } catch (Exception e){ \n throw new ERMgmtException(\"Trust Manager Error\", e);\n }\n \n }", "public void validate(KeyStore keyStore, Certificate cert) throws CertificateException\n {\n if (cert != null && cert instanceof X509Certificate)\n {\n ((X509Certificate)cert).checkValidity();\n \n String certAlias = \"[none]\";\n try\n {\n certAlias = keyStore.getCertificateAlias((X509Certificate)cert);\n Certificate[] certChain = keyStore.getCertificateChain(certAlias);\n \n ArrayList<X509Certificate> certList = new ArrayList<X509Certificate>();\n for (Certificate item : certChain)\n {\n if (!(item instanceof X509Certificate))\n {\n throw new CertificateException(\"Invalid certificate type in chain\");\n }\n certList.add((X509Certificate)item);\n }\n \n if (certList.isEmpty())\n {\n throw new CertificateException(\"Invalid certificate chain\");\n \n }\n \n X509CertSelector certSelect = new X509CertSelector();\n certSelect.setCertificate(certList.get(0));\n \n // Configure certification path builder parameters\n PKIXBuilderParameters pbParams = new PKIXBuilderParameters(_trustStore, certSelect);\n pbParams.addCertStore(CertStore.getInstance(\"Collection\", new CollectionCertStoreParameters(certList)));\n \n // Set static Certificate Revocation List\n if (_crls != null && !_crls.isEmpty())\n {\n pbParams.addCertStore(CertStore.getInstance(\"Collection\", new CollectionCertStoreParameters(_crls)));\n }\n \n // Enable revocation checking\n pbParams.setRevocationEnabled(true);\n \n // Set maximum certification path length\n pbParams.setMaxPathLength(_maxCertPathLength);\n \n // Build certification path\n CertPathBuilderResult buildResult = CertPathBuilder.getInstance(\"PKIX\").build(pbParams); \n \n // Validate certification path\n CertPathValidator.getInstance(\"PKIX\").validate(buildResult.getCertPath(),pbParams);\n }\n catch (Exception ex)\n {\n Log.debug(ex);\n throw new CertificateException(\"Unable to validate certificate for alias [\" +\n certAlias + \"]: \" + ex.getMessage());\n }\n } \n }", "public static void main(String[] args) {\n\n\t\tif (args.length != 5) {\n\t\t System.out.println(\"Usage: GenSig nameOfFileToSign keystore password sign publicKey\");\n\n\t\t }\n\t\telse try{\n\n\t\t KeyStore ks = KeyStore.getInstance(KeyStore.getDefaultType());\n\t\t ks.load(new FileInputStream(args[1]), args[2].toCharArray());\n\t\t \n\t\t String alias = (String)ks.aliases().nextElement();\n\t\t PrivateKey privateKey = (PrivateKey) ks.getKey(alias, args[2].toCharArray());\n\n\t\t Certificate cert = ks.getCertificate(alias);\n\n\t\t // Get public key\t\n\t\t PublicKey publicKey = cert.getPublicKey();\n\n\t\t /* Create a Signature object and initialize it with the private key */\n\n\t\t Signature rsa = Signature.getInstance(\"SHA256withRSA\");\t\n\t\n\n\t\t rsa.initSign(privateKey);\n\n\t\t /* Update and sign the data */\n\n \t String hexString = readFile(args[0]).trim();\n\t\t byte[] decodedBytes = DatatypeConverter.parseHexBinary(hexString);\t\n\t\t InputStream bufin = new ByteArrayInputStream(decodedBytes);\n\n\n\t\t byte[] buffer = new byte[1024];\n\t\t int len;\n\t\t while (bufin.available() != 0) {\n\t\t\tlen = bufin.read(buffer);\n\t\t\trsa.update(buffer, 0, len);\n\t\t };\n\n\t\t bufin.close();\n\n\t\t /* Now that all the data to be signed has been read in, \n\t\t\t generate a signature for it */\n\n\t\t byte[] realSig = rsa.sign();\n\n\t\t \n\t\t /* Save the signature in a file */\n\n\t\t File file = new File(args[3]);\n\t\t PrintWriter out = new PrintWriter(file);\n\n\t\t\t// if file doesn't exists, then create it\n\t\t\tif (!file.exists()) {\n\t\t\t\tfile.createNewFile();\n\t\t\t}\n\n\t\t out.println(DatatypeConverter.printBase64Binary(realSig));\n\t\t out.close();\n\n\n\t\t /* Save the public key in a file */\n\t\t byte[] key = publicKey.getEncoded();\n\t\t FileOutputStream keyfos = new FileOutputStream(args[4]);\n\t\t keyfos.write(key);\n\n\t\t keyfos.close();\n\n\t\t} catch (Exception e) {\n\t\t System.err.println(\"Caught exception \" + e.toString());\n\t\t}\n\n\t}", "byte[] getPackageCertificate() throws Exception {\n\t\tPackageInfo info;\n\t\tinfo = getPackageManager().getPackageInfo(getPackageName(), PackageManager.GET_SIGNATURES);\n\t\tfor (Signature signature : info.signatures) {\n\t\t\treturn signature.toByteArray();\n\t\t}\n\t\treturn null;\n\t}", "private Map<String,KeystoreMetadata> buildKeystores(\r\n Map<String,Object> keyObjMap, Map<String,CertificateMetadata> certMap, IPresenter presenter)\r\n {\r\n Map<String,KeystoreMetadata> keyMap = new HashMap<>();\r\n for(Map.Entry<String,Object> keyEntry : keyObjMap.entrySet())\r\n {\r\n Map<String,Object> propertiesMap = null;\r\n try {\r\n propertiesMap = (Map<String, Object>) keyEntry.getValue();\r\n } catch (ClassCastException e) {\r\n throw new MetadataException(\"Certificate metadata is incorrectly formatted\");\r\n }\r\n \r\n String outputKeystoreFilename = keyEntry.getKey();\r\n KeystoreMetadata km = new KeystoreMetadata();\r\n km.setOutputKeystoreFilename(outputKeystoreFilename);\r\n km.setBaseKeystoreFilename((String) propertiesMap.get(\"base-keystore-filename\"));\r\n km.setKeystorePassword((String) propertiesMap.get(\"keystore-password\"));\r\n \r\n Map<String,Object> certsObjectMap = null;\r\n try {\r\n certsObjectMap = (Map<String,Object>) propertiesMap.get(\"certificates\");\r\n } catch(ClassCastException e) {\r\n throw new MetadataException(\"Certificate metadata is incorrectly formatted\");\r\n }\r\n \r\n List<CertificateMetadata> certList = new LinkedList<>();\r\n if(certsObjectMap == null) // allow creation of empty keystores\r\n presenter.emptyKeystore(outputKeystoreFilename);\r\n else\r\n for(Map.Entry<String,Object> certEntry : certsObjectMap.entrySet())\r\n {\r\n String certRef = certEntry.getKey();\r\n String certAlias = (String) certEntry.getValue();\r\n CertificateMetadata cert = certMap.get(certRef);\r\n km.addCertByAlias(certAlias,cert);\r\n km.addAliasByCertRef(certRef,certAlias);\r\n certList.add(cert);\r\n }\r\n km.setCertificates(certList);\r\n keyMap.put(outputKeystoreFilename, km);\r\n }\r\n return keyMap;\r\n }", "void importPKCS12Certificate(InputStream is)\n {\n\tKeyStore myKeySto = null;\n\t// passord\n\tchar[] password = null;\n\t\n\ttry\n\t{\n\t myKeySto = KeyStore.getInstance(\"PKCS12\");\n\n\t // Pop up password dialog box\n Object dialogMsg = getMessage(\"dialog.password.text\");\n JPasswordField passwordField = new JPasswordField();\n\n Object[] msgs = new Object[2];\n msgs[0] = new JLabel(dialogMsg.toString());\n msgs[1] = passwordField;\n\n JButton okButton = new JButton(getMessage(\"dialog.password.okButton\"));\n JButton cancelButton = new JButton(getMessage(\"dialog.password.cancelButton\"));\n\n String title = getMessage(\"dialog.password.caption\");\n Object[] options = {okButton, cancelButton};\n int selectValue = DialogFactory.showOptionDialog(this, msgs, title, options, options[0]);\n\n\t // for security purpose, DO NOT put password into String. Reset password as soon as \n\t // possible.\n\t password = passwordField.getPassword();\n\n\t // User click OK button\n if (selectValue == 0)\n {\n\t // Load KeyStore based on the password\n\t myKeySto.load(is,password);\n\n\t // Get Alias list from KeyStore.\n\t Enumeration aliasList = myKeySto.aliases();\n\n\t while (aliasList.hasMoreElements())\n\t {\n\t\t\tX509Certificate cert = null;\n\n\t\t\t// Get Certificate based on the alias name\n\t\t\tString certAlias = (String)aliasList.nextElement();\n\t\t\tcert = (X509Certificate)myKeySto.getCertificate(certAlias);\n\n\t\t\t// Add to import list based on radio button selection\n\t\t\t\tif (getRadioPos() == mh.getMessage(\"SignedApplet_value\"))\n \t\t\t\t model.deactivateImpCertificate(cert);\n\t\t\t\telse if (getRadioPos() == mh.getMessage(\"SecureSite_value\"))\n \t\t\t\t model.deactivateImpHttpsCertificate(cert);\n\t }\n\t } // OK button\n\t}\n\tcatch(Throwable e)\n\t{\n\t // Show up Error dialog box if the user enter wrong password\n\t // Avoid to convert password array into String - security reason\n\t String uninitializedValue = \"uninitializedValue\";\n\t if (!compareCharArray(password, uninitializedValue.toCharArray()))\n\t {\n\t\t\tString errorMsg = getMessage(\"dialog.import.password.text\");\n\t\t\t\t\tString errorTitle = getMessage(\"dialog.import.error.caption\");\n\t \t\tDialogFactory.showExceptionDialog(this, e, errorMsg, errorTitle);\n\t }\n\t}\n\tfinally {\n\t\t// Reset password\n\t\tif(password != null) {\n\t\t\tjava.util.Arrays.fill(password, ' ');\n\t\t}\n\t}\n }", "private void viewCertificate() {\n\t\tint selectedRow = -1;\n\t\tString alias = null;\n\t\tX509Certificate certToView = null;\n\t\tArrayList<String> serviceURIs = null;\n\t\tKeystoreType keystoreType = null;\n\n\t\t// Are we showing user's public key certificate?\n\t\tif (keyPairsTab.isShowing()) {\n\t\t\tkeystoreType = KEYSTORE;\n\t\t\tselectedRow = keyPairsTable.getSelectedRow();\n\n\t\t\tif (selectedRow != -1)\n\t\t\t\t/*\n\t\t\t\t * Because the alias column is not visible we call the\n\t\t\t\t * getValueAt method on the table model rather than at the\n\t\t\t\t * JTable\n\t\t\t\t */\n\t\t\t\talias = (String) keyPairsTable.getModel().getValueAt(selectedRow, 6); // current entry's Keystore alias\n\t\t}\n\t\t// Are we showing trusted certificate?\n\t\telse if (trustedCertificatesTab.isShowing()) {\n\t\t\tkeystoreType = TRUSTSTORE;\n\t\t\tselectedRow = trustedCertsTable.getSelectedRow();\n\n\t\t\tif (selectedRow != -1)\n\t\t\t\t/*\n\t\t\t\t * Get the selected trusted certificate entry's Truststore alias\n\t\t\t\t * Alias column is invisible so we get the value from the table\n\t\t\t\t * model\n\t\t\t\t */\n\t\t\t\talias = (String) trustedCertsTable.getModel().getValueAt(\n\t\t\t\t\t\tselectedRow, 5);\n\t\t}\n\n\t\ttry {\n\t\t\tif (selectedRow != -1) { // something has been selected\n\t\t\t\t// Get the entry's certificate\n\t\t\t\tcertToView = dnParser.convertCertificate(credManager\n\t\t\t\t\t\t.getCertificate(keystoreType, alias));\n\n\t\t\t\t// Show the certificate's contents to the user\n\t\t\t\tViewCertDetailsDialog viewCertDetailsDialog = new ViewCertDetailsDialog(\n\t\t\t\t\t\tthis, \"Certificate details\", true, certToView,\n\t\t\t\t\t\tserviceURIs, dnParser);\n\t\t\t\tviewCertDetailsDialog.setLocationRelativeTo(this);\n\t\t\t\tviewCertDetailsDialog.setVisible(true);\n\t\t\t}\n\t\t} catch (CMException cme) {\n\t\t\tString exMessage = \"Failed to get certificate details to display to the user\";\n\t\t\tlogger.error(exMessage, cme);\n\t\t\tshowMessageDialog(this, exMessage, ERROR_TITLE, ERROR_MESSAGE);\n\t\t}\n\t}", "@Override\n\tpublic void signPropis(File propis, String jks, String allias, String password, String cer, String cerNaziv)\n\t\t\tthrows IOException {\n\n\t\tDocument doc = loadDocument(propis.getCanonicalPath());\n\n\t\tPrivateKey pk = readPrivateKey(jks, allias, password);\n\t\tCertificate cert = readCertificate(jks, cerNaziv);\n\t\ttry {\n\t\t\tdoc = signDocument(doc, pk, cert);\n\t\t} catch (XMLSecurityException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\ttry {\n\t\t\tFileOutputStream f = new FileOutputStream(propis);\n\n\t\t\tTransformerFactory factory = TransformerFactory.newInstance();\n\t\t\tTransformer transformer = factory.newTransformer();\n\n\t\t\tDOMSource source = new DOMSource(doc);\n\t\t\tStreamResult result = new StreamResult(f);\n\n\t\t\ttransformer.transform(source, result);\n\n\t\t\tf.close();\n\n\t\t} catch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (TransformerConfigurationException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (IllegalArgumentException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (MalformedURLException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (TransformerFactoryConfigurationError e) {\n\t\t\te.printStackTrace();\n\t\t} catch (TransformerException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}", "public static String getCertificadoCacert(String ambiente)\n\t\t\tthrows NfeException {\n\n\t\tif (ambiente.equals(\"DES\")) {\n\t\t\treturn NfeUtil.class.getResource(\"/ARQUIVO_JKS.jks\").getPath();\n\t\t} else if (ambiente.equals(\"PROD\")) {\n\t\t\treturn NfeUtil.class.getResource(\"/ARQUIVO_JKS.jks\").getPath();\n\t\t} else {\n\t\t\tthrow new NfeException(\"Selecione o ambiente PROD/DES\");\n\n\t\t}\n\t}", "public Certificate[] getFileCertificates()\r\n {\r\n return acFileCertificates;\r\n }", "private void obtenerCertificado() {\n\n\t\tcertificado = generarCertificado(lasLlaves);\n\n\t\ttry {\n\n\t\t\tString cert = in.readLine();\n\t\t\tbyte[] esto = parseBase64Binary(cert);\n\t\t\tCertificateFactory cf = CertificateFactory.getInstance(\"X.509\");\n\t\t\tInputStream is = new ByteArrayInputStream(esto);\n\t\t\tX509Certificate certServer = (X509Certificate) cf.generateCertificate(is);\n\n\t\t\tllavePublica = certServer.getPublicKey(); \n\t\t\tSystem.out.println(\"Llave Publica obtenida\");\n\t\t} catch (Exception e) {\n\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private static String getKey(String filename) throws IOException {\n\t\tString strKeyPEM = \"\";\n\t\tBufferedReader br = new BufferedReader(new FileReader(filename));\n\t\tString line;\n\t\twhile ((line = br.readLine()) != null) {\n\t\t\tstrKeyPEM += line;\n\t\t}\n\t\tbr.close();\n\t\treturn strKeyPEM;\n\t}", "public void checkServerTrusted ( X509Certificate[] chain, String authType ) throws CertificateException { \n //String to hold the issuer of first member in the chain\n String issuer = \"\";\n //String to hold the subject of the first member in the chain\n String subject = \"\";\n //Calendar to get the valid on and expires on date\n Calendar cal=Calendar.getInstance();\n //Date and String to hold the date the certificate was issued on\n Date issuedOn = null;\n String issuedOnString = new String(\"\");\n //Date and String to hold the date the certificate is valid until\n Date expiresOn = null;\n String expiresOnString = new String(\"\");\n //BigInteger to hold the serial number of the certificate\n BigInteger serial = null;\n //the highest certificate in the chain (the root)\n X509Certificate highestCert = null;\n \n try {\n highestCert = chain[0];\n issuer = highestCert.getIssuerX500Principal().toString();\n subject = highestCert.getSubjectX500Principal().toString();\n serial = highestCert.getSerialNumber();\n \n issuedOn = highestCert.getNotBefore();\n cal.setTime(issuedOn);\n issuedOnString = new String((cal.get(Calendar.MONTH)+1) + \"/\"+cal.get(Calendar.DAY_OF_MONTH)+\"/\"+cal.get(Calendar.YEAR));\n expiresOn = highestCert.getNotAfter();\n cal.setTime(expiresOn);\n expiresOnString = new String( (cal.get(Calendar.MONTH)+1) + \"/\"+cal.get(Calendar.DAY_OF_MONTH)+\"/\"+cal.get(Calendar.YEAR));\n \n mTrustManager.checkServerTrusted(chain, authType);\n } catch (CertificateException cx) { \n \t if ( !mAllowUntrusted )\n \t {\n \t\t ERTrustManagerCertificateException erce = new ERTrustManagerCertificateException(\"\\nUntrusted Certificate Found: \"+\n \"\\nIssued by: \"+ issuer + \n \"\\nIssued to: \" + subject + \n \"\\nIssued on: \" + issuedOnString + \n \"\\nExpires on: \" + expiresOnString + \n \"\\nSerial: \" + serial); \n \t\t erce.setCertificate(highestCert);\n \n \t throw erce;\n \t }\n }\n\n }", "public interface X509CertChainValidator\n{\n\t/**\n\t * Performs validation of a provided certificate path.\n\t * @param certPath to be validated\n\t * @return result of validation\n\t */\n\tpublic ValidationResult validate(CertPath certPath);\n\t\n\t/**\n\t * Performs validation of a provided certificate chain.\n\t * @param certChain to be validated\n\t * @return result of validation\n\t */\n\tpublic ValidationResult validate(X509Certificate[] certChain);\n\t\n\t/**\n\t * Returns a list of trusted issuers of certificates. \n\t * @return array containing trusted issuers' certificates\n\t */\n\tpublic X509Certificate[] getTrustedIssuers();\n\t\n\t/**\n\t * Registers a listener which can react to errors found during certificate \n\t * validation. It is useful in two cases: (rarely) if you want to change \n\t * the default logic of the validator and if you will use the validator indirectly\n\t * (e.g. to validate SSL socket connections) and want to get the original \n\t * {@link ValidationError}, not the exception. \n\t * \n\t * @param listener to be registered\n\t */\n\tpublic void addValidationListener(ValidationErrorListener listener);\n\t\n\t/**\n\t * Unregisters a previously registered validation listener. If the listener\n\t * was not registered then the method does nothing. \n\t * @param listener to be unregistered\n\t */\n\tpublic void removeValidationListener(ValidationErrorListener listener);\n\t\n\t\n\t/**\n\t * Registers a listener which can react to errors found during refreshing \n\t * of the trust material: trusted CAs or CRLs. This method is useful only if\n\t * the implementation supports updating of CAs or CRLs, otherwise the listener\n\t * will not be invoked. \n\t * \n\t * @param listener to be registered\n\t */\n\tpublic void addUpdateListener(StoreUpdateListener listener);\n\t\n\t/**\n\t * Unregisters a previously registered CA or CRL update listener. If the listener\n\t * was not registered then the method does nothing. \n\t * @param listener to be unregistered\n\t */\n\tpublic void removeUpdateListener(StoreUpdateListener listener);\n}", "public void persist(byte[] certificate) throws GeneralSecurityException, IOException {\n KeyStoreManager keyStoreManager = KeyStoreManager.builder()\n .context(Config.getInstance().getContext()).build();\n keyStoreManager.persist(keyAlias, certificate);\n }", "boolean hasCertificate();", "private void testExtensions(AbstractTestKeyPairGenerator a_keyPairGenerator)\n\t\tthrows Exception\n\t{\n\t\tPKCS12 privateCertificate;\n\t\tString ski_one, ski_two;\n\t\tX509Extensions extensions;\n\t\tVector vecExtensions;\n\t\tCalendar calendar;\n\t\tX509SubjectAlternativeName san;\n\t\tX509IssuerAlternativeName ian;\n\t\tString mail = \"my@mail.de\";\n\t\tString ip = \"132.199.134.2\";\n\n\n\t\t// create a private certificate\n\t\tprivateCertificate = new PKCS12(\n\t\t\t\t new X509DistinguishedName(\"CN=DummyOwner\"),\n\t\t\t\t a_keyPairGenerator.createKeyPair(), new Validity(new GregorianCalendar(), 1));\n\n\t\t// self-sign certificate with new extensions\n\t\tvecExtensions = new Vector();\n\t\tvecExtensions.addElement(new X509SubjectKeyIdentifier(privateCertificate.getPublicKey()));\n\t\tvecExtensions.addElement(new X509SubjectAlternativeName(\n\t\t\t\t mail, X509SubjectAlternativeName.TAG_EMAIL));\n\t\tvecExtensions.addElement(new X509IssuerAlternativeName(\n\t\t\t\t ip, X509IssuerAlternativeName.TAG_IP));\n\t\textensions = new X509Extensions(vecExtensions);\n\t\tcalendar = new GregorianCalendar(2002, 2, 2);\n\t\tprivateCertificate.sign(privateCertificate,\n\t\t\tnew Validity(calendar, -1), extensions, new BigInteger(\"35321\"));\n\n\t\t// test if the extensions are set correctly\n\t\textensions = privateCertificate.getExtensions();\n\t\tassertEquals(3, extensions.getSize());\n\t\tski_one = new X509SubjectKeyIdentifier(privateCertificate.getPublicKey()).getValue();\n\t\tski_two = ((X509SubjectKeyIdentifier)extensions.getExtension(\n\t\t\t\t X509SubjectKeyIdentifier.IDENTIFIER)).getValue();\n\t\tassertEquals(ski_one, ski_two);\n\n\t\tsan = (X509SubjectAlternativeName)extensions.getExtension(\n\t\t\t\t X509SubjectAlternativeName.IDENTIFIER);\n\t\tassertEquals(mail,san.getValues().elementAt(0));\n\t\tassertEquals(X509SubjectAlternativeName.TAG_EMAIL, san.getTags().elementAt(0));\n\n\t\tian =(X509IssuerAlternativeName)extensions.getExtension(\n\t\t\t\t X509IssuerAlternativeName.IDENTIFIER);\n\t\tassertEquals(ip, ian.getValues().elementAt(0));\n\n\n\t\t// test if the other data is set correctly\n\t\tassertEquals(calendar.getTime(),\n\t\t\t\t\t privateCertificate.getX509Certificate().getValidity().getValidFrom());\n\t\tassertEquals(new BigInteger(\"35321\"),\n\t\t\t\t privateCertificate.getX509Certificate().getSerialNumber());\n\t}", "@java.lang.Override\n public java.util.List<com.google.protobuf.ByteString>\n getCertificateList() {\n return certificate_;\n }", "@Test\n public void AdditionalCerts() {\n String keyStoreMultiCert = \"multipleCerts\";\n String additionalCert = \"mg.pem\";\n String additionalCertPath = resourcePath + keyStore + File.separator\n + keyStoreMultiCert + File.separator + additionalCert;\n ConfigHolder configHolder = ConfigHolder.getInstance();\n JWTGenerator jwtGenerator = JWTGenerator.newBuilder()\n .setEnable(true)\n .addKeypairs(Keypair.newBuilder()\n .setPublicCertificatePath(certPath)\n .setUseForSigning(true)\n .buildPartial())\n .addKeypairs(Keypair.newBuilder()\n .setPublicCertificatePath(additionalCertPath)\n .setUseForSigning(true)\n .buildPartial())\n .build();\n ConfigHolder.load(Config.newBuilder().setJwtGenerator(jwtGenerator).buildPartial());\n Assert.assertTrue(\"JWT Configuration wasn't enabled\",\n configHolder.getConfig().getJwtConfigurationDto().isEnabled());\n Assert.assertEquals(\"Failed to generate multiple JWKS\", 2, configHolder.getConfig()\n .getBackendJWKSDto().getJwks().getKeys().size());\n }", "@java.lang.Override\n public com.google.protobuf.ByteString getCertificate(int index) {\n return certificate_.get(index);\n }", "liubaninc.m0.pki.CertificateOuterClass.CertificateOrBuilder getCertificateOrBuilder();", "public void writeToDerFile(PrivateKey key, File file) {\n OutputStream stream = null;\n try {\n stream = new FileOutputStream(file);\n IOUtils.write(key.getEncoded(), stream);\n } catch (RuntimeException | IOException e) {\n throw new RuntimeException(\"Failed to write key DER to [\"+file+\"]\", e);\n } finally {\n CloseablesExt.closeQuietly(stream);\n }\n }", "private void loadCert(String certPath, long latestLastModified, \n Map newCertFileMap, Map newCertSubjectDNMap, \n String policyPath, long policyModified, \n Map newPolicyFileMap, Map newPolicyDNMap) {\n\n X509Certificate cert = null;\n \n if (this.certFileMap == null) {\n this.certFileMap = new HashMap();\n }\n\n if (this.policyFileMap == null) {\n this.policyFileMap = new HashMap();\n }\n\n TimestampEntry certEntry = \n (TimestampEntry)this.certFileMap.get(certPath);\n TimestampEntry policyEntry =\n (TimestampEntry)this.policyFileMap.get(policyPath);\n try {\n if (certEntry == null) {\n logger.debug(\"Loading \" + certPath + \" certificate.\");\n cert = CertUtil.loadCertificate(certPath);\n String caDN = cert.getSubjectDN().getName();\n certEntry = new TimestampEntry();\n certEntry.setValue(cert);\n certEntry.setLastModified(latestLastModified);\n certEntry.setDescription(caDN);\n this.changed = true;\n // load signing policy file\n logger.debug(\"Loading \" + policyPath + \" signing policy.\");\n policyEntry = getPolicyEntry(policyPath, policyModified, caDN);\n } else if (latestLastModified > certEntry.getLastModified()) {\n logger.debug(\"Reloading \" + certPath + \" certificate.\");\n cert = CertUtil.loadCertificate(certPath);\n String caDN = cert.getSubjectDN().getName();\n certEntry.setValue(cert);\n certEntry.setLastModified(latestLastModified);\n certEntry.setDescription(caDN);\n this.changed = true;\n if (policyModified > policyEntry.getLastModified()) {\n logger.debug(\"Reloading \" + policyPath \n + \" signing policy.\");\n policyEntry = getPolicyEntry(policyPath, policyModified, \n caDN);\n }\n } else {\n logger.debug(\"Certificate \" + certPath + \" is up-to-date.\");\n cert = (X509Certificate)certEntry.getValue();\n String caDN = cert.getSubjectDN().getName();\n if (policyModified > policyEntry.getLastModified()) {\n logger.debug(\"Reloading \" + policyPath \n + \" signing policy.\");\n policyEntry = getPolicyEntry(policyPath, policyModified, \n caDN);\n }\n }\n newCertFileMap.put(certPath, certEntry);\n newCertSubjectDNMap.put(certEntry.getDescription(), cert);\n newPolicyFileMap.put(policyPath, policyEntry);\n newPolicyDNMap.put(policyEntry.getDescription(), \n policyEntry.getValue());\n } catch (SigningPolicyParserException e) {\n logger.warn(\"Signing policy \" + policyPath + \" failed to load. \"\n + e.getMessage());\n logger.debug(\"Signing policy load error\", e);\n } catch (IOException e) {\n logger.warn(\"Certificate \" + certPath + \" failed to load.\" \n + e.getMessage());\n logger.debug(\"Certificate load error\", e);\n } catch (Exception e) {\n logger.warn(\"Certificate \" + certPath + \" or Signing policy \"\n + policyPath + \" failed to load. \" + e.getMessage());\n logger.debug(\"Certificate/Signing policy load error.\", e);\n }\n }", "public X509Certificate getCertificate(KeyStore keystore, String certificateAlias) throws CertException;", "public static List<CertKeyPair> exampleTlsCerts() {\n final Path root = getFlightTestDataRoot();\n return Arrays.asList(new CertKeyPair(root.resolve(\"cert0.pem\")\n .toFile(), root.resolve(\"cert0.pkcs1\").toFile()),\n new CertKeyPair(root.resolve(\"cert1.pem\")\n .toFile(), root.resolve(\"cert1.pkcs1\").toFile()));\n }", "@SuppressWarnings(\"deprecation\")\n\tpublic static X509Certificate GenerateASelfSignedCerteficate(X500Principal dnName1,\n\t \t\tX500Principal dnName2, BigInteger serialNumber ,PublicKey mypublicKey,\n\t \t\tPrivateKey myprivateKey, KeyUsage Keyus ) \n\t throws CertificateEncodingException, InvalidKeyException, IllegalStateException, NoSuchProviderException, \n\t NoSuchAlgorithmException, SignatureException\n\t {\n\t\t\t X509V3CertificateGenerator certGen = new X509V3CertificateGenerator();\n\t\t\n //Add the serial number\n\t\t\t certGen.setSerialNumber(serialNumber);\n\t\t\t certGen.setSerialNumber(BigInteger.valueOf(System.currentTimeMillis()));\n\t\t\t \n\t\t\t //Issuer Id extension \n\t\t certGen.setIssuerDN(dnName1); \n\t\t \n\t\t //Subject DN extension\n\t\t\t certGen.setSubjectDN(dnName2);\n\t\t\t \n\t\t\t //Not before \n\t\t\t certGen.setNotBefore(new Date(System.currentTimeMillis() - 24 * 60 * 60 * 1000));\n\t\t\t \n\t\t\t // Not After\n\t\t\t certGen.setNotAfter(new Date(System.currentTimeMillis() + 2 * 365 * 24 * 60 * 60 * 1000));\n\t\t\t \n\t\t\t //Set the public Key\n\t\t\t certGen.setPublicKey(mypublicKey);\n\t\t\t \n\t\t\t //Sign the certificate\n\t\t\t certGen.setSignatureAlgorithm(\"SHA256WithRSAEncryption\");\n\t\t\t certGen.addExtension(X509Extensions.KeyUsage, true, Keyus);\n\t\t\t certGen.addExtension(X509Extensions.ExtendedKeyUsage, true, new ExtendedKeyUsage(KeyPurposeId.id_kp_serverAuth));\n\t \t\n\t\t\t\n\t\t\t \n\t\t\t // finally, sign the certificate with the private key of the same KeyPair\n\t\t\t Security.addProvider(new BouncyCastleProvider());\n\t\t\t \n\t\t\t X509Certificate certroot = certGen.generate(myprivateKey,\"BC\");\n\t\t\t \n\t\t\t \n\t \treturn certroot;\n\t }", "private Certificate loadcert(final String filename) throws FileNotFoundException, IOException, CertificateParsingException {\n final byte[] bytes = FileTools.getBytesFromPEM(FileTools.readFiletoBuffer(filename), \"-----BEGIN CERTIFICATE-----\",\n \"-----END CERTIFICATE-----\");\n return CertTools.getCertfromByteArray(bytes, Certificate.class);\n\n }", "public void updateCertificateEnter(String certificateId) throws ClassNotFoundException, SQLException;", "private void performAddCertCommand(String[] args) throws Exception {\n int i = 1;\n\n // change the default for cert number for this command\n certIndex = 0;\n\n try {\n for (i = 1; i < args.length; i++) {\n\n if (args[i].equals(\"-encoding\")) {\n encoding = args[++i];\n } else if (args[i].equals(\"-keystore\")) {\n keystore = args[++i];\n } else if (args[i].equals(\"-storepass\")) {\n storepass = args[++i].toCharArray();\n } else if (args[i].equals(\"-alias\")) {\n alias = args[++i];\n } else if (args[i].equals(\"-certnum\")) {\n certnum = args[++i];\n } else if (args[i].equals(\"-chainnum\")) {\n chainNum = args[++i];\n } else if (args[i].equals(\"-inputjad\")) {\n infile = args[++i];\n } else if (args[i].equals(\"-outputjad\")) {\n outfile = args[++i];\n } else {\n usageError(\"Illegal option for \" + command +\n \": \" + args[i]);\n }\n }\n } catch (ArrayIndexOutOfBoundsException aiobe) {\n usageError(\"Missing value for \" + args[--i]);\n }\n\n // these methods will check for the presence of the args they need\n checkCertAndChainNum();\n initJadUtil();\n openKeystoreAndOutputJad();\n\n try {\n appdesc.addCert(alias, chainIndex, certIndex);\n appdesc.store(outstream, encoding);\n return;\n } catch (Exception e) {\n throw new Exception(command + \" failed: \" + e.toString());\n }\n }", "public void writeToPemFile(PublicKey key, File file) {\n writeToPemFile(PemType.PUBLIC_KEY, key.getEncoded(), file);\n }", "public void actionPerformed(ActionEvent e) \n {\n\tint i = certList.getSelectedIndex();\n\t\n\t//if (i < 0)\n\t// return;\n\t \t \n\t// Changed the certificate from the active set into the \n\t// inactive set. This is for removing the certificate from\n\t// the store when the user clicks on Apply.\n\t//\n\tString alias = (String) certList.getSelectedValue();\n\n\tif (e.getSource()==removeButton) \n\t{\t \t\t\n\t // Changed the certificate from the active set into the \n\t // inactive set. This is for removing the certificate from\n\t // the store when the user clicks on Apply.\n\t //\n\t if (getRadioPos() == mh.getMessage(\"SignedApplet_value\"))\n \t model.deactivateCertificate(alias);\n\t else\n\t model.deactivateHttpsCertificate(alias);\n\n\t reset();\n\t}\n\telse if (e.getSource() == viewCertButton) \n\t{\n\t X509Certificate myCert = null;\n\n\t if (getRadioPos() == mh.getMessage(\"SignedApplet_value\"))\n\t\tmyCert = (X509Certificate) model.getCertificate(alias);\n\t else if (getRadioPos() == mh.getMessage(\"SecureSite_value\")) \n\t\tmyCert = (X509Certificate) model.getHttpsCertificate(alias);\n\t else if (getRadioPos() == mh.getMessage(\"SignerCA_value\")) \n\t\tmyCert = (X509Certificate) model.getRootCACertificate(alias);\n\t else if (getRadioPos() == mh.getMessage(\"SecureSiteCA_value\")) \n\t\tmyCert = (X509Certificate) model.getHttpsRootCACertificate(alias);\n\n\t X509Certificate[] certs = new X509Certificate[] {myCert};\n\n\t // Make sure the certificate has been stored or in the import HashMap.\n\t if (certs.length > 0 && certs[0] instanceof X509Certificate)\n\t {\n \tCertificateDialog dialog = new CertificateDialog(this, certs, 0, certs.length);\n \t \tdialog.DoModal();\t\t\t\n\t }\n\t else \n\t {\n\t\t// The certificate you are trying to view is still in Import HashMap\n\t\tX509Certificate impCert = null;\n\n\t\tif (getRadioPos() == mh.getMessage(\"SignedApplet_value\"))\n\t\t impCert = model.getImpCertificate(alias);\n\t\telse\n\t\t impCert = model.getImpHttpsCertificate(alias);\n\t\n\t X509Certificate[] impCerts = new X509Certificate[] {impCert};\n \tCertificateDialog impDialog = new CertificateDialog(this, impCerts, 0, impCerts.length);\n \t \timpDialog.DoModal();\t\t\t\n\t }\n\t}\n\telse if (e.getSource() == importButton)\n\t{\n\t // Popup FileChooser\n\t JFileChooser jfc = new JFileChooser();\n\n\t // Set filter for File Chooser Dialog Box\n\t CertFileFilter impFilter = new CertFileFilter(); \n\t impFilter.addExtension(\"csr\");\n\t impFilter.addExtension(\"p12\");\n\t impFilter.setDescription(\"Certificate Files\");\n\t jfc.setFileFilter(impFilter);\n \n\t jfc.setFileSelectionMode(JFileChooser.FILES_ONLY);\n\t jfc.setDialogType(JFileChooser.OPEN_DIALOG);\n\t jfc.setMultiSelectionEnabled(false);\n\t int result = jfc.showOpenDialog(this);\n\t if (result == JFileChooser.APPROVE_OPTION)\n\t {\n\t\tFile f = jfc.getSelectedFile();\n\t\tif (f == null) return;\n\n\t\ttry\n\t\t{\n\t\t InputStream inStream = System.in;\n\t\t inStream = new FileInputStream(f);\n\n\t\t // Import certificate from file to deployment.certs\n\t\t boolean impStatus = false;\n\t\t impStatus = importCertificate(inStream);\n\t\t\t\n\t\t // Check if it is belong to PKCS#12 format\n\t\t if (!impStatus)\n\t\t {\n\t\t\t// Create another inputStream for PKCS#12 foramt\n\t\t InputStream inP12Stream = System.in;\n\t\t inP12Stream = new FileInputStream(f);\n\t\t importPKCS12Certificate(inP12Stream);\n\t\t }\n\t\t}\n\t\tcatch(Throwable e2)\n\t\t{\n\t\t DialogFactory.showExceptionDialog(this, e2, getMessage(\"dialog.import.file.text\"), \n\t\t\t\t\t\t getMessage(\"dialog.import.error.caption\"));\n\t\t}\n\t }\n\n\t reset();\n\t}\n\telse if (e.getSource() == exportButton)\n\t{\n\t X509Certificate cert = null;\n\n\t if (getRadioPos() == mh.getMessage(\"SignedApplet_value\"))\n\t\tcert = (X509Certificate) model.getCertificate(alias);\n\t else if (getRadioPos() == mh.getMessage(\"SecureSite_value\")) \n\t\tcert = (X509Certificate) model.getHttpsCertificate(alias);\n\t else if (getRadioPos() == mh.getMessage(\"SignerCA_value\")) \n\t\tcert = (X509Certificate) model.getRootCACertificate(alias);\n\t else if (getRadioPos() == mh.getMessage(\"SecureSiteCA_value\")) \n\t\tcert = (X509Certificate) model.getHttpsRootCACertificate(alias);\n\n\t // Make sure the certificate has been stored, if not, get from import table.\n\t if (!(cert instanceof X509Certificate))\n\t {\n\t\t// The certificate you are trying to export is still in Import HashMap\n\t\tif (getRadioPos() == mh.getMessage(\"SignedApplet_value\"))\n\t\t cert = model.getImpCertificate(alias);\n\t\telse\n\t\t cert = model.getImpHttpsCertificate(alias);\n\n\t } //not saved certificate \n\n\t if (cert != null)\n\t {\n\t // Popup FileChooser\n\t JFileChooser jfc = new JFileChooser();\n\t jfc.setFileSelectionMode(JFileChooser.FILES_ONLY);\n\t jfc.setDialogType(JFileChooser.SAVE_DIALOG);\n\t jfc.setMultiSelectionEnabled(false);\n\t int result = jfc.showSaveDialog(this);\n\t if (result == JFileChooser.APPROVE_OPTION)\n\t {\n\t\tFile f = jfc.getSelectedFile();\n\t\tif (f == null) return;\n\t\tPrintStream ps = null;\n\t\ttry {\n\t\t ps = new PrintStream(new BufferedOutputStream(new FileOutputStream(f)));\n\t\t exportCertificate(cert, ps);\n\t\t}\n\t\tcatch(Throwable e2) \n\t\t{\n\t\t DialogFactory.showExceptionDialog(this, e2, getMessage(\"dialog.export.text\"), \n\t\t\t\t\t\t getMessage(\"dialog.export.error.caption\"));\n\t\t}\n\t\tfinally {\n\t\t if (ps != null)\n\t\t\tps.close();\n\t\t}\n\t }\n\t } // Cert not null\n\t else {\n\t\tDialogFactory.showErrorDialog(this, getMessage(\"dialog.export.text\"), getMessage(\"dialog.export.error.caption\"));\n\t }\n\t}\n }", "private synchronized String getEncodedCertToString(String certSignReq,\n NodeType nodeType) throws IOException {\n Future<CertPath> future;\n if (nodeType == NodeType.SCM && rootCertificateServer != null) {\n future = rootCertificateServer.requestCertificate(certSignReq,\n KERBEROS_TRUSTED, nodeType);\n } else {\n future = scmCertificateServer.requestCertificate(certSignReq,\n KERBEROS_TRUSTED, nodeType);\n }\n try {\n return getPEMEncodedString(future.get());\n } catch (InterruptedException e) {\n Thread.currentThread().interrupt();\n throw generateException(e, nodeType);\n } catch (ExecutionException e) {\n if (e.getCause() != null) {\n if (e.getCause() instanceof SCMSecurityException) {\n throw (SCMSecurityException) e.getCause();\n } else {\n throw generateException(e, nodeType);\n }\n } else {\n throw generateException(e, nodeType);\n }\n }\n }", "public void setUserCertificatesPath(String path);", "public void save(File file, char[] password)\n\t\t\tthrows GeneralSecurityException, IOException {\n\t\tsynchronized (keyStore) {\n\t\t\tOutputStream out = new FileOutputStream(file);\n\t\t\ttry {\n\t\t\t\tkeyStore.store(out, password);\n\t\t\t} finally {\n\t\t\t\tout.close();\n\t\t\t}\n\t\t}\n\t}", "@Override\n public TelemetryExporterBuilder<T> setTrustedCertificates(byte[] certificates) {\n delegate.setTrustedCertificates(certificates);\n tlsConfigHelper.setTrustManagerFromCerts(certificates);\n return this;\n }", "public static void writeToPassFile(String filepath) throws IOException {\r\n\r\n CSVWriter writer = new CSVWriter(new FileWriter(filepath), CSVWriter.DEFAULT_SEPARATOR,\r\n CSVWriter.NO_QUOTE_CHARACTER);\r\n for (Entry<String, String> entry : passMap.entrySet()) {\r\n // take password(key) and email(value) together as a string array.\r\n String [] record = (entry.getKey() + \",\" + entry.getValue()).split(\",\");\r\n writer.writeNext(record);\r\n }\r\n writer.close();\r\n\r\n\r\n }", "public PEMWriter() {\r\n }", "private String exportkey() {\n\n\t\ttry {\n\t\t\tbyte[] keyBytes = serversharedkey.getEncoded();\n\t\t\tString encodedKey = new String(Base64.encodeBase64(keyBytes), \"UTF-8\");\n\t\t\tFile file = new File(\"serversharedKey\");\n\t\t\t//System.out.println(\"The server Private key: \" + encodedKey);\n\t\t\tPrintWriter writer = new PrintWriter(file, \"UTF-8\");\n\t\t\twriter.println(encodedKey);\n\t\t\twriter.close();\n\n\t\t\treturn encodedKey;\n\n\t\t} catch (UnsupportedEncodingException | FileNotFoundException ex) {\n\t\t\tLogger.getLogger(ClientTCP.class.getName()).log(Level.SEVERE, null, ex);\n\t\t}\n\t\treturn null;\n\t}" ]
[ "0.64845717", "0.62720084", "0.5864253", "0.5781548", "0.5778399", "0.5777659", "0.5690849", "0.56852496", "0.56832236", "0.5654373", "0.56481236", "0.5605969", "0.54148656", "0.5393553", "0.537741", "0.5318505", "0.5286828", "0.52607685", "0.525143", "0.52204156", "0.5195515", "0.5184444", "0.51686716", "0.5167363", "0.516735", "0.51569265", "0.5138903", "0.51336974", "0.51266515", "0.51186043", "0.51031", "0.50994706", "0.50993377", "0.5092992", "0.5072815", "0.50551856", "0.5054319", "0.5038086", "0.5011666", "0.50098276", "0.5003918", "0.50008184", "0.49812993", "0.49668726", "0.49635497", "0.4952576", "0.4952576", "0.49502787", "0.49454463", "0.4919095", "0.49181843", "0.4911967", "0.4892495", "0.48917088", "0.4889113", "0.4872469", "0.4868028", "0.48401842", "0.48357", "0.48253188", "0.48234853", "0.4820677", "0.4814854", "0.48086402", "0.47949404", "0.47903144", "0.4781772", "0.47776058", "0.47737753", "0.47716367", "0.47709683", "0.4764119", "0.47639295", "0.4758396", "0.47549644", "0.47484922", "0.47468466", "0.47400644", "0.47222945", "0.47172365", "0.47167838", "0.4715369", "0.47106868", "0.47089434", "0.4703852", "0.4703274", "0.47024676", "0.47006544", "0.46757573", "0.4668704", "0.46642938", "0.46639916", "0.46629173", "0.46611235", "0.46518126", "0.46514988", "0.4651463", "0.46496826", "0.46370235", "0.46287242" ]
0.63925105
1
Lets a user delete the selected trusted certificate entries from the Truststore.
private void deleteTrustedCertificate() { // Which entries have been selected? int[] selectedRows = trustedCertsTable.getSelectedRows(); if (selectedRows.length == 0) // no trusted cert entry selected return; // Ask user to confirm the deletion if (showConfirmDialog( null, "Are you sure you want to delete the selected trusted certificate(s)?", ALERT_TITLE, YES_NO_OPTION) != YES_OPTION) return; String exMessage = null; for (int i = selectedRows.length - 1; i >= 0; i--) { // delete from backwards // Get the alias for the current entry String alias = (String) trustedCertsTable.getModel().getValueAt( selectedRows[i], 5); try { // Delete the trusted certificate entry from the Truststore credManager.deleteTrustedCertificate(alias); } catch (CMException cme) { exMessage = "Failed to delete the trusted certificate(s) from the Truststore"; logger.error(exMessage, cme); } } if (exMessage != null) showMessageDialog(this, exMessage, ERROR_TITLE, ERROR_MESSAGE); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void deleteCertificates() {\n LocalKeyStore localKeyStore = LocalKeyStore.getInstance();\n\n Uri uri = Uri.parse(getStoreUri());\n localKeyStore.deleteCertificate(uri.getHost(), uri.getPort());\n uri = Uri.parse(getTransportUri());\n localKeyStore.deleteCertificate(uri.getHost(), uri.getPort());\n }", "private void deletePassword() {\n\t\t// Which entries have been selected?\n\t\tint[] selectedRows = passwordsTable.getSelectedRows();\n\t\tif (selectedRows.length == 0) // no password entry selected\n\t\t\treturn;\n\n\t\t// Ask user to confirm the deletion\n\t\tif (showConfirmDialog(\n\t\t\t\tnull,\n\t\t\t\t\"Are you sure you want to delete the selected username and password entries?\",\n\t\t\t\tALERT_TITLE, YES_NO_OPTION) != YES_OPTION)\n\t\t\treturn;\n\n\t\tString exMessage = null;\n\t\tfor (int i = selectedRows.length - 1; i >= 0; i--) { // delete from backwards\n\t\t\t// Get service URI for the current entry\n\t\t\tURI serviceURI = URI.create((String) passwordsTable.getValueAt(selectedRows[i], 1));\n\t\t\t// current entry's service URI\n\t\t\ttry {\n\t\t\t\t// Delete the password entry from the Keystore\n\t\t\t\tcredManager.deleteUsernameAndPasswordForService(serviceURI);\n\t\t\t} catch (CMException cme) {\n\t\t\t\texMessage = \"Failed to delete the username and password pair from the Keystore\";\n\t\t\t}\n\t\t}\n\t\tif (exMessage != null)\n\t\t\tshowMessageDialog(this, exMessage, ERROR_TITLE, ERROR_MESSAGE);\n\t}", "boolean delete(Certificate externalReference) throws IOException;", "private void deleteKeyPair() {\n\t\t// Which entries have been selected?\n\t\tint[] selectedRows = keyPairsTable.getSelectedRows();\n\t\tif (selectedRows.length == 0) // no key pair entry selected\n\t\t\treturn;\n\n\t\t// Ask user to confirm the deletion\n\t\tif (showConfirmDialog(null,\n\t\t\t\t\"Are you sure you want to delete the selected key pairs?\",\n\t\t\t\tALERT_TITLE, YES_NO_OPTION) != YES_OPTION)\n\t\t\treturn;\n\n\t\tString exMessage = null;\n\t\tfor (int i = selectedRows.length - 1; i >= 0; i--) { // delete from backwards\n\t\t\t// Get the alias for the current entry\n\t\t\tString alias = (String) keyPairsTable.getModel().getValueAt(\n\t\t\t\t\tselectedRows[i], 6);\n\t\t\ttry {\n\t\t\t\t// Delete the key pair entry from the Keystore\n\t\t\t\tcredManager.deleteKeyPair(alias);\n\t\t\t} catch (CMException cme) {\n\t\t\t\tlogger.warn(\"failed to delete \" + alias, cme);\n\t\t\t\texMessage = \"Failed to delete the key pair(s) from the Keystore\";\n\t\t\t}\n\t\t}\n\t\tif (exMessage != null)\n\t\t\tshowMessageDialog(this, exMessage, ERROR_TITLE, ERROR_MESSAGE);\n\t}", "@Override\n\tpublic void deleteUserEngineerCertificateById(long id) {\n\t\tdelete(id);\n\t}", "int deleteByExample(TdxNoticeCertificateExample example);", "public void deleteCertificate(CertificateRequestFilterCriteria criteria) {\n log.debug(\"target: {}\", getTarget().getUri().toString());\n Response obj = getTargetPathWithQueryParams(\"tag-certificates\", criteria).request(MediaType.APPLICATION_JSON).delete();\n \n if( !obj.getStatusInfo().getFamily().equals(Response.Status.Family.SUCCESSFUL)) {\n throw new WebApplicationException(\"Delete Certificate Request failed\");\n }\n }", "@Action(\"deleteCertificate\")\n public String deleteCertificate() {\n getProfileService().deleteCertificate(getProfile(), getCertificate());\n return closeDialog();\n }", "void deleteAllChallenges();", "public void actionPerformed(ActionEvent e) \n {\n\tint i = certList.getSelectedIndex();\n\t\n\t//if (i < 0)\n\t// return;\n\t \t \n\t// Changed the certificate from the active set into the \n\t// inactive set. This is for removing the certificate from\n\t// the store when the user clicks on Apply.\n\t//\n\tString alias = (String) certList.getSelectedValue();\n\n\tif (e.getSource()==removeButton) \n\t{\t \t\t\n\t // Changed the certificate from the active set into the \n\t // inactive set. This is for removing the certificate from\n\t // the store when the user clicks on Apply.\n\t //\n\t if (getRadioPos() == mh.getMessage(\"SignedApplet_value\"))\n \t model.deactivateCertificate(alias);\n\t else\n\t model.deactivateHttpsCertificate(alias);\n\n\t reset();\n\t}\n\telse if (e.getSource() == viewCertButton) \n\t{\n\t X509Certificate myCert = null;\n\n\t if (getRadioPos() == mh.getMessage(\"SignedApplet_value\"))\n\t\tmyCert = (X509Certificate) model.getCertificate(alias);\n\t else if (getRadioPos() == mh.getMessage(\"SecureSite_value\")) \n\t\tmyCert = (X509Certificate) model.getHttpsCertificate(alias);\n\t else if (getRadioPos() == mh.getMessage(\"SignerCA_value\")) \n\t\tmyCert = (X509Certificate) model.getRootCACertificate(alias);\n\t else if (getRadioPos() == mh.getMessage(\"SecureSiteCA_value\")) \n\t\tmyCert = (X509Certificate) model.getHttpsRootCACertificate(alias);\n\n\t X509Certificate[] certs = new X509Certificate[] {myCert};\n\n\t // Make sure the certificate has been stored or in the import HashMap.\n\t if (certs.length > 0 && certs[0] instanceof X509Certificate)\n\t {\n \tCertificateDialog dialog = new CertificateDialog(this, certs, 0, certs.length);\n \t \tdialog.DoModal();\t\t\t\n\t }\n\t else \n\t {\n\t\t// The certificate you are trying to view is still in Import HashMap\n\t\tX509Certificate impCert = null;\n\n\t\tif (getRadioPos() == mh.getMessage(\"SignedApplet_value\"))\n\t\t impCert = model.getImpCertificate(alias);\n\t\telse\n\t\t impCert = model.getImpHttpsCertificate(alias);\n\t\n\t X509Certificate[] impCerts = new X509Certificate[] {impCert};\n \tCertificateDialog impDialog = new CertificateDialog(this, impCerts, 0, impCerts.length);\n \t \timpDialog.DoModal();\t\t\t\n\t }\n\t}\n\telse if (e.getSource() == importButton)\n\t{\n\t // Popup FileChooser\n\t JFileChooser jfc = new JFileChooser();\n\n\t // Set filter for File Chooser Dialog Box\n\t CertFileFilter impFilter = new CertFileFilter(); \n\t impFilter.addExtension(\"csr\");\n\t impFilter.addExtension(\"p12\");\n\t impFilter.setDescription(\"Certificate Files\");\n\t jfc.setFileFilter(impFilter);\n \n\t jfc.setFileSelectionMode(JFileChooser.FILES_ONLY);\n\t jfc.setDialogType(JFileChooser.OPEN_DIALOG);\n\t jfc.setMultiSelectionEnabled(false);\n\t int result = jfc.showOpenDialog(this);\n\t if (result == JFileChooser.APPROVE_OPTION)\n\t {\n\t\tFile f = jfc.getSelectedFile();\n\t\tif (f == null) return;\n\n\t\ttry\n\t\t{\n\t\t InputStream inStream = System.in;\n\t\t inStream = new FileInputStream(f);\n\n\t\t // Import certificate from file to deployment.certs\n\t\t boolean impStatus = false;\n\t\t impStatus = importCertificate(inStream);\n\t\t\t\n\t\t // Check if it is belong to PKCS#12 format\n\t\t if (!impStatus)\n\t\t {\n\t\t\t// Create another inputStream for PKCS#12 foramt\n\t\t InputStream inP12Stream = System.in;\n\t\t inP12Stream = new FileInputStream(f);\n\t\t importPKCS12Certificate(inP12Stream);\n\t\t }\n\t\t}\n\t\tcatch(Throwable e2)\n\t\t{\n\t\t DialogFactory.showExceptionDialog(this, e2, getMessage(\"dialog.import.file.text\"), \n\t\t\t\t\t\t getMessage(\"dialog.import.error.caption\"));\n\t\t}\n\t }\n\n\t reset();\n\t}\n\telse if (e.getSource() == exportButton)\n\t{\n\t X509Certificate cert = null;\n\n\t if (getRadioPos() == mh.getMessage(\"SignedApplet_value\"))\n\t\tcert = (X509Certificate) model.getCertificate(alias);\n\t else if (getRadioPos() == mh.getMessage(\"SecureSite_value\")) \n\t\tcert = (X509Certificate) model.getHttpsCertificate(alias);\n\t else if (getRadioPos() == mh.getMessage(\"SignerCA_value\")) \n\t\tcert = (X509Certificate) model.getRootCACertificate(alias);\n\t else if (getRadioPos() == mh.getMessage(\"SecureSiteCA_value\")) \n\t\tcert = (X509Certificate) model.getHttpsRootCACertificate(alias);\n\n\t // Make sure the certificate has been stored, if not, get from import table.\n\t if (!(cert instanceof X509Certificate))\n\t {\n\t\t// The certificate you are trying to export is still in Import HashMap\n\t\tif (getRadioPos() == mh.getMessage(\"SignedApplet_value\"))\n\t\t cert = model.getImpCertificate(alias);\n\t\telse\n\t\t cert = model.getImpHttpsCertificate(alias);\n\n\t } //not saved certificate \n\n\t if (cert != null)\n\t {\n\t // Popup FileChooser\n\t JFileChooser jfc = new JFileChooser();\n\t jfc.setFileSelectionMode(JFileChooser.FILES_ONLY);\n\t jfc.setDialogType(JFileChooser.SAVE_DIALOG);\n\t jfc.setMultiSelectionEnabled(false);\n\t int result = jfc.showSaveDialog(this);\n\t if (result == JFileChooser.APPROVE_OPTION)\n\t {\n\t\tFile f = jfc.getSelectedFile();\n\t\tif (f == null) return;\n\t\tPrintStream ps = null;\n\t\ttry {\n\t\t ps = new PrintStream(new BufferedOutputStream(new FileOutputStream(f)));\n\t\t exportCertificate(cert, ps);\n\t\t}\n\t\tcatch(Throwable e2) \n\t\t{\n\t\t DialogFactory.showExceptionDialog(this, e2, getMessage(\"dialog.export.text\"), \n\t\t\t\t\t\t getMessage(\"dialog.export.error.caption\"));\n\t\t}\n\t\tfinally {\n\t\t if (ps != null)\n\t\t\tps.close();\n\t\t}\n\t }\n\t } // Cert not null\n\t else {\n\t\tDialogFactory.showErrorDialog(this, getMessage(\"dialog.export.text\"), getMessage(\"dialog.export.error.caption\"));\n\t }\n\t}\n }", "public void deleteEducation() {\n workerPropertiesController.deleteEducation(myEducationCollection.getRowData()); \n // usuniecie z bazy\n getUser().getEducationCollection().remove(myEducationCollection.getRowData()); \n // usuniecie z obiektu usera ktory mamy zapamietany w sesji\n }", "public void invalidateKeyStore() {\n keyStore = null;\n keyStoreLocation.delete();\n }", "public void deleteAllVisibleCookies();", "@Override\n\tpublic void deleteEvaluate(Long userID, Long evaluateID) {\n\n\t}", "private void importTrustedCertificate() {\n\t\t// Let the user choose a file containing trusted certificate(s) to\n\t\t// import\n\t\tFile certFile = selectImportExportFile(\n\t\t\t\t\"Certificate file to import from\", // title\n\t\t\t\tnew String[] { \".pem\", \".crt\", \".cer\", \".der\", \"p7\", \".p7c\" }, // file extensions filters\n\t\t\t\t\"Certificate Files (*.pem, *.crt, , *.cer, *.der, *.p7, *.p7c)\", // filter descriptions\n\t\t\t\t\"Import\", // text for the file chooser's approve button\n\t\t\t\t\"trustedCertDir\"); // preference string for saving the last chosen directory\n\t\tif (certFile == null)\n\t\t\treturn;\n\n\t\t// Load the certificate(s) from the file\n\t\tArrayList<X509Certificate> trustCertsList = new ArrayList<>();\n\t\tCertificateFactory cf;\n\t\ttry {\n\t\t\tcf = CertificateFactory.getInstance(\"X.509\");\n\t\t} catch (Exception e) {\n\t\t\t// Nothing we can do! Things are badly misconfigured\n\t\t\tcf = null;\n\t\t}\n\n\t\tif (cf != null) {\n\t\t\ttry (FileInputStream fis = new FileInputStream(certFile)) {\n\t\t\t\tfor (Certificate cert : cf.generateCertificates(fis))\n\t\t\t\t\ttrustCertsList.add((X509Certificate) cert);\n\t\t\t} catch (Exception cex) {\n\t\t\t\t// Do nothing\n\t\t\t}\n\n\t\t\tif (trustCertsList.size() == 0) {\n\t\t\t\t// Could not load certificates as any of the above types\n\t\t\t\ttry (FileInputStream fis = new FileInputStream(certFile);\n\t\t\t\t\t\tPEMReader pr = new PEMReader(\n\t\t\t\t\t\t\t\tnew InputStreamReader(fis), null, cf\n\t\t\t\t\t\t\t\t\t\t.getProvider().getName())) {\n\t\t\t\t\t/*\n\t\t\t\t\t * Try as openssl PEM format - which sligtly differs from\n\t\t\t\t\t * the one supported by JCE\n\t\t\t\t\t */\n\t\t\t\t\tObject cert;\n\t\t\t\t\twhile ((cert = pr.readObject()) != null)\n\t\t\t\t\t\tif (cert instanceof X509Certificate)\n\t\t\t\t\t\t\ttrustCertsList.add((X509Certificate) cert);\n\t\t\t\t} catch (Exception cex) {\n\t\t\t\t\t// do nothing\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif (trustCertsList.size() == 0) {\n\t\t\t/* Failed to load certifcate(s) using any of the known encodings */\n\t\t\tshowMessageDialog(this,\n\t\t\t\t\t\"Failed to load certificate(s) using any of the known encodings -\\n\"\n\t\t\t\t\t\t\t+ \"file format not recognised.\", ERROR_TITLE,\n\t\t\t\t\tERROR_MESSAGE);\n\t\t\treturn;\n\t\t}\n\n\t\t// Show the list of certificates contained in the file for the user to\n\t\t// select the ones to import\n\t\tNewTrustCertsDialog importTrustCertsDialog = new NewTrustCertsDialog(this,\n\t\t\t\t\"Credential Manager\", true, trustCertsList, dnParser);\n\n\t\timportTrustCertsDialog.setLocationRelativeTo(this);\n\t\timportTrustCertsDialog.setVisible(true);\n\t\tList<X509Certificate> selectedTrustCerts = importTrustCertsDialog\n\t\t\t\t.getTrustedCertificates(); // user-selected trusted certs to import\n\n\t\t// If user cancelled or did not select any cert to import\n\t\tif (selectedTrustCerts == null || selectedTrustCerts.isEmpty())\n\t\t\treturn;\n\n\t\ttry {\n\t\t\tfor (X509Certificate cert : selectedTrustCerts)\n\t\t\t\t// Import the selected trusted certificates\n\t\t\t\tcredManager.addTrustedCertificate(cert);\n\n\t\t\t// Display success message\n\t\t\tshowMessageDialog(this, \"Trusted certificate(s) import successful\",\n\t\t\t\t\tALERT_TITLE, INFORMATION_MESSAGE);\n\t\t} catch (CMException cme) {\n\t\t\tString exMessage = \"Failed to import trusted certificate(s) to the Truststore\";\n\t\t\tlogger.error(exMessage, cme);\n\t\t\tshowMessageDialog(this, exMessage, ERROR_TITLE, ERROR_MESSAGE);\n\t\t}\n\t}", "@Override\n public void deleteAllPrivies() {\n }", "private void deleteSelectedWaypoints() {\r\n\t ArrayList<String> waypointsToRemove = new ArrayList<String>();\r\n\t int size = _selectedList.size();\r\n\t for (int i = _selectedList.size() - 1; i >= 0; --i) {\r\n boolean selected = _selectedList.get(i);\r\n if (selected) {\r\n waypointsToRemove.add(UltraTeleportWaypoint.getWaypoints().get(i).getWaypointName());\r\n }\r\n }\r\n\t UltraTeleportWaypoint.removeWaypoints(waypointsToRemove);\r\n\t UltraTeleportWaypoint.notufyHasChanges();\r\n\t}", "private static void checkTrustStore(KeyStore store, Path path) throws GeneralSecurityException {\n Enumeration<String> aliases = store.aliases();\n while (aliases.hasMoreElements()) {\n String alias = aliases.nextElement();\n if (store.isCertificateEntry(alias)) {\n return;\n }\n }\n throw new SslConfigException(\"the truststore [\" + path + \"] does not contain any trusted certificate entries\");\n }", "@Override\n\tpublic int delete(Uri uri, String selection, String[] selectionArgs) {\n\t\tint cnt = 1;\n\t\tmChallengesDB.del();\n\t\treturn cnt;\n\t}", "@Override\n\tpublic void deleteTeachers(String[] deletes) {\n\t\ttry{\n\t\t\t\n\t\t\tfor(int i=0;i<deletes.length;i++){\n\t\t\t\tstmt=conn.prepareStatement(\"DELETE FROM Professor WHERE ssn=?\");\n\t\t\t\tstmt.setString(1,deletes[i]);\n\t\t\t\t//stmt.setString(2, administrator.getPassword());\n\t\t\t\tstmt.executeUpdate();\n\t\t\t}\n\t\t}catch(SQLException e){\n\t\t\tex=e;\n\t\t}finally{\n\t\t\tif(conn!=null){\n\t\t\t\ttry{\n\t\t\t\t\tconn.close();\n\t\t\t\t}catch(SQLException e){\n\t\t\t\t\tif(ex==null){\n\t\t\t\t\t\tex=e;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\tif(ex!=null){\n\t\t\tthrow new RuntimeException(ex);\n\t\t}\n\t\t}\n\t}", "private void deleteRecord(){\n if (mCurrentSymptomUri != null) {\n // pull out the string value we are trying to delete\n mEditSymptomText = findViewById(R.id.edit_symptoms);\n String deleteTry = mEditSymptomText.getText().toString();\n\n // set up the ContentProvider query\n String[] projection = {_IDST, SymTraxContract.SymTraxTableSchema.C_SYMPTOM};\n String selectionClause = SymTraxContract.SymTraxTableSchema.C_SYMPTOM + \" = ? \";\n String[] selectionArgs = {deleteTry};\n\n Cursor c = getContentResolver().query(\n SYM_TRAX_URI,\n projection,\n selectionClause,\n selectionArgs,\n null );\n\n // if there are no instances of the deleteTry string in the Machines DB\n // Go ahead and try to delete. If deleteTry value is in CMachineType column do not delete (no cascade delete)\n if (!c.moveToFirst()){\n int rowsDeleted = getContentResolver().delete(mCurrentSymptomUri, null, null);\n if (rowsDeleted == 0) {\n Toast.makeText(this, getString(R.string.delete_record_failure),\n Toast.LENGTH_SHORT).show();\n } else {\n Toast.makeText(this, getString(R.string.delete_record_success),\n Toast.LENGTH_SHORT).show();\n }\n c.close();\n finish(); // after deleting field value\n } else {\n c.close();\n showNoCascadeDeleteDialog();\n }\n }\n }", "void reset() {\n\n\tCollection certs = null;\n\n\tif ( getRadioPos() == mh.getMessage(\"SignedApplet_value\"))\n\t certs = model.getCertificateAliases();\n\telse if ( getRadioPos() == mh.getMessage(\"SecureSite_value\"))\n\t certs = model.getHttpsCertificateAliases();\n\telse if ( getRadioPos() == mh.getMessage(\"SignerCA_value\"))\n\t certs = model.getRootCACertificateAliases();\n\telse if ( getRadioPos() == mh.getMessage(\"SecureSiteCA_value\"))\n\t certs = model.getHttpsRootCACertAliases();\n\n\tif (certs == null || certs.size() == 0)\n\t{\n\t certList.setListData(new String[0]);\n\t}\n\telse\n\t{\n\t // Construct a TreeSet object to sort the certificate list\n TreeSet tsCerts = new TreeSet(certs);\n\n\t // Fill up list box with the sorted certificates\n\t certList.setListData(tsCerts.toArray());\n\t}\n\n\t// Make sure we do have content in certificate\n\tboolean enable = (certs != null && certs.size() > 0);\n\n\t// For Root CA and Web Sites, only enable View button\n\tif (getRadioPos() == mh.getMessage(\"SignerCA_value\") || \n\t\tgetRadioPos() == mh.getMessage(\"SecureSiteCA_value\"))\n\t{\n\t setEnabled(removeButton, false);\n\t setEnabled(exportButton, false);\n\t setEnabled(importButton, false);\n\t setEnabled(viewCertButton, enable);\n\t}\n\telse\n\t{\n\t setEnabled(removeButton, enable);\n\t setEnabled(exportButton, enable);\n\t setEnabled(importButton, true);\n\t setEnabled(viewCertButton, enable);\n\t}\n\n\tif (enable)\n\t certList.setSelectedIndex(0);\n }", "public void deleteCt() {\n\t\tlog.info(\"-----deleteCt()-----\");\n\t\t//int index = selected.getCtXuatKho().getCtxuatkhoThutu().intValue() - 1;\n\t\tlistCtKhoLeTraEx.remove(selected);\n\t\tthis.count = listCtKhoLeTraEx.size();\n\t\ttinhTien();\n\t}", "void deleteAllPaymentTerms() throws CommonManagementException;", "public void deleteAll();", "public void deleteAll();", "public void deleteAll();", "void unsetDelegateSuggestedSigner();", "@Override\n\tpublic void delete(ServiceFee entites) {\n\t\tservicefeerepo.delete(entites);\n\t}", "private void clearCertificate() {\n certificate_ = emptyProtobufList();\n }", "@Transactional\n\t@Override\n\tpublic void deleteAll() {\n\t\tanchorKeywordsDAO.deleteAll();\n\t}", "public void deleteSelection() {\n deleteFurniture(Home.getFurnitureSubList(this.home.getSelectedItems())); \n }", "private void deleteRoutine() {\n String message = \"Are you sure you want to delete this routine\\nfrom your routine collection?\";\n int n = JOptionPane.showConfirmDialog(this, message, \"Warning\", JOptionPane.YES_NO_OPTION);\n if (n == JOptionPane.YES_OPTION) {\n Routine r = list.getSelectedValue();\n\n collection.delete(r);\n listModel.removeElement(r);\n }\n }", "void deleteChallenge();", "private void deleteUser() throws SQLException {\n System.out.println(\"Are you sure you want to delete your user? Y/N\");\n if (input.next().equalsIgnoreCase(\"n\")) return;\n\n List<Integer> websiteIds = new ArrayList<>();\n try (PreparedStatement stmt = connection.prepareStatement(\"SELECT * FROM passwords \" +\n \"WHERE user_id like (?)\")) {\n stmt.setInt(1, user.getId());\n ResultSet rs = stmt.executeQuery();\n while (rs.next()) {\n websiteIds.add(rs.getInt(\"website_data_id\"));\n }\n }\n\n try (PreparedStatement stmt = connection.prepareStatement(\"DELETE FROM passwords \" +\n \"WHERE user_id like (?)\")) {\n stmt.setInt(1, user.getId());\n stmt.executeUpdate();\n }\n\n for (int website : websiteIds) {\n try (PreparedStatement stmt = connection.prepareStatement(\"DELETE FROM website_data \" +\n \"WHERE website_data_id like (?)\")) {\n stmt.setInt(1, website);\n stmt.executeUpdate();\n }\n }\n\n try (PreparedStatement stmt = connection.prepareStatement(\"DELETE FROM users \" +\n \"WHERE id like (?)\")) {\n stmt.setInt(1, user.getId());\n stmt.executeUpdate();\n }\n\n System.out.println(\"User \" + user.getUsername() + \" deleted.\");\n System.exit(0);\n }", "public void markTAdsRetrievalDelete() throws JNCException {\n markLeafDelete(\"tAdsRetrieval\");\n }", "void deleteAll();", "void deleteAll();", "void deleteAll();", "int deleteByExample(CptDataStoreExample example);", "private void delete() {\n AltDatabase.getInstance().getAlts().remove(getCurrentAsEditable());\n if (selectedAccountIndex > 0)\n selectedAccountIndex--;\n updateQueried();\n updateButtons();\n }", "void deleteAll() throws Exception;", "void deleteAll() throws Exception;", "public void remove() {\n/* 91 */ throw new UnsupportedOperationException(\"Can't remove keys from KeyStore\");\n/* */ }", "private void delete() {\n\t\tComponents.questionDialog().message(\"Are you sure?\").callback(answeredYes -> {\n\n\t\t\t// if confirmed, delete the current product PropertyBox\n\t\t\tdatastore.delete(TARGET, viewForm.getValue());\n\t\t\t// Notify the user\n\t\t\tNotification.show(\"Product deleted\", Type.TRAY_NOTIFICATION);\n\n\t\t\t// navigate back\n\t\t\tViewNavigator.require().navigateBack();\n\n\t\t}).open();\n\t}", "@FXML\n\tpublic void deleteUser(ActionEvent e) {\n\t\tint i = userListView.getSelectionModel().getSelectedIndex();\n//\t\tUser deletMe = userListView.getSelectionModel().getSelectedItem();\n//\t\tuserList.remove(deletMe); this would work too just put the admin warning\n\t\tdeleteUser(i);\n\t}", "public void deleteSelectedCategories() {\n\t\tfor (IFlashcardSeriesComponent x : selectionListener.selectedComponents) {\n\t\t\tFlashCategory cat = (FlashCategory) x;\n\t\t\t/*\n\t\t\tif (cat.getParent() == null) {\n\t\t\t\troot = new FlashCategory(root.getName());\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t*/\n\t\t\tList<Flashcard> copy = new ArrayList<Flashcard>(flashcards);\n\t\t\tfor (Flashcard f : copy) {\n\t\t\t\tif (cat.containsFlashcard(f)) {\n\t\t\t\t\tflashcards.remove(f);\n\t\t\t\t}\n\t\t\t}\n\t\t\tcat.getParent().removeI(cat);\n\t\t\t\n\t\t\tif (selectRootAction != null) selectRootAction.selectRoot();\n\t\t\t\n\t\t}\n\t\tfireIntervalChanged(this,-1,-1);\n\t}", "@Override\r\n\tpublic void deleteAll() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void deleteAll() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void deleteAll() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void deleteAll() {\n\t\t\r\n\t}", "public void deleteAll();", "public void deleteAllPeople() {\n }", "@Override\n\tpublic void deleteAll() {\n\t\t\n\t}", "@Override\n\tpublic void deleteAll() {\n\t\t\n\t}", "@Override\n\tpublic void deleteAll() {\n\t\t\n\t}", "@Override\n\tpublic void deleteAll() {\n\t\t\n\t}", "@Override\n\tpublic void deleteAll() {\n\t\t\n\t}", "@Override\n\tpublic void deleteAll() {\n\t\t\n\t}", "@Override\n\tpublic void deleteAll() {\n\t\t\n\t}", "@Override\n\tpublic void deleteAll() {\n\t\t\n\t}", "public void clickedSpeakerDelete() {\n\t\tif(mainWindow.getSelectedRowSpeaker().length <= 0) ApplicationOutput.printLog(\"YOU DID NOT SELECT ANY PRESENTATION\");\n\t\telse if(mainWindow.getSelectedRowSpeaker().length > 1) ApplicationOutput.printLog(\"Please select only one presentation to edit\");\n\t\telse {\n\t\t\tint tmpSelectedRow = mainWindow.getSelectedRowSpeaker()[0];\n\t\t\tSpeakers tmpSpeaker = speakersList.remove(tmpSelectedRow);\t\t\t\n\t\t\tappDriver.hibernateProxy.deleteSpeaker(tmpSpeaker);\t\n\t\t\trefreshSpeakerTable();\t\t\t\n\t\t}\n\t}", "public void deleteAll() {\n\t\t\n\t}", "public void checkClientTrusted(java.security.cert.X509Certificate[] certs, String authType) {\n\t\t\t }", "public void deleteSelectedWord()\r\n {\n ArrayList al = crossword.getWords();\r\n al.remove(selectedWord);\r\n repopulateWords();\r\n }", "public void delContextNodes();", "@Atomic\n\tpublic void delete(){\n\t\tfor(User u: getUserSet()){\n\t\t\tu.delete();\n\t\t}\n\t\tfor(Session s: getSessionSet()){\n\t\t\ts.delete();\n\t\t}\n\t\tsetRoot(null);\n\t\tdeleteDomainObject();\n\t}", "public static synchronized void deleteViewStore() {\n System.out.println(Thread.currentThread().getName() + \"********************************************************* TestHelper.deleteViewStore\");\n String viewStoreName = System.getProperty(USER_DIR)\n + File.separator\n + QVCSConstants.QVCS_ADMIN_DATA_DIRECTORY\n + File.separator\n + QVCSConstants.QVCS_VIEW_STORE_NAME + \"dat\";\n File viewStoreFile = new File(viewStoreName);\n if (viewStoreFile.exists()) {\n viewStoreFile.delete();\n }\n }", "public void deleteAllArtisti() throws RecordCorrelatoException;", "public void checkClientTrusted(X509Certificate[] certs, String authType) {}", "public void checkClientTrusted(X509Certificate[] certs, String authType) {}", "public void checkClientTrusted(X509Certificate[] certs, String authType) {}", "public void checkClientTrusted(X509Certificate[] certs, String authType) {}", "java.util.concurrent.Future<Void> deleteCertificateAsync(\n DeleteCertificateRequest deleteCertificateRequest);", "public void resetCertificates()\n\t{\n\t\t// Reset memory. Don't use the inner save.\n\t\tfor (Castle castle : _castles.values())\n\t\t\tcastle.setLeftCertificates(300, false);\n\t\t\n\t\t// Update all castles with a single query.\n\t\ttry (Connection con = L2DatabaseFactory.getInstance().getConnection();\n\t\t\tPreparedStatement ps = con.prepareStatement(RESET_CERTIFICATES))\n\t\t{\n\t\t\tps.executeUpdate();\n\t\t}\n\t\tcatch (Exception e)\n\t\t{\n\t\t\tLOGGER.error(\"Failed to reset certificates.\", e);\n\t\t}\n\t}", "@Override\n public <T extends JPABase> T delete() {\n for (Candidate candidate : candidates) {\n candidate.delete();\n }\n this.candidates.clear();\n\n for (User user : users) {\n user.delete();\n\n }\n this.users.clear();\n\n\n\n return super.delete();\n }", "void unsetDelegateSuggestedSigner2();", "@Override\n\tpublic void delete(List<Long> ids) {\n\t}", "@Override\n\tpublic void deleteAll(Iterable<? extends Translator> entities) {\n\t\t\n\t}", "@Override\n public void checkClientTrusted(java.security.cert.X509Certificate[] certs, String authType) {\n }", "void deleteAllDiscounts();", "private void deleteAllPets() {\n// int rowsDeleted = getContentResolver().delete(ArtistsContracts.GenderEntry.CONTENT_URI, null, null);\n// Log.v(\"CatalogActivity\", rowsDeleted + \" rows deleted from pet database\");\n }", "void delete(List<MountPoint> mountPoints);", "public void deleteAll() {\n\n\t}", "@Override\r\n\tpublic void deleteAll() {\n\r\n\t}", "@Override\n\tpublic void deleteAll() {\n\n\t}", "@Override\n\tpublic void deleteAll() {\n\n\t}", "@Override\n\tpublic void deleteAll() {\n\n\t}", "public void checkServerTrusted(java.security.cert.X509Certificate[] certs, String authType) {\n\t\t\t }", "int deleteByExample(XdSpxxExample example);", "public void deleteAll(UUID accId) {\n txMgr.doInTransaction(() -> {\n Set<UUID> notebooksIds = datasourcesIdx.delete(accId);\n\n datasourceTbl.deleteAll(notebooksIds);\n });\n }", "public void deleteAll()\n\t{\n\t}", "public void deleteAll()\n\t{\n\t}", "@Override\n public void deleteInstitution() {\n if (LOG.isDebugEnabled()) {\n LOG.debug(\"deleteInstitution\");\n }\n\n deleteInstitution(selectedInstitution);\n }", "@ZAttr(id=1138)\n public void unsetPrefMailTrustedSenderList() throws com.zimbra.common.service.ServiceException {\n HashMap<String,Object> attrs = new HashMap<String,Object>();\n attrs.put(Provisioning.A_zimbraPrefMailTrustedSenderList, \"\");\n getProvisioning().modifyAttrs(this, attrs);\n }", "@After\n public void removeEverything() {\n\n ds.delete(uri1);\n ds.delete(uri2);\n ds.delete(uri3);\n\n System.out.println(\"\");\n }", "public void revoke();", "@Override\n\tpublic void deleteAllUsers() {\n\t\t\n\t}", "public void deleteDataSource(Integer[] sysIds) throws Exception {\n\t\tdataSourceMapper.deleteDataSource(sysIds);\n\t}", "@Override\n public void delete(Context context, Item item) throws SQLException, IOException, AuthorizeException {\n //TODO: HIBERNATE CHECK COLLECTION REMOVE ?\n // Check authorisation here. If we don't, it may happen that we remove the\n // collections leaving the database in an inconsistent state\n authorizeService.authorizeAction(context, item, Constants.REMOVE);\n item.getCollections().clear();\n rawDelete(context, item);\n }" ]
[ "0.70615935", "0.59673023", "0.57419026", "0.572433", "0.5720208", "0.5663227", "0.55184245", "0.54865265", "0.545959", "0.54441833", "0.544309", "0.5339799", "0.53203297", "0.5317184", "0.53089577", "0.5298261", "0.5244018", "0.5243798", "0.5211898", "0.51793265", "0.51336986", "0.508874", "0.5083935", "0.50773937", "0.50577", "0.50577", "0.50577", "0.50491", "0.50402206", "0.50394714", "0.5037381", "0.503316", "0.5028204", "0.5018067", "0.5012564", "0.50005263", "0.4999896", "0.4999896", "0.4999896", "0.49976373", "0.49828118", "0.49579147", "0.49579147", "0.49568775", "0.49497902", "0.4946025", "0.49372265", "0.49350345", "0.49350345", "0.49350345", "0.49350345", "0.49298328", "0.49295738", "0.49260157", "0.49260157", "0.49260157", "0.49260157", "0.49260157", "0.49260157", "0.49260157", "0.49260157", "0.49247664", "0.49137494", "0.4902356", "0.48959762", "0.48836958", "0.48792338", "0.48696038", "0.48440632", "0.48401308", "0.48401308", "0.48401308", "0.48401308", "0.4836149", "0.4835584", "0.48339772", "0.4828052", "0.4822918", "0.48205572", "0.48164365", "0.48151726", "0.4815019", "0.48142207", "0.48134735", "0.48113137", "0.48109084", "0.48109084", "0.48109084", "0.48104072", "0.48078862", "0.48068357", "0.4798535", "0.4798535", "0.47980702", "0.47970247", "0.4788991", "0.47838643", "0.4779898", "0.47754434", "0.47750056" ]
0.8593658
0
If double click on a table occured show the details of the table entry.
private void tableDoubleClick(MouseEvent evt) { if (evt.getClickCount() > 1) { // is it a double click? // Which row was clicked on (if any)? Point point = new Point(evt.getX(), evt.getY()); int row = ((JTable) evt.getSource()).rowAtPoint(point); if (row == -1) return; // Which table the click occured on? if (((JTable) evt.getSource()).getModel() instanceof PasswordsTableModel) // Passwords table viewPassword(); else if (((JTable) evt.getSource()).getModel() instanceof KeyPairsTableModel) // Key pairs table viewCertificate(); else // Trusted certificates table viewCertificate(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setDoubleClickOnTable(){\n tableView.setRowFactory(tableView-> {\n TableRow<String[]> row = new TableRow<>();\n row.setOnMouseClicked(event -> {\n displayHistory(event, row);\n });\n return row;\n });\n }", "public void populateTable(){\n displayTable.addMouseListener(new MouseAdapter(){\n //listen for when a row is doubleclicked \n @Override\n public void mouseClicked(MouseEvent e) {\n if (e.getClickCount() == 2) { \n openScheduleTable(); \n }\n }\n });\n }", "protected void rowDoubleClicked(JTable table, int row) {\r\n }", "protected void cellDoubleClicked(JTable table, int row, int column) {\r\n }", "public void showDetails (EventTable details) {\n\t\tdetailDisplay.show(\"details\");\n\t\tthis.details.showDetails(details);\n\t}", "@Override\r\n\tprotected void doDoubleClick(int row) {\n\t\t\r\n\t}", "private void onShowTableDetail(ViewNodeJSO viewNode) { \n TableTools.createDataProvider(viewNode).addDataDisplay(cellTable);\n }", "@Override\n\t\t\tpublic void mouseDoubleClick(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseDoubleClick(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseDoubleClick(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseDoubleClick(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseDoubleClick(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseDoubleClick(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseDoubleClick(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseDoubleClick(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseDoubleClick(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseDoubleClick(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\r\n\t\t\tpublic void mouseDoubleClick(MouseEvent e) {\n\t\t\t\t\r\n\t\t\t}", "@DISPID(-2147412103)\n @PropGet\n java.lang.Object ondblclick();", "@Override\n\t\t\tpublic void mouseDoubleClick(MouseEvent arg0) {\n\t\t\t\t\n\t\t\t}", "private void jTable1MouseClicked(java.awt.event.MouseEvent evt) {\n beneficio = jTable1.getValueAt(jTable1.getSelectedRow(), 0) + \"\";\n\n if (evt.getClickCount() == 2) {\n jdBH = new jdBeneficioH(null, true, beneficio, \"Editar\", Idioma, cn);\n jdBH.setVisible(true);\n }\n }", "public static void viewtable() {\r\n\t\tt.dibuixa(table);\r\n\t}", "@Override\n \t\tprotected void onMouseDoubleClick(MouseEvent e) {\n \t\t}", "@Override\n public void mouseDoubleClick(MouseEvent me) {\n }", "@Override\n public void mouseClicked(MouseEvent e) {\n if (e.getClickCount() == 2) { \n openScheduleTable(); \n }\n }", "public void mouseClicked(MouseEvent e) {\n\t\t\t\tint row=tbl.getSelectedRow();\n\t\t\t\tif(row==-1)\n\t\t\t\t\treturn;\n\t\t\t\t\n\t\t\t\tmaHD=tbl.getValueAt(row,0).toString();\n\t\t\t\tHienThiChiTiet();\n\t\t\t\t\n\t\t\t}", "@Override\r\n\t\t\tpublic void mouseDoubleClick(MouseEvent arg0) {\n\r\n\t\t\t}", "public void onTableClicked(){\n\t\tint row = table.getSelectedRow();\n//\t\tthis.messageBox(row+\"\");\n\t\tTParm parm = table.getParmValue();\n\t\tadmDate = parm.getValue(\"ADM_DATE\", row);\n\t\tdeptCode = parm.getValue(\"DEPT_CODE\", row);\n\t\tdeCode = parm.getValue(\"DR_CODE\", row);\n\t\tclinictypeCode = parm.getValue(\"CLINICTYPE_CODE\", row);\n\t\ttime = parm.getValue(\"START_TIME\", row);\n\t\tcrmId = parm.getValue(\"CRM_ID\", row);\n//\t\tSystem.out.println(\"time==\"+time);\n\t\t\n\t}", "@Override\n\tpublic void mouseDoubleClick(MouseEvent arg0) {\n\n\t}", "public void mouseDoubleClick(MouseEvent e) {\n\t\t\t\tMOCmsgHist();\n\t\t\t}", "private void jTable1MouseClicked(java.awt.event.MouseEvent evt) {\n int indexrow=jTable1.getSelectedRow();\n DefaultTableModel model = (DefaultTableModel)jTable1.getModel();\n id=model.getValueAt(indexrow,0).toString();\n txt_id.setText(model.getValueAt(indexrow,0).toString());\n txt_class.setText(model.getValueAt(indexrow,1).toString());\n txt_section.setText(model.getValueAt(indexrow, 2).toString());\n }", "@Override\n public void mouseClicked(MouseEvent e) {\n if (e.getClickCount() == 2) {\n getDoubleClick();\n }\n }", "public void mouseDoubleClick(MouseEvent arg0) {\n \n \t\t\t\t\t}", "public void mouseClicked(MouseEvent arg0){\n int r = table.getSelectedRow();\r\n if(r>=0){ \r\n// deletebtnButton.setEnabled(true);\r\n deletebtn.setEnabled(true); \r\n\r\n //Fetching records from Table on Fields\r\n idField.setText(\"\"+table.getModel().getValueAt(r,0));\r\n \t}\r\n }", "public void goStationDetail(MouseEvent e) throws IOException {\n BriefStation briefStation = list.getSelectionModel().getSelectedItem();\n int stationId = briefStation.getStationId();\n App.getInstance().display_StationDetailScreen(stationId);\n }", "private void table1MouseClicked(MouseEvent e) {\n\t\tint selC = table1.getSelectedColumn();\n\t\tint selR = table1.getSelectedRow();\n\t\tSystem.out.println(\" selC \" + selC + \" selR \" + selR);\n\t\t// System.out.println(modelKnow.getValueAt(selR, selC));\n\t}", "void onDoubleClick( View view);", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tMyButtonEditor.this.fireEditingCanceled(); \n\t\t\t\t//查看详情\n\t\t\t\t\n\t\t\t\tif(mdtjf!=null){\n\t\t\t\t\tmdtjf.dispose();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\tMyTableModel model = (MyTableModel) jtb.getModel();\n\t\t\t\t\t\n\t\t\t\t\tVector<List<String>> data = model.getTableData();\n\t\t\t\t\t\n\t\t\t\t\tVector<List<String>> newData = new Vector<List<String>>();\n\t\t\t\t\t\n\t\t\t\t\tList<String> list = data.get(jtb.getSelectedRow());\n\t\t\t\t\t\n\t\t\t\t\tString name = list.get(0).split(\"×\")[0];\n\t\t\t\t\t\n\t\t\t\t\tList<String> newList = new ArrayList<String>();\n\t\t\t\t\t\n\t\t\t\t\t//添加菜名\n\t\t\t\t\tnewList.add(name);\n\t\t\t\t\t//添加份数为1份,即查看每份所需材料,Order中已对数据进行处理,故无需管后面几项\n\t\t\t\t\t//Order中处理只根据菜名和份数,即可算出所需的所有东西\n\t\t\t\t\t//这里直接添加菜名+份数1份,利用order可查看1份菜品所需的材料\n\t\t\t\t\tnewList.add(\"1\");\n\t\t\t\t\t\n\t\t\t\t\tnewData.add(newList);\n\t\t\t\t\t\n\t\t\t\t\tMyTableModel newModel = new MyTableModel(jf);\n\t\t\t\t\tnewModel.setTableData(newData);\n\t\t\t\t\t\n\t\t\t\t\tOrder order = new Order(jf, newModel, ALL_DISHES);\n\t\t\t\t\t\n\t\t\t\t\tmdtjf = new MyDetailTableJF(order);\n\t\t\t\t\tmdtjf.setVisible(true);\n\t\t\t\t\t\n\t\t\t}", "private void recordTableMouseClicked(MouseEvent e) {\n\n //fetching the index from jtable\n DefaultTableModel df=(DefaultTableModel) recordTable.getModel();\n int index=recordTable.getSelectedRow();\n txtCustNo.setText(df.getValueAt(index,0).toString());\n txtCustName.setText(df.getValueAt(index,1).toString());\n txtCustDeposit.setText(df.getValueAt(index,2).toString());\n txtYears.setText(df.getValueAt(index,3).toString());\n cboSavings.setSelectedItem(df.getValueAt(index,4).toString());\n }", "public void tableClicked(KDTMouseEvent event) {\n\t\t\t\tint iIndex = kdtRWOItemSpEntry.getColumnIndex(\"i\");\r\n\t\t\t\tint colIndex = event.getColIndex();\r\n\t\t\t\tint rowIndex = event.getRowIndex();\r\n\t\t\t\tIEnum newIType = null;\r\n\t\t\t\tIRow row = kdtRWOItemSpEntry.getRow(rowIndex);\r\n\t\t\t\tif (iIndex == colIndex) { // I状态\r\n\t\t\t\t\tIEnum iType = (IEnum) row.getCell(colIndex).getValue();\r\n\t\t\t\t\tif (PublicUtils.equals(IEnum.I, iType)) {\r\n\t\t\t\t\t\tnewIType = IEnum.H;\r\n\t\t\t\t\t} else if (PublicUtils.equals(IEnum.H, iType)) {\r\n\t\t\t\t\t\tnewIType = IEnum.I;\r\n\t\t\t\t\t} else\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\tWInfo w = (WInfo) row.getCell(\"w\").getValue();\r\n\t\t\t\t\tif (w == null)\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t//String typeCode = w.getTypeCode();\r\n\t\t\t\t\t\r\n\t\t\t\t\tfor (int i = 0; i < kdtRWOItemSpEntry.getRowCount(); i++) {\r\n\t\t\t\t\t\tWInfo newW = (WInfo) kdtRWOItemSpEntry.getRow(i).getCell(\"w\").getValue();\r\n\t\t\t\t\t\tif (newW == null)\r\n\t\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t\tif (PublicUtils.equals(IEnum.X, kdtRWOItemSpEntry.getRow(i).getCell(\"i\").getValue()))\r\n\t\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t//\tString newTypeCode = newW.getTypeCode();\r\n\t\t\t\t\t\tif (PublicUtils.equals(w.getNumber(), newW.getNumber())) {\r\n\t\t\t\t\t\t\tkdtRWOItemSpEntry.getRow(i).getCell(\"i\").setValue(newIType);\r\n\t\t\t\t\t\t\tresetItemSpEditorLocked(kdtRWOItemSpEntry.getRow(i));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\t\tappendItemSpFoot();\r\n\t\t\t\t//\tstoreFields();\r\n\t\t\t\t}\r\n\r\n\t\t\t}", "public void mouseClicked(MouseEvent e) {\n\t\t\tif(e.getClickCount()==2) {\n\t\t\t\tif(table.getSelectedColumn()!=-1){\n\t\t\t\t\t\n\t\t\t\tString\ts=(String) model.getValueAt(table.getSelectedRow(), 0);\n\t\t\t\tString c=(String) model.getValueAt(table.getSelectedRow(), 1);\n\t\t\t\tif(c.equals(\"到达单\")) \t{\n\t\t\t\t\tArrivalListBL al=new ArrivalListBL();\n\t\t\t\t\ttry {\n\t\t\t\t\t\tnew InvoiceUI_ArrivalListEdit(al.inquiry(s),false);\n\t\t\t\t\t} catch (IOException e1) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t}\t\t\t\n\t\t\t\telse\tif(c.equals(\"营业厅收入单\")) {\n\t\t\t\t\tIncomeListBL il=new IncomeListBL();\n\t\t\t\t\ttry {\n\t\t\t\t\t\tnew InvoiceUI_IncomeListEdit(il.inquiry(s),false);\n\t\t\t\t\t} catch (IOException e1) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\telse\tif(c.equals(\"营业厅装车单\")) {\n\t\t\t\t\tLoadingListBL ll=new LoadingListBL();\n\t\t\t\t\ttry {\n\t\t\t\t\t\tnew InvoiceUI_LoadingListEdit(ll.inquiry(s),false);\n\t\t\t\t\t} catch (IOException e1) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\telse\tif(c.equals(\"中转中心装车单\")) {\n\t\t\t\t\tLoadingListZZBL zc=new LoadingListZZBL();\n\t\t\t\t\ttry {\n\t\t\t\t\t\t\n\t\t\t\t\t\tnew InvoiceUI_LoadingListZZEdit(zc.inquiry(s),false);\n\t\t\t\t\t} catch (IOException e1) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\telse\tif(c.equals(\"中转中心接收单\")) {\n\t\t\t\t\tRecivalListBL rl=new RecivalListBL();\n\t\t\t\t\ttry {\n\t\t\t\t\t\tnew InvoiceUI_RecivalListEdit(rl.inquiry(s),false);\n\t\t\t\t\t} catch (IOException e1) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\telse\tif(c.equals(\"快递员派件单\")) {\n\t\t\t\t\tSendingListBL sl=new SendingListBL();\n\t\t\t\t\ttry {\n\t\t\t\t\t\tnew InvoiceUI_SendingListEdit(sl.inquiry(s),false);\n\t\t\t\t\t} catch (IOException e1) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tTransferListBL tl=new TransferListBL();\n\t\t\t\t\ttry {\n\t\t\t\t\t\tnew InvoiceUI_TransferListEdit(tl.inquiry(s),false);\n\t\t\t\t\t} catch (IOException e1) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t}\t\t\t\n\t\t\t\t\t}\n\t\t\t}\t\n\t\t}", "@Override\r\n\tprotected void doSingleClick(int row) {\n\t\t\r\n\t}", "public boolean onDoubleTap (MotionEvent e) {\n\n \t\tView v = History.getView();\n \t\t\n \t\tint nOrderBoardTextId = v.getId();\n \tOrder _Order = (Order) ResourceManager.get(nOrderBoardTextId);\n \tint nOrderDbId = _Order.ORDER_ID;\n \tint nRelId = _Order.REL_ID;\n\n \t//if(_Order.OPTION_COMMON_ID==0 && _Order.OPTION_SPECIFIC_ID==0) { // order completed\n \t\tOrderManager.completeOrderRel(nOrderDbId, nRelId);\n \t\tloadOrderBoard();\n \t//}\n\n \t\treturn false;\n \t}", "void onDoubleTapEvent();", "private void Table_MajorRoadMouseClicked(java.awt.event.MouseEvent evt) {\n int number = Table_MajorRoad.getSelectedRow();\n \n localauid.setText(Table_MajorRoad.getValueAt(number, 0).toString());\n countpntid.setText(Table_MajorRoad.getValueAt(number, 1).toString());\n roadname.setText(Table_MajorRoad.getValueAt(number, 2).toString());\n pedalcy.setText(Table_MajorRoad.getValueAt(number, 3).toString());\n cartaxi.setText(Table_MajorRoad.getValueAt(number, 4).toString());\n lgvss.setText(Table_MajorRoad.getValueAt(number, 5).toString());\n years.setText(Table_MajorRoad.getValueAt(number, 6).toString());\n hour.setText(Table_MajorRoad.getValueAt(number, 7).toString());\n eastings.setText(Table_MajorRoad.getValueAt(number, 8).toString());\n northings.setText(Table_MajorRoad.getValueAt(number, 9).toString());\n linklengthm.setText(Table_MajorRoad.getValueAt(number, 10).toString());\n \n \n \n \n }", "@Override\n public void onRowDblClick(GridPanel grid, int rowIndex, EventObject e) {\n Record[] records = cbSelectionModel.getSelections();\n\n\n selecionado = records[0].getAsString(\"idmarca\");\n String enlTemp = \"funcion=reportemarcaHTML&idmarca=\" + selecionado;\n verReporte(enlTemp);\n// \n }", "@Override\n public void mouseClicked(MouseEvent e) {\n int r = apptemptable.getSelectedRow();\n ceid = (String)apptemptable.getValueAt(r, 1);\n name = (String)apptemptable.getValueAt(r, 3);\n if (e.getClickCount() == 2 && s == 0)\n {\n PbtTransferDismiss ob = new PbtTransferDismiss(this, true);\n ob.setVisible(true);\n }\n \n if (e.getClickCount() == 1 && s == 1)\n {\n transfer2();\n }\n //throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "@Override\r\n\tpublic void onDoubleTap() {\n\t\t\r\n\t}", "@Override\n \tpublic void mouseDoubleClicked(MouseEvent me) {\n \t}", "private void cotisationTableMouseClicked(final MouseEvent e) {\n\t}", "public void mouseClicked(MouseEvent e) {\n\t\t\t\tint row = table.getSelectionModel().getLeadSelectionIndex();\r\n\t\t\t\tif (e.getClickCount() == 1) {\r\n\t\t\t\t\tif(productBySearch.size() > 0){\r\n\t\t \t\tfor(int i = 0; i < productBySearch.size(); i++){\r\n\t\t \t\t\tif(String.valueOf(model.getValueAt(row, id_column)).equals(String.valueOf(productBySearch.get(i).getID()))){\r\n\t\t \t\t\t\ttextField_name_input.setText(productBySearch.get(i).getName());\r\n\t\t \t\t\t\ttextField_description_input.setText(productBySearch.get(i).getDescription());\r\n\t\t \t\t\t\ttextField_quantity_input.setText(String.valueOf(productBySearch.get(i).getQuantity()));\r\n\t\t \t\t\t\tbreak;\r\n\t\t \t\t\t}\r\n\t\t \t\t}\r\n\t\t \t}\r\n\t\t\t\t}\r\n\t\t\t}", "private void tableauMouseClicked(java.awt.event.MouseEvent evt) {\n\n }", "@DISPID(-2147412103)\n @PropPut\n void ondblclick(\n java.lang.Object rhs);", "@Override\n public void mouseClicked(MouseEvent e) {\n int fila_point = jTable_clientes.rowAtPoint(e.getPoint());\n //punto exacto de la fila donde este precionando\n\n //evento para las columnas\n int columna_point = 0;//solo porqwue queremos obtener el id de cada cliente paara la consulta en la BD\n\n //indicaciones al programa de cuando ya se tengas los dos valores osea que si el usuario dio click en las columns que tiene datos entonces\n if (fila_point > -1) {\n IDcliente_update = (int) model.getValueAt(fila_point, columna_point);\n\n //conexion entre faces cuando se toque algun dato en la tabla\n InformacionCliente informacion_cliente = new InformacionCliente();\n informacion_cliente.setVisible(true);\n \n \n }\n }", "private void jtMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jtMouseClicked\n selectDetailWithMouse();\n }", "public void mouseDoubleClick(MouseEvent e) {\n // Dispose the old editor control (if one is setup).\n Control oldEditorControl = cellEditor.getEditor();\n if (null != oldEditorControl)\n oldEditorControl.dispose();\n\n // Mouse location.\n Point mouseLocation = new Point(e.x, e.y);\n\n // Grab the selected row.\n TableItem item = (TableItem) table.getItem(mouseLocation);\n if (null == item)\n return;\n\n // Determine which column was selected.\n int selectedColumn = -1;\n for (int i = 0, n = table.getColumnCount(); i < n; i++) {\n if (item.getBounds(i).contains(mouseLocation)) {\n selectedColumn = i;\n break;\n }\n }\n\n // Setup a new editor control.\n if (-1 != selectedColumn) {\n Text editorControl = new Text(table, SWT.NONE);\n final int editorControlColumn = selectedColumn;\n editorControl.setText(item.getText(selectedColumn));\n editorControl.addModifyListener(new ModifyListener() {\n public void modifyText(ModifyEvent e) {\n Text text = (Text) cellEditor.getEditor();\n cellEditor.getItem().setText(editorControlColumn, text.getText());\n }\n });\n editorControl.selectAll();\n editorControl.setFocus();\n cellEditor.setEditor(editorControl, item, selectedColumn);\n }\n }", "@Override\r\n public void mouseClicked(MouseEvent cMouseEvent) \r\n {\n \r\n if ( m_jKvtTartList != null && cMouseEvent.getClickCount() == 2 ) \r\n {\r\n//nIdx = m_jKvtTartList.locationToIndex( cMouseEvent.getPoint()) ;\r\n//System.out.println(\"Double clicked on Item \" + nIdx);\r\n\r\n m_jFileValasztDlg.KivKvtbaValt() ;\r\n }\r\n }", "public void mouseDoubleClick(org.eclipse.swt.events.MouseEvent arg0) {\n\n }", "public void viewOrderDetails(){\n\t\tlibManhattanCommonFunctions.clickAnyElement(getPageElement(\"StatisticsTab\"), \"StatisticsTab\");\n\t\tlibManhattanCommonFunctions.clickAnyElement(getPageElement(\"OrdersTab\"), \"OrdersTab\");\n\t\tlibManhattanCommonFunctions.clickAnyElement(getPageElement(\"BtnOrderDetails\"), \"Order Details Button\");\t\n\t}", "public void displayHistory(MouseEvent event, TableRow<String[]> row) {\n //Checks if it's a double click\n if (event.getButton() == MouseButton.PRIMARY && event.getClickCount() >= 2 && (!row.isEmpty())) {\n\n //Paint and show the dialog\n String[] lh = row.getItem();\n GridPane gridPane = new GridPane();\n gridPane.setVgap(10);\n gridPane.setPadding(new Insets(10, 10, 10, 10));\n gridPane.getColumnConstraints().add(new ColumnConstraints(152));\n gridPane.getColumnConstraints().add(new ColumnConstraints(313));\n for (int i = 0; i < columnNames.size(); i++) {\n gridPane.getRowConstraints().add(new RowConstraints(30));\n TextField colContent = new TextField(lh[i]);\n Text colname = new Text(columnNames.get(i));\n colContent.setEditable(false);\n GridPane.setMargin(colContent, new Insets(0, 20, 0, 20));\n GridPane.setHalignment(colname, HPos.CENTER);\n gridPane.add(colname, 0, i);\n gridPane.add(colContent, 1, i);\n }\n gridPane.getRowConstraints().add(new RowConstraints(30));\n Button accept = new Button(\"ACCEPT\");\n accept.setPrefSize(70, 30);\n GridPane.setHalignment(accept, HPos.RIGHT);\n GridPane.setMargin(accept, new Insets(0,0,0,20));\n gridPane.add(accept, 1, columnNames.size());\n Scene scene = new Scene(gridPane);\n Stage stage = new Stage();\n stage.setScene(scene);\n accept.setOnAction(actionEvent -> stage.close());\n stage.setTitle(\"Show local history\");\n stage.setResizable(false);\n stage.show();\n }\n }", "public void clickOnTableHeading() {\r\n\t\tsafeClick(addMarkerOkButton.replace(\".ant-modal-footer button.ant-btn.ant-btn-primary\",\r\n\t\t\t\t\".ant-table-column-has-actions.ant-table-column-has-sorters.ant-table-column-sort\"), SHORTWAIT);\r\n\t}", "private void tablaConsultasMouseClicked(java.awt.event.MouseEvent evt) {\n datosconsulta = new DefaultTableModel();\n datosconsulta.addColumn(\"Cod Mascota\");\n datosconsulta.addColumn(\"Mascota\");\n datosconsulta.addColumn(\"Cod Enfermedad\");\n datosconsulta.addColumn(\"Enfermedad\");\n datosconsulta.addColumn(\"Diagnostico\");\n datosconsulta.addColumn(\"Notas\");\n datosconsulta.addColumn(\"Cod Vacuna\");\n datosconsulta.addColumn(\"Vacuna\");\n datosconsulta.addColumn(\"Aplicación\");\n datosconsulta.addColumn(\"Proxima\");\n tablaDatosDeconsulta.setModel(datosconsulta);\n cargarDatos();\n }", "private void teaTableMousePressedAction(MouseEvent evt) {\n //throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n int row = teaTable.getSelectedRow();\n this.teaIDText.setText((String)teaTable.getValueAt(row, 0));\n this.teaNameText.setText((String)teaTable.getValueAt(row, 1));\n this.teaCollegeText.setText((String)teaTable.getValueAt(row, 3));\n this.teaDepartmentText.setText((String)teaTable.getValueAt(row, 4));\n this.teaTypeText.setText((String)teaTable.getValueAt(row, 5));\n this.teaPhoneText.setText((String)teaTable.getValueAt(row, 6));\n this.teaRemarkText.setText((String)teaTable.getValueAt(row, 7));\n }", "public void userClickedOnTable()\r\n {\r\n this.detailedStudentViewButton.setDisable(false);\r\n }", "@Override\r\n\tpublic void mouseClicked(MouseEvent e) {\n\t\tLinkLikeButton source = (LinkLikeButton) e.getSource();\r\n\t\tif(e.getClickCount()==1){\r\n\t\tif (source.getName().equals(\"TableLinkLikeButton\")) {\r\n\t\t\tif (source.getText().equals(\"Tags\") || source.getText().equals(\"Ingress\") || source.getText().equals(\"Egress\") || source.getText().equals(\"Rules\") || source.getText().equals(\"All Actions\") || source.getText().equals(\"All Conditions\")\r\n\t\t\t\t\t|| source.getText().equals(\"Redirect\") || source.getText().startsWith(\"ELBs\") || source.getText().contains(\"targetgroup\") || source.getText().contains(\"Method Settings\")) {\r\n\t\t\t\t// Do nothing\r\n\t\t\t} else {\r\n\t\t\t\tsource.getCustomAWSObject().showDetailesFrame(getAccount(), source.getCustomAWSObject(), jScrollableDesktopPan);\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\t\tsource.getCustomAWSObject().showDetailesFrame(getAccount(), source.getCustomAWSObject(), jScrollableDesktopPan);\r\n\t\t}\r\n\t\t}\r\n\t}", "public void selectTDList(ActionEvent actionEvent) {\n // we will have to update the viewer so that it is displaying the list that was just selected\n // it will go something like...\n // grab the list that was clicked by the button (again, using the relationship between buttons and lists)\n // and then displayTODOs(list)\n }", "private void tblStudentsMouseClicked(java.awt.event.MouseEvent evt) {// GEN-FIRST:event_tblStudentsMouseClicked\n\t\t// TODO add your handling code here:\n\t\tint i = tblBollard.getSelectedRow();\n\t\tTableModel model = tblBollard.getModel();\n\t\ttxtId.setText(model.getValueAt(i, 0).toString());\n\t\ttxtAlert.setText(model.getValueAt(i, 1).toString());\n\t\ttxtNbMax.setText(model.getValueAt(i, 2).toString());\n\t\ttextnbactuel.setText(model.getValueAt(i, 3).toString());\n\t\t\n\t}", "public void show() {\r\n\t\ttry {\r\n\t\t\tdisplayTable();\r\n\t\t} catch (SQLException e) {\r\n\t\t\tSystem.out.println(\"Show Table SQL Exception: \" + e.getMessage());\r\n\t\t}\r\n\t}", "@Override\n\t\t\t\t\tpublic void onClick(ClickEvent click) {\n\t\t\t\t\t\tcom.google.gwt.user.client.ui.HTMLTable.Cell cell = tripleTable.getCellForEvent(event);\n\t\t\t\t\t\tint cellIndex = cell.getCellIndex();\n\t\t\t\t\t\tint rowIndex = cell.getRowIndex();\n\t\t\t\t\t\tlogger.log(Level.SEVERE, \"cell:\" + cellIndex);\n\t\t\t\t\t\tif (cellIndex == 3) {\n\t\t\t\t\t\t\ttripleTable.removeRow(rowIndex);\n\t\t\t\t\t\t}\n\t\t\t\t\t\trowIndex = tripleTable.getRowCount();\n\n\t\t\t\t\t\ttripleTable.setWidget(rowIndex - 1, 5, save);\n\t\t\t\t\t}", "@Override\r\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\tif(e.getClickCount()==2) {\r\n\t\t\t\t\tint row=table.getSelectedRow();\r\n\t\t\t\t\tZipcodeBean bean=(ZipcodeDao.selectBean(ZipcodeDao.getSeq(row)));\r\n\t\t\t\t\tmemberView.getTf()[0].setText(bean.getZipcode().split(\"-\")[0]);\r\n\t\t\t\t\tmemberView.getTf()[1].setText(bean.getZipcode().split(\"-\")[1]);\r\n\t\t\t\t\tmemberView.getTf()[2].setText(bean.getSido()+bean.getGugu()+bean.getDong());\r\n\t\t\t\t\tPostSearchBox.this.dispose();\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\r\n\t\t\t}", "private void selectDetailWithMouse() {\n int selectedRowIndex=jt.convertRowIndexToModel(jt.getSelectedRow());\n String[] choices={\"Update Row\",\"Delete\",\"Cancel\"};\n int option=JOptionPane.showOptionDialog(rootPane, \"Product ID: \"+jtModel.getValueAt(selectedRowIndex, 0).toString()+\"\\n\"+\"Product Name: \"+jtModel.getValueAt(selectedRowIndex,1), \"View Data\", WIDTH, HEIGHT,null , choices, NORMAL);\n if(option==0)\n {\n tfPaintId.setText(jtModel.getValueAt(selectedRowIndex,0).toString());\n tfName.setText(jtModel.getValueAt(selectedRowIndex, 1).toString());\n tfPrice.setText(jtModel.getValueAt(selectedRowIndex, 2).toString());\n tfColor.setText(jtModel.getValueAt(selectedRowIndex, 3).toString());\n tfQuantity.setText(jtModel.getValueAt(selectedRowIndex, 8).toString());\n rwCombo.setSelectedItem(jtModel.getValueAt(selectedRowIndex, 4));\n typeCombo.setSelectedItem(jtModel.getValueAt(selectedRowIndex, 6));\n bCombo.setSelectedItem(jtModel.getValueAt(selectedRowIndex, 5));\n switch(jtModel.getValueAt(selectedRowIndex, 7).toString()) {\n case \"High\":\n high.setSelected(true);\n break;\n case \"Mild\":\n mild.setSelected(true);\n break;\n case \"Medium\":\n medium.setSelected(true);\n break;\n }\n }\n else if(option==1)\n {\n jtModel.removeRow(selectedRowIndex);\n JOptionPane.showMessageDialog(rootPane,\" Detail successfully deleted\");\n }\n else \n {\n \n } \n }", "public void updateTable() {\n\t\ttable.getSelectionModel().removeListSelectionListener(lsl);\n\t\tdtm = new DefaultTableModel();\n\t\td = new Diet();\n\t\tdtm.addColumn(\"Id\");\n\t\tdtm.addColumn(\"Meal Id\");\n\t\tdtm.addColumn(\"Meal Type\");\n\t\tdtm.addColumn(\"Food Name\");\n\t\tdtm.addColumn(\"Food Type\");\n\t\tdtm.addColumn(\"Food Category\");\n\t\tdtm.addColumn(\"Ready Time\");\n\t\tdtm.addColumn(\"Calories (g)\");\t\t\n\t\tdtm.addColumn(\"Protein (g)\");\n\t\tdtm.addColumn(\"Fat (g)\");\n\t\tdtm.addColumn(\"Carbohydrates\");\n\t\tdtm.addColumn(\"VitaminA\");\n\t\tdtm.addColumn(\"VitaminC\");\n\t\tdtm.addColumn(\"Calcium\");\n\t\tdtm.addColumn(\"Iron\");\n\t\tdtm.addColumn(\"Author\");\n\t\tArrayList<Diet> dietList = dI.getDietList();\n\t\tif(isOrder && orderby!=\"\")\n\t\t{\t\t\t\n\t\t\tSystem.out.println(\"entering ----------------\"+orderby);\n\t\t\tdietList=dI.getDietOrderedList(type,orderby);\n\t\t\tfor (Diet d : dietList) {\t\n\t\t\t\tSystem.out.println(d.getId()+\" ------ \"+d.getCalories());\n\t\t\t}\n\t\t}\n\t\tif(isFiltered)\n\t\t{\n\t\t\tif(mealtypeSel!=\"\")\n\t\t\tdietList=dI.getFilteredMealTypeList(mealtypeSel);\n\t\t\tif(foodtypeSel!=\"\")\n\t\t\t\tdietList=dI.getFilteredFoodTypeList(foodtypeSel);\n\t\t\tif(authorSel!=\"\")\n\t\t\t\tdietList=dI.getFilteredauthorList(authorSel);\n\t\t\tif(foodCategorySel!=\"\")\n\t\t\t\tdietList=dI.getFilterFoodCategoryList(foodCategorySel);\n\t\t\t\n\t\t}\n\t\t\n\t\tfor (Diet d : dietList) {\t\n\t\t\tdtm.addRow(d.getVector());\n\t\t}\n\t\ttable.setModel(dtm);\n\n\t\ttable.getSelectionModel().addListSelectionListener(lsl);\n\n\t}", "@Override\n\tpublic void mouseClicked(MouseEvent arg0) {\n\t\tint rowSelected = table1.getSelectedRow();\n\n\t\ttxtMa.setText((String) table1.getValueAt(rowSelected, 0));\n\t\ttxtTen.setText((String) table1.getValueAt(rowSelected, 1));\n\t\ttxtTuoi.setText((String) table1.getValueAt(rowSelected, 2));\n\t\ttxtSdt.setText((String) table1.getValueAt(rowSelected, 3));\n\t\ttxtDiaChi.setText((String) table1.getValueAt(rowSelected, 4));\n\t\ttxtEmail.setText((String) table1.getValueAt(rowSelected, 5));\n\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tif (isDetailed) {\n\t\t\t\t\tcloseDetail();\n\t\t\t\t} else {\n\t\t\t\t\tshowDetail();\n\t\t\t\t}\n\t\t\t}", "@Override\n public boolean onDoubleTap(MotionEvent e) {\n float x = e.getX();\n float y = e.getY();\n\n Log.d(\"Double Tap\", \"Tapped at: (\" + x + \",\" + y + \")\");\n showToolbar();\n\n return true;\n }", "@Override\n\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\tif (listener instanceof OVBrowserTable || !e.isPopupTrigger())\n\t\t\t\tlistener.mouseClicked(e);\n\t\t}", "public void viewTaskDetails(){\n\t\tlibManhattanCommonFunctions.clickAnyElement(getPageElement(\"StatisticsTab\"), \"StatisticsTab\");\n\t\tlibManhattanCommonFunctions.clickAnyElement(getPageElement(\"TasksTab\"), \"TasksTab\");\n\t\tlibManhattanCommonFunctions.clickAnyElement(getPageElement(\"BtnTaskDetails\"), \"Task Details Button\");\n\n\t}", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\tint column = table.getColumnModel().getColumnIndexAtX(e.getX());\n\t int row = e.getY()/table.getRowHeight();\n\n\t /*Checking the row or column is valid or not*/\n\t if (row < table.getRowCount() && row >= 0 && column < table.getColumnCount() && column >= 0) {\n\t Server ServerConnection;\n\t String courseID = (String) table.getValueAt(row, 0);\n\t\t\t\t\ttry {\n\t\t\t\t\t\tServerConnection = new Server();\n\t\t\t\t\t\tString query = \"select * from course_attend where StudentID ='\" + ClientID + \"' and courseID ='\"+courseID+\"'\";\n\t\t \t\tResultSet data = ServerConnection.ExecuteQuery(query);\n\t\t \t\tif (data.next()) {\n\t\t \t\t\tscoreTable.setValue((String)table.getValueAt(row, 1), data.getString(\"practice_point\"), data.getString(\"theory_point\"), data.getString(\"overall\"), data.getString(\"pass_status\"));\n\t\t \t\t}\n\t\t\t\t\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 \n\t }\n\t else {\n\t \tscoreTable.setVisible(false);\n\t }\n\t\t\t}", "private void displayDetails(){\r\n //Set the Comments to previously selected Row\r\n if(!removing){\r\n int selectedRow = -1;\r\n// if(lastSelectedRow != -1 && lastSelectedRow != deletingRow) {\r\n// BudgetSubAwardBean prevBudgetSubAwardBean = (BudgetSubAwardBean)data.get(lastSelectedRow);\r\n// prevBudgetSubAwardBean.setComments(subAwardBudget.txtArComments.getText().trim());\r\n// }\r\n \r\n //Clear Details Screen before setting values\r\n subAwardBudget.pnlSubAwardLastUpdated.txtLastUpdated.setText(EMPTY_STRING);\r\n subAwardBudget.pnlPDFLastUpdated.txtLastUpdated.setText(EMPTY_STRING);\r\n subAwardBudget.pnlXMLLastUpdated.txtLastUpdated.setText(EMPTY_STRING);\r\n subAwardBudget.pnlSubAwardLastUpdated.txtUser.setText(EMPTY_STRING);\r\n subAwardBudget.pnlPDFLastUpdated.txtUser.setText(EMPTY_STRING);\r\n subAwardBudget.pnlXMLLastUpdated.txtUser.setText(EMPTY_STRING);\r\n subAwardBudget.lblNamespaceValue.setText(EMPTY_STRING);\r\n \r\n subAwardBudget.txtArStatus.setText(EMPTY_STRING);\r\n subAwardBudget.lstAttachments.setListData(new String[0]);\r\n subAwardBudget.lblPdfFileName.setText(EMPTY_STRING);\r\n \r\n selectedRow = subAwardBudget.tblSubAwardBudget.getSelectedRow();\r\n \r\n if(selectedRow == -1){\r\n return ;\r\n }\r\n \r\n BudgetSubAwardBean budgetSubAwardBean = (BudgetSubAwardBean)data.get(selectedRow);\r\n \r\n if(this.subAwardBudget.chkDetails.isSelected()) {\r\n DateUtils dateUtils = new DateUtils();\r\n if(budgetSubAwardBean.getUpdateTimestamp() != null){\r\n subAwardBudget.pnlSubAwardLastUpdated.txtLastUpdated.setText(dateUtils.formatDate(budgetSubAwardBean.getUpdateTimestamp(), DATE_FORMAT));\r\n }\r\n /*\r\n * UserId to UserName Enhancement - Start\r\n * Added to avoid the repetetive database interaction for getting \r\n * the username instead of going to the database everytime mainting the values locally in HashMap\r\n */\r\n //subAwardBudget.pnlSubAwardLastUpdated.txtUser.setText(budgetSubAwardBean.getUpdateUser());\r\n subAwardBudget.pnlSubAwardLastUpdated.txtUser.setText(UserUtils.getDisplayName(budgetSubAwardBean.getUpdateUser()));\r\n \r\n if(budgetSubAwardBean.getPdfUpdateTimestamp() != null){\r\n subAwardBudget.pnlPDFLastUpdated.txtLastUpdated.setText(dateUtils.formatDate(budgetSubAwardBean.getPdfUpdateTimestamp(), DATE_FORMAT));\r\n }\r\n subAwardBudget.pnlPDFLastUpdated.txtUser.setText(UserUtils.getDisplayName(budgetSubAwardBean.getPdfUpdateUser()));\r\n \r\n if(budgetSubAwardBean.getXmlUpdateTimestamp() != null){\r\n subAwardBudget.pnlXMLLastUpdated.txtLastUpdated.setText(dateUtils.formatDate(budgetSubAwardBean.getXmlUpdateTimestamp(), DATE_FORMAT));\r\n }\r\n //subAwardBudget.pnlXMLLastUpdated.txtUser.setText(budgetSubAwardBean.getXmlUpdateUser());\r\n subAwardBudget.pnlXMLLastUpdated.txtUser.setText(UserUtils.getDisplayName(budgetSubAwardBean.getXmlUpdateUser()));\r\n //UserId to UserName Enhancement End.\r\n \r\n subAwardBudget.txtArStatus.setText(budgetSubAwardBean.getTranslationComments());\r\n subAwardBudget.lblNamespaceValue.setText(budgetSubAwardBean.getNamespace());\r\n }//End if chk Details isSelected\r\n \r\n subAwardBudget.txtArComments.setText(budgetSubAwardBean.getComments());\r\n \r\n subAwardBudget.lblPdfFileName.setText(budgetSubAwardBean.getPdfFileName());\r\n \r\n //Set Attachments - START\r\n List lstAttachments = budgetSubAwardBean.getAttachments();\r\n if(lstAttachments != null && lstAttachments.size() > 0) {\r\n String arrContentId[] = new String[lstAttachments.size()];\r\n BudgetSubAwardAttachmentBean budgetSubAwardAttachmentBean;\r\n for(int index = 0; index < arrContentId.length; index++){\r\n budgetSubAwardAttachmentBean = (BudgetSubAwardAttachmentBean)lstAttachments.get(index);\r\n arrContentId[index] = budgetSubAwardAttachmentBean.getContentId();\r\n }\r\n subAwardBudget.lstAttachments.setListData(arrContentId);\r\n }\r\n //Set Attachments - END\r\n \r\n //Enable/Disable buttons for selected sub award - START\r\n /*boolean enableTranslate = false;\r\n if(budgetSubAwardBean.getXmlUpdateTimestamp() == null || budgetSubAwardBean.getPdfAcType() != null) {\r\n //XML is Generated and in Sync\r\n enableTranslate = true;\r\n }\r\n subAwardBudget.btnTranslate.setEnabled(enableTranslate);\r\n */\r\n \r\n boolean enableViewPdf = false;\r\n if(budgetSubAwardBean.getPdfFileName() != null) {\r\n enableViewPdf = true;\r\n }\r\n subAwardBudget.btnViewPDF.setEnabled(enableViewPdf);\r\n \r\n boolean enableViewXml = false;\r\n if(budgetSubAwardBean.getXmlUpdateTimestamp() != null) {\r\n enableViewXml = true;\r\n }\r\n subAwardBudget.btnViewXML.setEnabled(enableViewXml);\r\n //Enable/Disable buttons for selected sub award - END\r\n lastSelectedRow = selectedRow;\r\n }\r\n }", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\t\tint row = table.getSelectedRow();\n\t\t\t\tint col = table.getSelectedColumn();\n\t\t\t\tString masv = (String) table.getValueAt(row, 0);\n\t\t\t\tString hoten = (String) table.getValueAt(row, 1);\n\t\t\t\tString ngaysinh = (String) table.getValueAt(row, 2);\n\t\t\t\tString gioitinh = (String) table.getValueAt(row, 3);\n\t\t\t\tString diachi = (String) table.getValueAt(row, 4);\n\t\t\t\tString malop = (String) table.getValueAt(row, 5);\n\t\t\t\ttxt_masv.setText(masv);\n\t\t\t\ttxt_hoten.setText(hoten);\n\t\t\t\ttxt_ngaysinh.setText(ngaysinh);\n\t\t\t\ttxt_gioitinh.setText(gioitinh);\n\t\t\t\ttxt_diachi.setText(diachi);\n\t\t\t\ttxt_malop.setText(malop);\n\t\t\t}", "public void mouseClicked(MouseEvent e) {\n\t\t\tif(e.getSource()==exit){\n\t\t\t\tm.jumpTomanagerMenuUI();\t\t\t\n\t\t\t}else if(e.getSource()==logtable){\n\t\t\t\tint a = logtable.getSelectedRow();System.out.println(\"被选中的行数:\"+a);\n\t\t\t}\t\t\t\n\t\t\trepaint();\n\t\t}", "@Override\n public void mouseClicked(MouseEvent e) {\n int i = jt.getSelectedRow();\n amountTf.setText(model.getValueAt(i, 2).toString());\n memoTa.setText(model.getValueAt(i, 4).toString());\n }", "public void mouseClicked(MouseEvent me) {\n\t\t\t\trow_position = jTable2.rowAtPoint(me.getPoint());\n\t\t\t\tcolumn_position = jTable2.columnAtPoint(me.getPoint());\n\t\t\t\tif (SwingUtilities.isRightMouseButton(me)) {\n\t\t\t\t\tpop.show(me.getComponent(), me.getX(), me.getY());\n\t\t\t\t}\n\n\t\t\t}", "@FXML\n public void clickTabla(MouseEvent t) {\n\n Cliente cliente = tblListaClientes.getSelectionModel().getSelectedItem();\n lblRut.setText(cliente.getRutCliente());\n lblNombre.setText(cliente.getNombre());\n lblPaterno.setText(cliente.getApPaterno());\n lblMaterno.setText(cliente.getApMaterno());\n\n }", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\tint row = table1.getSelectedRow();\n\t\t\t\tint col = table1.getSelectedColumn();\n\t\t\t\tString magv = (String) table1.getValueAt(row, 0);\n\t\t\t\tString tengv = (String) table1.getValueAt(row, 1);\n\t\t\t\tString gioitinh = (String) table1.getValueAt(row, 2);\n\t\t\t\tString phone = (String) table1.getValueAt(row, 3);\n\t\t\t\tString email = (String) table1.getValueAt(row, 4);\n\t\t\t\tString phanloaigv = (String) table1.getValueAt(row, 5);\n\t\t\t\ttxt_magv.setText(magv);\n\t\t\t\ttxt_tengv.setText(tengv);\n\t\t\t\ttxt_gioitinhgv.setText(gioitinh);\n\t\t\t\ttxt_phone.setText(phone);\n\t\t\t\ttxt_email.setText(email);\n\n\t\t\t\ttxt_phanloaigv.setText(phanloaigv);\n\n\t\t\t}", "@Override\n public boolean onDoubleTap(MotionEvent e) {\n float x = e.getX();\n float y = e.getY();\n\n GomsLog.d(\"Double Tap\", \"Tapped at: (\" + x + \",\" + y + \")\");\n isDoubleTap = true;\n return true;\n }", "@Override public void mouseClicked( final MouseEvent e )\r\n {\n if( e.isPopupTrigger() == true || e.getButton() == MouseEvent.BUTTON3 )\r\n { // mouse listener only added if row class supports JPopupMenuProvidable\r\n final JTable table = getJTable();\r\n final int row = table.rowAtPoint( e.getPoint() ); // did test, view->model xlation not needed\r\n if( row > -1 ) table.setRowSelectionInterval( row, row );\r\n\r\n final R rowObject = getSingleSelection();\r\n if( rowObject != null )\r\n {\r\n final JPopupMenu jpm = ((JPopupMenuProvidable)rowObject).provideJPopupMenu();\r\n if( jpm != null )\r\n {\r\n jpm.show( table, e.getX(), e.getY() );\r\n }\r\n }\r\n // else in table but below rows, i.e. no-man's land\r\n }\r\n }", "@Override\n public boolean onDoubleTap(MotionEvent e) {\n float x = e.getX();\n float y = e.getY();\n\n Log.d(\"Double Tap\", \"Tapped at: (\" + x + \",\" + y + \")\");\n\n return true;\n }", "protected boolean dealWithMouseDoubleClick(org.eclipse.swt.events.MouseEvent e)\n {\n setUpMouseState(MOUSE_DOUBLE_CLICKED);\n return true;\n }", "@Override\n\t\t\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2,\n\t\t\t\t\tlong arg3) {\n if (arg2 < Adapter.DataTable.Rows.size()) {\n \tfinal DataRow row = (DataRow)Adapter.getItem((int)arg2);\n \t\t\t\tpn_begin_stock_mgr_yh.this.printLabel(row);\n } else {\n \tpn_begin_stock_mgr_yh.this.refreshData(false);\n }\n\t\t\t\n\t\t\t}", "@Override\n public void mouseReleased(MouseEvent event) {\n if (event.isPopupTrigger()) {\n JTable table = (JTable)event.getSource();\n int row = table.rowAtPoint(event.getPoint());\n if (row >= 0 && !table.isRowSelected(row))\n table.changeSelection(row, 0, false, false);\n if (table == connectionTable)\n connectionTablePopup.show(event.getComponent(), event.getX(), event.getY());\n else\n blockTablePopup.show(event.getComponent(), event.getX(), event.getY());\n }\n }", "public static void showD(String name){\n\t\tfor(int i = 0; i<tables.size();i++){\r\n\t\t\tif(tables.get(i).title.equals(name)){\r\n\t\t\t\ttables.get(i).tablePrint();\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void tableListener() {\n resultsTable.getSelectionModel().selectedItemProperty().addListener((obs, oldSelection, newSelection) -> {\n if (newSelection != null) {\n delBtn.setDisable(false);\n changeBtn.setDisable(false);\n } else {\n delBtn.setDisable(true);\n changeBtn.setDisable(true);\n }\n });\n\n }", "private void knowledgeMouseClicked(MouseEvent e) {\n\t\tmodelKnow.addRow(rowData[0]);\n\t\tfor (int h = 0; h < modelKnow.getRowCount(); h++) {\n\t\t\tSystem.out.println(\" h \" + h);\n\t\t\tif (!modelKnow.getValueAt(h, 0).equals(\"\")) {\n\t\t\t\t// know.add((String)modelKnow.getValueAt(h, 0));\n\t\t\t\tSystem.out.println(modelKnow.getValueAt(h, 0));\n\t\t\t\t// modelKnow.get\n\t\t\t\t// modelKnow.getValueAt(row, column)\n\t\t\t} else {\n\t\t\t\tSystem.out.println(modelKnow.getValueAt(h, 0));\n\t\t\t}\n\t\t}\n\t}", "public void ShowTable() {\n\t\tupdateTable();\n\t\ttableFrame.setVisible(true);\n\t\t\n\t}", "public void showInfo() throws SQLException { //to show the info when the page is loaded\n \tshowInfoDump();\n \tshowInfoMatl();\n }", "public abstract void mouseDoubleClicked(MouseDoubleClickedEvent event);", "public frmFanArtist() {\n setTitle(\"Fan Your Artist!\");\n initComponents();\n FanController.updateFormData(slctArtist, jTable1);\n jTable1.getSelectionModel().addListSelectionListener(new ListSelectionListener() {\n public void valueChanged(ListSelectionEvent event) {\n // do some actions here, for example\n // print first column value from selected row\n try{\n System.out.println(jTable1.getValueAt(jTable1.getSelectedRow(), 1).toString());\n formArtist = (Artist) jTable1.getValueAt(jTable1.getSelectedRow(), 1);\n \n updateData();\n }\n catch(Exception e){\n \n }\n }\n });\n }", "public native CallbackRegistration addTableRowDblClickHandler(TableRowDblClickHandler handler)\n /*-{\n\t\tvar jso = this.@com.emitrom.ti4j.core.client.ProxyObject::getJsObj()();\n\t\tvar listener = function(e) {\n\t\t\tvar eventObject = @com.emitrom.ti4j.mobile.client.core.events.ui.tableview.TableRowDblClickEvent::new(Lcom/google/gwt/core/client/JavaScriptObject;)(e);\n\t\t\thandler.@com.emitrom.ti4j.mobile.client.core.handlers.ui.TableRowDblClickHandler::onTableRowDblClick(Lcom/emitrom/ti4j/mobile/client/core/events/ui/tableview/TableRowDblClickEvent;)(eventObject);\n\t\t};\n\t\tvar name = @com.emitrom.ti4j.mobile.client.core.events.ui.tableview.TableRowDblClickEvent::EVENT_NAME;\n\t\tvar v = jso.addEventListener(name, listener);\n\t\tvar toReturn = @com.emitrom.ti4j.mobile.client.core.handlers.ui.CallbackRegistration::new(Lcom/emitrom/ti4j/mobile/client/ui/UIObject;Ljava/lang/String;Lcom/google/gwt/core/client/JavaScriptObject;)(this,name,listener);\n\t\treturn toReturn;\n\n }-*/;", "@Override\n\tpublic void mousePressed(MouseEvent e) {\n\t\tint rowNum = jTable.getSelectedRow();\n\t\t\n\t\tSingleton s = Singleton.getInstance();\n\t\tShareDto dto = s.sharDao.search(list.get(rowNum).getSeq());\n\n\t\tadSharebbs.changPanel(2, dto); // 해당 글 보는 곳\n\t}" ]
[ "0.70958054", "0.7022974", "0.6940951", "0.67486775", "0.6454861", "0.6445591", "0.6362843", "0.63163465", "0.63163465", "0.63163465", "0.63163465", "0.63163465", "0.63163465", "0.63163465", "0.63163465", "0.63163465", "0.63163465", "0.6262978", "0.61041844", "0.6102076", "0.60530806", "0.604469", "0.60250217", "0.60072887", "0.599508", "0.59734666", "0.5965163", "0.5953914", "0.5953028", "0.59506303", "0.5944801", "0.59212464", "0.59203", "0.5919438", "0.59110504", "0.5893216", "0.5875292", "0.58717215", "0.5853285", "0.58513194", "0.5841798", "0.58297473", "0.581926", "0.5806796", "0.579147", "0.57895917", "0.57891464", "0.57815015", "0.57802045", "0.57781184", "0.57277787", "0.5727107", "0.57153857", "0.57058764", "0.56755877", "0.5671463", "0.5669251", "0.5655599", "0.5647906", "0.5645787", "0.56455564", "0.5600429", "0.55920917", "0.5587723", "0.5572956", "0.5553639", "0.55297947", "0.55292904", "0.551763", "0.5514287", "0.5513482", "0.5501824", "0.5458861", "0.54565424", "0.5455941", "0.5438199", "0.5412646", "0.54109895", "0.5409554", "0.5406466", "0.53984153", "0.5395153", "0.5390625", "0.5385044", "0.53836733", "0.53744686", "0.5351334", "0.5345661", "0.5329706", "0.5317872", "0.5317145", "0.5312054", "0.5311219", "0.5308184", "0.5306507", "0.5303387", "0.52930796", "0.5291749", "0.529068", "0.52868223" ]
0.7543054
0
Lets the user select a file to export to or import from a key pair or a certificate.
private File selectImportExportFile(String title, String[] filter, String description, String approveButtonText, String prefString) { Preferences prefs = Preferences .userNodeForPackage(CredentialManagerUI.class); String keyPairDir = prefs.get(prefString, System.getProperty("user.home")); JFileChooser fileChooser = new JFileChooser(); fileChooser.addChoosableFileFilter(new CryptoFileFilter(filter, description)); fileChooser.setDialogTitle(title); fileChooser.setMultiSelectionEnabled(false); fileChooser.setCurrentDirectory(new File(keyPairDir)); if (fileChooser.showDialog(this, approveButtonText) != APPROVE_OPTION) return null; File selectedFile = fileChooser.getSelectedFile(); prefs.put(prefString, fileChooser.getCurrentDirectory().toString()); return selectedFile; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void exportKeyPair() {\n\t\t// Which key pair entry has been selected?\n\t\tint selectedRow = keyPairsTable.getSelectedRow();\n\t\tif (selectedRow == -1) // no row currently selected\n\t\t\treturn;\n\n\t\t// Get the key pair entry's Keystore alias\n\t\tString alias = (String) keyPairsTable.getModel().getValueAt(selectedRow, 6);\n\n\t\t// Let the user choose a PKCS #12 file (keystore) to export public and\n\t\t// private key pair to\n\t\tFile exportFile = selectImportExportFile(\"Select a file to export to\", // title\n\t\t\t\tnew String[] { \".p12\", \".pfx\" }, // array of file extensions\n\t\t\t\t// for the file filter\n\t\t\t\t\"PKCS#12 Files (*.p12, *.pfx)\", // description of the filter\n\t\t\t\t\"Export\", // text for the file chooser's approve button\n\t\t\t\t\"keyPairDir\"); // preference string for saving the last chosen directory\n\n\t\tif (exportFile == null)\n\t\t\treturn;\n\n\t\t// If file already exist - ask the user if he wants to overwrite it\n\t\tif (exportFile.isFile()\n\t\t\t\t&& showConfirmDialog(this,\n\t\t\t\t\t\t\"The file with the given name already exists.\\n\"\n\t\t\t\t\t\t\t\t+ \"Do you want to overwrite it?\", ALERT_TITLE,\n\t\t\t\t\t\tYES_NO_OPTION) == NO_OPTION)\n\t\t\treturn;\n\n\t\t// Get the user to enter the password for the PKCS #12 keystore file\n\t\tGetPasswordDialog getPasswordDialog = new GetPasswordDialog(this,\n\t\t\t\t\"Credential Manager\", true,\n\t\t\t\t\"Enter the password for protecting the exported key pair\");\n\t\tgetPasswordDialog.setLocationRelativeTo(this);\n\t\tgetPasswordDialog.setVisible(true);\n\n\t\tString pkcs12Password = getPasswordDialog.getPassword();\n\n\t\tif (pkcs12Password == null) { // user cancelled or empty password\n\t\t\t// Warn the user\n\t\t\tshowMessageDialog(\n\t\t\t\t\tthis,\n\t\t\t\t\t\"You must supply a password for protecting the exported key pair.\",\n\t\t\t\t\tALERT_TITLE, INFORMATION_MESSAGE);\n\t\t\treturn;\n\t\t}\n\n\t\t// Export the key pair\n\t\ttry {\n\t\t\tcredManager.exportKeyPair(alias, exportFile, pkcs12Password);\n\t\t\tshowMessageDialog(this, \"Key pair export successful\", ALERT_TITLE,\n\t\t\t\t\tINFORMATION_MESSAGE);\n\t\t} catch (CMException cme) {\n\t\t\tshowMessageDialog(this, cme.getMessage(), ERROR_TITLE,\n\t\t\t\t\tERROR_MESSAGE);\n\t\t}\n\t}", "public static void main(String[] args)\r\n/* 51: */ {\r\n/* 52:55 */ SaveKeystoreFileChooser chooser = new SaveKeystoreFileChooser();\r\n/* 53:56 */ chooser.setSelectedFile(new File(\"test.pfx\"));\r\n/* 54:57 */ chooser.showSaveDialog(null);\r\n/* 55:58 */ System.out.println(\"sel:\" + chooser.getSelectedFile());\r\n/* 56: */ }", "private void importKeyPair() {\n\t\t/*\n\t\t * Let the user choose a PKCS #12 file (keystore) containing a public\n\t\t * and private key pair to import\n\t\t */\n\t\tFile importFile = selectImportExportFile(\n\t\t\t\t\"PKCS #12 file to import from\", // title\n\t\t\t\tnew String[] { \".p12\", \".pfx\" }, // array of file extensions\n\t\t\t\t// for the file filter\n\t\t\t\t\"PKCS#12 Files (*.p12, *.pfx)\", // description of the filter\n\t\t\t\t\"Import\", // text for the file chooser's approve button\n\t\t\t\t\"keyPairDir\"); // preference string for saving the last chosen directory\n\n\t\tif (importFile == null)\n\t\t\treturn;\n\n\t\t// The PKCS #12 keystore is not a file\n\t\tif (!importFile.isFile()) {\n\t\t\tshowMessageDialog(this, \"Your selection is not a file\",\n\t\t\t\t\tALERT_TITLE, WARNING_MESSAGE);\n\t\t\treturn;\n\t\t}\n\n\t\t// Get the user to enter the password that was used to encrypt the\n\t\t// private key contained in the PKCS #12 file\n\t\tGetPasswordDialog getPasswordDialog = new GetPasswordDialog(this,\n\t\t\t\t\"Import key pair entry\", true,\n\t\t\t\t\"Enter the password that was used to encrypt the PKCS #12 file\");\n\t\tgetPasswordDialog.setLocationRelativeTo(this);\n\t\tgetPasswordDialog.setVisible(true);\n\n\t\tString pkcs12Password = getPasswordDialog.getPassword();\n\n\t\tif (pkcs12Password == null) // user cancelled\n\t\t\treturn;\n\t\telse if (pkcs12Password.isEmpty()) // empty password\n\t\t\t// FIXME: Maybe user did not have the password set for the private key???\n\t\t\treturn;\n\n\t\ttry {\n\t\t\t// Load the PKCS #12 keystore from the file\n\t\t\t// (this is using the BouncyCastle provider !!!)\n\t\t\tKeyStore pkcs12Keystore = credManager.loadPKCS12Keystore(importFile,\n\t\t\t\t\tpkcs12Password);\n\n\t\t\t/*\n\t\t\t * Display the import key pair dialog supplying all the private keys\n\t\t\t * stored in the PKCS #12 file (normally there will be only one\n\t\t\t * private key inside, but could be more as this is a keystore after\n\t\t\t * all).\n\t\t\t */\n\t\t\tNewKeyPairEntryDialog importKeyPairDialog = new NewKeyPairEntryDialog(\n\t\t\t\t\tthis, \"Credential Manager\", true, pkcs12Keystore, dnParser);\n\t\t\timportKeyPairDialog.setLocationRelativeTo(this);\n\t\t\timportKeyPairDialog.setVisible(true);\n\n\t\t\t// Get the private key and certificate chain of the key pair\n\t\t\tKey privateKey = importKeyPairDialog.getPrivateKey();\n\t\t\tCertificate[] certChain = importKeyPairDialog.getCertificateChain();\n\n\t\t\tif (privateKey == null || certChain == null)\n\t\t\t\t// User did not select a key pair for import or cancelled\n\t\t\t\treturn;\n\n\t\t\t/*\n\t\t\t * Check if a key pair entry with the same alias already exists in\n\t\t\t * the Keystore\n\t\t\t */\n\t\t\tif (credManager.hasKeyPair(privateKey, certChain)\n\t\t\t\t\t&& showConfirmDialog(this,\n\t\t\t\t\t\t\t\"The keystore already contains the key pair entry with the same private key.\\n\"\n\t\t\t\t\t\t\t\t\t+ \"Do you want to overwrite it?\",\n\t\t\t\t\t\t\tALERT_TITLE, YES_NO_OPTION) != YES_OPTION)\n\t\t\t\treturn;\n\n\t\t\t// Place the private key and certificate chain into the Keystore\n\t\t\tcredManager.addKeyPair(privateKey, certChain);\n\n\t\t\t// Display success message\n\t\t\tshowMessageDialog(this, \"Key pair import successful\", ALERT_TITLE,\n\t\t\t\t\tINFORMATION_MESSAGE);\n\t\t} catch (Exception ex) { // too many exceptions to catch separately\n\t\t\tString exMessage = \"Failed to import the key pair entry to the Keystore. \"\n\t\t\t\t\t+ ex.getMessage();\n\t\t\tlogger.error(exMessage, ex);\n\t\t\tshowMessageDialog(this, exMessage, ERROR_TITLE, ERROR_MESSAGE);\n\t\t}\n\t}", "public SaveKeystoreFileChooser()\r\n/* 16: */ {\r\n/* 17:16 */ setFileHidingEnabled(false);\r\n/* 18:17 */ FileFilter filter = new FileNameExtensionFilter(\"Your Digital File Private Key (.pfx)\", new String[] { \"pfx\" });\r\n/* 19:18 */ addChoosableFileFilter(filter);\r\n/* 20:19 */ setFileFilter(filter);\r\n/* 21: */ }", "@SuppressWarnings(\"deprecation\")\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tif (cbAlgorithm.getSelectedItem().toString() == \"RSA\") {\n\t\t\t\t\tif (cbOption.getSelectedItem().toString() == \"Encrypt\") {\n\t\t\t\t\t\tkeyList = new ArrayList<String>();\n\t\t\t\t\t\tFile folder = new File(URL_DIR + \"/PublicKey/\");\n\t\t\t\t\t\tfor (final File fileEntry : folder.listFiles()) {\n\t\t\t\t\t if (fileEntry.isDirectory()) {\n\t\t\t\t\t continue;\n\t\t\t\t\t } else {\n\t\t\t\t\t try {\n\t\t\t\t\t\t\t\t\t//keyList.add(Base64.getEncoder().encodeToString(RSA.loadPublicKey(URL_DIR + \"/PublicKey/\" + fileEntry.getName()).getEncoded()));\n\t\t\t\t\t \tkeyList.add(\"/PublicKey/\" + fileEntry.getName());\n\t\t\t\t\t\t\t\t} catch (Exception e1) {\n\t\t\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t }\n\t\t\t\t\t }\n\t\t\t\t\t\tcbSelectKey.setModel(new DefaultComboBoxModel(keyList.toArray()));\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tkeyList = new ArrayList<String>();\n\t\t\t\t\t\tFile folder = new File(URL_DIR + \"/PrivateKey/\");\n\t\t\t\t\t\tfor (final File fileEntry : folder.listFiles()) {\n\t\t\t\t\t if (fileEntry.isDirectory()) {\n\t\t\t\t\t continue;\n\t\t\t\t\t } else {\n\t\t\t\t\t try {\n\t\t\t\t\t\t\t\t\t//keyList.add(Base64.getEncoder().encodeToString(RSA.loadPrivateKey(URL_DIR + \"/PrivateKey/\" + fileEntry.getName()).getEncoded()));\n\t\t\t\t\t \tkeyList.add(\"/PrivateKey/\" + fileEntry.getName());\n\t\t\t\t\t\t\t\t} catch (Exception e1) {\n\t\t\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t }\n\t\t\t\t\t }\n\t\t\t\t\t\tcbSelectKey.setModel(new DefaultComboBoxModel(keyList.toArray()));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}", "private void selectPDFFile() {\n JFileChooser jfc = new JFileChooser();\n jfc.setFileFilter(new PDFFilter());\n jfc.setMultiSelectionEnabled(false);\n int ret = jfc.showDialog(this, \"Open\");\n if (ret == 0) {\n readFile = jfc.getSelectedFile();\n inputField.setText(readFile.getAbsolutePath());\n String outString = readFile.getAbsolutePath();\n outString = outString.substring(0, outString.length() - 3);\n outString = outString + \"txt\";\n outputField.setText(outString);\n progressLabel.setBackground(INFO);\n progressLabel.setText(PRESS_EXTRACT);\n } else {\n System.out.println(NO_FILE_SELECTED);\n progressLabel.setBackground(WARNING);\n progressLabel.setText(SELECT_FILE);\n }\n }", "public void chooseFile(String fileName) {\n getQueueTool().waitEmpty();\n output.printTrace(\"Choose file by JFileChooser\\n : \" + fileName\n + \"\\n : \" + toStringSource());\n JTextFieldOperator fieldOper = new JTextFieldOperator(getPathField());\n fieldOper.copyEnvironment(this);\n fieldOper.setOutput(output.createErrorOutput());\n //workaround\n fieldOper.setText(fileName);\n //fieldOper.clearText();\n //fieldOper.typeText(fileName);\n //approveSelection();\n approve();\n }", "void importPKCS12Certificate(InputStream is)\n {\n\tKeyStore myKeySto = null;\n\t// passord\n\tchar[] password = null;\n\t\n\ttry\n\t{\n\t myKeySto = KeyStore.getInstance(\"PKCS12\");\n\n\t // Pop up password dialog box\n Object dialogMsg = getMessage(\"dialog.password.text\");\n JPasswordField passwordField = new JPasswordField();\n\n Object[] msgs = new Object[2];\n msgs[0] = new JLabel(dialogMsg.toString());\n msgs[1] = passwordField;\n\n JButton okButton = new JButton(getMessage(\"dialog.password.okButton\"));\n JButton cancelButton = new JButton(getMessage(\"dialog.password.cancelButton\"));\n\n String title = getMessage(\"dialog.password.caption\");\n Object[] options = {okButton, cancelButton};\n int selectValue = DialogFactory.showOptionDialog(this, msgs, title, options, options[0]);\n\n\t // for security purpose, DO NOT put password into String. Reset password as soon as \n\t // possible.\n\t password = passwordField.getPassword();\n\n\t // User click OK button\n if (selectValue == 0)\n {\n\t // Load KeyStore based on the password\n\t myKeySto.load(is,password);\n\n\t // Get Alias list from KeyStore.\n\t Enumeration aliasList = myKeySto.aliases();\n\n\t while (aliasList.hasMoreElements())\n\t {\n\t\t\tX509Certificate cert = null;\n\n\t\t\t// Get Certificate based on the alias name\n\t\t\tString certAlias = (String)aliasList.nextElement();\n\t\t\tcert = (X509Certificate)myKeySto.getCertificate(certAlias);\n\n\t\t\t// Add to import list based on radio button selection\n\t\t\t\tif (getRadioPos() == mh.getMessage(\"SignedApplet_value\"))\n \t\t\t\t model.deactivateImpCertificate(cert);\n\t\t\t\telse if (getRadioPos() == mh.getMessage(\"SecureSite_value\"))\n \t\t\t\t model.deactivateImpHttpsCertificate(cert);\n\t }\n\t } // OK button\n\t}\n\tcatch(Throwable e)\n\t{\n\t // Show up Error dialog box if the user enter wrong password\n\t // Avoid to convert password array into String - security reason\n\t String uninitializedValue = \"uninitializedValue\";\n\t if (!compareCharArray(password, uninitializedValue.toCharArray()))\n\t {\n\t\t\tString errorMsg = getMessage(\"dialog.import.password.text\");\n\t\t\t\t\tString errorTitle = getMessage(\"dialog.import.error.caption\");\n\t \t\tDialogFactory.showExceptionDialog(this, e, errorMsg, errorTitle);\n\t }\n\t}\n\tfinally {\n\t\t// Reset password\n\t\tif(password != null) {\n\t\t\tjava.util.Arrays.fill(password, ' ');\n\t\t}\n\t}\n }", "byte[] select_ca_data()\n {\n JFileChooser jch = new JFileChooser();\n jch.setLocation( my_dlg.get_next_location() );\n\n if (jch.showOpenDialog(my_dlg) == JFileChooser.APPROVE_OPTION)\n {\n byte[] data = null;\n FileInputStream tr = null;\n try\n {\n File f = jch.getSelectedFile();\n tr = new FileInputStream(f);\n data = new byte[(int)f.length()];\n tr.read(data);\n\n return data;\n }\n catch (IOException iOException)\n {\n UserMain.errm_ok(my_dlg, UserMain.Txt(\"Cannot_load_certificate\") + \": \" + iOException.getMessage());\n return null;\n }\n finally\n {\n if (tr != null)\n {\n try\n {\n tr.close();\n }\n catch (IOException iOException)\n {\n }\n }\n }\n }\n return null;\n }", "private void selectButtonActionPerformed(java.awt.event.ActionEvent evt) {\n\t\tCyFileFilter tempCFF = new CyFileFilter();\n\n\t\tFile file = FileUtil.getFile(\"Import Network Files\", FileUtil.LOAD);\n\n\t\tfileNameTextField.setText(file.getAbsolutePath());\n\t\trunButton.setEnabled(true);\n\t}", "private void startFileSelection() {\n final Intent chooseFile = new Intent(Intent.ACTION_GET_CONTENT);\n chooseFile.setType(getString(R.string.file_type));\n startActivityForResult(chooseFile, PICK_FILE_RESULT_CODE);\n }", "private void getFileOrDirectory() {\r\n // display file dialog, so user can choose file or directory to open\r\n JFileChooser fileChooser = new JFileChooser();\r\n\t fileChooser.setCurrentDirectory(new File(System.getProperty(\"user.dir\")));\r\n fileChooser.setFileSelectionMode(JFileChooser.FILES_AND_DIRECTORIES );\r\n\r\n int result = fileChooser.showOpenDialog(this);\r\n\r\n // if user clicked Cancel button on dialog, return\r\n if (result == JFileChooser.CANCEL_OPTION )\r\n System.exit( 1 );\r\n\r\n File name = fileChooser.getSelectedFile(); // get File\r\n\r\n // display error if invalid\r\n if ((name == null) || (name.getName().equals( \"\" ))){\r\n JOptionPane.showMessageDialog(this, \"Invalid Name\",\r\n \"Invalid Name\", JOptionPane.ERROR_MESSAGE );\r\n System.exit( 1 );\r\n } // end if\r\n\t \r\n\t filename = name.getPath();\r\n }", "public void actionPerformed(ActionEvent e) \n {\n\tint i = certList.getSelectedIndex();\n\t\n\t//if (i < 0)\n\t// return;\n\t \t \n\t// Changed the certificate from the active set into the \n\t// inactive set. This is for removing the certificate from\n\t// the store when the user clicks on Apply.\n\t//\n\tString alias = (String) certList.getSelectedValue();\n\n\tif (e.getSource()==removeButton) \n\t{\t \t\t\n\t // Changed the certificate from the active set into the \n\t // inactive set. This is for removing the certificate from\n\t // the store when the user clicks on Apply.\n\t //\n\t if (getRadioPos() == mh.getMessage(\"SignedApplet_value\"))\n \t model.deactivateCertificate(alias);\n\t else\n\t model.deactivateHttpsCertificate(alias);\n\n\t reset();\n\t}\n\telse if (e.getSource() == viewCertButton) \n\t{\n\t X509Certificate myCert = null;\n\n\t if (getRadioPos() == mh.getMessage(\"SignedApplet_value\"))\n\t\tmyCert = (X509Certificate) model.getCertificate(alias);\n\t else if (getRadioPos() == mh.getMessage(\"SecureSite_value\")) \n\t\tmyCert = (X509Certificate) model.getHttpsCertificate(alias);\n\t else if (getRadioPos() == mh.getMessage(\"SignerCA_value\")) \n\t\tmyCert = (X509Certificate) model.getRootCACertificate(alias);\n\t else if (getRadioPos() == mh.getMessage(\"SecureSiteCA_value\")) \n\t\tmyCert = (X509Certificate) model.getHttpsRootCACertificate(alias);\n\n\t X509Certificate[] certs = new X509Certificate[] {myCert};\n\n\t // Make sure the certificate has been stored or in the import HashMap.\n\t if (certs.length > 0 && certs[0] instanceof X509Certificate)\n\t {\n \tCertificateDialog dialog = new CertificateDialog(this, certs, 0, certs.length);\n \t \tdialog.DoModal();\t\t\t\n\t }\n\t else \n\t {\n\t\t// The certificate you are trying to view is still in Import HashMap\n\t\tX509Certificate impCert = null;\n\n\t\tif (getRadioPos() == mh.getMessage(\"SignedApplet_value\"))\n\t\t impCert = model.getImpCertificate(alias);\n\t\telse\n\t\t impCert = model.getImpHttpsCertificate(alias);\n\t\n\t X509Certificate[] impCerts = new X509Certificate[] {impCert};\n \tCertificateDialog impDialog = new CertificateDialog(this, impCerts, 0, impCerts.length);\n \t \timpDialog.DoModal();\t\t\t\n\t }\n\t}\n\telse if (e.getSource() == importButton)\n\t{\n\t // Popup FileChooser\n\t JFileChooser jfc = new JFileChooser();\n\n\t // Set filter for File Chooser Dialog Box\n\t CertFileFilter impFilter = new CertFileFilter(); \n\t impFilter.addExtension(\"csr\");\n\t impFilter.addExtension(\"p12\");\n\t impFilter.setDescription(\"Certificate Files\");\n\t jfc.setFileFilter(impFilter);\n \n\t jfc.setFileSelectionMode(JFileChooser.FILES_ONLY);\n\t jfc.setDialogType(JFileChooser.OPEN_DIALOG);\n\t jfc.setMultiSelectionEnabled(false);\n\t int result = jfc.showOpenDialog(this);\n\t if (result == JFileChooser.APPROVE_OPTION)\n\t {\n\t\tFile f = jfc.getSelectedFile();\n\t\tif (f == null) return;\n\n\t\ttry\n\t\t{\n\t\t InputStream inStream = System.in;\n\t\t inStream = new FileInputStream(f);\n\n\t\t // Import certificate from file to deployment.certs\n\t\t boolean impStatus = false;\n\t\t impStatus = importCertificate(inStream);\n\t\t\t\n\t\t // Check if it is belong to PKCS#12 format\n\t\t if (!impStatus)\n\t\t {\n\t\t\t// Create another inputStream for PKCS#12 foramt\n\t\t InputStream inP12Stream = System.in;\n\t\t inP12Stream = new FileInputStream(f);\n\t\t importPKCS12Certificate(inP12Stream);\n\t\t }\n\t\t}\n\t\tcatch(Throwable e2)\n\t\t{\n\t\t DialogFactory.showExceptionDialog(this, e2, getMessage(\"dialog.import.file.text\"), \n\t\t\t\t\t\t getMessage(\"dialog.import.error.caption\"));\n\t\t}\n\t }\n\n\t reset();\n\t}\n\telse if (e.getSource() == exportButton)\n\t{\n\t X509Certificate cert = null;\n\n\t if (getRadioPos() == mh.getMessage(\"SignedApplet_value\"))\n\t\tcert = (X509Certificate) model.getCertificate(alias);\n\t else if (getRadioPos() == mh.getMessage(\"SecureSite_value\")) \n\t\tcert = (X509Certificate) model.getHttpsCertificate(alias);\n\t else if (getRadioPos() == mh.getMessage(\"SignerCA_value\")) \n\t\tcert = (X509Certificate) model.getRootCACertificate(alias);\n\t else if (getRadioPos() == mh.getMessage(\"SecureSiteCA_value\")) \n\t\tcert = (X509Certificate) model.getHttpsRootCACertificate(alias);\n\n\t // Make sure the certificate has been stored, if not, get from import table.\n\t if (!(cert instanceof X509Certificate))\n\t {\n\t\t// The certificate you are trying to export is still in Import HashMap\n\t\tif (getRadioPos() == mh.getMessage(\"SignedApplet_value\"))\n\t\t cert = model.getImpCertificate(alias);\n\t\telse\n\t\t cert = model.getImpHttpsCertificate(alias);\n\n\t } //not saved certificate \n\n\t if (cert != null)\n\t {\n\t // Popup FileChooser\n\t JFileChooser jfc = new JFileChooser();\n\t jfc.setFileSelectionMode(JFileChooser.FILES_ONLY);\n\t jfc.setDialogType(JFileChooser.SAVE_DIALOG);\n\t jfc.setMultiSelectionEnabled(false);\n\t int result = jfc.showSaveDialog(this);\n\t if (result == JFileChooser.APPROVE_OPTION)\n\t {\n\t\tFile f = jfc.getSelectedFile();\n\t\tif (f == null) return;\n\t\tPrintStream ps = null;\n\t\ttry {\n\t\t ps = new PrintStream(new BufferedOutputStream(new FileOutputStream(f)));\n\t\t exportCertificate(cert, ps);\n\t\t}\n\t\tcatch(Throwable e2) \n\t\t{\n\t\t DialogFactory.showExceptionDialog(this, e2, getMessage(\"dialog.export.text\"), \n\t\t\t\t\t\t getMessage(\"dialog.export.error.caption\"));\n\t\t}\n\t\tfinally {\n\t\t if (ps != null)\n\t\t\tps.close();\n\t\t}\n\t }\n\t } // Cert not null\n\t else {\n\t\tDialogFactory.showErrorDialog(this, getMessage(\"dialog.export.text\"), getMessage(\"dialog.export.error.caption\"));\n\t }\n\t}\n }", "private void pickFile() {\n\n String[] mimeTypes = {\"application/pdf\"};\n\n Intent intent = new Intent(Intent.ACTION_GET_CONTENT);\n intent.addCategory(Intent.CATEGORY_OPENABLE);\n intent.putExtra(Intent.EXTRA_ALLOW_MULTIPLE,false);\n intent.setType(\"*/*\");\n intent.putExtra(Intent.EXTRA_MIME_TYPES, mimeTypes);\n startActivityForResult(intent, 2);\n\n\n }", "@FXML\n void exportFile(ActionEvent event) {\n \tFileChooser chooser = new FileChooser();\n\t\tchooser.setTitle(\"Open Target File for the Export\");\n\t\tchooser.getExtensionFilters().addAll(new ExtensionFilter(\"Text Files\", \"*.txt\"),\n\t\t\t\tnew ExtensionFilter(\"All Files\", \"*.*\"));\n\t\tStage stage = new Stage();\n\t\t\n\t\t//get the reference of the target file\n\t\tFile targeFile = chooser.showSaveDialog(stage); \n\t\t\n\t\t\n\t\t//writes accounts to text file and exports\n\t\ttry {\n\t\t\t\n\t\t\tBufferedWriter bf = new BufferedWriter(new FileWriter(targeFile));\n\t\t\tbf.write(db.printFormattedAccounts());\n\t\t\tbf.flush();\n\t\t\tbf.close();\n\t\t\t\n\t\t\tmessageArea.appendText(\"File successfully exported.\\n\");\n\t\t\t\n\t\t} catch (IOException e) {\n \t\tmessageArea.appendText(\"Unable to export transactions to file.\\n\");\n\t\t}\n\t\tcatch (NullPointerException e) {\n\t\t\tmessageArea.appendText(\"File not selected, unable to export transactions to file.\\n\");\n\t\t}\n\t\t\n\t\t\n }", "private void browseOutputFilePath()\n\t{\n\t\tString filedirectory = \"\";\n\t\tString filepath = \"\";\n\t\ttry\n\t\t{\n\t\t\tJFileChooser fc = new JFileChooser(\".\");\n\t\t\tfc.setFileSelectionMode(JFileChooser.FILES_AND_DIRECTORIES); //select directories or files\n\t\t\tfc.setDialogTitle(\"Please choose a directory to save the converted file(s)\");\n\n\t\t\tFileNameExtensionFilter sifdata = new FileNameExtensionFilter(\"SIF\", \"sif\");\n\t\t\tfc.addChoosableFileFilter(sifdata);\n\n\t\t\tint returnVal = fc.showOpenDialog(this); // shows the dialog of the file browser\n\t\t\t// get name und path\n\t\t\tif(returnVal == JFileChooser.APPROVE_OPTION)\n\t\t\t{\n\t\t\t\tmainframe.setOutputTextfieldText(fc.getSelectedFile().getAbsolutePath());\n\t\t\t}\n\n\t\t}\n\t\tcatch (Exception e)\n\t\t{\n\t\t\tJOptionPane\n\t\t\t\t\t.showMessageDialog(new JFrame(),\n\t\t\t\t\t\t\t\"Problem when trying to choose an output : \" + e.toString(),\n\t\t\t\t\t\t\t\"Warning\", JOptionPane.WARNING_MESSAGE);\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "@Override\n public void actionPerformed(AnActionEvent event) {\n\n Project project = event.getData(PlatformDataKeys.PROJECT);\n\n DataContext dataContext = event.getDataContext();\n VirtualFile file = DataKeys.VIRTUAL_FILE.getData(dataContext);\n if(file != null){\n //获取选中的文件\n file = DataKeys.VIRTUAL_FILE.getData(dataContext);\n if(file == null){\n Messages.showErrorDialog(\"未选中文件\",\"error\");\n return;\n }\n }\n Module module = StringUtil.getModule(event.getProject(),dataContext,file.getPath());\n ExportDialog exportDialog = new ExportDialog(project,module,file);\n exportDialog.setTitle(\"Export Files\");\n exportDialog.show();\n }", "private static void importCommand(File meKeystoreFile, String[] args)\n throws Exception {\n String jcaKeystoreFilename = null;\n String keystorePassword = null;\n String alias = null;\n String domain = \"identified\";\n MEKeyTool keyTool;\n\n for (int i = 1; i < args.length; i++) {\n try {\n if (args[i].equals(\"-MEkeystore\")) {\n i++;\n meKeystoreFile = new File(args[i]); \n } else if (args[i].equals(\"-keystore\")) {\n i++;\n jcaKeystoreFilename = args[i]; \n } else if (args[i].equals(\"-storepass\")) {\n i++;\n keystorePassword = args[i]; \n } else if (args[i].equals(\"-alias\")) {\n i++;\n alias = args[i];\n } else if (args[i].equals(\"-domain\")) {\n i++;\n domain = args[i];\n } else {\n throw new UsageException(\n \"Invalid argument for import command: \" + args[i]);\n }\n } catch (ArrayIndexOutOfBoundsException e) {\n throw new UsageException(\"Missing value for \" + args[--i]);\n }\n }\n\n if (jcaKeystoreFilename == null) {\n jcaKeystoreFilename = System.getProperty(\n DEFAULT_KEYSTORE_PROPERTY, \n System.getProperty(\"user.home\") + \n File.separator + \".keystore\");\n }\n \n if (alias == null) {\n throw new Exception(\"J2SE key alias was not given\");\n }\n\n try {\n keyTool = new MEKeyTool(meKeystoreFile);\n } catch (FileNotFoundException fnfe) {\n keyTool = new MEKeyTool();\n }\n\n keyTool.importKeyFromJcaKeystore(jcaKeystoreFilename,\n keystorePassword,\n alias, domain);\n keyTool.saveKeystore(meKeystoreFile);\n }", "private void choosefileBtnActionPerformed(ActionEvent evt) {\r\n JFileChooser filechooser = new JFileChooser();\r\n int returnValue = filechooser.showOpenDialog(panel);\r\n if(returnValue == JFileChooser.APPROVE_OPTION) {\r\n filename = filechooser.getSelectedFile().toString();\r\n fileTxtField.setText(filename);\r\n codeFile = filechooser.getSelectedFile();\r\n assemblyreader = new mipstoc.read.CodeReader(codeFile);\r\n inputTxtArea.setText(assemblyreader.getString());\r\n }\r\n \r\n }", "private void importTrustedCertificate() {\n\t\t// Let the user choose a file containing trusted certificate(s) to\n\t\t// import\n\t\tFile certFile = selectImportExportFile(\n\t\t\t\t\"Certificate file to import from\", // title\n\t\t\t\tnew String[] { \".pem\", \".crt\", \".cer\", \".der\", \"p7\", \".p7c\" }, // file extensions filters\n\t\t\t\t\"Certificate Files (*.pem, *.crt, , *.cer, *.der, *.p7, *.p7c)\", // filter descriptions\n\t\t\t\t\"Import\", // text for the file chooser's approve button\n\t\t\t\t\"trustedCertDir\"); // preference string for saving the last chosen directory\n\t\tif (certFile == null)\n\t\t\treturn;\n\n\t\t// Load the certificate(s) from the file\n\t\tArrayList<X509Certificate> trustCertsList = new ArrayList<>();\n\t\tCertificateFactory cf;\n\t\ttry {\n\t\t\tcf = CertificateFactory.getInstance(\"X.509\");\n\t\t} catch (Exception e) {\n\t\t\t// Nothing we can do! Things are badly misconfigured\n\t\t\tcf = null;\n\t\t}\n\n\t\tif (cf != null) {\n\t\t\ttry (FileInputStream fis = new FileInputStream(certFile)) {\n\t\t\t\tfor (Certificate cert : cf.generateCertificates(fis))\n\t\t\t\t\ttrustCertsList.add((X509Certificate) cert);\n\t\t\t} catch (Exception cex) {\n\t\t\t\t// Do nothing\n\t\t\t}\n\n\t\t\tif (trustCertsList.size() == 0) {\n\t\t\t\t// Could not load certificates as any of the above types\n\t\t\t\ttry (FileInputStream fis = new FileInputStream(certFile);\n\t\t\t\t\t\tPEMReader pr = new PEMReader(\n\t\t\t\t\t\t\t\tnew InputStreamReader(fis), null, cf\n\t\t\t\t\t\t\t\t\t\t.getProvider().getName())) {\n\t\t\t\t\t/*\n\t\t\t\t\t * Try as openssl PEM format - which sligtly differs from\n\t\t\t\t\t * the one supported by JCE\n\t\t\t\t\t */\n\t\t\t\t\tObject cert;\n\t\t\t\t\twhile ((cert = pr.readObject()) != null)\n\t\t\t\t\t\tif (cert instanceof X509Certificate)\n\t\t\t\t\t\t\ttrustCertsList.add((X509Certificate) cert);\n\t\t\t\t} catch (Exception cex) {\n\t\t\t\t\t// do nothing\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif (trustCertsList.size() == 0) {\n\t\t\t/* Failed to load certifcate(s) using any of the known encodings */\n\t\t\tshowMessageDialog(this,\n\t\t\t\t\t\"Failed to load certificate(s) using any of the known encodings -\\n\"\n\t\t\t\t\t\t\t+ \"file format not recognised.\", ERROR_TITLE,\n\t\t\t\t\tERROR_MESSAGE);\n\t\t\treturn;\n\t\t}\n\n\t\t// Show the list of certificates contained in the file for the user to\n\t\t// select the ones to import\n\t\tNewTrustCertsDialog importTrustCertsDialog = new NewTrustCertsDialog(this,\n\t\t\t\t\"Credential Manager\", true, trustCertsList, dnParser);\n\n\t\timportTrustCertsDialog.setLocationRelativeTo(this);\n\t\timportTrustCertsDialog.setVisible(true);\n\t\tList<X509Certificate> selectedTrustCerts = importTrustCertsDialog\n\t\t\t\t.getTrustedCertificates(); // user-selected trusted certs to import\n\n\t\t// If user cancelled or did not select any cert to import\n\t\tif (selectedTrustCerts == null || selectedTrustCerts.isEmpty())\n\t\t\treturn;\n\n\t\ttry {\n\t\t\tfor (X509Certificate cert : selectedTrustCerts)\n\t\t\t\t// Import the selected trusted certificates\n\t\t\t\tcredManager.addTrustedCertificate(cert);\n\n\t\t\t// Display success message\n\t\t\tshowMessageDialog(this, \"Trusted certificate(s) import successful\",\n\t\t\t\t\tALERT_TITLE, INFORMATION_MESSAGE);\n\t\t} catch (CMException cme) {\n\t\t\tString exMessage = \"Failed to import trusted certificate(s) to the Truststore\";\n\t\t\tlogger.error(exMessage, cme);\n\t\t\tshowMessageDialog(this, exMessage, ERROR_TITLE, ERROR_MESSAGE);\n\t\t}\n\t}", "private void selectPassFile()\n {\n final JFileChooser fc = new JFileChooser();\n\n if (fc.showOpenDialog(null) == JFileChooser.APPROVE_OPTION)\n {\n final File file = fc.getSelectedFile();\n\n passFile = file;\n mnuPassFileName.setText(\"Selected: \" + passFile.getName());\n\n try\n {\n BufferedReader in =\n new BufferedReader(new FileReader(passFile));\n\n for (double i = 0.0; ; i++)\n {\n String s = in.readLine();\n\n if (s == null)\n {\n break;\n }\n\n mnuPasswords.setText(\"Passwords [\" + i + \"]\");\n }\n }\n catch (Exception e)\n {\n }\n }\n else\n {\n JOptionPane.showMessageDialog(null, \"Reverting to using list.\",\n \"No File Selected\",\n JOptionPane.ERROR_MESSAGE);\n mnuLoadPasswordList.setEnabled(true);\n mnuSavePasswordList.setEnabled(true);\n mnuAddPassword.setEnabled(true);\n mnuRemovePassword.setEnabled(true);\n mnuClearPasswords.setEnabled(true);\n mnuPassFileName.setVisible(false);\n radPassFile.setSelected(false);\n radPassList.setSelected(true);\n }\n }", "private void savePressed(){\n\t\t\n\t\tJFileChooser fileChooser = new JFileChooser(System.getProperty(\"user.dir\"));\n\t\tFileNameExtensionFilter extentions = new FileNameExtensionFilter(\"SuperCalcSave\", \"scalcsave\");\n\t\tfileChooser.setFileFilter(extentions);\n\t\tint retunedVal = fileChooser.showSaveDialog(this);\n\t\tFile file = null;\n\t\tif(retunedVal == JFileChooser.APPROVE_OPTION){\n\t\t\tfile = fileChooser.getSelectedFile();\n\t\t\t//make sure file has the right extention\n\t\t\tif(file.getAbsolutePath().contains(\".scalcsave\"))\n\t\t\t\tfile = new File(file.getAbsolutePath());\n\t\t\telse\n\t\t\t\tfile = new File(file.getAbsolutePath()+\".scalcsave\");\n\t\t}\n\t\t//only continue if a file is selected\n\t\tif(file != null){\t\n\t\t\ttry {\n\t\t\t\t//read in file\n\t\t\t\tObjectOutputStream output = new ObjectOutputStream(new FileOutputStream(file));\n\t\t\t\toutput.writeObject(SaveFile.getSaveFile());\n\t\t\t\toutput.close();\n\t\t\t\tSystem.out.println(\"Save Success\");\n\t\t\t\t\n\t\t\t} catch (Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\t\n\t\t}\n\t}", "public boolean selectFile() {\n\t\tFileChooser chooser = new FileChooser();\n\t\tif (target != null) {chooser.setInitialDirectory(target.getParentFile());}\n\t\telse {chooser.setInitialDirectory(new File(System.getProperty(\"user.home\")));}\n\t\tchooser.getExtensionFilters().add(EF);\n\t\tchooser.setTitle(\"Select map file\");\n\t\tFile selection = chooser.showOpenDialog(new Stage());\n\t\tif (selection != null) {\n\t\t\ttarget = selection;\n\t\t\treturn true;\n\t\t}\n\t\telse {return false;}\n\t}", "void selectFile(){\n JLabel lblFileName = new JLabel();\n fc.setCurrentDirectory(new java.io.File(\"saved\" + File.separator));\n fc.setDialogTitle(\"FILE CHOOSER\");\n FileNameExtensionFilter xmlfilter = new FileNameExtensionFilter(\n \"json files (*.json)\", \"json\");\n fc.setFileFilter(xmlfilter);\n int response = fc.showOpenDialog(this);\n if (response == JFileChooser.APPROVE_OPTION) {\n lblFileName.setText(fc.getSelectedFile().toString());\n }else {\n lblFileName.setText(\"the file operation was cancelled\");\n }\n System.out.println(fc.getSelectedFile().getAbsolutePath());\n }", "private void entryFileButtonActionPerformed(java.awt.event.ActionEvent evt) {\n JFileChooser chooser = new JFileChooser();\n chooser.setDialogTitle(\"Select Entries File\");\n File workingDirectory = new File(System.getProperty(\"user.dir\"));\n chooser.setCurrentDirectory(workingDirectory);\n if (chooser.showSaveDialog(this) == JFileChooser.APPROVE_OPTION) {\n entryFile = chooser.getSelectedFile();\n entryFileLabel.setText(getFileName(entryFile));\n pcs.firePropertyChange(\"ENTRY\", null, entryFile);\n }\n }", "private void openPressed(){\n\t\tJFileChooser fileChooser = new JFileChooser(System.getProperty(\"user.dir\"));\n\t\tFileNameExtensionFilter extentions = new FileNameExtensionFilter(\"SuperCalcSave\", \"scalcsave\");\n\t\tfileChooser.setFileFilter(extentions);\n\t\tint retunedVal = fileChooser.showOpenDialog(this);\n\t\tFile file = null;\n\t\tif(retunedVal == JFileChooser.APPROVE_OPTION){\n\t\t\tfile = fileChooser.getSelectedFile();\n\t\t}\n\t\t//only continue if a file is selected\n\t\tif(file != null){\n\t\t\tSaveFile saveFile = null;\n\t\t\ttry {\n\t\t\t\t//read in file\n\t\t\t\tObjectInputStream input = new ObjectInputStream(new FileInputStream(file));\n\t\t\t\tsaveFile = (SaveFile) input.readObject();\n\t\t\t\tinput.close();\n\t\t\t\tVariable.setList(saveFile.getVariables());\n\t\t\t\tUserFunction.setFunctions(saveFile.getFunctions());\n\t\t\t\tmenuBar.updateFunctions();\n\t\t\t\tSystem.out.println(\"Open Success\");\n\t\t\t} catch (Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\t\n\t\t}\n\t}", "private void browseInputFile()\n\t{\n\t\ttry\n\t\t{\n\t\t\tJFileChooser fc = new JFileChooser(\".\");\n\t\t\tfc.setDialogTitle(\"Please choose an XML file\");\n\t\t\tFileNameExtensionFilter xmldata = new FileNameExtensionFilter(\"XML\", \"xml\");\n\t\t\tfc.addChoosableFileFilter(xmldata);\n\n\t\t\tint returnVal = fc.showOpenDialog(this); // shows the dialog of the file browser\n\t\t\t// get name und path\n\t\t\tif(returnVal == JFileChooser.APPROVE_OPTION)\n\t\t\t{\n\t\t\t\tcurFile = fc.getSelectedFile();\n\t\t\t\tinputfilepath = curFile.getAbsolutePath();\n\t\t\t\tmainframe.setInputFileText(inputfilepath);\n\t\t\t}\n\n\t\t}\n\t\tcatch (Exception e)\n\t\t{\n\t\t\tJOptionPane\n\t\t\t\t\t.showMessageDialog(new JFrame(),\n\t\t\t\t\t\t\t\"Please select a valid xml file downloaded from Pathway Interaction Database, or a converted SIF file.\",\n\t\t\t\t\t\t\t\"Warning\", JOptionPane.WARNING_MESSAGE);\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}", "private void selectTXTFile() {\n JFileChooser jfc = new JFileChooser();\n File curDir;\n if (readFile != null) curDir = new File(readFile.getParent()); else curDir = new File(System.getProperty(\"user.home\"));\n jfc.setCurrentDirectory(curDir);\n jfc.setFileFilter(new TXTFilter());\n jfc.setMultiSelectionEnabled(false);\n int ret = jfc.showDialog(this, \"Save\");\n if (ret == 0) {\n outputField.setText(jfc.getSelectedFile().getAbsolutePath() + \".txt\");\n }\n }", "public static void main(String[] args) {\n\t\tSystem.out.println(\r\n\t\t\t\t\"Please provide a path to password protected PDF file in an appriopriate format i.e. C:\\\\Users\\\\User\\\\Documents\\\\File.pdf\");\r\n\t\tSystem.out.println(\"or press 'q' to quit to main menu\");\r\n\t\tString filePath = input.next();\r\n\t\t// if statement allowing to go back to main menu instead of typing in\r\n\t\t// file directory\r\n\t\tif (filePath.equals(\"q\") || (filePath.equals(\"Q\"))) {\r\n\t\t} else {\r\n\t\t\tstartAttack(filePath);\r\n\t\t}\r\n\t}", "public void requestExportPose()\r\n {\r\n // ASK THE USER TO MAKE SURE THEY WANT TO GO AHEAD WITH IT\r\n AnimatedSpriteEditorGUI gui = AnimatedSpriteEditor.getEditor().getGUI();\r\n int selection = JOptionPane.showOptionDialog( gui, \r\n EXPORT_POSE_TEXT + currentPoseName + POSE_FILE_EXTENSION,\r\n EXPORT_POSE_TITLE_TEXT, \r\n JOptionPane.OK_CANCEL_OPTION, JOptionPane.QUESTION_MESSAGE,\r\n null, null, null);\r\n \r\n // IF THE USER CLICKED OK, THEN EXPORT THE POSE\r\n if (selection == JOptionPane.OK_OPTION)\r\n {\r\n poseIO.exportPose(currentPoseName);\r\n }\r\n }", "public void selectFile(String file) {\n clickOnFile(file);\n }", "public void getDataFromFileOptionsOpen(ActionEvent event) throws Exception {\n\n //file choose\n FileChooser fileChooser = new FileChooser();\n SelectFileButton.setOnAction(e -> {\n try {\n FileImportNameTxtF.clear();\n File selectedFile = fileChooser.showOpenDialog(null);\n //fileChooser.getExtensionFilters().add(new FileChooser.ExtensionFilter(\".txt\"));//only shows .txt files to user\n FileImportNameTxtF.appendText(selectedFile.getPath());\n\n } catch (Exception exception) {\n exception.printStackTrace();\n }\n });\n\n //submit file\n SubmitFileButton.setOnAction(e -> {\n a[0] = FileImportNameTxtF.getText();\n\n });\n }", "public void getDataFromFileOptionsExport(ActionEvent event) throws Exception {}", "private void selectFile(APDU apdu, byte[] buffer) \r\n \t //@ requires current_applet(this) &*& [1/2]valid() &*& APDU(apdu, buffer) &*& array_slice(buffer, 0, buffer.length, _);\r\n \t //@ ensures current_applet(this) &*& [1/2]valid() &*& APDU(apdu, buffer) &*& array_slice(buffer, 0, buffer.length, _);\r\n\t{\r\n\t\t// check P2\r\n\t\tif (buffer[ISO7816.OFFSET_P2] != (byte) 0x0C)\r\n\t\t\tISOException.throwIt(ISO7816.SW_WRONG_P1P2);\r\n\t\t// P1 determines the select method\r\n\t\tswitch (buffer[ISO7816.OFFSET_P1]) {\r\n\t\tcase (byte) 0x02:\r\n\t\t\tselectByFileIdentifier(apdu, buffer);\r\n\t\t\tbreak;\r\n\t\tcase (byte) 0x08:\r\n\t\t\tselectByPath(apdu, buffer);\r\n\t\t\tbreak;\r\n\t\tdefault:\r\n\t\t\tISOException.throwIt(ISO7816.SW_INCORRECT_P1P2);\r\n\t\t\tbreak; //~allow_dead_code\r\n\t\t}\r\n\t}", "public void openFile(File selectedFile) {\n System.err.println(\"selected: \" + selectedFile);\n }", "public void loadFile(){\n returnValue = this.showOpenDialog(null);\n if (returnValue == JFileChooser.APPROVE_OPTION) {\n selected = new File(this.getSelectedFile().getAbsolutePath());\n Bank.customer=(new CustomerFileReader(selected)).readCustomer();\n }\n }", "@Override public int doIt(){\r\n log.println();\r\n log.println(twoLineStartMsg().append('\\n'));\r\n \r\n if (isTest()) {\r\n log.println(prop.toString());\r\n } // >= TEST\r\n \r\n try { // open input\r\n if (fromCert) {\r\n certFileName = w0;\r\n } else if (certFileName == null) {\r\n certFileName = System.getProperty(\"user.home\") + \"/.keystore\"; \r\n }\r\n fis = new FileInputStream(certFileName);\r\n } catch (FileNotFoundException e) {\r\n if (isTest()) {\r\n log.println(formMessage(\"openexcp\", certFileName));\r\n e.printStackTrace(log);\r\n }\r\n return errMeld(17, formMessage(\"openexcp\", e));\r\n } // open input\r\n \r\n if (fromCert) { // cert (else keystore)\r\n pubKeyFil = w1;\r\n try {\r\n cFac = CertificateFactory.getInstance(certType);\r\n cert = cFac.generateCertificate(fis);\r\n } catch (CertificateException e1) {\r\n log.println(formMessage(\"pukynotgtb\", certFileName));\r\n return errMeld(19, e1);\r\n }\r\n pubKey = cert.getPublicKey();\r\n log.println(formMessage(\"pukyfrcert\", certFileName));\r\n } else { // cert else keystore\r\n keyAlias = w0;\r\n pubKeyFil = w1;\r\n storePassW = TextHelper.trimUq(storePassW, null);\r\n if (storePassW != null) {\r\n passWord = storePassW.toCharArray();\r\n } else {\r\n passWord = AskDialog.getAnswerText(\r\n valueLang(\"pkexpdtit\"), // titel PKextr password dialog\r\n keyAlias, // upper\r\n true, // upper monospaced\r\n valueLang(\"pkexpasye\"), valueLang(\"pkexpasno\"), // yes, cancel\r\n 990, // waitMax = 99s\r\n valueLang(\"pkexpassr\"),\r\n null, true); //Color bg password \r\n } // storePassw \r\n \r\n try {\r\n ks = KeyStore.getInstance(certType);\r\n } catch (KeyStoreException e1) {\r\n return errMeld(21, e1);\r\n }\r\n\r\n try {\r\n ks.load(fis, passWord);\r\n fis.close();\r\n cert = ks.getCertificate(keyAlias);\r\n } catch (Exception e2) {\r\n return errMeld(29, e2);\r\n }\r\n // alias \r\n if (exportPrivate) {\r\n Key key = null;\r\n try {\r\n key = ks.getKey(keyAlias, passWord);\r\n } catch (Exception e) {\r\n return errorExit(39, e, \"could not get the key from keystore.\");\r\n }\r\n if (key instanceof PrivateKey) {\r\n // ex history: BASE64Encoder myB64 = new BASE64Encoder();\r\n // since 24.06.2016 String b64 = myB64.encode(key.getEncoded());\r\n Base64.Encoder mimeEncoder = java.util.Base64.getMimeEncoder();\r\n String b64 = mimeEncoder.encodeToString( key.getEncoded());\r\n \r\n log.println(\"-----BEGIN PRIVATE KEY-----\");\r\n log.println(b64);\r\n log.println(\"-----END PRIVATE KEY-----\\n\\n\");\r\n\r\n if (pubKeyFil == null) return 0;\r\n \r\n log.println(formMessage(\"prkywrite\", pubKeyFil));\r\n try {\r\n keyfos = new FileOutputStream(pubKeyFil);\r\n } catch (FileNotFoundException e1) {\r\n return errMeld(31, e1);\r\n }\r\n Writer osw = new OutputStreamWriter(keyfos); \r\n try {\r\n osw.write(\"-----BEGIN PRIVATE KEY-----\\n\");\r\n osw.write(b64);\r\n osw.write(\"\\n-----END PRIVATE KEY-----\\n\");\r\n osw.close();\r\n } catch (IOException e2) {\r\n return errMeld(31, e2);\r\n }\r\n\r\n return 0;\r\n \r\n }\r\n return errorExit(39, \"no private key found\");\r\n } // export private \r\n pubKey = cert.getPublicKey();\r\n log.println(formMessage(\"pukyfrstor\",\r\n new String[]{keyAlias, certFileName}));\r\n } // else from keystore\r\n \r\n log.println(\"\\n----\\n\" + pubKey.toString() + \"\\n----\\n\\n\");\r\n \r\n if (pubKeyFil == null) return 0;\r\n\r\n // got the public key and listed it to log\r\n log.println(formMessage(\"pukywrite\", pubKeyFil));\r\n //\" Write public key to \\\"\" + pubKeyFil + \"\\\"\\n\");\r\n byte[] key = pubKey.getEncoded();\r\n try {\r\n keyfos = new FileOutputStream(pubKeyFil);\r\n } catch (FileNotFoundException e1) {\r\n return errMeld(31, e1);\r\n }\r\n try {\r\n keyfos.write(key);\r\n keyfos.close();\r\n } catch (IOException e2) {\r\n return errMeld(31, e2);\r\n }\r\n return 0;\r\n }", "private boolean exportTrustedCertificate() {\n\t\t// Which trusted certificate has been selected?\n\t\tint selectedRow = trustedCertsTable.getSelectedRow();\n\t\tif (selectedRow == -1) // no row currently selected\n\t\t\treturn false;\n\n\t\t// Get the trusted certificate entry's Keystore alias\n\t\tString alias = (String) trustedCertsTable.getModel()\n\t\t\t\t.getValueAt(selectedRow, 3);\n\t\t// the alias column is invisible so we get the value from the table\n\t\t// model\n\n\t\t// Let the user choose a file to export to\n\t\tFile exportFile = selectImportExportFile(\"Select a file to export to\", // title\n\t\t\t\tnew String[] { \".pem\" }, // array of file extensions for the\n\t\t\t\t// file filter\n\t\t\t\t\"Certificate Files (*.pem)\", // description of the filter\n\t\t\t\t\"Export\", // text for the file chooser's approve button\n\t\t\t\t\"trustedCertDir\"); // preference string for saving the last chosen directory\n\t\tif (exportFile == null)\n\t\t\treturn false;\n\n\t\t// If file already exist - ask the user if he wants to overwrite it\n\t\tif (exportFile.isFile()\n\t\t\t\t&& showConfirmDialog(this,\n\t\t\t\t\t\t\"The file with the given name already exists.\\n\"\n\t\t\t\t\t\t\t\t+ \"Do you want to overwrite it?\", ALERT_TITLE,\n\t\t\t\t\t\tYES_NO_OPTION) == NO_OPTION)\n\t\t\treturn false;\n\n\t\t// Export the trusted certificate\n\t\ttry (PEMWriter pw = new PEMWriter(new FileWriter(exportFile))) {\n\t\t\t// Get the trusted certificate\n\t\t\tpw.writeObject(credManager.getCertificate(TRUSTSTORE, alias));\n\t\t} catch (Exception ex) {\n\t\t\tString exMessage = \"Failed to export the trusted certificate from the Truststore.\";\n\t\t\tlogger.error(exMessage, ex);\n\t\t\tshowMessageDialog(this, exMessage, ERROR_TITLE, ERROR_MESSAGE);\n\t\t\treturn false;\n\t\t}\n\t\tshowMessageDialog(this, \"Trusted certificate export successful\",\n\t\t\t\tALERT_TITLE, INFORMATION_MESSAGE);\n\t\treturn true;\n\t}", "public void seleccionarArchivo(){\n JFileChooser j= new JFileChooser();\r\n FileNameExtensionFilter fi= new FileNameExtensionFilter(\"pdf\",\"pdf\");\r\n j.setFileFilter(fi);\r\n int se = j.showOpenDialog(this);\r\n if(se==0){\r\n this.txtCurriculum.setText(\"\"+j.getSelectedFile().getName());\r\n ruta_archivo=j.getSelectedFile().getAbsolutePath();\r\n }else{}\r\n }", "public static void main(String[] args) {\n\n\t\tif (args.length != 5) {\n\t\t System.out.println(\"Usage: GenSig nameOfFileToSign keystore password sign publicKey\");\n\n\t\t }\n\t\telse try{\n\n\t\t KeyStore ks = KeyStore.getInstance(KeyStore.getDefaultType());\n\t\t ks.load(new FileInputStream(args[1]), args[2].toCharArray());\n\t\t \n\t\t String alias = (String)ks.aliases().nextElement();\n\t\t PrivateKey privateKey = (PrivateKey) ks.getKey(alias, args[2].toCharArray());\n\n\t\t Certificate cert = ks.getCertificate(alias);\n\n\t\t // Get public key\t\n\t\t PublicKey publicKey = cert.getPublicKey();\n\n\t\t /* Create a Signature object and initialize it with the private key */\n\n\t\t Signature rsa = Signature.getInstance(\"SHA256withRSA\");\t\n\t\n\n\t\t rsa.initSign(privateKey);\n\n\t\t /* Update and sign the data */\n\n \t String hexString = readFile(args[0]).trim();\n\t\t byte[] decodedBytes = DatatypeConverter.parseHexBinary(hexString);\t\n\t\t InputStream bufin = new ByteArrayInputStream(decodedBytes);\n\n\n\t\t byte[] buffer = new byte[1024];\n\t\t int len;\n\t\t while (bufin.available() != 0) {\n\t\t\tlen = bufin.read(buffer);\n\t\t\trsa.update(buffer, 0, len);\n\t\t };\n\n\t\t bufin.close();\n\n\t\t /* Now that all the data to be signed has been read in, \n\t\t\t generate a signature for it */\n\n\t\t byte[] realSig = rsa.sign();\n\n\t\t \n\t\t /* Save the signature in a file */\n\n\t\t File file = new File(args[3]);\n\t\t PrintWriter out = new PrintWriter(file);\n\n\t\t\t// if file doesn't exists, then create it\n\t\t\tif (!file.exists()) {\n\t\t\t\tfile.createNewFile();\n\t\t\t}\n\n\t\t out.println(DatatypeConverter.printBase64Binary(realSig));\n\t\t out.close();\n\n\n\t\t /* Save the public key in a file */\n\t\t byte[] key = publicKey.getEncoded();\n\t\t FileOutputStream keyfos = new FileOutputStream(args[4]);\n\t\t keyfos.write(key);\n\n\t\t keyfos.close();\n\n\t\t} catch (Exception e) {\n\t\t System.err.println(\"Caught exception \" + e.toString());\n\t\t}\n\n\t}", "private void processChooseFileButton() {\n try {\n dataOutputArea.setText(\"\");\n JFileChooser myFileChooser = new JFileChooser(\".\", FileSystemView.getFileSystemView());\n int returnValue = myFileChooser.showOpenDialog(null);\n if(returnValue == JFileChooser.APPROVE_OPTION) {\n selectedFile = myFileChooser.getSelectedFile();\n dataFileField.setText(selectedFile.getName());\n }\n } catch(Exception e) {\n System.out.println(\"There was an error with JFileChooser!\\n\\n\" + e.getMessage());\n } //end of catch()\n }", "private File openFileChooser(String filetype) throws IOException {\n JFileChooser chooser = new JFileChooser(projectController.getProjectInfo().getPdf());\n FileNameExtensionFilter filter = new FileNameExtensionFilter(\n filetype.toUpperCase(), filetype.toLowerCase());\n chooser.setFileFilter(filter);\n int returnVal = chooser.showOpenDialog(null);\n File output = null;\n if (returnVal == JFileChooser.APPROVE_OPTION) {\n output = chooser.getSelectedFile();\n }\n\n if (output == null) {\n throw new IOException(\"user aborted pdf selection process\");\n }\n\n return output;\n }", "public void mouseDown(org.eclipse.swt.events.MouseEvent e) {\n if (e.getSource() == buttonOk) {\n String host = comboHost.getText();\n String user = comboUser.getText();\n String password = textPassword.getText();\n // String protocol = comboProtocol.getText();\n\t Protocol protocol = Protocol.values()[comboProtocol.getSelectionIndex()];\n String file = textkey.getText().trim();\n ConfigSession session = new ConfigSession(host, \"22\", user, protocol,file, password, \"\"); //TODO: enable port and session!\n\n if (!host.trim().equals(\"\") && !user.trim().equals(\"\") && !protocol.equals(\"\")) {\n dialog.dispose();\n MainFrame.dbm.insertCSession(session);\n if (sessionDialog != null)\n sessionDialog.loadTable();\n if (mainFrame != null)\n mainFrame.addSession(null, session);\n } else {\n MessageDialog.openInformation(dialog, \"Warning\", \"Must set Host, User and Protocol\");\n }\n\n } else if (e.getSource() == buttonCancel) {\n dialog.dispose();\n } else if (e.getSource() == buttonFile) {\n FileDialog fileDlg = new FileDialog(dialog, SWT.OPEN);\n fileDlg.setText(\"Select SSH key\");\n String filePath = fileDlg.open();\n if (null != filePath) {\n textkey.setText(filePath);\n }\n\n }\n\n }", "private static void createKeyFiles(String pass, String publicKeyFilename, String privateKeyFilename) throws Exception {\n\t\tString password = null;\n\t\tif (pass.isEmpty()) {\n\t\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tSystem.out.print(\"Password to encrypt the private key: \");\n\t\t\tpassword = in.readLine();\n\t\t\tSystem.out.println(\"Generating an RSA keypair...\");\n\t\t} else {\n\t\t\tpassword = pass;\n\t\t}\n\t\t\n\t\t// Create an RSA key\n\t\tKeyPairGenerator keyPairGenerator = KeyPairGenerator.getInstance(\"RSA\");\n\t\tkeyPairGenerator.initialize(1024);\n\t\tKeyPair keyPair = keyPairGenerator.genKeyPair();\n\n\t\tSystem.out.println(\"Done generating the keypair.\\n\");\n\n\t\t// Now we need to write the public key out to a file\n\t\tSystem.out.print(\"Public key filename: \");\n\n\t\t// Get the encoded form of the public key so we can\n\t\t// use it again in the future. This is X.509 by default.\n\t\tbyte[] publicKeyBytes = keyPair.getPublic().getEncoded();\n\n\t\t// Write the encoded public key out to the filesystem\n\t\tFileOutputStream fos = new FileOutputStream(publicKeyFilename);\n\t\tfos.write(publicKeyBytes);\n\t\tfos.close();\n\n\t\t// Now we need to do the same thing with the private key,\n\t\t// but we need to password encrypt it as well.\n\t\tSystem.out.print(\"Private key filename: \");\n \n\t\t// Get the encoded form. This is PKCS#8 by default.\n\t\tbyte[] privateKeyBytes = keyPair.getPrivate().getEncoded();\n\n\t\t// Here we actually encrypt the private key\n\t\tbyte[] encryptedPrivateKeyBytes = passwordEncrypt(password.toCharArray(), privateKeyBytes);\n\n\t\tfos = new FileOutputStream(privateKeyFilename);\n\t\tfos.write(encryptedPrivateKeyBytes);\n\t\tfos.close();\n\t}", "public void approveSelection()\r\n/* 24: */ {\r\n/* 25:23 */ if ((!getFileFilter().accept(getSelectedFile())) && \r\n/* 26:24 */ ((getFileFilter() instanceof FileNameExtensionFilter)))\r\n/* 27: */ {\r\n/* 28:25 */ String[] extensions = ((FileNameExtensionFilter)getFileFilter()).getExtensions();\r\n/* 29:26 */ String ext = extensions.length > 0 ? extensions[0] : \"\";\r\n/* 30:27 */ setSelectedFile(new File(getSelectedFile().getAbsolutePath() + ((ext == null) || (ext.length() == 0) ? \"\" : new StringBuilder().append(\".\").append(ext).toString())));\r\n/* 31: */ }\r\n/* 32:32 */ File f = getSelectedFile();\r\n/* 33:33 */ if ((f.exists()) && (getDialogType() == 1))\r\n/* 34: */ {\r\n/* 35:34 */ int result = JOptionPane.showConfirmDialog(this, \"Are you sure you want to override existing file?\", \"Existing file\", 1, 3);\r\n/* 36:40 */ switch (result)\r\n/* 37: */ {\r\n/* 38: */ case 0: \r\n/* 39:42 */ super.approveSelection();\r\n/* 40:43 */ return;\r\n/* 41: */ case 2: \r\n/* 42:45 */ cancelSelection();\r\n/* 43:46 */ return;\r\n/* 44: */ }\r\n/* 45:48 */ return;\r\n/* 46: */ }\r\n/* 47:51 */ super.approveSelection();\r\n/* 48: */ }", "private void popAbout() {\n try {\n //File file=new File(filepath);\n Desktop.getDesktop().open(new java.io.File(\"about.pdf\"));\n } catch (IOException ex) {\n JOptionPane.showMessageDialog(rootPane,\"File not found or supported\");\n }\n }", "protected void mCertificateImageSelection() {\n final CharSequence[] options = {\"Camera\", \"Gallery\", \"Cancel\"};\n\n AlertDialog.Builder builder = new AlertDialog.Builder(new ContextThemeWrapper\n (ApplicationActivity.this, R.style.AlertDialogCustom));\n\n builder.setIcon(R.mipmap.birth_icon);\n builder.setTitle(\"Birth Certificate\");\n builder.setItems(options, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int item) {\n\n //Camera Option\n if (options[item].equals(\"Camera\")) {\n Intent intent = new Intent(android.provider.MediaStore.ACTION_IMAGE_CAPTURE);\n startActivityForResult(intent, CAMERA_REQUEST_1);\n }\n\n //Gallery Option\n else if (options[item].equals(\"Gallery\")) {\n Intent intent = new Intent(Intent.ACTION_PICK,\n android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI);\n intent.setType(\"image/*\");\n startActivityForResult(intent, GALLERY_REQUEST_1);\n }\n\n //Cancel Option\n else if (options[item].equals(\"Cancel\")) {\n dialog.dismiss();\n }\n }\n });\n\n builder.show();\n }", "public static void exportMethodFile(AlignFrame alignFrame, ActionEvent evt, String method) {\n JFileChooser chooser = new JFileChooser(lastSelectedFolder);\n if(method.equals(\"S3Det\")){\n \tchooser.setFileFilter(new InnerS3DetFileFilter());\n }\n else if(method.equals(\"xdet\")){\n \tchooser.setFileFilter(new InnerXDetFileFilter());\n }\n chooser.setMultiSelectionEnabled(false);\n chooser.setDialogTitle(\"Export \"+method+\" File Details\");\n\n File selectedFile;\n chooser.requestFocusInWindow();\n int returnVal = chooser.showSaveDialog(alignFrame);\n\n if (returnVal == JFileChooser.APPROVE_OPTION) {\n\n selectedFile = chooser.getSelectedFile();\n\n if (!selectedFile.getName().toLowerCase().endsWith(method)) {\n selectedFile = new File(selectedFile.getAbsolutePath() + \".\"+method);\n }\n\n while (selectedFile.exists()) {\n int option = JOptionPane.showConfirmDialog(alignFrame,\n \"The file \" + chooser.getSelectedFile().getName() +\n \" already exists. Replace file?\",\n \"Replace File?\", JOptionPane.YES_NO_CANCEL_OPTION);\n\n if (option == JOptionPane.NO_OPTION) {\n chooser = new JFileChooser(lastSelectedFolder);\n if(method.equals(\"S3Det\")){\n \tchooser.setFileFilter(new InnerS3DetFileFilter());\n }\n else if(method.equals(\"xdet\")){\n \tchooser.setFileFilter(new InnerXDetFileFilter());\n }\n chooser.setMultiSelectionEnabled(false);\n chooser.setDialogTitle(\"Export \"+method+\" File Details\");\n\n returnVal = chooser.showSaveDialog(alignFrame);\n\n if (returnVal == JFileChooser.CANCEL_OPTION) {\n return;\n } else {\n selectedFile = chooser.getSelectedFile();\n\n if (!selectedFile.getName().toLowerCase().endsWith(\".\"+method)) {\n selectedFile = new File(selectedFile.getAbsolutePath() + \".\"+method);\n }\n }\n } else { // YES option\n break;\n }\n }\n\n alignFrame.setCursor(new Cursor(Cursor.WAIT_CURSOR));\n\n try {\n selectedFile = chooser.getSelectedFile();\n\n if (!selectedFile.getName().toLowerCase().endsWith(\".\"+method)) {\n selectedFile = new File(selectedFile.getAbsolutePath() + \".\"+method);\n }\n\n if (selectedFile.exists()) {\n selectedFile.delete();\n }\n \t\ttry{\n\t selectedFile.createNewFile();\n\t // Here comes the actual method file export! \n\t if(method.equals(\"S3Det\")){\n\t \tAlignmentExporter.saveFile(alignFrame.getMethods().getS3DetObject().getFilename(),selectedFile);\n\t }\n\t else if(method.equals(\"xdet\")){\n\t \tAlignmentExporter.saveFile(alignFrame.getMethods().getxDetObject().getFilename(),selectedFile);\t \n\t }\n \t\t}\n \t\tcatch(FileNotFoundException ex){\n \t\t\tJOptionPane.showMessageDialog(alignFrame,ex.getMessage() + \" in the specified directory.\",\"Error Exporting \"+method+\" File\",JOptionPane.ERROR_MESSAGE);\n \t\t\treturn;\n \t\t}\n lastSelectedFolder = selectedFile.getPath();\n\n } catch (IOException ex) {\n JOptionPane.showMessageDialog(alignFrame,\n \"An error occured when exporting \"+method+\" file.\",\n \"Error Exporting \"+method+\" File\",\n JOptionPane.ERROR_MESSAGE);\n ex.printStackTrace();\n }\n\n alignFrame.setCursor(new Cursor(Cursor.DEFAULT_CURSOR));\n }\n }", "@Override\r\n\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\tString fileName=JOptionPane.showInputDialog(\"Enter the File name without any extension\");\r\n\t\t\ttheGame.save(fileName);\r\n\t\t}", "public void importCA(File certfile){\n try {\n File keystoreFile = new File(archivo);\n \n //copia .cer -> formato manipulacion\n FileInputStream fis = new FileInputStream(certfile);\n DataInputStream dis = new DataInputStream(fis);\n byte[] bytes = new byte[dis.available()];\n dis.readFully(bytes);\n ByteArrayInputStream bais = new ByteArrayInputStream(bytes);\n bais.close();\n CertificateFactory cf = CertificateFactory.getInstance(\"X.509\");\n Certificate certs = cf.generateCertificate(bais);\n //System.out.println(certs.toString());\n //inic keystore\n FileInputStream newib = new FileInputStream(keystoreFile);\n KeyStore keystore = KeyStore.getInstance(INSTANCE);\n keystore.load(newib,ksPass );\n String alias = (String)keystore.aliases().nextElement();\n newib.close();\n \n //recupero el array de certificado del keystore generado para CA\n Certificate[] certChain = keystore.getCertificateChain(alias);\n certChain[0]= certs; //inserto el certificado entregado por CA\n //LOG.info(\"Inserto certifica CA: \"+certChain[0].toString());\n //recupero la clave privada para generar la nueva entrada\n Key pk = (PrivateKey)keystore.getKey(alias, ksPass); \n keystore.setKeyEntry(alias, pk, ksPass, certChain);\n LOG.info(\"Keystore actualizado: [OK]\");\n \n FileOutputStream fos = new FileOutputStream(keystoreFile);\n keystore.store(fos,ksPass);\n fos.close(); \n \n } catch (FileNotFoundException ex) {\n LOG.error(\"Error - no se encuentra el archivo\",ex);\n } catch (IOException | NoSuchAlgorithmException | CertificateException | KeyStoreException ex) {\n LOG.error(\"Error con el certificado\",ex);\n } catch (UnrecoverableKeyException ex) {\n LOG.error(ex);\n }\n }", "private void selectXmlFile() {\n\t\t JFileChooser chooser = new JFileChooser();\n\t\t // ask for a file to open\n\t\t int option = chooser.showSaveDialog(this);\n\t\t if (option == JFileChooser.APPROVE_OPTION) {\n\t\t\t // get pathname and stick it in the field\n\t\t\t xmlfileField.setText(\n chooser.getSelectedFile().getAbsolutePath());\n\t\t } \n }", "private void promptToOpen()\r\n {\r\n // WE'LL NEED THE GUI\r\n AnimatedSpriteEditor singleton = AnimatedSpriteEditor.getEditor();\r\n AnimatedSpriteEditorGUI gui = singleton.getGUI();\r\n \r\n // AND NOW ASK THE USER FOR THE POSE TO OPEN\r\n JFileChooser poseFileChooser = new JFileChooser(POSES_PATH);\r\n int buttonPressed = poseFileChooser.showOpenDialog(gui);\r\n \r\n // ONLY OPEN A NEW FILE IF THE USER SAYS OK\r\n if (buttonPressed == JFileChooser.APPROVE_OPTION)\r\n {\r\n // GET THE FILE THE USER ENTERED\r\n currentFile = poseFileChooser.getSelectedFile();\r\n currentFileName = currentFile.getName();\r\n currentPoseName = currentFileName.substring(0, currentFileName.indexOf(\".\"));\r\n saved = true;\r\n \r\n // AND PUT THE FILE NAME IN THE TITLE BAR\r\n String appName = gui.getAppName();\r\n gui.setTitle(appName + APP_NAME_FILE_NAME_SEPARATOR + currentFile); \r\n \r\n // AND LOAD THE .pose (XML FORMAT) FILE\r\n poseIO.loadPose(currentFile.getAbsolutePath());\r\n singleton.getStateManager().getPoseurStateManager().clearClipboardShape();\r\n }\r\n }", "public String getFileChosen() \n {\n return fileName.getText();\n }", "private void activateFile(APDU apdu, byte[] buffer) \r\n \t //@ requires current_applet(this) &*& [1/2]valid() &*& APDU(apdu, buffer) &*& array_slice(buffer, 0, buffer.length, _);\r\n \t //@ ensures current_applet(this) &*& [1/2]valid() &*& APDU(apdu, buffer) &*& array_slice(buffer, 0, buffer.length, _);\r\n\t{\r\n\t\t// check P2\r\n\t\tif (buffer[ISO7816.OFFSET_P2] != (byte) 0x0C)\r\n\t\t\tISOException.throwIt(ISO7816.SW_WRONG_P1P2);\r\n\t\t// P1 determines the select method\r\n\t\tswitch (buffer[ISO7816.OFFSET_P1]) {\r\n\t\tcase (byte) 0x02:\r\n\t\t\tselectByFileIdentifier(apdu, buffer);\r\n\t\t\tbreak;\r\n\t\tcase (byte) 0x08:\r\n\t\t\tselectByPath(apdu, buffer);\r\n\t\t\tbreak;\r\n\t\tdefault:\r\n\t\t\tISOException.throwIt(ISO7816.SW_INCORRECT_P1P2);\r\n\t\t\tbreak; //~allow_dead_code\r\n\t\t}\r\n\t\t// check if activating this file is allowed\r\n\t\tif (!fileAccessAllowed(UPDATE_BINARY))\r\n\t\t\tISOException.throwIt(ISO7816.SW_SECURITY_STATUS_NOT_SATISFIED);\r\n\t\tJCSystem.beginTransaction();\r\n\t\t//@ open valid(); // hard to eliminate\r\n\t\t//@ open selected_file_types(_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, ?sf2);\r\n\t\t//@ sf2.castElementaryToFile();\r\n\t\tselectedFile.setActive(true);\r\n\t\t//@ sf2.castFileToElementary();\r\n\t\t////@ close valid(); // auto\r\n\t\tJCSystem.commitTransaction();\r\n\t}", "@FXML\n\tvoid downloadBtnClicked(ActionEvent event) {\n\t\tFileChooser fileChooser = new FileChooser();\n\n\t\t// Set extension filter for docx files only\n\t\tFileChooser.ExtensionFilter extFilter = new FileChooser.ExtensionFilter(\"DOCX files (*.docx)\", \"*.docx\");\n\t\tfileChooser.getExtensionFilters().add(extFilter);\n\n\t\t// Show save file dialog\n\t\tStage window = (Stage) ((Node) event.getSource()).getScene().getWindow();\n\t\tFile theFile = fileChooser.showSaveDialog(window);\n\t\tFileOutputStream fos = null;\n\t\ttry {\n\t\t\tfos = new FileOutputStream(theFile);\n\t\t} catch (FileNotFoundException e1) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te1.printStackTrace();\n\t\t} // get path\n\t\tBufferedOutputStream bos = new BufferedOutputStream(fos);\n\t\ttry {\n\t\t\tbos.write(examFile.getMybytearray(), 0, examFile.getSize());\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\ttry {\n\t\t\tbos.flush();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\ttry {\n\t\t\tfos.flush();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "@Override\n\t\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\t\tJFileChooser jc=new JFileChooser();\n\t\t\t\t\tjc.setFileFilter(new FileNameExtensionFilter(\".xml\", \".xml\"));\n\t\t\t\t\tjc.setFileFilter(new FileNameExtensionFilter(\".json\", \".json\"));\n\t\t\t\t\tint resp=jc.showSaveDialog(null);\n\t\t\t\t\tString url=\"\";\n\t\t\t\t\tString name=\"\";\n\t\t\t\t\tif(resp==jc.APPROVE_OPTION){\n\t\t\t\t\t\tFile file=jc.getSelectedFile();\n\t\t\t\t\t\turl=file.getPath()+jc.getFileFilter().getDescription();\n\t\t\t\t\t\tname=file.getName()+jc.getFileFilter().getDescription();\n\t\t\t\t\tif(name.charAt(name.length()-1)=='l'){\n\t\t\t\t\t\tSaveAndLoadXml.save(url);\n\t\t\t\t\t}else{\n\t\t\t\t\t\tnew JasonSave().saveJson(url);\n\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}", "public void directoryPathPrompt() {\n System.out.println(\"Enter a file path to export the PDF of the schedule to.\");\n }", "private void fixFileOption() {\n\t\t\n\t\tnewFileOption.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tnew CreateFileFrame(main, true , controller);\n\t\t\t}\n\t\t});\n\t\t\n\t\t\n\t\topenFileOption.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tJFileChooser fileSelector = new JFileChooser();\n\t\t\t\tFileNameExtensionFilter fileFilter = new FileNameExtensionFilter(\"ASM , IN, OUT\", \"asm\", \"in\",\"out\");\n\t\t\t\tfileSelector.setFileFilter(fileFilter);\n\t\t\t\t\n\t\t\t\tint option = fileSelector.showOpenDialog(openFileOption);\n\t\t\t\t\n\t\t\t\tif(option == JFileChooser.APPROVE_OPTION){\n\t\t\t\t\tString path = fileSelector.getSelectedFile().getPath();\n\t\t\t\t\tString extension = path.substring(path.lastIndexOf('.') + 1);\n\t\t\t\t\t\n\t\t\t\t\tif (extension.equalsIgnoreCase(\"in\")) {\n\t\t\t\t\t\tcontroller.changeIn(path);\n\t\t\t\t\t}\n\t\t\t\t\telse if (extension.equalsIgnoreCase(\"out\")) {\n\t\t\t\t\t\tcontroller.changeOut(path);\n\t\t\t\t\t}\n\t\t\t\t\telse if (extension.equalsIgnoreCase(\"asm\")) {\n\t\t\t\t\t\tcontroller.changeProgram(path);\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\t\n\t\texitOption.addActionListener(new ActionListener(){\n\t\t\tpublic void actionPerformed(ActionEvent arg0){\n\t\t\t\toptionExit();\n\t\t\t}\n\t\t});\n\t}", "private void popHelp() {\n try {\n //File file=new File(filepath);\n Desktop.getDesktop().open(new java.io.File(\"help.pdf\"));\n } catch (IOException ex) {\n JOptionPane.showMessageDialog(rootPane,\"File not found or supported\");\n }\n }", "public String chooserFile(String def) {\r\n\t\tString res = \"\";\r\n\t\tString defpath = def;\r\n\t\tJFileChooser chooser = new JFileChooser();\r\n\t\tchooser.setCurrentDirectory(new File(defpath));\r\n\r\n\t\tchooser.setFileFilter(new javax.swing.filechooser.FileFilter() {\r\n\t\t\tpublic boolean accept(File f) {\r\n\t\t\t\treturn f.getName().toLowerCase().endsWith(\".xlsx\") || f.isDirectory();\r\n\t\t\t}\r\n\r\n\t\t\tpublic String getDescription() {\r\n\t\t\t\treturn \"Excel Mapping File\";\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\tint r = chooser.showOpenDialog(new JFrame());\r\n\t\tif (r == JFileChooser.APPROVE_OPTION) {\r\n\t\t\t//String name = chooser.getSelectedFile().getName();\r\n\t\t\tString path = chooser.getSelectedFile().getPath();\r\n\t\t\t//System.out.println(name + \"\\n\" + path);\r\n\t\t\tres = path;\r\n\t\t} else if (r == JFileChooser.CANCEL_OPTION) {\r\n\t\t\tJOptionPane.showMessageDialog(this, \"User cancelled operation. No file was chosen.\");\r\n\t\t} else if (r == JFileChooser.ERROR_OPTION) {\r\n\t\t\tJOptionPane.showMessageDialog(this, \"An error occured. No file was chosen.\");\r\n\t\t} else {\r\n\t\t\tJOptionPane.showMessageDialog(this, \"Unknown operation occured.\");\r\n\t\t}\r\n\t\treturn res;\r\n\t}", "private void browseInputButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_browseInputButtonActionPerformed\n JFileChooser chooser = new JFileChooser();\n FileNameExtensionFilter filter = new FileNameExtensionFilter(\"XLS file\", new String[]{\"xls\", \"xlsx\"});\n chooser.setFileFilter(filter);\n chooser.setCurrentDirectory(new java.io.File(\".\"));\n chooser.setDialogTitle(\"Select a file\");\n chooser.setFileSelectionMode(JFileChooser.FILES_AND_DIRECTORIES);\n chooser.setAcceptAllFileFilterUsed(false);\n\n if (chooser.showOpenDialog(null) == JFileChooser.APPROVE_OPTION) {\n FILEPATH.setText(chooser.getSelectedFile().getPath());\n }\n }", "@Override\n public void actionPerformed(ActionEvent e) {\n File selectedFile;\n JFileChooser fileChooser = new JFileChooser();\n int reply = fileChooser.showOpenDialog(null);\n if (reply == JFileChooser.APPROVE_OPTION) {\n selectedFile = fileChooser.getSelectedFile();\n geefBestandTextField1.setText(selectedFile.getAbsolutePath());\n }\n\n }", "private void openFile() {\n\t\t\n\t\n\t\t\t\n\t\tFile file = jfc.getSelectedFile();\n\t\tint a = -1;\n\t\tif(file==null&&!jta.getText().equals(\"\"))\n\t\t{\n\t\t\ta = JOptionPane.showConfirmDialog(this, \"저장?\");\n\t\t\n\t\t}\n\t\tswitch (a){\n\t\tcase 0:\n\t\t\ttry {\n\t\t\t\tint c = -1;\n\t\t\t\tif(file==null)\n\t\t\t\t{\n\t\t\t\t\tc = jfc.showSaveDialog(this);\n\t\t\t\t}\n\t\t\t\tif(file!= null || c ==0)\n\t\t\t\t{\t\n\t\t\t\t\tFileWriter fw = new FileWriter(jfc.getSelectedFile());\n\t\t\t\t\tfw.write(jta.getText());\n\t\t\t\t\tfw.close();\n\t\t\t\t\tSystem.out.println(\"파일을 저장하였습니다\");\n\t\t\t\t}\n\t\t\t} catch (Exception e2) {\n\t\t\t\t// TODO: handle exception\n\t\t\t\tSystem.out.println(e2.getMessage());\n\t\t\t}\n\t\tbreak;\n\t\tcase 1:\n\t\t\ttry {\n\t\t\t\tint j=-1;\n\t\t\t\tif(file==null)\n\t\t\t\t{\n\t\t\t\t\tj = jfc.showOpenDialog(this);\n\t\t\t\t}\n\t\t\t\tif(file!= null || j == 1)\n\t\t\t\t{\t\n\t\t\t\t\tFileReader fr = new FileReader(file);\n\n\t\t\t\t\tString str=\"\";\n\t\t\t\t\twhile((j=fr.read())!=-1)\n\t\t\t\t\t{\n\t\t\t\t\t\tstr = str+(char)j;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tjta.setText(str);\n\t\t\t\t\t\n\t\t\t\t\tsetTitle(file.getName());\n\t\t\t\t\t\n\t\t\t\t\tfr.close();\n\t\t\t\t}\n\t\t\t}\t\n\t\t\tcatch (Exception e2) {\n\t\t\t\t// TODO: handle exception\n\t\t\t\tSystem.out.println(e2.getMessage());\n\t\t\t}\n\t\t\tbreak;\n\t\t}\n\t\tint d= jfc.showOpenDialog(this);\n\t\t\n\t\tif(d==0)\n\t\t\ttry {\n\t\t\t\tFileReader fr = new FileReader(jfc.getSelectedFile());\n\t\t\t\tint l;\n\t\t\t\tString str=\"\";\n\t\t\t\twhile((l=fr.read())!=-1)\n\t\t\t\t{\n\t\t\t\t\tstr = str+(char)l;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tjta.setText(str);\n\t\t\t\t\n\t\t\t\tfr.close();\n\t\n\t\t\t\t\t\n\t\t\t} catch (Exception e2) {\n\t\t\t\t// TODO: handle exception\n\t\t\t\tSystem.out.println(e2.getMessage());\n\t\t\t}\n\t}", "public String chooserFileTrans(String def) {\r\n\t\tString res = \"\";\r\n\t\tString defpath = def;\r\n\t\tJFileChooser chooser = new JFileChooser();\r\n\t\tchooser.setCurrentDirectory(new File(defpath));\r\n\r\n\t\tchooser.setFileFilter(new javax.swing.filechooser.FileFilter() {\r\n\t\t\tpublic boolean accept(File f) {\r\n\t\t\t\treturn f.getName().toLowerCase().endsWith(\".xslt\") || f.isDirectory();\r\n\t\t\t}\r\n\r\n\t\t\tpublic String getDescription() {\r\n\t\t\t\treturn \"XSLT FILE\";\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\tint r = chooser.showOpenDialog(new JFrame());\r\n\t\tif (r == JFileChooser.APPROVE_OPTION) {\r\n\t\t\t//String name = chooser.getSelectedFile().getName();\r\n\t\t\tString path = chooser.getSelectedFile().getPath();\r\n\t\t\t//System.out.println(name + \"\\n\" + path);\r\n\t\t\tres = path;\r\n\t\t} else if (r == JFileChooser.CANCEL_OPTION) {\r\n\t\t\tJOptionPane.showMessageDialog(this, \"User cancelled operation. No file was chosen.\");\r\n\t\t} else if (r == JFileChooser.ERROR_OPTION) {\r\n\t\t\tJOptionPane.showMessageDialog(this, \"An error occured. No file was chosen.\");\r\n\t\t} else {\r\n\t\t\tJOptionPane.showMessageDialog(this, \"Unknown operation occured.\");\r\n\t\t}\r\n\t\treturn res;\r\n\t}", "private void jButtonBrowseOutputFileActionPerformed(ActionEvent e) {\n\t\tJFileChooser fileChooser = new JFileChooser();\n\t\tint result = fileChooser.showSaveDialog(this);\n\t\tif (result == JFileChooser.APPROVE_OPTION) {\n\t\t\tFile file = fileChooser.getSelectedFile();\n\t\t\tjTextFieldOutputFile.setText(file.getAbsolutePath());\n\t\t}\n\t}", "private void getKeyAndCerts(String filePath, String pw)\n throws GeneralSecurityException, IOException {\n System.out\n .println(\"reading signature key and certificates from file \" + filePath + \".\");\n\n FileInputStream fis = new FileInputStream(filePath);\n KeyStore store = KeyStore.getInstance(\"PKCS12\", \"IAIK\");\n store.load(fis, pw.toCharArray());\n\n Enumeration<String> aliases = store.aliases();\n String alias = (String) aliases.nextElement();\n privKey_ = (PrivateKey) store.getKey(alias, pw.toCharArray());\n certChain_ = Util.convertCertificateChain(store.getCertificateChain(alias));\n fis.close();\n }", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tString url = \"file:///C:/Users/J1637009/Desktop/aaaaa.pdf\";\n\t\t\t\tString url2 = \"file:///N:/AE/2017/‹l•[/ƒJƒPƒnƒVAEƒG[ƒWƒFƒ“ƒg‹l•[/doubLeiƒNƒŠƒGƒCƒeƒBƒuEj_18.pdf\";\n\t\t\t\t\n\t\t\t\t\n\t\t try {\n\t\t\t\t\tjava.awt.Desktop.getDesktop().browse(java.net.URI.create(url2));\n\t\t\t\t} catch (IOException 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\t\n\t\t\t}", "boolean importCertificate(InputStream is)\n {\n\tCertificateFactory cf = null;\n\tX509Certificate cert = null;\n\n\ttry\n\t{\n\t cf = CertificateFactory.getInstance(\"X.509\");\n\t cert = (X509Certificate)cf.generateCertificate(is);\n\n\t // Changed the certificate from the active set into the \n\t // inactive Import set. This is for import the certificate from\n\t // the store when the user clicks on Apply.\n\t //\n\t if (getRadioPos() == mh.getMessage(\"SignedApplet_value\"))\n \t model.deactivateImpCertificate(cert);\n\t else if (getRadioPos() == mh.getMessage(\"SecureSite_value\"))\n \t model.deactivateImpHttpsCertificate(cert);\n\t}\n\tcatch (CertificateParsingException cpe)\n\t{\n\t // It is PKCS#12 format.\n\t return false;\n\t}\n\tcatch (CertificateException e)\n\t{\n\t // Wrong format of the selected file\n\t DialogFactory.showExceptionDialog(this, e, getMessage(\"dialog.import.format.text\"), getMessage(\"dialog.import.error.caption\"));\n\t}\n\n\treturn true;\n }", "public void actionPerformed(java.awt.event.ActionEvent evt) {\n if (!askSave()) {\n return;\n }\n //loop until user choose valid file\n while (true) {\n int result = chooser.showOpenDialog(form);\n //check if user chooser approve option\n if (result == JFileChooser.APPROVE_OPTION) {\n File openFile = chooser.getSelectedFile();\n //check if open file is exist\n if (openFile.exists()) {\n file = openFile;\n text.setText(\"\");\n setSaveTitle(openFile.getName());\n writeToTextArea(openFile);\n saved = true;\n break;\n } else {\n JOptionPane.showMessageDialog(form, \"File not found\", \"Open\", JOptionPane.OK_OPTION);\n }\n } else {\n break;\n }\n\n }\n }", "public void actionPerformed(ActionEvent InputEvent)\r\n {\n String DefaultSaveFileName = createDefaultSaveFileName();\r\n File DefaultSaveFile = new File(FilePathnameString\r\n + File.separatorChar\r\n + DefaultSaveFileName);\r\n\t\t JFileChooser SaveFileChooser = new JFileChooser(DefaultSaveFile);\r\n SaveFileChooser.setDialogTitle(\"Select file into which to save search results\");\r\n SaveFileChooser.setSelectedFile(DefaultSaveFile);\r\n SaveFileChooser.setFileSelectionMode(JFileChooser.FILES_ONLY);\r\n\t\t int ChooseState = SaveFileChooser.showSaveDialog(MainFrame);\r\n\t\t if (ChooseState == JFileChooser.APPROVE_OPTION)\r\n\t\t {\r\n\t\t\t File SaveFile = SaveFileChooser.getSelectedFile();\r\n\t\t\t if (SaveFile == null)\r\n\t\t JOptionPane.showMessageDialog(MainFrame,\r\n\t\t \"No file chosen - no save performed\");\r\n\t\t\t else\r\n\t\t\t {\r\n String ResultsString = getResultsString();\r\n if (ResultsString == null)\r\n \t\t JOptionPane.showMessageDialog(MainFrame,\r\n\t\t \"No search results to save\");\r\n else\r\n {\r\n \t\t\t String SavePathString = SaveFile.getPath();\r\n try\r\n {\r\n FileWriter SaveFileWriter = new FileWriter(SavePathString);\r\n SaveFileWriter.write(ResultsString);\r\n SaveFileWriter.close();\r\n }\r\n catch (Exception InputException)\r\n {\r\n \t\t JOptionPane.showMessageDialog(MainFrame,\r\n\t\t \"Error writing results file \"\r\n + SavePathString\r\n + \": \"\r\n + InputException);\r\n }\r\n }\r\n\t\t\t }\r\n\t\t }\r\n }", "public void confirmSelection() {\n\t\t//create and display an AlertDialog requesting a filename for the new capture\n\t\tAlertDialog.Builder builder = new AlertDialog.Builder(context);\n\t\tbuilder.setTitle(\"What did you hear?\");\n\t\tfinal EditText inputText = new EditText(context);\n\t\tinputText.setInputType(InputType.TYPE_CLASS_TEXT|InputType.TYPE_TEXT_FLAG_CAP_SENTENCES|InputType.TYPE_TEXT_FLAG_NO_SUGGESTIONS);\n\t\tbuilder.setView(inputText);\n\n\t\tbuilder.setPositiveButton(\"OK\", new DialogInterface.OnClickListener() { \n\t\t\t@Override\n\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t// execute the capture operations:\n\t\t\t\tfilename = inputText.getText().toString().trim();\n\t\t\t\tnew CaptureTask(context).execute();\n\t\t\t}\n\t\t});\n\t\tbuilder.setNegativeButton(\"Cancel\", new DialogInterface.OnClickListener() {\n\t\t\t@Override\n\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\tdialog.cancel();\n\t\t\t}\n\t\t});\n\t\tbuilder.show();\n\t}", "private void chooseRemaindersFile() {\n JFileChooser setEF = new JFileChooser(System.getProperty(\"user.home\"));\n setEF.setDialogType(JFileChooser.OPEN_DIALOG);\n setEF.showDialog(this, \"Выбрать файл\");\n remainderFile = setEF.getSelectedFile();\n putLog(\"Файл остатков: \" + remainderFile.getPath());\n jbParse.setEnabled(workingDirectory != null && remainderFile != null);\n }", "public static void main(String[] args){\n\n String mode = \"enc\";\n String data = \"\";\n String out = \"\";\n String path;\n String alg = \"unicode\";\n int key = 0;\n\n try {\n for (int i = 0; i < args.length; i++) {\n if (args[i].equals(\"-data\") || args[i].equals(\"-in\")) {\n data = args[i + 1];\n }\n if (args[i].equals(\"-mode\")) {\n mode = args[i + 1];\n }\n if (args[i].equals(\"-key\")) {\n key = Integer.parseInt(args[i + 1]);\n }\n if (args[i].equals(\"-out\")) {\n out = args[i + 1];\n }\n if (args[i].equals(\"-alg\")) {\n alg = args[i + 1];\n }\n }\n } catch (ArrayIndexOutOfBoundsException e) {\n System.out.println(\"Missing option\");\n }\n\n File file = new File(data);\n\n if (file.exists() && !file.isDirectory()) {\n path = data;\n\n switch (mode){\n case \"enc\":\n EncryptionContext encryptionContext = new EncryptionContext();\n if(alg.equals(\"shift\")) {\n encryptionContext.setMethod(new ShiftEncryptionMethod());\n } else {\n encryptionContext.setMethod(new UnicodeTableEncryptionMethod());\n }\n data = encryptionContext.encryptFromFile(path, key);\n break;\n\n case \"dec\":\n DecryptionContext decryptionContext = new DecryptionContext();\n if(alg.equals(\"shift\")) {\n decryptionContext.setMethod(new ShiftDecryptionMethod());\n } else {\n decryptionContext.setMethod(new UnicodeTableDecryptionMethod());\n }\n data = decryptionContext.decryptFromFile(path,key);\n break;\n }\n\n } else {\n switch (mode){\n case \"enc\":\n EncryptionContext encryptionContext = new EncryptionContext();\n if(alg.equals(\"shift\")) {\n encryptionContext.setMethod(new ShiftEncryptionMethod());\n } else {\n encryptionContext.setMethod(new UnicodeTableEncryptionMethod());\n }\n data = encryptionContext.encrypt(key, data);\n break;\n\n case \"dec\":\n DecryptionContext decryptionContext = new DecryptionContext();\n if(alg.equals(\"shift\")) {\n decryptionContext.setMethod(new ShiftDecryptionMethod());\n } else {\n decryptionContext.setMethod(new UnicodeTableDecryptionMethod());\n }\n data = decryptionContext.decrypt(key, data);\n break;\n }\n }\n\n if (out.isEmpty()) {\n System.out.println(data);\n } else {\n writeIntoFile(out, data);\n }\n\n }", "public void onClickOfChooseFile(View view) {\n Log.i(TAG, \"onClickOfChooseFile: \");\n if (ContextCompat.checkSelfPermission(this, Manifest.permission.READ_EXTERNAL_STORAGE) != PackageManager.PERMISSION_GRANTED) {\n\n if (ActivityCompat.shouldShowRequestPermissionRationale(this, Manifest.permission.READ_EXTERNAL_STORAGE)) {\n\n ActivityCompat.requestPermissions(this, new String[]{Manifest.permission.READ_EXTERNAL_STORAGE}, REQUEST_READ_EXTERNAL_STORAGE);\n\n } else {\n\n ActivityCompat.requestPermissions(this, new String[]{Manifest.permission.READ_EXTERNAL_STORAGE}, REQUEST_READ_EXTERNAL_STORAGE);\n }\n\n } else {\n //Go ahead with file choosing\n startIntentFileChooser();\n }\n }", "@Override\r\n public void actionPerformed(ActionEvent e) {\n \r\n if (Desktop.isDesktopSupported()) {\r\n try {\r\n File myFile = new File(\"E:\");\r\n Desktop.getDesktop().open(myFile);\r\n \r\n } catch (IOException ex) {\r\n // no application registered for PDFs\r\n }\r\n}\r\n \r\n \r\n }", "@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tJFileChooser chooser = new JFileChooser();\r\n\t\t\t\tint opt = chooser.showSaveDialog(null);\r\n\t\t\t\tif (opt == JFileChooser.APPROVE_OPTION) {\r\n\t\t\t\t\t\r\n\t\t\t\t\tFile file = chooser.getSelectedFile();\r\n\t\t\t\t\tif (FilenameUtils.getExtension(file.getName()).equalsIgnoreCase(user)) {\r\n\t\t\t\t\t\t// filename is OK as-is\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tfile = new File(file.toString() + \".\"+user);\r\n\t\t\t\t\t\tfile = new File(file.getParentFile(), FilenameUtils.getBaseName(file.getName()) + \".\"+user);\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tFileOutputStream fo = new FileOutputStream(file);\r\n\t\t\t\t\t\tObjectOutputStream oos = new ObjectOutputStream(fo);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\toos.writeUTF(user);\r\n\t\t\t\t\t\toos.writeObject(StudentArray);\r\n\t\t\t\t\t\toos.writeObject(tab);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\toos.close();\r\n\t\t\t\t\t\tfo.close();\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t} catch (IOException e1) {\r\n\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\te1.printStackTrace();\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t}", "private void saveFileChooser(){\n JFileChooser chooser = new JFileChooser();\n // Note: source for ExampleFileFilter can be found in FileChooserDemo,\n // under the demo/jfc directory in the JDK.\n //ExampleFileFilter filter = new ExampleFileFilter();\n// filter.addExtension(\"jpg\");\n// filter.addExtension(\"gif\");\n// filter.setDescription(\"JPG & GIF Images\");\n // chooser.setFileFilter(new javax.swing.plaf.basic.BasicFileChooserUI.AcceptAllFileFilter());\n int returnVal = chooser.showSaveDialog(this.getContentPane());\n if(returnVal == JFileChooser.APPROVE_OPTION) {\n System.out.println(\"You chose to open this file: \" +\n chooser.getSelectedFile().getName());\n try{\n this.generarReporte(chooser.getSelectedFile().getAbsolutePath());\n }\n catch (Exception e){\n System.out.println(\"Imposible abrir archivo \" + e);\n }\n }\n }", "public void openFileDialog() {\n\tswitch(buttonAction) {\n\t case SELECT_FILES:\n openFileDialog(fileUpload, true);\n break;\n\t case SELECT_FILE:\n default:\n openFileDialog(fileUpload, false);\n break;\n\t}\n }", "@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\t\tJFileChooser jfc=new JFileChooser();\n\t\t\n\t\t//显示文件和目录\n\t\tjfc.setFileSelectionMode(JFileChooser.FILES_AND_DIRECTORIES );\n\t\tjfc.showDialog(new JLabel(), \"选择\");\n\t\tFile file=jfc.getSelectedFile();\n\t\t\n\t\t//file.getAbsolutePath()获取到的绝对路径。\n\t\tif(file.isDirectory()){\n\t\t\tSystem.out.println(\"文件夹:\"+file.getAbsolutePath());\n\t\t}else if(file.isFile()){\n\t\t\tSystem.out.println(\"文件:\"+file.getAbsolutePath());\n\t\t}\n\t\t\n\t\t//jfc.getSelectedFile().getName() 获取到文件的名称、文件名。\n\t\tSystem.out.println(jfc.getSelectedFile().getName());\n\t\t\n\t}", "private void saveDialog() {\n JFileChooser chooser = new JFileChooser();\n \n FileFilter ff = new FileFilter() {\n\n @Override\n public boolean accept(File f) {\n // TODO Auto-generated method stub\n return f.getName().endsWith(FILE_EXTENSION);\n }\n\n @Override\n public String getDescription() {\n return \"CSV\";\n }\n\n };\n chooser.addChoosableFileFilter(ff);\n chooser.setAcceptAllFileFilterUsed(true);\n chooser.setFileFilter(ff);\n chooser.showSaveDialog(null);\n this.file = chooser.getSelectedFile();\n //this.file = new File(chooser.getSelectedFile().getName() + INSTANCE.FILE_EXTENSION);\n\n\n try {\n\n if (file != null) {\n this.saveData();\n this.isModifed = false;\n }\n\n } catch (Exception e) {\n JOptionPane.showMessageDialog(null, e.getMessage(), \"Error Saving File\", JOptionPane.ERROR_MESSAGE);\n\n }\n\n }", "private void jCBListFoodActionPerformed(java.awt.event.ActionEvent evt) {\n int aux2 = jCBListFood.getSelectedIndex();\n if (aux2 != -1) {\n filePath = \"C:\\\\PGS\\\\nutricion\\\\\" + jCBListFood.getSelectedItem();\n controller.openDocument(filePath);\n } else {\n filePath = \"\";\n }\n }", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\ttxtContent.setText(\"\");\n\t\t\t\tif (filename == null) {\n\t\t\t\t\tJOptionPane.showMessageDialog(frame, \"You haven't selected any files yet!\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\telse if (cbOption.getSelectedItem().toString() == \"Encrypt\") {\n\t\t\t\t\tswitch (cbAlgorithm.getSelectedItem().toString()) {\n\t\t\t\t\tcase \"AES\":\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tAES.encrypt(keyStr, filename, new File(\"document.encrypted\"));\n\t\t\t\t\t\t\tBufferedReader br = new BufferedReader(new FileReader(\"document.encrypted\"));\n\t\t\t\t\t\t\tString line;\n\t\t\t\t\t\t\twhile((line = br.readLine()) != null) {\n\t\t\t\t\t\t \ttxtContent.append(line + \"\\n\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbr.close();\n\t\t\t\t\t\t} catch (CryptoException | IOException 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\tJOptionPane.showMessageDialog(frame, \"Wrong key size. Your key must contain exactly \" + String.valueOf(keyLength/4) +\n\t\t\t\t\t\t\t\t\t\" characters including WS!\");\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase \"DES\":\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tDES.encrypt(keyStr, filename, new File(\"document.encrypted\"));\n\t\t\t\t\t\t\tBufferedReader br = new BufferedReader(new FileReader(\"document.encrypted\"));\n\t\t\t\t\t\t\tString line;\n\t\t\t\t\t\t\twhile((line = br.readLine()) != null) {\n\t\t\t\t\t\t \ttxtContent.append(line + \"\\n\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbr.close();\n\t\t\t\t\t\t} catch (InvalidKeySpecException | CryptoException | IOException 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\tJOptionPane.showMessageDialog(frame, \"Wrong key size. Your key must contain exactly 16 characters including WS!\");\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tdefault:\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tkeyPath = cbSelectKey.getSelectedItem().toString();\n\t\t\t\t\t\t\tkeyStr = Base64.getEncoder().encodeToString(RSA.loadPublicKey(URL_DIR + keyPath).getEncoded());\n\t\t\t\t\t\t\tRSA.encrypt(keyStr, filename, new File(\"document.encrypted\"));\n\t\t\t\t\t\t\tBufferedReader br = new BufferedReader(new FileReader(\"document.encrypted\"));\n\t\t\t\t\t\t\tString line;\n\t\t\t\t\t\t\twhile((line = br.readLine()) != null) {\n\t\t\t\t\t\t\t\ttxtContent.append(line + \"\\n\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbr.close();\n\t\t\t\t\t\t} catch (Exception e1) {\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tswitch (cbAlgorithm.getSelectedItem().toString()) {\n\t\t\t\t\tcase \"AES\":\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tAES.decrypt(keyStr, filename, new File(\"document.decrypted\"));\n\t\t\t\t\t\t\tBufferedReader br = new BufferedReader(new FileReader(\"document.decrypted\"));\n\t\t\t\t\t\t\tString line;\n\t\t\t\t\t\t\twhile((line = br.readLine()) != null) {\n\t\t\t\t\t\t\t\ttxtContent.append(line + \"\\n\");\n\t\t\t\t\t\t \thMACLine = line;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tbr.close();\n\t\t\t\t\t\t\ttxtFileMac.setText(hMACLine.substring(hMACLine.length() - 64));\n\t\t\t\t\t\t\ttxtCalculatedMac.setText(HMAC.hmacDigestDecrypt(new File(\"document.decrypted\"), keyStr));\n\t\t\t\t\t\t\tlblPercent.setVisible(true);\n\t\t\t\t\t\t\tlblPercent.setText(Integer.toString(ByteDifference(txtFileMac.getText().toCharArray(), txtCalculatedMac.getText().toCharArray())) + \"%\");\n\t\t\t\t\t\t\trewritingHashedFile(new File(\"document.decrypted\"));\n\t\t\t\t\t\t} catch (CryptoException | IOException 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\t\n\t\t\t\t\t\t\tJOptionPane.showMessageDialog(frame, \"Wrong key size. Your key must contain exactly \" + String.valueOf(keyLength/4) +\n\t\t\t\t\t\t\t\t\t\" characters including WS!\");\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase \"DES\":\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tDES.decrypt(keyStr, filename, new File(\"document.decrypted\"));\n\t\t\t\t\t\t\tBufferedReader br = new BufferedReader(new FileReader(\"document.decrypted\"));\n\t\t\t\t\t\t\tString line;\n\t\t\t\t\t\t\twhile((line = br.readLine()) != null) {\n\t\t\t\t\t\t\t\ttxtContent.append(line + \"\\n\");\n\t\t\t\t\t\t \thMACLine = line;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tbr.close();\n\t\t\t\t\t\t\ttxtFileMac.setText(hMACLine.substring(hMACLine.length() - 64));\n\t\t\t\t\t\t\ttxtCalculatedMac.setText(HMAC.hmacDigestDecrypt(new File(\"document.decrypted\"), keyStr));\n\t\t\t\t\t\t\tlblPercent.setVisible(true);\n\t\t\t\t\t\t\tlblPercent.setText(Integer.toString(ByteDifference(txtFileMac.getText().toCharArray(), txtCalculatedMac.getText().toCharArray())) + \"%\");\n\t\t\t\t\t\t\trewritingHashedFile(new File(\"document.decrypted\"));\n\t\t\t\t\t\t} catch (InvalidKeySpecException | CryptoException | IOException 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\tJOptionPane.showMessageDialog(frame, \"Wrong key size. Your key must contain exactly 16 characters including WS!\");\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tdefault:\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tkeyPath = cbSelectKey.getSelectedItem().toString();\n\t\t\t\t\t\t\tkeyStr = Base64.getEncoder().encodeToString(RSA.loadPrivateKey(URL_DIR + keyPath).getEncoded());\n\t\t\t\t\t\t\tpubKeyStr = Base64.getEncoder().encodeToString(RSA.loadPublicKey(URL_DIR + keyPath.replace(\"PrivateKey\", \"PublicKey\")).getEncoded());\n\t\t\t\t\t\t\tRSA.decrypt(keyStr, filename, new File(\"document.decrypted\"));\n\t\t\t\t\t\t\tBufferedReader br = new BufferedReader(new FileReader(\"document.decrypted\"));\n\t\t\t\t\t\t\tString line;\n\t\t\t\t\t\t\twhile((line = br.readLine()) != null) {\n\t\t\t\t\t\t \ttxtContent.append(line);\n\t\t\t\t\t\t \ttxtContent.append(\"\\n\");\n\t\t\t\t\t\t \thMACLine = line;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbr.close();\n\t\t\t\t\t\t\ttxtFileMac.setText(hMACLine.substring(hMACLine.length() - 64));\n\t\t\t\t\t\t\ttxtCalculatedMac.setText(HMAC.hmacDigestDecrypt(new File(\"document.decrypted\"), pubKeyStr));\n\t\t\t\t\t\t\tlblPercent.setVisible(true);\n\t\t\t\t\t\t\tlblPercent.setText(Integer.toString(ByteDifference(txtFileMac.getText().toCharArray(), txtCalculatedMac.getText().toCharArray())) + \"%\");\n\t\t\t\t\t\t\trewritingHashedFile(new File(\"document.decrypted\"));\n\t\t\t\t\t\t} catch (InvalidKeySpecException | CryptoException | IOException 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} catch (Exception e1) {\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}", "public void actionPerformed(ActionEvent e) {\r\n\r\n if (e.getActionCommand() == \"BATCH_SOURCE_FOLDER\") { \r\n \t JFileChooser fc = new JFileChooser();\r\n\r\n\t\t fc.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);\r\n\t\t int returnVal = fc.showDialog(RSMLGUI.this, \"Choose\");\r\n\t\t \r\n if (returnVal == JFileChooser.APPROVE_OPTION){ \r\n \t String fName = fc.getSelectedFile().toString();\r\n \t batchSourceFolder.setText(fName);\r\n }\r\n else SR.write(\"Choose folder cancelled.\"); \r\n }\r\n \r\n else if(e.getActionCommand() == \"BATCH_EXPORT\"){\r\n \t batchExport();\r\n }\r\n \r\n }", "public void openFile(ActionEvent e) {\r\n JFileChooser chooser = new JFileChooser();\r\n\r\n int returnVal = chooser.showOpenDialog(null);\r\n if (returnVal == JFileChooser.APPROVE_OPTION) {\r\n this.is_alg_started = false;\r\n this.is_already_renumbered = false;\r\n if (e.getActionCommand().equals(\"nodelist\")) {\r\n this.nodefileText.setText(chooser.getSelectedFile().getAbsolutePath());\r\n }\r\n if (e.getActionCommand().equals(\"edgelist\")) {\r\n this.edgeFileText.setText(chooser.getSelectedFile().getAbsolutePath());\r\n }\r\n }\r\n }", "private int askUserForSaveFile()\n {\n final JOptionPane optionPane = new JOptionPane(this.dialogExitMessage,\n JOptionPane.CLOSED_OPTION, JOptionPane.YES_NO_CANCEL_OPTION, this.dialogExitIcon);\n dialogFactory.showDialog(optionPane, this.dialogExitTitle, true);\n final int decision = getOptionFromPane(optionPane);\n return decision;\n }", "@Override\npublic void mouseReleased(MouseEvent e) {\n System.out.println(\"Mouse released\");\n Point mouse = e.getPoint();\n isImPress = false;\n isExPress = false;\n isImHover = importHover(mouse.getX(),mouse.getY());\n isExHover = exportHover(mouse.getX(),mouse.getY());\n isImChose = !isExportError();\n repaint();\n \n if(isImHover) { // import dialog activated\n isImChose = false;\n System.out.println(isImChose);\n System.out.println(isExportError());\n\n JFileChooser chooseImport = new JFileChooser();\n int validImport = chooseImport.showOpenDialog(null);\n if(!isExportError()) {\n brainFilePath = \"\";\n isImChose = isExportError();\n isImHover = importHover(mouse.getX(),mouse.getY());\n isImPress = isImHover;\n System.out.println(brainFilePath);\n System.out.println(isExportError());\n repaint();\n } \n if(validImport == JFileChooser.APPROVE_OPTION) {\n File holdImport = new File(chooseImport.getSelectedFile().getAbsolutePath());\n System.out.println(holdImport.toString());\n if(holdImport.exists()) {\n brainFilePath = holdImport.toString();\n isImHover = importHover(mouse.getX(),mouse.getY());\n isImPress = isImHover;\n isImChose = isExportError();\n repaint();\n }\n else {\n isImHover = importHover(mouse.getX(),mouse.getY());\n isImPress = isExportError();\n repaint();\n } \n }\n }\n \n if(isExHover) { // export dialog activated\n if(isImChose) {\n JFileChooser chooseExport = new JFileChooser();\n int validExport = chooseExport.showSaveDialog(null);\n if(validExport == JFileChooser.APPROVE_OPTION) {\n File holdExport = new File(chooseExport.getSelectedFile().getAbsolutePath());\n System.out.println(holdExport.toString());\n cFilePath = holdExport.toString();\n translateImport(brainFilePath,cFilePath);\n isImHover = importHover(mouse.getX(),mouse.getY());\n isImPress = isImHover;\n repaint();\n }\n else {\n isImHover = importHover(mouse.getX(),mouse.getY());\n isImPress = false; \n repaint(); \n } \n }\n }\n}", "public void execute_downloadSelectNotesCommand_invalidFileName() {\n DownloadSelectNotesCommand command = new DownloadSelectNotesCommand(INCORRECT_USERNAME,\n INCORRECT_PASSWORD, INCORRECT_MODULE_CODE, INCORRECT_FILE_INDEX);\n assertCommandFailure(command, model, commandHistory, Messages.MESSAGE_USERNAME_PASSWORD_ERROR\n + DownloadSelectNotesCommand.NEWLINE_SEPARATOR + DownloadSelectNotesCommand.MESSAGE_USAGE);\n }", "public static void main(String[] args) throws IOException, FileNotFoundException, org.json.simple.parser.ParseException, ParseException {\n System.out.println(\"you can specify your location of the file else default location will be continued you can enter no\");\r\n Json_ip jp=new Json_ip();\r\n jp.fpath=\"f.json\";\r\n Scanner sc=new Scanner(System.in);\r\n String path_e=sc.nextLine();\r\n if(!(path_e.toLowerCase()).equals(\"no\")){\r\n jp.fpath=path_e;\r\n }\r\n operations op=new operations();\r\n while(true){\r\n System.out.println(\"***************************************************************\");\r\n System.out.println(\"*************************OPTIONS*****************************\");\r\n System.out.println(\"Click corresponding number for specific operations \\n 1.create key \\n 2.Delete key\\n 3.Read Key \\n 4.Exit \\n\");\r\n int choice=sc.nextInt();\r\n \r\n switch(choice){\r\n case 1:\r\n System.out.println(\"Create the key \");\r\n op.create();\r\n break;\r\n case 2:\r\n System.out.println(\"Delete the Key\");\r\n op.delete();\r\n break;\r\n case 3:\r\n System.out.println(\"Read Key\");\r\n op.read();\r\n break;\r\n case 4:\r\n System.out.println(\"Exit\");\r\n return;\r\n default:\r\n System.out.println(\"Enter choice 1-4\");\r\n }\r\n }\r\n }", "@Override \n\tpublic void actionPerformed(ActionEvent arg0) {\n\t\tString newSelection =comboBox.getSelectedItem().toString(); \n\t\tSystem.out.println(newSelection);\n\t\t//check if it has actually changed.\n\t\tPath path = Paths.get(this.HotkeyFile);\n\t\tif (!newSelection.equals(path.getFileName().toString()))\n\t\t{\n\t\t\tSystem.out.println(\"New file chosen\");\n\t\t\n\t\t\t//reload new script to ahk program...\n\t\t\t//is ahk running?\n\t\t\ttry \n\t\t\t{\n\t\t\t\tif(HotKeyApp.isProcessRunning(this.AHKProcess))\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(\"AHK Running\");\n\t\t\t\t\tHotKeyApp.killProcess(this.AHKProcess);\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\tSystem.out.println(\"AHK Not Running\");\n\t\t\t\t\n\t\t\t\tDesktop dt = Desktop.getDesktop();\n\t\t\t dt.open(new File(path.getParent().toString(),newSelection));\n\t\t\t} \n\t\t\tcatch (Exception 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}", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jTextField1 = new javax.swing.JTextField();\n jTextField2 = new javax.swing.JTextField();\n jLabel2 = new javax.swing.JLabel();\n jLabel3 = new javax.swing.JLabel();\n jButton1 = new javax.swing.JButton();\n jButton2 = new javax.swing.JButton();\n jLabel1 = new javax.swing.JLabel();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setMinimumSize(new java.awt.Dimension(600, 600));\n getContentPane().setLayout(null);\n\n jTextField1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jTextField1ActionPerformed(evt);\n }\n });\n getContentPane().add(jTextField1);\n jTextField1.setBounds(220, 180, 222, 20);\n getContentPane().add(jTextField2);\n jTextField2.setBounds(220, 320, 222, 20);\n\n jLabel2.setFont(new java.awt.Font(\"Times New Roman\", 1, 14)); // NOI18N\n jLabel2.setForeground(new java.awt.Color(255, 255, 255));\n jLabel2.setText(\"Select a file:\");\n getContentPane().add(jLabel2);\n jLabel2.setBounds(60, 180, 90, 14);\n\n jLabel3.setFont(new java.awt.Font(\"Times New Roman\", 1, 14)); // NOI18N\n jLabel3.setForeground(new java.awt.Color(255, 255, 255));\n jLabel3.setText(\"Enter the 16 (byte) key:\");\n getContentPane().add(jLabel3);\n jLabel3.setBounds(60, 320, 148, 17);\n\n jButton1.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/img/browse.png\"))); // NOI18N\n jButton1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton1ActionPerformed(evt);\n }\n });\n getContentPane().add(jButton1);\n jButton1.setBounds(270, 240, 90, 30);\n\n jButton2.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/img/cipher.png\"))); // NOI18N\n jButton2.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton2ActionPerformed(evt);\n }\n });\n getContentPane().add(jButton2);\n jButton2.setBounds(270, 380, 100, 30);\n\n jLabel1.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/img/fileretrieve.png\"))); // NOI18N\n getContentPane().add(jLabel1);\n jLabel1.setBounds(0, 0, 630, 600);\n\n pack();\n }", "private void exportGraphic(ExportableGraphic p_exportable)\r\n {\r\n // Create a few simple file filters.\r\n SimpleFileFilter[] filters = new SimpleFileFilter[] {\r\n new SimpleFileFilter(\"png\", \"Portable Network Graphics (*.png)\"),\r\n new SimpleFileFilter(\"jpg\", \"JPEG file (*.jpg)\")\r\n };\r\n\r\n // Save the file.\r\n String filePath = openFileChooser(false, filters);\r\n \r\n // Process the file\r\n if(filePath != null)\r\n {\r\n // Get the file the user selected.\r\n File selectedFile = new File(filePath);\r\n \r\n // Determine the file type.\r\n String fileType = IOLib.getExtension(selectedFile);\r\n if (fileType == null)\r\n {\r\n fileType = ((SimpleFileFilter) m_fc.getFileFilter()).getExtension();\r\n selectedFile = new File(selectedFile.toString() + \".\" + fileType);\r\n }\r\n \r\n // If the file already exists the user has to confirm that it may be \r\n // replaced by the new export.\r\n boolean doExport = true;\r\n if (selectedFile.exists())\r\n {\r\n int response = JOptionPane.showConfirmDialog(m_frame, \"The file \\\"\" + selectedFile.getName() + \"\\\" already exists.\\nDo you want to replace it?\", \"Confirm Save\", JOptionPane.YES_NO_OPTION, JOptionPane.WARNING_MESSAGE);\r\n if (response == JOptionPane.NO_OPTION) doExport = false;\r\n }\r\n \r\n // Do the export.\r\n if (doExport) p_exportable.export(selectedFile, fileType);\r\n }\r\n }", "private void open() {\n\t\tint state = fileChooser.showOpenDialog(this);\n\t\tswitch (state) {\n\t\tcase JFileChooser.CANCEL_OPTION:\n\t\t\tbreak;\n\t\tcase JFileChooser.APPROVE_OPTION:\r\n\t\t\tFile file = fileChooser.getSelectedFile();\r\n\t\t\t//System.out.println(\"Getting file...\");\r\n\t\t\ttry {\r\n\t\t\t\tfis = new FileInputStream(file);\r\n\t\t\t\tbyte[] b = new byte[fis.available()];\r\n\t\t\t\tif (fis.read(b) == b.length) {\r\n\t\t\t\t\t//System.out.println(\"File read: \" + file.getName());\r\n\t\t\t\t}\r\n\t\t\t\tdistributable = new Distributable(file.getName(), b);\r\n\t\t\t\tdiscoveryRelay.setDistributable(distributable);\r\n\t\t\t} \r\n\t\t\tcatch (FileNotFoundException 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\tcatch (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}\n\t\t\tbreak;\n\t\tcase JFileChooser.ERROR_OPTION:\n\t\t}\n\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\ttry {\n\t\t\t\t\tif (cbAlgorithm.getSelectedItem().toString() == \"RSA\") {\n\t\t\t\t\t\tJOptionPane.showMessageDialog(frame, \"Only Auto Generating available in the case of RSA!\");\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t\tkeyLength = Integer.parseInt(cbKeyLength.getSelectedItem().toString());\n\t\t\t\t\tkeyStr = txtEnter.getText();\n\t\t\t\t\tkeyByte = toHex(keyStr);\n\t\t\t\t\ttxtKeyHex.setText(addWhiteSpace(keyByte.substring(keyByte.length() - keyLength/4), 5));\n\t\t\t\t} catch (UnsupportedEncodingException 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}", "@Override\n public void actionPerformed(ActionEvent e) {\n String src;\n JFileChooser fileChooser = new JFileChooser();\n fileChooser.setCurrentDirectory(new File(System.getProperty(\"user.home\")));\n int result = fileChooser.showOpenDialog(getParent());\n if (result == JFileChooser.APPROVE_OPTION) {\n File selectedFile = fileChooser.getSelectedFile();\n textSalida.append(\"\\nAutómata seleccionado \" + selectedFile.getAbsolutePath() );\n automa = null;\n automataready = false;\n compilar.setEnabled(false);\n try {\n src = selectedFile.getAbsolutePath();\n automa = new AFDVault(src);\n automataready = automa.allready();\n if (automataready){\n compilar.setEnabled(true);\n textSalida.append(\"\\nAutomata cargado\");\n //automa.PrintAFD();\n }else{\n compilar.setEnabled(false);\n textSalida.append(\"\\nAutomata no cargado verifique el archivo\");\n }\n }catch (IOException|ParserException ex){\n textSalida.append(ex.getMessage()+\"\\n\");\n }\n }\n }", "public void getFileChooser(){\r\n \r\n FileNameExtensionFilter txtfilter = new FileNameExtensionFilter(\"*.txt\", \"txt\");\r\n //FileNameExtensionFilter pngfilter = new FileNameExtensionFilter(\"*.png\", \"png\");\r\n FileNameExtensionFilter zipfilter = new FileNameExtensionFilter(\"*.zip\", \"zip\");\r\n \r\n final JFileChooser fc = new JFileChooser();\r\n fc.setFileSelectionMode(JFileChooser.FILES_AND_DIRECTORIES);\r\n fc.setAcceptAllFileFilterUsed(false);\r\n fc.setDialogTitle(\"Choose directory [USQ_DATA] or File\");\r\n //filter txt and png\r\n //fc.setFileFilter(pngfilter);\r\n fc.setFileFilter(txtfilter);\r\n fc.setFileFilter(zipfilter);\r\n \r\n try{\r\n fc.setCurrentDirectory(new File(workplace));\r\n }catch(Exception e) {\r\n FileSystemView fsv = FileSystemView.getFileSystemView();\r\n wppath = fsv.getDefaultDirectory();\r\n File rd = new File(wppath.getAbsolutePath() + \"/USQ_Reporter.txt\");\r\n rd.delete();\r\n try {\r\n setDir();\r\n } catch (FileNotFoundException ex) {\r\n JOptionPane.showMessageDialog(null, \"file not found.\", \"System Message\", JOptionPane.ERROR_MESSAGE);\r\n } catch (IOException ex) {\r\n JOptionPane.showMessageDialog(null, \"IOException when get file.\", \"System Message\", JOptionPane.ERROR_MESSAGE);\r\n }\r\n }\r\n int returnVal = fc.showOpenDialog(this);\r\n if(returnVal == JFileChooser.APPROVE_OPTION) {\r\n File file = fc.getSelectedFile();\r\n //if txt from zip, dont copy to old\r\n fromzip = false;\r\n if(!file.exists()) {\r\n JOptionPane.showMessageDialog(null, \"file doesn't exist.\", \"System Message\", JOptionPane.ERROR_MESSAGE);\r\n } else if(file.isDirectory()) {\r\n File files[] = file.listFiles();\r\n File old = new File(workplace + \"/old\");\r\n //create old folder\r\n if(!old.exists())old.mkdir();\r\n if(old.exists()&&old.isFile())old.mkdir();\r\n for(int i=0 ; i<files.length ; i++) {\r\n if(files[i].isFile()) {\r\n readFile(files[i]);\r\n if(files[i].getName().equals(\"USQRecorders.txt\"))\r\n createSes(files[i]);\r\n }\r\n }\r\n //delete read in dir\r\n for(int i=0 ; i<files.length ; i++){\r\n boolean b =files[i].delete();\r\n System.out.println(files[i].getAbsolutePath() + \" \" + b);\r\n }\r\n file.delete(); \r\n } else if (file.isFile()) {\r\n File old = new File(workplace + \"/old\");\r\n //create old folder\r\n if(old.exists()&&old.isFile())old.mkdir();\r\n if(!old.exists())old.mkdir();\r\n if(file.getName().endsWith(\".zip\")){fromzip=true;}else{fromzip=false;}\r\n readFile(file);\r\n if(file.getName().equals(\"USQRecorders.txt\"))\r\n createSes(file);\r\n }\r\n \r\n //delete read in file\r\n file.delete();\r\n }\r\n }", "private void selectByFileIdentifier(APDU apdu, byte[] buffer) \r\n \t //@ requires current_applet(this) &*& [1/2]valid() &*& APDU(apdu, buffer) &*& array_slice(buffer, 0, buffer.length, _);\r\n \t //@ ensures current_applet(this) &*& [1/2]valid() &*& APDU(apdu, buffer) &*& array_slice(buffer, 0, buffer.length, _);\r\n\t{\r\n\t\t// receive the data to see which file needs to be selected\r\n\t\tshort byteRead = apdu.setIncomingAndReceive();\r\n\t\t// check Lc\r\n\t\tshort lc = (short) (buffer[ISO7816.OFFSET_LC] & 0x00FF);\r\n\t\tif ((lc != 2) || (byteRead != 2))\r\n\t\t\tISOException.throwIt(ISO7816.SW_WRONG_LENGTH);\r\n\t\t// get the file identifier out of the APDU\r\n\t\tshort fid = Util.makeShort(buffer[ISO7816.OFFSET_CDATA], buffer[ISO7816.OFFSET_CDATA + 1]);\r\n\t\tJCSystem.beginTransaction();\r\n\t\t//@ open valid(); // todo (implement patterns as arguments to rules instead of terms )\r\n\t\t//@ assert selected_file_types(_, ?f1, ?f2, ?f3, ?f4, ?f5, ?f6, ?f7, ?f8, ?f9, ?f10, ?f11, ?f12, ?f13, ?f14, ?f15, ?f16, ?f17, ?f18, ?f19, ?f20, ?f21, _);\r\n\t\t// if file identifier is the master file, select it immediately\r\n\t\tif (fid == MF)\r\n\t\t\tselectedFile = masterFile;\t\t\r\n\t\telse {\r\n\t\t\t// check if the requested file exists under the current DF\r\n\t\t\t////@ close masterFile.DedicatedFile();\r\n\t\t\t////@ MasterFile theMasterFile = masterFile; // auto\r\n\t\t\t////@ assert theMasterFile.MasterFile(16128, null, ?x1, ?x2, ?x3); // auto\r\n\t\t\t////@ close theMasterFile.DedicatedFile(16128, null, x1, x2, x3); // auto\r\n\t\t\tFile s = ((DedicatedFile) masterFile).getSibling(fid);\r\n\t\t\t////@ open theMasterFile.DedicatedFile(16128, null, x1, x2, x3); // auto\r\n\t\t\t//VF /bug\r\n\t\t\tif (s != null) {\r\n\t\t\t\tselectedFile = s;\r\n\t\t\t//the fid is an elementary file:\r\n\t\t\t} else {\r\n\t\t\t\ts = belpicDirectory.getSibling(fid);\r\n\t\t\t\tif (s != null) {\r\n\t\t\t\t\tselectedFile = s;\r\n\t\t\t\t} else {\r\n\t\t\t\t\ts = idDirectory.getSibling(fid);\r\n\t\t\t\t\tif (s != null) {\r\n\t\t\t\t\t\tselectedFile = s;\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tISOException.throwIt(ISO7816.SW_FILE_NOT_FOUND);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\t//@ close selected_file_types(s, f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15, f16, f17, f18, f19, f20, f21, _);\t\r\n\t\t}\t\r\n\t\t\r\n\t\t// //@ close valid(); // auto\r\n\t\tJCSystem.commitTransaction();\r\n\t}", "private void showFileChooser() {\n // Intent intent = new Intent();\n\n /* intent.setType(\"application/pdf\");\n intent.setType(\"docx*//*\");*/\n\n Intent intent = new Intent(Intent.ACTION_OPEN_DOCUMENT);\n intent.addCategory(Intent.CATEGORY_OPENABLE);\n String [] mimeTypes = {\"application/pdf/docx\"};\n intent.setType(\"*/*\");\n intent.putExtra(Intent.EXTRA_MIME_TYPES, mimeTypes);\n\n\n intent.setAction(Intent.ACTION_GET_CONTENT);\n startActivityForResult(Intent.createChooser(intent, \"Select Picture\"), PICK_IMAGE_REQUEST);\n }", "public void setKeyfile(File keyfile) {\n this.keyfile = keyfile;\n }", "public void displayMenu() throws FileNotFoundException {\n\t\tfinal String BOOK_KEY = \"1234\";\n\t\tString option;\n\t\tString isbnSelection;\n\t\tString bookTitle;\n\t\tString displayBookOfType;\n\t\tint typeOfBook;\n\t\tint numOfRandomBooks;\n\t\tchar freqSelected;\n\n\t\tScanner in = new Scanner(System.in);\n\n\t\tSystem.out.printf(\"Welcome to the ABC Book Company: How may we assist you?%n\" + \"1. Checkout Book%n\"\n\t\t\t\t+ \"2. Find Books by Title%n\" + \"3. Display Books by Type%n\" + \"4. Produce Random Book List%n\"\n\t\t\t\t+ \"5. Save & Exit%n%n\");\n\n\t\tSystem.out.printf(\"Enter option: \");\n\t\toption = in.nextLine();\n\n\t\twhile (!option.equals(\"5\")) {\n\t\t\tswitch (option) {\n\t\t\tcase \"1\":\n\t\t\t\tSystem.out.printf(\"Enter the ISBN of book: \");\n\t\t\t\tisbnSelection = in.nextLine();\n\t\t\t\tcheckOutBook(isbnSelection);\n\t\t\t\tbreak;\n\t\t\tcase \"2\":\n\t\t\t\tSystem.out.printf(\"Enter the title to search for: \");\n\t\t\t\tbookTitle = in.nextLine();\n\t\t\t\tfindBookTitle(bookTitle);\n\t\t\t\tbreak;\n\t\t\tcase \"3\":\n\t\t\t\tSystem.out.printf(\"# Type%n\" + \"1. Children's Books%n\" + \"2. CookBooks%n\" + \"3. Paperbacks%n\"\n\t\t\t\t\t\t+ \"4. Periodicals%n%n\");\n\t\t\t\tSystem.out.printf(\"Enter type of book: \");\n\n\t\t\t\tdisplayBookOfType = in.nextLine();\n\t\t\t\t\n\t\t\t\tif (BOOK_KEY.contains(displayBookOfType)&&displayBookOfType.length()==1) {\n\t\t\t\t\ttypeOfBook = Integer.parseInt(displayBookOfType);\n\t\t\t\t\tif (typeOfBook == 4) {\n\t\t\t\t\t\tSystem.out.printf(\"%nEnter a frequency (D for Daily, W for Weekly, \"\n\t\t\t\t\t\t\t\t+ \"M for Monthly, B for Biweekly, or Q for Quarterly): \");\n\t\t\t\t\t\tfreqSelected = in.nextLine().charAt(0);\n\t\t\t\t\t\tshowBookType(typeOfBook, freqSelected); // displayFrequency method needed!\n\t\t\t\t\t} else {\n\t\t\t\t\t\tshowBookType(typeOfBook);\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(\"Enter a valid book type (1-4):\\n\");\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\tcase \"4\":\n\t\t\t\tSystem.out.printf(\"Enter number of books: \");\n\t\t\t\ttry {\n\t\t\t\t\tnumOfRandomBooks = Integer.parseInt(in.nextLine());\n\t\t\t\t\tif (numOfRandomBooks <= 50 && numOfRandomBooks >= 0) {\n\t\t\t\t\t\tproduceRandomBookList(numOfRandomBooks);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.out.println(\"Wrong user Input. Please use an appropriate number from 1-50.\");\n\t\t\t\t\t\tcontinue;\n\n\t\t\t\t\t}\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tSystem.out.println(\"Wrong user Input. Please use an appropriate number from 1-50.\");\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tbreak;\n\n\t\t\tdefault:\n\t\t\t\tSystem.out.println(\"Please enter an appropriate choice (1-4):\\n\");\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tSystem.out.printf(\"Welcome to the ABC Book Company: How may we assist you?%n\" + \"1. Checkout Book%n\"\n\t\t\t\t\t+ \"2. Find Books by Title%n\" + \"3. Display Books by Type%n\" + \"4. Produce Random Book List%n\"\n\t\t\t\t\t+ \"5. Save & Exit%n%n\");\n\n\t\t\tSystem.out.printf(\"Enter option: \");\n\n\t\t\toption = in.nextLine();\n\t\t}\n\t\tsaveBook();\n\t\tin.close();\n\t}", "private void viewCertificate() {\n\t\tint selectedRow = -1;\n\t\tString alias = null;\n\t\tX509Certificate certToView = null;\n\t\tArrayList<String> serviceURIs = null;\n\t\tKeystoreType keystoreType = null;\n\n\t\t// Are we showing user's public key certificate?\n\t\tif (keyPairsTab.isShowing()) {\n\t\t\tkeystoreType = KEYSTORE;\n\t\t\tselectedRow = keyPairsTable.getSelectedRow();\n\n\t\t\tif (selectedRow != -1)\n\t\t\t\t/*\n\t\t\t\t * Because the alias column is not visible we call the\n\t\t\t\t * getValueAt method on the table model rather than at the\n\t\t\t\t * JTable\n\t\t\t\t */\n\t\t\t\talias = (String) keyPairsTable.getModel().getValueAt(selectedRow, 6); // current entry's Keystore alias\n\t\t}\n\t\t// Are we showing trusted certificate?\n\t\telse if (trustedCertificatesTab.isShowing()) {\n\t\t\tkeystoreType = TRUSTSTORE;\n\t\t\tselectedRow = trustedCertsTable.getSelectedRow();\n\n\t\t\tif (selectedRow != -1)\n\t\t\t\t/*\n\t\t\t\t * Get the selected trusted certificate entry's Truststore alias\n\t\t\t\t * Alias column is invisible so we get the value from the table\n\t\t\t\t * model\n\t\t\t\t */\n\t\t\t\talias = (String) trustedCertsTable.getModel().getValueAt(\n\t\t\t\t\t\tselectedRow, 5);\n\t\t}\n\n\t\ttry {\n\t\t\tif (selectedRow != -1) { // something has been selected\n\t\t\t\t// Get the entry's certificate\n\t\t\t\tcertToView = dnParser.convertCertificate(credManager\n\t\t\t\t\t\t.getCertificate(keystoreType, alias));\n\n\t\t\t\t// Show the certificate's contents to the user\n\t\t\t\tViewCertDetailsDialog viewCertDetailsDialog = new ViewCertDetailsDialog(\n\t\t\t\t\t\tthis, \"Certificate details\", true, certToView,\n\t\t\t\t\t\tserviceURIs, dnParser);\n\t\t\t\tviewCertDetailsDialog.setLocationRelativeTo(this);\n\t\t\t\tviewCertDetailsDialog.setVisible(true);\n\t\t\t}\n\t\t} catch (CMException cme) {\n\t\t\tString exMessage = \"Failed to get certificate details to display to the user\";\n\t\t\tlogger.error(exMessage, cme);\n\t\t\tshowMessageDialog(this, exMessage, ERROR_TITLE, ERROR_MESSAGE);\n\t\t}\n\t}" ]
[ "0.68043226", "0.6490928", "0.6469184", "0.598031", "0.5749824", "0.5718611", "0.5636047", "0.56099755", "0.5476785", "0.5442688", "0.53543586", "0.53504705", "0.5336054", "0.5323419", "0.5322657", "0.52941567", "0.5293138", "0.52877736", "0.52660966", "0.52610964", "0.52593577", "0.5241614", "0.5238062", "0.5218303", "0.5202978", "0.52025926", "0.5184808", "0.5153401", "0.51501375", "0.5148726", "0.5145761", "0.51356256", "0.5128416", "0.51066816", "0.5096785", "0.5084197", "0.50709945", "0.505843", "0.5056984", "0.5056829", "0.5052492", "0.50476235", "0.5046291", "0.503316", "0.50267786", "0.5026164", "0.5019498", "0.50124025", "0.5010834", "0.50106204", "0.50090975", "0.4996815", "0.49948138", "0.499408", "0.4983408", "0.49753943", "0.4972445", "0.49575806", "0.49368575", "0.49153873", "0.4904122", "0.48978603", "0.48973987", "0.48959565", "0.489337", "0.48843622", "0.4879849", "0.48703316", "0.48690638", "0.4868284", "0.48663878", "0.48453963", "0.48396203", "0.4828969", "0.48284653", "0.48174417", "0.4815722", "0.4799073", "0.479788", "0.47908133", "0.4790548", "0.47902593", "0.47896743", "0.47891843", "0.47882205", "0.47864154", "0.47846743", "0.4784565", "0.47832164", "0.4780509", "0.47746655", "0.47715992", "0.47670063", "0.47589877", "0.47467545", "0.47463363", "0.4746196", "0.47461072", "0.4742823", "0.47327483" ]
0.615413
3
TODO Autogenerated method stub Step1: Create a LinkedList
public static void main(String[] args) { LinkedList<String> linkedlist = new LinkedList<String>(); // Step2: Add elements to LinkedList linkedlist.add("Tim"); linkedlist.add("Rock"); linkedlist.add("Hulk"); linkedlist.add("Rock"); linkedlist.add("James"); linkedlist.add("Rock"); //Searching first occurrence of element int firstIndex = linkedlist.indexOf("Rock"); System.out.println("First Occurrence: " + firstIndex); //Searching last occurrence of element int lastIndex = linkedlist.lastIndexOf("Rock"); System.out.println("Last Occurrence: " + lastIndex); // Getting First element of the List Object firstElement = linkedlist.getFirst(); System.out.println("First Element is: "+firstElement); // Displaying LinkedList elements System.out.println("LinkedList elements:"); Iterator it= linkedlist.iterator(); while(it.hasNext()){ System.out.println(it.next()); } // Obtaining Sublist from the LinkedList -- sublist of LinkedList using subList(int startIndex, int endIndex) List sublist = linkedlist.subList(2,5); // Displaying SubList elements System.out.println("\nSub List elements:"); Iterator subit= sublist.iterator(); while(subit.hasNext()){ System.out.println(subit.next()); } sublist.remove("Item4"); System.out.println("\nLinkedList elements After remove:"); Iterator it2= linkedlist.iterator(); while(it2.hasNext()){ System.out.println(it2.next()); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static <T> LinkedList<T> createLinkedList() {\n \t\treturn new LinkedList<T>();\n \t}", "public LinkedListDemo() {\r\n }", "public LinkedList() {\n\t\tthis(\"list\");\n\t}", "public LinkedList () {\n\t\tMemoryBlock dummy;\n\t\tdummy = new MemoryBlock(0,0);\n\t\ttail = new Node(dummy);\n\t\tdummy = new MemoryBlock(0,0);\n\t\thead = new Node(dummy);\n\t\ttail.next = head;\n\t\thead.previous = tail;\n\t\tsize = 2;\n\t}", "public LinkedListDemo() {\n\t\tlength = 0;\n\t\thead = new ListNode();\n\t\n\t}", "public MyLinkedList() {\n this.size = 0;\n this.head = new ListNode(0);\n }", "public MyLinkedList() \n\t{\n\t\t\n\t}", "void operateLinkedList() {\n\n List linkedList = new LinkedList();\n linkedList.add( \"syed\" );\n linkedList.add( \"Mohammed\" );\n linkedList.add( \"Younus\" );\n System.out.println( linkedList );\n linkedList.set( 0, \"SYED\" );\n System.out.println( linkedList );\n linkedList.add( 0, \"Mr.\" );\n System.out.println( linkedList );\n\n\n }", "public LinkedList() {\n\t\titems = lastNode = new DblListnode<E>(null);\n\t\tnumItems=0;\n\t}", "public LinkedList(){\n this.size = 0;\n first = null;\n last = null;\n }", "public linkedList() { // constructs an initially empty list\r\n\r\n }", "public LinkedList() {\n\t\tfirst = null;\n\t}", "public LinkedList(String listName) {\n\t\tname = listName;\n\t\tfirstNode = lastNode = null;\n\t\tsize=0;\n\t}", "public LinkedList(){\n\t\thead = null;\n\t\ttail = null;\n\t}", "public LinkedList() {\n this.head = null;\n this.tail = null;\n }", "public MyLinkedList()\n {\n head = new Node(null, null, tail);\n tail = new Node(null, head, null);\n }", "public MySinglyLinkedList() { }", "public MyLinkedList() {\n dummyHead = new Node();\n size = 0;\n }", "public CS228LinkedList() {\r\n\t\thead = new Node();\r\n\t\ttail = new Node();\r\n\t\thead.next = tail;\r\n\t\ttail.prev = head;\r\n\r\n\t\t// TODO - any other initialization you need\r\n\t}", "public LinkedLists() {\n }", "public LinkedList() {\n size = 0;\n head = new DoublyLinkedNode<E>(null);\n tail = new DoublyLinkedNode<E>(null);\n\n head.setNext(tail);\n tail.setPrevious(head);\n }", "public LinkedList()\n\t{\n\t\tthis.head = new Node(null);\n\t\tsize = 0;\n\t}", "public CircularlyLinkedList() { }", "public MyLinkedList() {\n size = 0;\n head = null;\n tail = null;\n }", "public LinkedList(){\n this.head = null;\n this.numNodes = 0;\n }", "public LinkedList() {\r\n front = new ListNode(null);\r\n back = new ListNode(null, front, null);\r\n front.next = back;\r\n size = 0;\r\n }", "public DoublyLinkedList() {\r\n\t\tinitializeDataFields();\r\n\t}", "public LinkedList()\n {\n head = null;\n tail = null;\n }", "public LinkedList() \n\t{\n\t\thead = null;\n\t\ttail = head;\n\t}", "public MyLinkedList() {\n \thead = null;\n \ttail = null;\n }", "@Test\n public void testLinkedList(){\n LinkedListMethods testList = new LinkedListMethods();\n testList.addItem(1);\n testList.addItem(2);\n testList.addItem(3);\n Assertions.assertEquals(3,testList.count());\n\n //Test of deletion of node\n testList.remove( 1);\n Assertions.assertEquals(2,testList.count());\n\n //Test of size lo the list\n Assertions.assertEquals(2,testList.count());\n\n //Test of add node at particular index.\n testList.addItem(1,2);\n testList.addItem(8,3);\n Assertions.assertEquals(3,testList.count());\n }", "public SinglyLinkedList(){\n this.first = null;\n }", "public LinkedList()\r\n {\r\n head = null;\r\n tail = null;\r\n }", "public LinkedList() {\n head = null;\n numElement = 0;\n }", "public static void main(String args[]) {\r\n\t\tLinkedList<String> list = new LinkedList<String>();\r\n\r\n\t\t/**\r\n\t\t * The constructor LinkedList<String>(int) is undefined\r\n\t\t */\r\n\t\t/**\r\n\t\t * Exception in thread \"main\" java.lang.Error: Unresolved compilation problems:\r\n\t\t * List cannot be resolved to a type The constructor LinkedList<String>(int) is\r\n\t\t * undefined\r\n\t\t * \r\n\t\t * at\r\n\t\t * com.collections.linkedList.LinkedListLearning.main(LinkedListLearning.java:17)\r\n\t\t */\r\n\t\t// List<String> arraylist = new LinkedList<String>(10);\r\n\r\n\t\t// Adding elements to the LinkedList\r\n\t\tlist.add(\"Harry\");\r\n\t\tlist.add(\"Ajeet\");\r\n\t\tlist.add(\"Tom\");\r\n\t\tlist.add(\"Steve\");\r\n\t\tlist.add(\"John\");\r\n\t\tlist.add(\"Tom\");\r\n\r\n\t\t// Displaying LinkedList elements\r\n\t\tSystem.out.println(\"LinkedList elements: \\n\" + list);\r\n\r\n\t\t// Adding element to the specified index\r\n\t\tlist.add(2, \"Harry\");\r\n\t\tSystem.out.println(\"After adding elements: \\n\" + list);\r\n\r\n\t\t// Adding value at the beginning\r\n\t\tlist.addFirst(\"Raj\");\r\n\t\tSystem.out.println(\"Added value at the beginning: \\n\" + list);\r\n\r\n\t\t// Adding value at the end of the list\r\n\t\tlist.addLast(\"Jerry\");\r\n\t\tSystem.out.println(\"Added value at the end of the list: \\n\" + list);\r\n\r\n\t\t// Adding element to front of Linked List(Head)\r\n\t\tlist.offerFirst(\"AddHead\");\r\n\t\tSystem.out\r\n\t\t\t\t.println(\"\\nAdded value at the front of the list and returns boolean value if Insertion is successful: \"\r\n\t\t\t\t\t\t+ list.offerFirst(\"AddHead\"));\r\n\r\n\t\tSystem.out.println(\"List: \" + list);\r\n\t\t// Removing first element\r\n\t\tSystem.out.println(\"Removes first value of the list: \" + list.removeFirst());\r\n\t\tSystem.out.println(\"After removing first element from the list: \" + list);\r\n\r\n\t\t// Removing Last element\r\n\t\tSystem.out.println(\"Removes last value of the list: \" + list.removeLast());\r\n\t\tSystem.out.println(\"After removing last element from the list: \" + list);\r\n\r\n\t\t// Removing element from specified index\r\n\t\tlist.remove(2);\r\n\t\tSystem.out.println(\"After removing an element from index position 2: \" + list);\r\n\r\n\t\t// Removing an element from the list\r\n\t\tlist.remove(\"Harry\");\r\n\t\tSystem.out.println(\"After removing value 'Harry' from the list: \" + list);\r\n\r\n\t\t// Removes all the elements from the list\r\n\t\tlist.clear();\r\n\t\tSystem.out.println(\"After clear() method: \" + list);\r\n\r\n\t\t// Adding elements to the LinkedList\r\n\t\tlist.add(\"Harry\");\r\n\t\tlist.add(\"Ajeet\");\r\n\t\tlist.add(\"Tom\");\r\n\t\tlist.add(\"Steve\");\r\n\t\tlist.add(\"John\");\r\n\t\tlist.add(\"Tom\");\r\n\r\n\t\tLinkedList<String> newList = new LinkedList<String>();\r\n\t\tnewList.add(\"\");\r\n\t\tnewList.add(\"Test\");\r\n\t\tnewList.add(\"\");\r\n\t\tnewList.add(\"Bella\");\r\n\t\tSystem.out.println(\"\\nThe values of newList are: \" + newList);\r\n\r\n\t\t// Adding values of List2 to List1\r\n\t\tlist.addAll(newList);\r\n\t\tSystem.out.println(\"Values appended to List1: \" + list);\r\n\r\n\t\tlist.removeAll(newList);\r\n\t\tSystem.out.println(\"Values of List2 removed from List1: \" + list);\r\n\r\n\t\t// Adding values of List2 to List1 from specified index\r\n\t\tlist.addAll(2, newList);\r\n\t\tSystem.out.println(\"Values appended to List1: \" + list);\r\n\r\n\t\t// To replace a value\r\n\t\tlist.set(2, \"Chan\");\r\n\t\tSystem.out.println(\"After replacing a value: \" + list);\r\n\r\n\t\t// To check the value is existing in list or not\r\n\t\tSystem.out.println(\"contains(\\\"Chaan\\\"): \" + list.contains(\"Chaan\"));\r\n\t\tSystem.out.println(\"contains(\\\"Chan\\\"): \" + list.contains(\"Chan\"));\r\n\t}", "public LinkedList() {\n\t\thead = new Node(null, null);\n\t\tsize = 0;\n\t\titerator = null;\n\t}", "public SingleLinkedList() {\r\n start = null;\r\n System.out.println(\"A List Object was created\");\r\n }", "public MyLinkedList() {\n length = 0;\n }", "public MyLinkedList() {\n first = null;\n n = 0;\n }", "public LinkedList()\n\t{\n\t\thead = null;\n\t}", "public LinkedList() {\n\t\thead = null;\n\t\tsize = 0;\n\t}", "public DesignLinkedList() {\n head = null;\n tail = head;\n len = 0;\n }", "public LinkedList() {\n\t\thead = null;\n\t\ttail = null;\n\t\tsize = 0;\n\t}", "public SinglyLinkedList() {\n this.head = null; \n }", "public SinglyLinkedList() {\n this.len = 0;\n }", "private void createNodes() {\n head = new ListNode(30);\n ListNode l2 = new ListNode(40);\n ListNode l3 = new ListNode(50);\n head.next = l2;\n l2.next = l3;\n }", "public LinkList() {\n this.head = null;\n this.tail = null;\n }", "public DLList() {\n head = null;\n tail = null;\n }", "public UtillLinkList() {\n\t\tlist = new LinkedList<String>();\n\t}", "public SinglyLinkedList()\n {\n first = null; \n last = null;\n }", "private LinkedList_base getLinkedList() {\n\t\treturn new LinkedList_DLLERR4();\n\t}", "public LinkedList()\n { \n first = null;\n \n }", "public interface LinkedList<T> {\n \n T getFirst();\n \n void add(T element);\n \n /**\n * Get element with the according index from a linked list.\n * @param index - index of an element in a linked list.\n * @return element with the according index from a linked list.\n */\n T get(int index);\n \n /**\n * Remove element with the according index from a linked list.\n * @param index - index of an element in a linked list\n * @return element with the according index from a linked list.\n */\n T remove(int index);\n \n T removeFirst();\n \n int size();\n \n boolean isEmpty();\n}", "public LinkedList()\r\n {\r\n front = null;\r\n rear = null;\r\n numElements = 0;\r\n }", "public static LinkedList createEmpty(){\n return new LinkedList();\n }", "public GenLinkedList() {\r\n\t\thead = curr = prev = null;\r\n\t}", "public LinkList(String data){\n this.head = new Node(data, null);\n this.tail = this.head;\n }", "public LinkedList(Object item) {\n\t\tif (item != null) {\n\t\t\tcurrent = end = start = new ListItem(item);// item is the start and end\n\t\t}\n\t}", "public LinkedList(){\n count = 0;\n front = rear = null;\n }", "public MyLinkedList() {\r\n // when the linked list is created head will refer to null\r\n head = null;\r\n }", "public UserDefLinkedList(Student student) {\n head = new Node();\n head.setStudent(student);\n head.setLink(null);\n }", "public LinkedList(){\n size=0;\n }", "public LinkedList () {\n\t\thead = null;\n\t\tcount = 0;\n\t}", "public Linked_list() {\n pre = new Node();\n post = new Node();\n pre.next = post;\n post.prev = pre;\n }", "LinkedList(E data){\n\n }", "public LinkedListStructureofaSinglyLinkedListClass() {\n\t\theadNode=null;\n\t\tsize=0;\n\t\t\n\t}", "public LinkedList(E data, Node<E> next) {\n size++;\n prev = null;\n head = new Node(data, next);\n cursor = head;\n tail = head;\n }", "private static void appendTheSpecifiedElementToLinkedList() {\n\t\tLinkedList<Integer> list = new LinkedList<Integer>();\n\t\tlist.add(10);\n\t\tlist.add(20);\n\t\tlist.add(30);\n\t\tlist.add(40);\n\t\tlist.add(50);\n\t\tSystem.out.println(\"LinkedList is : \" + list);\n\n\t}", "private static Node createLoopedList()\n {\n Node n1 = new Node(1);\n Node n2 = new Node(2);\n Node n3 = new Node(3);\n Node n4 = new Node(4);\n Node n5 = new Node(5);\n Node n6 = new Node(6);\n Node n7 = new Node(7);\n Node n8 = new Node(8);\n Node n9 = new Node(9);\n Node n10 = new Node(10);\n Node n11 = new Node(11);\n\n n1.next = n2;\n n2.next = n3;\n n3.next = n4;\n n4.next = n5;\n n5.next = n6;\n n6.next = n7;\n n7.next = n8;\n n8.next = n9;\n n9.next = n10;\n n10.next = n11;\n n11.next = n5;\n\n return n1;\n }", "public ListNode(Object newItem){\n\t\tlistItem = newItem;\n\t\tnext = null;\n\t}", "public ListNode(Object newItem, ListNode nextNode){\n\t\tlistItem = newItem;\n\t\tnext = nextNode;\n\t}", "public LinkedListGeneric() {\n head = null;\n }", "public void test() {\n singleLinkedList();\n\n }", "public SinglyLinkedList() {\n this.head = null;\n this.tail = null;\n this.size = 0;\n }", "@ProtoFactory\n public LinkedList<E> create(int size) {\n return new LinkedList<>();\n }", "public InputLinkedList() \n\t{\n\t\thead = null;\n\t}", "public LinkedListIterator(){\n position = null;\n previous = null; \n isAfterNext = false;\n }", "public SoretdLinkedListTest()\n {\n }", "public static LinkedList_Details createList() {\n\n\t\t\t\t\tSystem.out.print(\"\\nEnter min length of list : \");\n\t\t\t\t\tScanner sc = new Scanner(System.in);\n\t\t\t\t\tint len = sc.nextInt(); //take min length of list \n\t\t\t\t\tint i = 0; //loop counter variable\n\t\t\t\t\tint v; //list values will be assigned to this variable in loop\n\n\t\t\t\t\tNode head = null; //head node declaration\n\t\t\t\t\tNode temp = null; //temp node to keep track of node in loop\n\n\t\t\t\t\t//If we dont want to enter list values manually, we can generate random values\n\t\t\t\t\tSystem.out.println(\"\\nDo you want enter your own values for the list? if Yes, enter 1 \\nif No, enter 0\");\n\t\t\t\t\tScanner rd_sc = new Scanner(System.in);\n\t\t\t\t\tint rd_val = rd_sc.nextInt();\n\t\t\t\t\t\n\t\t\t\t\twhile (i <= len) {\n\n\t\t\t\t\t\t\t\tif( i == len) {\n\t\t\t\t\t\t\t\t\t\tSystem.out.println(\"\\nYou have created a list of \" + len + \" values.\"); \n\t\t\t\t\t\t\t\t\t\tSystem.out.println(\"Do you still want to enter values in the list?\");\n\t\t\t\t\t\t\t\t\t\tSystem.out.println(\"if Yes, enter the length by which you want to extend the list\");\n\t\t\t\t\t\t\t\t\t\tSystem.out.println(\"if No, enter 0\");\n\n\t\t\t\t\t\t\t\t\t\tScanner li_sc = new Scanner(System.in);\n\t\t\t\t\t\t\t\t\t\tint ext_len = li_sc.nextInt();\n\t\t\t\t\t\t\t\t\t\tlen = len + ext_len;\n\n\t\t\t\t\t\t\t\t}\t\t\t\t\t\t\t\t\n\n\t\t\t\t\t\t\t\tif(i < len){\t\t\t\t\t\t\t\t\t\n\t\n\t\t\t\t\t\t\t\t\t\tif(rd_val == 0) {\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\tRandom rand = new Random(); \n\t\t\t\t\t\t\t\t\t\t\t\t\tv = rand.nextInt(1000);\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\t\t\t\tSystem.out.println(\"Enter a value for the list\");\n\t\t\t\t\t\t\t\t\t\t\tScanner val_sc = new Scanner(System.in);\n\t\t\t\t\t\t\t\t\t\t\tv = val_sc.nextInt();\n\t\t\t\t\t\t\t\t\t\t} \n\t\t\n\t\t\t\t\t\t\t\t\t\tif(head == null) { temp = new Node(v); head = temp; }\n\t\t\t\n\t\t\t\t\t\t\t\t\t\telse {\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\ttemp.next = new Node(v);\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\ttemp = temp.next;\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t}\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\ti++;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tLinkedList_Details ld = new LinkedList_Details(len, head);\n\n\t\t\t\t\treturn ld;\n\t\t\t}", "public WCLinkedList(){\n size=0;\n head = null;\n tail = null;\n }", "public ListNode(Object d) {\n\t\tdata = d;\n\t\tnext = null;\n\t}", "private static ListNode initializeListNode() {\n\n\t\tRandom rand = new Random();\n\t\tListNode result = new ListNode(rand.nextInt(10)+1);\n\t\t\n\t\tresult.next = new ListNode(rand.nextInt(10)+1);\n\t\tresult.next.next = new ListNode(rand.nextInt(10)+1);\n\t\tresult.next.next.next = new ListNode(rand.nextInt(10)+1);\n\t\tresult.next.next.next.next = new ListNode(rand.nextInt(10)+1);\n\t\t\n\t\treturn result;\n\t}", "public LinkedListSum() {}", "public DLListIterator() {\r\n node = head;\r\n nextCalled = false;\r\n }", "public SLList()\n {\n head = tail = null;\n }", "public SkipListNode() {\n\t// construct a dummy node\n\tdata = null;\n\tnext = new ArrayList<SkipListNode<K>>();\n\tnext.add(null);\n }", "public ObjectListNode() {\n info = null;\n next = null;\n }", "public CustomSinglyLinkedList()\n {\n head = null;\n tail = head;\n size = 0;\n }", "public static void main(String[] args) {\n\t\tBasics linkedList = new Basics();\r\n\t\tlinkedList.head = new Node(1);\r\n\t\tNode second = new Node(2);\r\n\t\tNode third = new Node(3);\r\n\t\tlinkedList.head.next = second;\r\n\t\tsecond.next = third;\r\n\t\tlinkedList.pointer = linkedList.head;\r\n\t\twhile(linkedList.pointer.next != null) {\r\n\t\t\tSystem.out.println(linkedList.pointer.data);\r\n\t\t\tlinkedList.pointer = linkedList.pointer.next;\r\n\t\t}\r\n\t\tSystem.out.println(linkedList.pointer.data);\r\n\t\t\r\n\t}", "public WordLinkedList() {\r\n\r\n head = new Node(null, null);\r\n listSize = 0;\r\n //constructor for a dummy node with nothing in the linked list\r\n\r\n }", "public static void main(String args[]) {\n LinkedList list = new LinkedList();\n // add elements to the linked list\n list.add(\"M\");\n list.add(\"A\");\n list.add(\"N\");\n list.add(\"is\");\n list.add(\"#\");\n list.addLast(\"1\");\n list.addFirst(\"A\");\n list.add(0, \"A2\");\n System.out.println(\"The contents of the linked list are: \" + list); \n }", "public static void main(String[] args) {\n LinkedList<String> ll = new LinkedList<String>();\n\n //adding a string using the reference variable\n ll.add(\"test\");\n ll.add(\"QTP\");\n ll.add(\"selenium\");\n ll.add(\"RPA\");\n ll.add(\"RFT\");\n\n //to print:\n System.out.println(\"content of LinkedList: \" +ll);\n\n //addFirst: you want to add / introduce first element\n ll.addFirst(\"Naveen\");\n\n //addLast: you want to add last element that is pointing to null\n ll.addLast(\"Automation\");\n //printing the new values\n System.out.println(\"content of LinkedList: \" +ll);\n\n\n //how to get and set values?\n System.out.println(ll.get(0)); //now its Naveen because of addFirst method. This is get value\n\n //set value\n ll.set(0, \"Tom\"); //before 0 index = Naveen, now 0 index = Tom\n System.out.println(ll.get(0)); //will print new set value. first we set and then get the value.\n\n //remove first and last element\n ll.removeFirst();\n ll.removeLast();\n System.out.println(\"linked list content: \"+ll); //will remove first and last elements. removed naveen and automation.\n\n //to remove from a specific position\n ll.remove(2);\n System.out.println(\"linked list content: \" +ll); //selenium = index 2 will be removed.\n\n System.out.println(\"*****************************\");\n /*how to iterate / print all the values of LinkedList?\n => 1. using For Loop\n 2. using advance For Loop\n 3. using iterator\n 4. using while loop\n */\n\n //using for loop\n System.out.println(\"using For loop\");\n for(int i=0; i<ll.size(); i++){\n System.out.println(ll.get(i)); //printing all the values using For loop\n }\n\n //using advance for loop : also called for each loop\n System.out.println(\"using Advance For loop\");\n for(String str : ll) { //we know all our values are String type so String, str = String reference variable, ll = linkedList object.\n System.out.println(str); //print string variables in ll object using str reference variable.\n }\n\n //using iterator\n System.out.println(\"******using iterator\");\n Iterator<String> it = ll.iterator();\n while (it.hasNext()){ //hasNext = if the next element is available\n System.out.println(it.next()); //next method will print.\n }\n\n //using while loop\n System.out.println(\"using while loop\");\n int i = 0;\n while (ll.size()>i){\n System.out.println(ll.get(i));\n i++; //if not increased it will give infinite values\n }\n\n }", "public ListNode createList(int len) {\r\n\t\tListNode head = null;\r\n\t\tRandom r = new Random(10);\r\n\t\tfor (int i = 0; i < len; ++i) {\r\n\r\n\t\t\thead = createNode(head, r.nextInt(20) + 1);\r\n\t\t}\r\n\r\n\t\treturn head;\r\n\t}", "public static ListNode createLinkedList(int low, int high){\n\t \t\tif(low>high) return null;\n\t \t\tListNode head = new ListNode(low);\n\t \t\tListNode temp = head;\n\t \t\tfor(int i = low+1; i <= high; i++){\n\t \t\t\ttemp.next = new ListNode(i);\n\t \t\t\ttemp = temp.next;\n\t \t\t}\n\t \t\treturn head;\n\t \t}", "DListNode() {\n item[0] = 0;\n item[1] = 0;\n item[2] = 0;\n prev = null;\n next = null;\n }", "public static void main(String[] args) {\n// LinkedList\n String leWord = \"meow\";\n char[] arrChar = leWord.toCharArray();\n LinkedList newLinkList = new LinkedList(arrChar);\n\n\n\n\n//\n\n\n }", "public static void testAdd(LinkedList list) {\n\t\tNode n1 = new Node(\"1\");\n\t\tNode n2 = new Node(\"2\");\n\t\tNode n3 = new Node(\"3\");\n\t\tNode n4 = new Node(\"4\");\n\t\t\n\t\t// add to empty list\n\t\tlist.add(n2);\n\t\t\n\t\t// add to end of list\n\t\tlist.add(n4);\n\t\t\n\t\t// add in the middle\n\t\tlist.add(n3);\n\t\t\n\t\t// add at the head\n\t\tlist.add(n1);\n\t\t\n\t\tlist.printForward();\n\t\tSystem.out.println(\"Size: \" + list.getSize());\n\t}", "public MyDoublyLinkedList() {\n head.data = null;\n head.next = tail;\n tail.data = null;\n tail.prev = head;\n }", "public SingleLinkedList()\n {\n head = null;\n tail = null;\n size=0;\n }", "public StringLinkedList() {\n super();\n }", "public listNode(String val) {\n\t\t\tdata= val;\n\t\t\tnext= null;\n\t\t\tprevious= null;\n\t\t}" ]
[ "0.7702951", "0.7546329", "0.7478126", "0.74427277", "0.73044246", "0.7289362", "0.72487813", "0.7225665", "0.72225773", "0.7189396", "0.71613044", "0.7106468", "0.70810944", "0.7047413", "0.70316666", "0.70293194", "0.70245945", "0.69927514", "0.69691443", "0.69599134", "0.69572574", "0.69512546", "0.69374764", "0.6915992", "0.6915276", "0.69134605", "0.6875083", "0.68568766", "0.6852338", "0.6850952", "0.6843417", "0.68393075", "0.68361384", "0.68346465", "0.6827063", "0.68237597", "0.6807288", "0.6805993", "0.6801629", "0.6762546", "0.67545974", "0.6718577", "0.67143255", "0.67092615", "0.66874576", "0.66835886", "0.667988", "0.66572607", "0.6652746", "0.6652543", "0.66519237", "0.66484374", "0.6638678", "0.6634806", "0.66317147", "0.6622144", "0.6621934", "0.6606229", "0.65945786", "0.65742534", "0.65662324", "0.6554763", "0.65412134", "0.6534283", "0.65289664", "0.65240186", "0.65224975", "0.6521965", "0.6500748", "0.64940953", "0.649071", "0.6481029", "0.64720327", "0.6467045", "0.64574236", "0.64511234", "0.6439592", "0.64366543", "0.6429798", "0.64215374", "0.6410119", "0.6405478", "0.6392504", "0.63857645", "0.6371378", "0.63633275", "0.6354984", "0.63466877", "0.63454896", "0.6323323", "0.6318358", "0.6314676", "0.63128674", "0.63045764", "0.62985456", "0.6292582", "0.62857795", "0.627875", "0.62781847", "0.6272769", "0.6261166" ]
0.0
-1
Compute parameters for calibrating function for intensity calibration
protected double[] doCurveFitting(double[] x, double[] y, int fitType) { if (x.length != y.length || y.length == 0) { logger.trace("Wrong parameters - parameters has not same length"); return null; } CurveFitter cf = new CurveFitter(x, y); cf.doFit(fitType, false); if (cf.getStatus() == Minimizer.INITIALIZATION_FAILURE) { logger.trace("Initialization failure"); return null; } if (IJ.debugMode) { IJ.log(cf.getResultString()); } logger.trace("Curve fitter result string - " + cf.getResultString()); int np = cf.getNumParams(); double[] p = cf.getParams(); double[] parameters = new double[np]; for (int i = 0; i < np; i++) { parameters[i] = p[i]; } return parameters; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void startCalibration();", "public void estimateParameter(){\r\n int endTime=o.length;\r\n int N=hmm.stateCount;\r\n double p[][][]=new double[endTime][N][N];\r\n for (int t=0;t<endTime;++t){\r\n double count=EPS;\r\n for (int i=0;i<N;++i){\r\n for (int j=0;j<N;++j){\r\n p[t][i][j]=fbManipulator.alpha[t][i]*hmm.a[i][j]*hmm.b[i][j][o[t]]*fbManipulator.beta[t+1][j];\r\n count +=p[t][j][j];\r\n }\r\n }\r\n for (int i=0;i<N;++i){\r\n for (int j=0;j<N;++j){\r\n p[t][i][j]/=count;\r\n }\r\n }\r\n }\r\n double pSumThroughTime[][]=new double[N][N];\r\n for (int i=0;i<N;++i){\r\n for (int j=0;j<N;++j){\r\n pSumThroughTime[i][j]=EPS;\r\n }\r\n }\r\n for (int t=0;t<endTime;++t){\r\n for (int i=0;i<N;++i){\r\n for (int j=0;j<N;++j){\r\n pSumThroughTime[i][j]+=p[t][i][j];\r\n }\r\n }\r\n }\r\n\r\n //rebuild gamma\r\n for (int t=0;t<endTime;++t){\r\n for (int i=0;i<N;++i) fbManipulator.gamma[t][i]=0;\r\n for (int i=0;i<N;++i){\r\n for (int j=0;j<N;++j){\r\n fbManipulator.gamma[t][i]+=p[t][i][j];\r\n }\r\n }\r\n }\r\n\r\n double gammaCount=EPS;\r\n //maximum parameter\r\n for (int i=0;i<N;++i){\r\n gammaCount+=fbManipulator.gamma[0][i];\r\n hmm.pi[i]=fbManipulator.gamma[0][i];\r\n }\r\n for (int i=0;i<N;++i){\r\n hmm.pi[i]/=gammaCount;\r\n }\r\n\r\n for (int i=0;i<N;++i) {\r\n gammaCount = EPS;\r\n for (int t = 0; t < endTime; ++t) gammaCount += fbManipulator.gamma[t][i];\r\n for (int j = 0; j < N; ++j) {\r\n hmm.a[i][j] = pSumThroughTime[i][j] / gammaCount;\r\n }\r\n }\r\n for (int i=0;i<N;i++){\r\n for (int j=0;j<N;++j){\r\n double tmp[]=new double[hmm.observationCount];\r\n for (int t=0;t<endTime;++t){\r\n tmp[o[t]]+=p[t][i][j];\r\n }\r\n for (int k=0;k<hmm.observationCount;++k){\r\n hmm.b[i][j][k]=(tmp[k]+1e-8)/pSumThroughTime[i][j];\r\n }\r\n }\r\n }\r\n //rebuild fbManipulator\r\n fbManipulator=new HMMForwardBackwardManipulator(hmm,o);\r\n }", "public void updateParameters(){\n\t\tp = RunEnvironment.getInstance().getParameters();\n\t\tmaxFlowerNectar = (double)p.getValue(\"maxFlowerNectar\");\n\t\tlowMetabolicRate = (double)p.getValue(\"lowMetabolicRate\");\n\t\thighMetabolicRate = (double)p.getValue(\"highMetabolicRate\");\n\t\tcolonySize = (int)p.getValue(\"colonySize\");\n\t}", "double getCalibrationPeriod();", "object_detection.protos.Calibration.FunctionApproximation getFunctionApproximation();", "public void calibrate(int num) {\n\t\tupdateGyro();\n\t\t\n\t\tsumX = 0;\t//Sum of avgX\n\t\tsumY = 0;\t//Sum of avgY\n\t\tsumZ = 0;\t//Sum of avgZ\n\t\t\n\t\tavgX.clear();\n\t\tavgY.clear();\n\t\tavgZ.clear();\n\t\t\n\t\tfor (int i=0; i < num; i++) {\n\t\t\tavgX.add(xl.getX());\n\t\t\tavgY.add(xl.getY());\n\t\t\tavgZ.add(xl.getZ());\n\t\t}\n\t\t\n\t\tfor (int i=0; i < avgX.size(); i++) {\n\t\t\tsumX += (double)avgX.get(i);\n\t\t\tsumY += (double)avgY.get(i);\n\t\t\tsumZ += (double)avgZ.get(i);\n\t\t}\n\t\t\n\t\texX = sumX / avgX.size();\n\t\texY = sumY / avgY.size();\n\t\texZ = sumZ / avgZ.size();\n\t\t\n\t\t//Data from calibrate()\n\t\tSmartDashboard.putNumber(\"test x\", exX * 9.8);\n\t\tSmartDashboard.putNumber(\"test y\", exY * 9.8);\n\t\tSmartDashboard.putNumber(\"test z\", exZ * 9.8);\n\n\t}", "protected void initSupportedIntensityMeasureParams() {\n\n\t\t// Create saParam:\n\t\tDoubleDiscreteConstraint periodConstraint = new DoubleDiscreteConstraint();\n\t\tTreeSet set = new TreeSet();\n\t\tEnumeration keys = coefficientsBJF.keys();\n\t\twhile (keys.hasMoreElements()) {\n\t\t\tBJF_1997_AttenRelCoefficients coeff = (BJF_1997_AttenRelCoefficients)\n\t\t\tcoefficientsBJF.get(keys.nextElement());\n\t\t\tif (coeff.period >= 0) {\n\t\t\t\tset.add(new Double(coeff.period));\n\t\t\t}\n\t\t}\n\t\tIterator it = set.iterator();\n\t\twhile (it.hasNext()) {\n\t\t\tperiodConstraint.addDouble( (Double) it.next());\n\t\t}\n\t\tperiodConstraint.setNonEditable();\n\t\tsaPeriodParam = new PeriodParam(periodConstraint);\n\t\tsaDampingParam = new DampingParam();\n\t\tsaParam = new SA_Param(saPeriodParam, saDampingParam);\n\t\tsaParam.setNonEditable();\n\n\t\t// Create PGA Parameter (pgaParam):\n\t\tpgaParam = new PGA_Param();\n\t\tpgaParam.setNonEditable();\n\n\t\t// Create PGV Parameter (pgvParam):\n\t\tpgvParam = new PGV_Param();\n\t\tpgvParam.setNonEditable();\n\n\t\t// The MMI parameter\n\t\tmmiParam = new MMI_Param();\n\n\t\t// Add the warning listeners:\n\t\tsaParam.addParameterChangeWarningListener(listener);\n\t\tpgaParam.addParameterChangeWarningListener(listener);\n\t\tpgvParam.addParameterChangeWarningListener(listener);\n\n\t\t// create supported list\n\t\tsupportedIMParams.clear();\n\t\tsupportedIMParams.addParameter(saParam);\n\t\tsupportedIMParams.addParameter(pgaParam);\n\t\tsupportedIMParams.addParameter(pgvParam);\n\t\tsupportedIMParams.addParameter(mmiParam);\n\n\t}", "void setCalibrationPeriod(double calibrationPeriod);", "public ScalarParameterInformation(boolean isParameterToCalibrate) {\r\n\t\tsuper();\r\n\t\tthis.isParameterToCalibrate = isParameterToCalibrate;\r\n\t\tthis.constraint = new Unconstrained();\r\n\t}", "protected void updateCoefficients() throws ParameterException {\n\n\t\t// Check that parameter exists\n\t\tif (im == null) {\n\t\t\tthrow new ParameterException(C +\n\t\t\t\t\t\": updateCoefficients(): \" +\n\t\t\t\t\t\"The Intensity Measusre Parameter has not been set yet, unable to process.\"\n\t\t\t);\n\t\t}\n\n\t\tStringBuffer key = new StringBuffer(im.getName());\n\t\tif (im.getName().equalsIgnoreCase(SA_Param.NAME)) {\n\t\t\tkey.append(\"/\" + saPeriodParam.getValue());\n\t\t}\n\t\tif (coefficientsBJF.containsKey(key.toString())) {\n\t\t\tcoeffBJF = (BJF_1997_AttenRelCoefficients) coefficientsBJF.get(key.\n\t\t\t\t\ttoString());\n\t\t\tcoeffSM = (BJF_1997_AttenRelCoefficients) coefficientsSM.get(key.toString());\n\t\t}\n\t\telse {\n\t\t\tthrow new ParameterException(C + \": setIntensityMeasureType(): \" +\n\t\t\t\t\t\"Unable to locate coefficients with key = \" +\n\t\t\t\t\tkey);\n\t\t}\n\t}", "int computeCalib()\n {\n long cid = mApp.mCID;\n if ( cid < 0 ) return -2;\n List<CalibCBlock> list = mApp_mDData.selectAllGMs( cid, 0 ); \n if ( list.size() < 16 ) {\n return -1;\n }\n int ng = 0; // cb with group\n for ( CalibCBlock cb : list ) {\n if ( cb.mGroup > 0 ) ++ng;\n }\n if ( ng < 16 ) {\n return -3;\n }\n switch ( mAlgo ) {\n case CalibInfo.ALGO_NON_LINEAR:\n mCalibration = new CalibAlgoBH( 0, true );\n // FIXME set the calibration algorithm (whether non-linear or linear)\n // mCalibration.setAlgorith( mAlgo == 2 ); // CALIB_AUTO_NON_LINEAR\n break;\n case CalibInfo.ALGO_MINIMUM:\n if ( TDLevel.overTester ) {\n mCalibration = new CalibAlgoMin( 0, false );\n break;\n }\n default: // linear algo\n mCalibration = new CalibAlgoBH( 0, false );\n }\n\n mCalibration.Reset( list.size() );\n for ( CalibCBlock item : list ) mCalibration.AddValues( item );\n \n int iter = mCalibration.Calibrate();\n if ( iter > 0 && iter < TDSetting.mCalibMaxIt ) {\n float[] errors = mCalibration.Errors();\n for ( int k = 0; k < list.size(); ++k ) {\n CalibCBlock cb = list.get( k );\n mApp_mDData.updateGMError( cb.mId, cid, errors[k] );\n // cb.setError( errors[k] );\n }\n\n byte[] coeff = mCalibration.GetCoeff();\n mApp_mDData.updateCalibCoeff( cid, CalibAlgo.coeffToString( coeff ) );\n mApp_mDData.updateCalibError( cid, \n mCalibration.Delta(),\n mCalibration.Delta2(),\n mCalibration.MaxError(),\n iter );\n\n // DEBUG:\n // Calibration.logCoeff( coeff );\n // coeff = Calibration.stringToCoeff( mApp.mDData.selectCalibCoeff( cid ) );\n // Calibration.logCoeff( coeff );\n }\n // Log.v( TopoDroidApp.TAG, \"iteration \" + iter );\n return iter;\n }", "abstract int estimationParameter1();", "public void calibrate(Properties theConfig, Gypsum.fsWindowProperties fswp) {\n\t\tfor (int i = 0; i < 4; i++) {\n\t\t\tcalPoints[i] = new Point(calPoints[i].x*2, calPoints[i].y*2);\n\t\t}\n\t\t\n\t\t// find the topleft, topright, bottomright, and bottomleft points\n\t\t// of the calibration quad (we can't assume a consistent winding)\n\t\tPoint TL, TR, BL, BR;\n\t\tTL = TR = BL = BR = new Point(0, 0);\n\t\tint mTL = 640+480; int mTR = 480; \n\t\tint mBL = -640; int mBR = 0;\n\t\t\n\t\tfor (int i = 0; i < 4; i++) {\n\t\t\tPoint p = calPoints[i];\n\t\t\t\n\t\t\t// figure out the blob's y+x and y-x \"altitude\"\n\t\t\tint YpX = p.y + p.x;\n\t\t\tint YmX = p.y - p.x;\n\t\t\t\n\t\t\t// see if either altitude is an extrema, and\n\t\t\t// update the values accordingly\n\t\t\tif (YpX < mTL) {\n\t\t\t\tTL = p;\n\t\t\t\tmTL = YpX;\n\t\t\t}\n\t\t\tif (YpX > mBR) {\n\t\t\t\tBR = p;\n\t\t\t\tmBR = YpX;\n\t\t\t}\n\t\t\tif (YmX < mTR) {\n\t\t\t\tTR = p;\n\t\t\t\tmTR = YmX;\n\t\t\t}\n\t\t\tif (YmX > mBL) { \n\t\t\t\tBL = p;\n\t\t\t\tmBL = YmX;\n\t\t\t}\n\t\t}\n\t\t\n\t\tdouble unit = fswp.height/3.0;\n\t\tint widthMargin = (fswp.width - fswp.height)/2;\n\t\t\n\t\t// create a perspective transform that maps the projector coordinates of the \n\t\t// calibration squares to the found quadrilateral. the inverse of this transform\n\t\t// will be used to correct the perspective distortion on the video input\n\t\tperspCorrect = PerspectiveTransform.getQuadToQuad(unit + widthMargin, unit,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t unit*2 + widthMargin, unit,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t unit*2 + widthMargin, unit*2,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t unit + widthMargin, unit*2,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tTL.x, TL.y,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tTR.x, TR.y,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tBR.x, BR.y,\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tBL.x, BL.y);\n\t\t\n\t\t// save the perspective transform parameters in the given config\n\t\ttheConfig.setProperty(\"perspTLx\", \"\" + TL.x); \n\t\ttheConfig.setProperty(\"perspTLy\", \"\" + TL.y);\n\t\t\n\t\ttheConfig.setProperty(\"perspTRx\", \"\" + TR.x); \n\t\ttheConfig.setProperty(\"perspTRy\", \"\" + TR.y);\n\t\t\n\t\ttheConfig.setProperty(\"perspBRx\", \"\" + BR.x);\n\t\ttheConfig.setProperty(\"perspBRy\", \"\" + BR.y);\n\t\t\n\t\ttheConfig.setProperty(\"perspBLx\", \"\" + BL.x);\n\t\ttheConfig.setProperty(\"perspBLy\", \"\" + BL.y);\n\t\t\n\t\tcalibrated = true;\t\t\n\t}", "private void correctParameter(){\n \tint ifObtuse;\r\n \tif(initialState.v0_direction>90)ifObtuse=1;\r\n \telse ifObtuse=0;\r\n \tdouble v0=initialState.v0_val;\r\n \tdouble r0=initialState.r0_val;\r\n \tdouble sintheta2=Math.sin(Math.toRadians(initialState.v0_direction))*Math.sin(Math.toRadians(initialState.v0_direction));\r\n \tdouble eccentricityMG=Math.sqrt(center.massG*center.massG-2*center.massG*v0*v0*r0*sintheta2+v0*v0*v0*v0*r0*r0*sintheta2);\r\n \tdouble cosmiu0=-(v0*v0*r0*sintheta2-center.massG)/eccentricityMG;\r\n \tpe=(v0*v0*r0*r0*sintheta2)/(center.massG+eccentricityMG);\r\n \tap=(v0*v0*r0*r0*sintheta2)/(center.massG-eccentricityMG);\r\n \tsemimajorAxis=(ap+pe)/2;\r\n \tsemiminorAxis=Math.sqrt(ap*pe);\r\n \tsemifocallength=(ap-pe)/2;\r\n \tSystem.out.println(semimajorAxis+\",\"+semiminorAxis+\",\"+semifocallength);\r\n \teccentricity=eccentricityMG/center.massG;\r\n \tperiod=2*Math.PI*Math.sqrt(semimajorAxis*semimajorAxis*semimajorAxis/(center.massG));\r\n \trotate=(360-Math.toDegrees(Math.acos(cosmiu0)));\r\n \torbitCalculator.angleDelta=(Math.toDegrees(Math.acos(cosmiu0))+360);\r\n \trotate=rotate+initialState.r0_direction;\r\n \t\r\n \tif(ifObtuse==1) {\r\n \t\tdouble rbuf=rotate;\r\n \t\trotate=initialState.r0_direction-rotate;\r\n \t\torbitCalculator.angleDelta+=(2*rbuf-initialState.r0_direction);\r\n \t}\r\n \tfor(;;) {\r\n \t\tif(rotate>360)rotate=rotate-360;\r\n \t\telse break;\r\n \t}\r\n \tfor(;;) {\r\n \t\tif(rotate<0)rotate=rotate+360;\r\n \t\telse break;\r\n \t}\r\n \t/*\r\n \tpe=initialState.r0_val;\r\n rotate=initialState.r0_direction;\r\n ap=(initialState.v0_val*initialState.v0_val*pe*pe)/(2*center.massG-initialState.v0_val*initialState.v0_val*pe);\r\n peSpeed=initialState.v0_val;\r\n apSpeed=(2*center.massG-initialState.v0_val*initialState.v0_val*pe)/(initialState.v0_val*pe);\r\n if(ap<pe){\r\n double lf=ap;ap=pe;pe=lf;\r\n lf=apSpeed;apSpeed=peSpeed;peSpeed=lf;\r\n }\r\n semimajorAxis=(ap+pe)/2;\r\n semifocallength=(ap-pe)/2;\r\n semiminorAxis=Math.sqrt(ap*pe);\r\n eccentricity=semifocallength/semimajorAxis;\r\n period=2*Math.PI*Math.sqrt(semimajorAxis*semimajorAxis*semimajorAxis/(center.massG));*/\r\n }", "float[] calculate(float[] acc, float[] oldAcc, float[] gyr , float[] oldGyr,float[] oldGra, float[] oldAccVelDisGra)\n {\n// System.out.println(\"inside method acc:\"+acc[0]+\", \"+acc[1]+\", \"+acc[2]+\", oldAcc:\"+oldAcc[0]+\", \"+oldAcc[1]+\", \"+oldAcc[2]);\n// System.out.println(\"inside method gravity:\"+oldGra[0]+\", \"+oldGra[1]+\", \"+oldGra[2]);\n if (oldAccVelDisGra==null)\n {\n oldAccVelDisGra= new float[9];\n for (int i = 0; i <9; i++) {\n oldAccVelDisGra[i]=0.0f;\n }\n }\n float[] oldDynamicAcc = new float[]{0.0f, 0.0f, 0.0f};\n float[] oldVelocity = new float[]{0.0f, 0.0f, 0.0f};\n float[] oldDistance = new float[]{0.0f, 0.0f, 0.0f};\n float[] newGra = gravityFromRotation(oldGra, gyr);\n\n for (int i = 0; i < 3; i++) {\n oldDynamicAcc[i] = oldAccVelDisGra[i];\n oldVelocity[i] = oldAccVelDisGra[i+3];\n oldDistance[i] = oldAccVelDisGra[i+6];\n }\n float[] accVelDisGra = new float[]{0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f};\n float[] dynAccDiff = dynamicAccDiff(acc,gyr,oldGra,oldAcc,oldGyr);\n float[] dynamicAcc = dynamicAcc(oldDynamicAcc, dynAccDiff);\n float[] velocity = velocity(oldVelocity,dynamicAcc);\n float[] distance = distance(oldDistance, velocity);\n for (int i = 0; i < 3; i++) {\n accVelDisGra[i]=dynamicAcc[i];\n accVelDisGra[i+3]= velocity[i];\n accVelDisGra[i+6]=distance[i];\n accVelDisGra[i+9]=newGra[i];\n }\n return accVelDisGra;\n }", "public void readCameraInitialParameters() {\n if (this.mCameraDevice != null) {\n int maxEvo = this.mCameraDevice.getCapabilities().getMaxExposureCompensation();\n int minEvo = this.mCameraDevice.getCapabilities().getMinExposureCompensation();\n Log.w(TAG, String.format(\"max Evo is %d and min Evo is %d\", new Object[]{Integer.valueOf(maxEvo), Integer.valueOf(minEvo)}));\n this.mUI.parseEvoBound(maxEvo, minEvo);\n initializeFocusModeSettings();\n }\n }", "public void calculateCoefficients(){\n\t\tdlt2d = null;\t//Get rid of existing calibration\n\t\tdouble[][] global = new double[calibrationFrame.data.size()-1][2]; //Global coordinates of the calibration object\n\t\tdouble[][] digitizedPoints = new double[calibrationFrame.data.size()-1][2];\n\t\t/*Copy the calibration object*/\n\t\tfor (int r = 0; r< calibrationFrame.data.size()-1;++r){\n\t\t\tfor (int c = 0; c<2;++c){\n\t\t\t\tSystem.out.println(calibrationFrame.data.get(r+1).get(c+1));\n\t\t\t\tglobal[r][c] = Double.parseDouble(calibrationFrame.data.get(r+1).get(c+1));\n\t\t\t}\n\t\t}\n\t\t/*Copy the calibration points*/\n\t\tfor (int r = 0; r< digitizedPoints.length;++r){\n\t\t\tfor (int c = 0; c< digitizedPoints[r].length;++c){\n\t\t\t\tdigitizedPoints[r][c] = (double) digitizedCalibration[r][c];\n\t\t\t}\n\t\t}\n\n\t\tdigitizedCalibration = null;\n\t\tdlt2d = new DLT2D(global,digitizedPoints);\n\t\t/*Print coefficients...*/\n\t\tMatrix coeffs = dlt2d.getCurrentDltCoefficients();\n\t\tString resultString = \"Coefficients\\n\";\n\t\tfor (int i = 0; i< coeffs.getRowDimension();++i){\n\t\t\tresultString += \"\\tCoeff \"+i+\": \"+Double.toString(coeffs.get(i,0))+\"\\n\";\n\t\t}\n\t\tSystem.out.println(resultString);\t\t\n\t\tstatus.setText(new String(\"2D DLT coefficients\"));\n\t\t/*Create text pane for coordinates*/\n\t\tpointFrame = new SaveableFrame(this);\n\t\tpointFrame.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);\n\t\tpointFrame.pack();\n\t\tpointFrame.setLocation(10, 600);\n\t\tpointFrame.setVisible(true);\t\n\t\t\n\t\t\n\t}", "double calculateAxon(ActivationFunction activationFunction);", "object_detection.protos.Calibration.TemperatureScalingCalibration getTemperatureScalingCalibration();", "public double getParameterValue (Assignment input) ;", "@Override\n\tpublic Parameter[] getParameters() {\n\t\treturn new Parameter[] { weight, tolerance, svmType, kernelType, kernelDegree, kernelGamma, kernelCoefficient, parameterC,\n\t\t\t\tparameterNu };\n\t}", "protected void parametersToCamera(double[] params, PinholeCamera result) {\n \n if (mResidualIntrinsic == null) {\n mResidualIntrinsic = new PinholeCameraIntrinsicParameters();\n }\n mResidualIntrinsic.setSkewness(params[0]);\n mResidualIntrinsic.setHorizontalFocalLength(params[1]);\n mResidualIntrinsic.setVerticalFocalLength(params[2]);\n mResidualIntrinsic.setHorizontalPrincipalPoint(params[3]);\n mResidualIntrinsic.setVerticalPrincipalPoint(params[4]);\n \n if (mResidualRotation == null) {\n mResidualRotation = new Quaternion(params[5], params[6], \n params[7], params[8]);\n } else {\n mResidualRotation.setA(params[5]);\n mResidualRotation.setB(params[6]);\n mResidualRotation.setC(params[7]);\n mResidualRotation.setD(params[8]);\n }\n mResidualRotation.normalize();\n \n if (mResidualCenter == null) {\n mResidualCenter = new InhomogeneousPoint3D(params[9], params[10], \n params[11]);\n } else {\n mResidualCenter.setInhomogeneousCoordinates(params[9], params[10],\n params[11]);\n }\n mResidualCenter.normalize();\n \n result.setIntrinsicAndExtrinsicParameters(mResidualIntrinsic, \n mResidualRotation, mResidualCenter); \n result.normalize();\n }", "float getIva();", "double getCalibrationOffset();", "private void processData() {\n\t\tfloat S, M, VPR, VM;\n\t\tgetCal();\n\t\tgetTimestamps();\n\t\t\n \n\t\tfor(int i = 0; i < r.length; i++) {\n\t\t\t//get lux\n\t\t\tlux[i] = RGBcal[0]*vlam[0]*r[i] + RGBcal[1]*vlam[1]*g[i] + RGBcal[2]*vlam[2]*b[i];\n \n\t\t\t//get CLA\n\t\t\tS = RGBcal[0]*smac[0]*r[i] + RGBcal[1]*smac[1]*g[i] + RGBcal[2]*smac[2]*b[i];\n\t\t\tM = RGBcal[0]*mel[0]*r[i] + RGBcal[1]*mel[1]*g[i] + RGBcal[2]*mel[2]*b[i];\n\t\t\tVPR = RGBcal[0]*vp[0]*r[i] + RGBcal[1]*vp[1]*g[i] + RGBcal[2]*vp[2]*b[i];\n\t\t\tVM = RGBcal[0]*vmac[0]*r[i] + RGBcal[1]*vmac[1]*g[i] + RGBcal[2]*vmac[2]*b[i];\n \n\t\t\tif(S > CLAcal[2]*VM) {\n\t\t\t\tCLA[i] = M + CLAcal[0]*(S - CLAcal[2]*VM) - CLAcal[1]*683*(1 - pow((float)2.71, (float)(-VPR/4439.5)));\n\t\t\t}\n\t\t\telse {\n\t\t\t\tCLA[i] = M;\n\t\t\t}\n\t\t\tCLA[i] = CLA[i]*CLAcal[3];\n\t\t\tif(CLA[i] < 0) {\n\t\t\t\tCLA[i] = 0;\n\t\t\t}\n \n\t\t\t//get CS\n\t\t\tCS[i] = (float) (.7*(1 - (1/(1 + pow((float)(CLA[i]/355.7), (float)1.1026)))));\n \n\t\t\t//get activity\n\t\t\ta[i] = (float) (pow(a[i], (float).5) * .0039 * 4);\n\t\t}\n\t}", "public CalibrateReturn calibrate(JFrame con, MyPoint2D clickPoint, MyPoint3D typed1, MyPoint3D typed2) {\n final String title = \"Calibrate\";\n final String prompt1 = \"Enter the coordinates of the \";\n final String prompt2 = \" calibration point:\";\n final String message = \"Enter three numeric values.\";\n \n // Determine which calibration point to work with and get the coordinates for that point:\n MyPoint3D p;\n String prompt;\n if (getClicked1()==null) { // neither have been set\n // We will set the first calibration point:\n p = typed1;\n prompt = \"first\";\n } else if (getClicked2()==null) { // only the first has been set\n // We will set the second calibration point:\n p = typed2;\n prompt = \"second\";\n } else { // both have been set\n // We will set the first calibration point:\n p = typed1;\n prompt = \"first\";\n }\n\n // Ask for the spatial coordinates of the clicked point:\n prompt = prompt1 + prompt + prompt2;\n String input;\n if (p==null) {\n input = Dialogs.input(con,prompt,title);\n } else {\n input = Dialogs.input(con,prompt,title,p.toString());\n }\n if (input==null) { return null; } // user cancelled\n input = input.trim();\n String[] inputs = input.split(\"[ ]+\");\n if (inputs.length!=3) {\n Dialogs.error(con,\"You must enter 3 values.\",title);\n return null;\n }\n \n // Parse the inputs to doubles:\n double x,y,z;\n try {\n x = Double.parseDouble(inputs[0].trim());\n y = Double.parseDouble(inputs[1].trim());\n z = Double.parseDouble(inputs[2].trim());\n } catch (NumberFormatException | ArrayIndexOutOfBoundsException e) {\n Dialogs.error(con,message,title);\n return null;\n }\n\n // Determine which calibration point to work with and return the appropriate value:\n MyPoint3D newTyped = new MyPoint3D(x,y,z);\n if (getClicked1()==null) { // neither have been set\n // Set the first calibration point:\n setClicked1(clickPoint);\n //setTyped1(newTyped);\n return new CalibrateReturn(true,newTyped,null);\n } else if (getClicked2()==null) { // only the first has been set\n // Check the second calibration point is okay:\n if (clickPoint.getX()==getClicked1().getX()) {\n Dialogs.error(con,\"The points lie on the same vertical line!\",title);\n //clearCalibration();\n return null;\n }\n if (clickPoint.getY()==getClicked1().getY()) {\n Dialogs.error(con,\"The points lie on the same horizontal line!\",title);\n //clearCalibration();\n return null;\n }\n // Set the second calibration point:\n setClicked2(clickPoint);\n //setTyped2(newTyped);\n return new CalibrateReturn(false,null,newTyped); // don't need to continue because both typed points have now been entered\n } else { // both have been set\n // Set the first and clear the second:\n setClicked1(clickPoint);\n //setTyped1(newTyped);\n setClicked2(null);\n // (keep the typed2 point for later use)\n return new CalibrateReturn(true,newTyped,null);\n }\n \n }", "public float[] calibrate(Base mBase, Sensor mSensor) {\n final double metersPerLatitude;\n final double metersPerLongitude;\n\n\n\n //Fetching the cisco position for the robot, which returns\n float ciscoLong = (float) 8.57617285865058;\n float ciscoLat = (float) 58.33447638466072;\n\n\n metersPerLongitude = distanceCalculator.calculateDistance(ciscoLong, ciscoLat, ciscoLong + 1.0, ciscoLat);\n\n metersPerLatitude= distanceCalculator.calculateDistance(ciscoLong, ciscoLat, ciscoLong, ciscoLat + 1.0);\n\n\n float originCiscoPositionx = ciscoLong * (float) metersPerLongitude;\n float originCiscoPositiony = ciscoLat * (float) metersPerLatitude;\n\n\n //Driving 1 meter forward test\n //mBase.addCheckPoint(1, 0);\n\n\n //GetCiscoPosition()\n //These are the actual coordinates of x2 and y2 in latitude and longitude.\n\n\n\n //If Loomo was already headed east, we would expect these coordinates in meters:\n float expectedCiscoPositionx2 = (originCiscoPositionx + 1);\n\n float newCiscoPointlon = (float) 8.57617413279317;\n float newCiscoPointlat = (float) 58.334468102336245;\n\n\n float actualCiscoPositionx2 = newCiscoPointlon * (float) metersPerLongitude;\n float actualCiscoPositiony2 = newCiscoPointlat * (float) metersPerLatitude;\n\n\n\n //Defining 3 vectors that make up a triangle abc\n double[] aVector = {expectedCiscoPositionx2 - originCiscoPositionx, originCiscoPositiony - originCiscoPositiony};\n double[] bVector = {actualCiscoPositionx2 - originCiscoPositionx, actualCiscoPositiony2 - originCiscoPositiony};\n double[] cVector = {expectedCiscoPositionx2 - actualCiscoPositionx2, originCiscoPositiony - actualCiscoPositiony2};\n\n\n\n //Calculating the length of each vector / side of the triangle with the pythagorean therm.\n double aVectorLengthSquared = Math.pow(aVector[0], 2.0) + Math.pow(aVector[1], 2.0);\n double bVectorLengthSquared = Math.pow(bVector[0], 2.0) + Math.pow(bVector[1], 2.0);\n double cVectorLengthSquared = Math.pow(cVector[0], 2.0) + Math.pow(cVector[1], 2.0);\n\n System.out.println(\"Length a = \" + sqrt(aVectorLengthSquared));\n System.out.println(\"Length b = \" + sqrt(bVectorLengthSquared));\n System.out.println(\"Length c = \" + sqrt(cVectorLengthSquared));\n System.out.println(\" \");\n\n //Calculating the angle between the vector from the expected points and the vector from the\n // real points using the cosine law. This gives us an angle ∈ [0,PI].\n float angle = (float) acos((aVectorLengthSquared + bVectorLengthSquared - cVectorLengthSquared)\n / (2 * sqrt(aVectorLengthSquared) * sqrt(bVectorLengthSquared)));\n\n\n\n //If the y-element of the b-vector is negative, that means loomo has been driving\n // southwards. This means, if we are to rotate the coordinates to fit loomo,\n // they will need to be rotated in the positive direction, or against the clock. -> angle = angle\n // If the y-element is positive, then loomo has been driving north, and the coordinates will\n // need to be rotated with the clock. Then \"angle\" will be the negative value\n // found with the cosine law.\n\n if (bVector[1] < 0) {\n angle = angle;\n } else if (bVector[1] > 0) {\n angle = -angle;\n }\n\n System.out.println(\"The angle between the reference systems are: \" + angle + \", which equals \" + angle / PI + \"*PI\\n\" );\n\n mBase.cleanOriginalPoint();\n\n //Setting Fetching the original point where Loomo stands.\n mBase.cleanOriginalPoint();\n Pose2D pose2D = mBase.getOdometryPose(-1);\n mBase.setOriginalPoint(pose2D);\n\n //Driving North: \t58.334512491588754, 8.576253530218082 to 58.33452608839093, 8.576253888068521\n //Driving East: 58.33452608839093, 8.576253888068521 to 58.33452618178464, 8.576285073219395\n //Driving West: 58.33452618178464, 8.576285073219395 to 58.33452693486112, 8.576258173706947\n //Driving South: 58.33452693486112, 8.576258173706947 to 58.33451544969185, 8.576258890746544\n\n float[] calibInfo = {angle, (float) metersPerLongitude, (float) metersPerLatitude};\n return calibInfo;\n }", "object_detection.protos.Calibration.FunctionApproximationOrBuilder getFunctionApproximationOrBuilder();", "protected void calibrateMetaModel(final int currentParamNo) {\r\n\t\tCalcfc optimization=new Calcfc() {\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic double compute(int m, int n, double[] x, double[] constrains) {\r\n\t\t\t\tdouble objective=0;\r\n\t\t\t\tMetaModelParams=x;\r\n\t\t\t\tfor(int i:params.keySet()) {\r\n\t\t\t\t\tobjective+=Math.pow(calcMetaModel(0, params.get(i))-simData.get(i),2)*calcEuclDistanceBasedWeight(params, i,currentParamNo);\r\n\t\t\t\t}\r\n\t\t\t\treturn objective;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t};\r\n\t\tdouble[] x=new double[this.noOfMetaModelParams]; \r\n\t\tfor(int i=0;i<this.noOfMetaModelParams;i++) {\r\n\t\t\tx[i]=0;\r\n\t\t}\r\n\t CobylaExitStatus result = Cobyla.findMinimum(optimization, this.noOfMetaModelParams, 0, x,0.5,Math.pow(10, -6) ,3, 1500);\r\n\t this.MetaModelParams=x;\r\n\t}", "@Override\r\n\t\tpublic double[] gradient(double x, double... parameters) {\n\t\t\tfinal double a = parameters[0];\r\n\t\t\tfinal double b = parameters[1];\r\n\t\t\tfinal double c = parameters[2];\r\n\t\t\tfinal double d = parameters[3];\r\n\t\t\tfinal double e = parameters[4];\r\n\t\t\t\r\n\t\t\tdouble[] gradients = new double[5];\r\n\t\t\t//double den = 1 + Math.pow((x+e)/c, b);\r\n\t\t\t//gradients[0] = 1 / den; // Yes a Derivation \r\n\t\t\t//gradients[1] = -((a - d) * Math.pow(x / c, b) * Math.log(x / c)) / (den * den); // Yes b Derivation \r\n\t\t\t//gradients[2] = (b * Math.pow(x / c, b - 1) * (x / (c * c)) * (a - d)) / (den * den); // Yes c Derivation \r\n\t\t\t//gradients[3] = 1 - (1 / den); // Yes d Derivation \r\n\t\t\t\r\n\t\t\t//Derivation\r\n\t\t\tfinal double c_b = Math.pow(c, b);\r\n\t\t\tfinal double c_b1 = Math.pow(c, b+1.);\r\n\t\t\tfinal double c_2b = Math.pow(c, 2.*b);\r\n\t\t\tfinal double c_2b1 = Math.pow(c, 2.*b+1.);\r\n\t\t\t\r\n\t\t\tfinal double xe_b = Math.pow(x+e, b);\r\n\t\t\tfinal double xe_2b = Math.pow(x+e, 2.*b);\r\n\t\t\tfinal double xe_2b1 = Math.pow(x+e, 2.*b+1.);\r\n\t\t\t\r\n\t\t\tgradients[0] = c_b/(xe_b+c_b);\r\n\t\t\tgradients[1] = ((c_b*d-a*c_b)*xe_b*Math.log(x+e)+(a*c_b*Math.log(c)-c_b*Math.log(c)*d)*xe_b)/(xe_2b+2*c_b*xe_b+c_2b);\r\n\t\t\tgradients[2] = -((b*c_b*d-a*b*c_b)*xe_b)/(c*xe_2b+2*c_b1*xe_b+c_2b1);\r\n\t\t\tgradients[3] = xe_b/(xe_b+c_b);\r\n\t\t\tgradients[4] = ((b*c_b*d-a*b*c_b)*xe_b)/(xe_2b1+xe_b*(2*c_b*x+2*c_b*e)+c_2b*x+c_2b*e);\r\n\t\t\treturn gradients;\r\n\t\t}", "public void specifyParams (double[] _params){\n\t\t\n\t\tif (_params.length != this.getNumParameters2Calib()) {\n\t\t\tSystem.err.println(\n\t\t\t\t\t\"Error when getting parameters from a double array. \"\n\t\t\t\t\t+ \"We don't have + \" + this.getNumParameters2Calib() \n\t\t\t\t\t+ \" parameters\\n\");\n\t\t}\n\t\t\n\t\tint i = 0;\n\t\t\n\t\t// first decode the SN to set\n\t\tint numberSN = (int)Math.round(_params[i++]);\n\t\t\n\t\tif (numberSN >= this.graphsFromFiles.size() || numberSN < 0) {\n\t\t\tSystem.err.println(\n\t\t\t\t\t\"Error when getting the SN integer parameter. Mismatch between SNs \"\n\t\t\t\t\t+ \"and the gene: params = \" + numberSN + \" and we have \" +\n\t\t\t\t\tthis.graphsFromFiles.size() + \" SNs loaded from files\\n\");\n\t\t}\n\t\t\n\t\t// set the specific graph to the parameters\n\t\tsetSelectedSN(numberSN);\n\t\t\t\t\t\t\n\t\t// then, the parameters for the segments\n\n\t\tfor (int k = 0; k < this.getNumSegments(); k++) {\n\n\t\t\t// THIS PARAMETERS HAS NO EFFECT: -1 \n\t\t\tsetSegmentConnectivity(k, -1);\n\t\t\t\n\t\t\t// loading probability for new friends \n\t\t\tsetSegmentDailyProbNewFriend(k, _params[i++]);\n\t\t\t\n\t\t\t// loading probability for losing friends \n\t\t\tsetSegmentDailyProbLoseFriend(k, _params[i++]);\n\n\t\t\t// loading probability for obtain subscription\n\t\t\tsetSegmentDailyProbObtainSubscription(k, _params[i++]);\n\n\t\t\t// loading probability for playing during the weekend \n\t\t\tsetSegmentDailyProbPlayWeekend(k, _params[i++]);\n\t\t\t\n\t\t\t// loading probability for playing during weekdays\n\t\t\tsetSegmentDailyProbPlayNoWeekend(k, _params[i++]);\n\n\t\t\t// loading social parameter for adoption \n\t\t\tsetSegmentSocialAdoptionParam(k, _params[i++]);\n\t\t\t\n\t\t}\n\t\t\t\t\t\n\t\tif (controller.CalibrationController.DEBUG_CALIB) {\n\t\t\t\n\t\t\tPrintWriter writer = new PrintWriter(System.out);\n\t\t\tthis.printParamters2Calib(writer);\n\t\t\twriter.close();\n\t\t\t\t\t\n\t\t}\n\t}", "public abstract double getConstraintFitness();", "ExampleCalibrationSub2() {\r\n this.KeABC_Str_Example2 = \"Example 2\";\r\n this.KeABC_ms_Example2 = 12345;\r\n this.KeABC_Bool_Example2 = true;\r\n CalibrationSingleton.getInstance().update(this);\r\n }", "float getScaler();", "public FitRealFunction() {\t\t\r\n\t}", "public float getDCM();", "void finishCalibration();", "private static double fx(int x, int y, int w, int h) {\n return 2 * Math.sqrt(Math.pow(Math.abs(x - (w/2)), 2) + Math.pow(Math.abs(y - (h/2)),2));\n }", "@Override\n\t\t\t\tpublic void ecCalibrationStatus(LinphoneCore lc, EcCalibratorStatus status,\n\t\t\t\t\t\tint delay_ms, Object data) {\n\t\t\t\t\t\n\t\t\t\t}", "private void estimateFlatEarthPolynomial() {\n int minLine = 0;\n int maxLine = sourceImageHeight;\n int minPixel = 0;\n int maxPixel = sourceImageWidth;\n \n Rectangle rectangle = new Rectangle();\n rectangle.setSize(maxPixel, maxLine);\n \n // int srpPolynomialDegree = 5; // for flat earth phase\n int numberOfCoefficients = numberOfCoefficients(srpPolynomialDegree);\n \n double[][] position = distributePoints(srpNumberPoints, rectangle);\n \n // setup observation and design matrix\n DoubleMatrix y = new DoubleMatrix(srpNumberPoints);\n DoubleMatrix A = new DoubleMatrix(srpNumberPoints, numberOfCoefficients);\n \n double masterMinPi4divLam = (-4 * Math.PI * Constants.lightSpeed) / masterMetadata.radar_wavelength;\n double slaveMinPi4divLam = (-4 * Math.PI * Constants.lightSpeed) / slaveMetadata.radar_wavelength;\n \n // Loop throu a vector or distributedPoints()\n for (int i = 0; i < srpNumberPoints; ++i) {\n \n double line = position[i][0];\n double pixel = position[i][1];\n \n // compute azimuth/range time for this pixel\n final double masterTimeRange = pix2tr(pixel, masterMetadata);\n \n // compute xyz of this point : sourceMaster\n Point3d xyzMaster = lp2xyz(line, pixel, masterMetadata, masterOrbit);\n \n final Point2d slaveTimeVector = xyz2t(xyzMaster, slaveMetadata, slaveOrbit);\n final double slaveTimeRange = slaveTimeVector.x;\n \n // observation vector\n y.put(i, (masterMinPi4divLam * masterTimeRange) - (slaveMinPi4divLam * slaveTimeRange));\n \n // set up a system of equations\n // ______Order unknowns: A00 A10 A01 A20 A11 A02 A30 A21 A12 A03 for degree=3______\n double posL = normalize(line, minLine, maxLine);\n double posP = normalize(pixel, minPixel, maxPixel);\n \n int index = 0;\n \n for (int j = 0; j <= srpPolynomialDegree; j++) {\n for (int k = 0; k <= j; k++) {\n // System.out.println(\"A[\" + i + \",\" + index + \"]: \"\n // + Math.pow(posL, (float) (j - k)) * Math.pow(posP, (float) k));\n A.put(i, index, (Math.pow(posL, (double) (j - k)) * Math.pow(posP, (double) k)));\n index++;\n }\n }\n }\n \n // Fit polynomial through computed vector of phases\n DoubleMatrix Atranspose = A.transpose();\n DoubleMatrix N = Atranspose.mmul(A);\n DoubleMatrix rhs = Atranspose.mmul(y);\n \n // TODO: validate Cholesky decomposition of JBLAS: see how it is in polyfit and reuse!\n \n // this should be the coefficient of the reference phase\n flatEarthPolyCoefs = Solve.solve(N, rhs);\n \n /*\n System.out.println(\"*******************************************************************\");\n System.out.println(\"_Start_flat_earth\");\n System.out.println(\"*******************************************************************\");\n System.out.println(\"Degree_flat:\" + polyDegree);\n System.out.println(\"Estimated_coefficients_flatearth:\");\n int coeffLine = 0;\n int coeffPixel = 0;\n for (int i = 0; i < numberOfCoefficients; i++) {\n if (flatEarthPolyCoefs.get(i, 0) < 0.) {\n System.out.print(flatEarthPolyCoefs.get(i, 0));\n } else {\n System.out.print(\" \" + flatEarthPolyCoefs.get(i, 0));\n }\n \n System.out.print(\" \\t\" + coeffLine + \" \" + coeffPixel + \"\\n\");\n coeffLine--;\n coeffPixel++;\n if (coeffLine == -1) {\n coeffLine = coeffPixel;\n coeffPixel = 0;\n }\n }\n System.out.println(\"*******************************************************************\");\n System.out.println(\"_End_flat_earth\");\n System.out.println(\"*******************************************************************\");\n */\n \n // TODO: test inverse : when cholesky is finished\n // // ______Test inverse______\n // for (i=0; i<Qx_hat.lines(); i++)\n // for (j=0; j<i; j++)\n // Qx_hat(j,i) = Qx_hat(i,j);// repair Qx_hat\n // const real8 maxdev = max(abs(N*Qx_hat-eye(real8(Qx_hat.lines()))));\n // INFO << \"flatearth: max(abs(N*inv(N)-I)) = \" << maxdev;\n // INFO.print();\n // if (maxdev > .01)\n // {\n // ERROR << \"Deviation too large. Decrease degree or number of points?\";\n // PRINT_ERROR(ERROR.get_str())\n // throw(some_error);\n // }\n // else if (maxdev > .001)\n // {\n // WARNING << \"Deviation quite large. Decrease degree or number of points?\";\n // WARNING.print();\n // }\n // else\n // {\n // INFO.print(\"Deviation is OK.\");\n // }\n // // ______Some other stuff, scale is ok______\n // matrix<real8> y_hat = A * rhs;\n // matrix<real8> e_hat = y - y_hat;\n }", "protected void initCoefficients() {\n\n\t\tString S = C + \": initCoefficients():\";\n\t\tif (D) {\n\t\t\tSystem.out.println(S + \"Starting\");\n\t\t}\n\n\t\t// Make the ShakeMap coefficients\n\t\tcoefficientsSM.clear();\n\t\t// Note that the coefficients in \"the APPENDIX\" that David Wald sent to me (Ned) on 8/27/07\n\t\t// assume that all logs in their equation are base-10 (in spite of their using \"ln\" for\n\t\t// two of the terms). Thus, thier B1, B2, and Sigma values need to be multiplied by 2.3025.\n\t\t// Also, since their units are gals their B1 needs to have ln(980) subtracted from it\n\t\t// (except for PGV).\n\t\t// PGA\n\t\tBJF_1997_AttenRelCoefficients coeffSM0 = new BJF_1997_AttenRelCoefficients(\n\t\t\t\tPGA_Param.NAME,\n\t\t\t\t-1, 2.408, 2.408, 2.408, 1.3171, 0.000, -1.757, -0.473, 760, 6.0,\n\t\t\t\t0.660, 0.328, 0.737, 0.3948, 0.836);\n\t\t// SA/0.00\n\t\tBJF_1997_AttenRelCoefficients coeffSM1 = new BJF_1997_AttenRelCoefficients(\n\t\t\t\tSA_Param.NAME + '/' + (new Double(\"0.00\")).doubleValue(),\n\t\t\t\t0.00, 2.408, 2.408, 2.408, 1.3171, 0.000, -1.757, -0.473, 760, 6.0,\n\t\t\t\t0.660, 0.328, 0.737, 0.3948, 0.836);\n\t\t// Note: no sigma values were available for those below (Vince needs to recompute them)\n\t\t// (those above came from Vince via personal communication)\n\t\t// therefore, I multiplied those above by ratio of the sigmas given in the table in\n\t\t// \"the APPENDIX\" David sent to me (Ned). These are labeled as \"Sigma\" in their table\n\t\t// with no further explanation; using the ratios seems reasonable.\n\t\t// SA/0.30\n\t\tBJF_1997_AttenRelCoefficients coeffSM2 = new BJF_1997_AttenRelCoefficients(\n\t\t\t\t\"SA/\" + (new Double(\"0.30\")).doubleValue(),\n\t\t\t\t0.30, 0.835318, 0.835318, 0.835318, 1.71773, 0.000, -1.827, -0.608, 760,\n\t\t\t\t6.0,\n\t\t\t\t(0.842 / 0.836) * 0.660, (0.842 / 0.836) * 0.328,\n\t\t\t\t(0.842 / 0.836) * 0.737, (0.842 / 0.836) * 0.3948,\n\t\t\t\t(0.842 / 0.836) * 0.836);\n\t\t// SA/1.00\n\t\tBJF_1997_AttenRelCoefficients coeffSM3 = new BJF_1997_AttenRelCoefficients(\n\t\t\t\t\"SA/\" + (new Double(\"1.00\")).doubleValue(),\n\t\t\t\t1.00, -1.82877, -1.82877, -1.82877, 2.20818, 0.000, -1.211, -0.974, 760,\n\t\t\t\t6.0,\n\t\t\t\t(0.988 / 0.836) * 0.660, (0.988 / 0.836) * 0.328,\n\t\t\t\t(0.988 / 0.836) * 0.737, (0.988 / 0.836) * 0.3948,\n\t\t\t\t(0.988 / 0.836) * 0.836);\n\t\t// SA/3.00 - actually these are BJF's 2-second values\n\t\tBJF_1997_AttenRelCoefficients coeffSM4 = new BJF_1997_AttenRelCoefficients(\n\t\t\t\t\"SA/\" + (new Double(\"3.00\")).doubleValue(),\n\t\t\t\t3.00, -4.63102, -4.63102, -4.63102, 2.09305, 0.000, -0.848, -0.890, 760,\n\t\t\t\t6.0,\n\t\t\t\t(1.082 / 0.836) * 0.660, (1.082 / 0.836) * 0.328,\n\t\t\t\t(1.082 / 0.836) * 0.737, (1.082 / 0.836) * 0.3948,\n\t\t\t\t(1.082 / 0.836) * 0.836);\n\t\t// PGV - They actually give PGV coeffs so no scaling of 1-sec SA is needed.\n\t\tBJF_1997_AttenRelCoefficients coeffSM5 = new BJF_1997_AttenRelCoefficients(\n\t\t\t\tPGV_Param.NAME,\n\t\t\t\t-1, 5.1186, 5.1186, 5.1186, 1.70391, 0.000, -1.386, -0.668, 760, 6.0,\n\t\t\t\t(0.753 / 0.836) * 0.660, (0.753 / 0.836) * 0.328,\n\t\t\t\t(0.753 / 0.836) * 0.737, (0.753 / 0.836) * 0.3948,\n\t\t\t\t(0.753 / 0.836) * 0.836);\n\n\t\t// add these to the list\n\t\tcoefficientsSM.put(coeffSM0.getName(), coeffSM0);\n\t\tcoefficientsSM.put(coeffSM1.getName(), coeffSM1);\n\t\tcoefficientsSM.put(coeffSM2.getName(), coeffSM2);\n\t\tcoefficientsSM.put(coeffSM3.getName(), coeffSM3);\n\t\tcoefficientsSM.put(coeffSM4.getName(), coeffSM4);\n\t\tcoefficientsSM.put(coeffSM5.getName(), coeffSM5);\n\n\t\t// Now make the original BJF 1997 coefficients\n\t\tcoefficientsBJF.clear();\n\t\t// PGA\n\t\tBJF_1997_AttenRelCoefficients coeff0 = new BJF_1997_AttenRelCoefficients(\n\t\t\t\tPGA_Param.NAME,\n\t\t\t\t-1, -0.313, -0.117, -0.242, 0.527, 0.000, -0.778, -0.371, 1396, 5.57,\n\t\t\t\t0.431, 0.226, 0.486, 0.184, 0.520);\n\t\t// SA/0.00\n\t\tBJF_1997_AttenRelCoefficients coeff1 = new BJF_1997_AttenRelCoefficients(\n\t\t\t\tSA_Param.NAME + '/' + (new Double(\"0.00\")).doubleValue(),\n\t\t\t\t0.00, -0.313, -0.117, -0.242, 0.527, 0, -0.778, -0.371, 1396, 5.57,\n\t\t\t\t0.431, 0.226, 0.486, 0.184, 0.520);\n\t\t// SA/0.30\n\t\tBJF_1997_AttenRelCoefficients coeff2 = new BJF_1997_AttenRelCoefficients(\n\t\t\t\t\"SA/\" + (new Double(\"0.30\")).doubleValue(),\n\t\t\t\t0.30, 0.598, 0.803, 0.7, 0.769, -0.161, -0.893, -0.401, 2133, 5.94,\n\t\t\t\t0.440, 0.276, 0.519, 0.048, 0.522);\n\t\t// SA/1.00\n\t\tBJF_1997_AttenRelCoefficients coeff3 = new BJF_1997_AttenRelCoefficients(\n\t\t\t\t\"SA/\" + (new Double(\"1.00\")).doubleValue(),\n\t\t\t\t1.00, -1.133, -1.009, -1.08, 1.036, -0.032, -0.798, -0.698, 1406, 2.9,\n\t\t\t\t0.474, 0.325, 0.575, 0.214, 0.613);\n\t\t// SA/3.00 - actually these are BJF's 2-second values\n\t\tBJF_1997_AttenRelCoefficients coeff4 = new BJF_1997_AttenRelCoefficients(\n\t\t\t\t\"SA/\" + (new Double(\"3.00\")).doubleValue(),\n\t\t\t\t3.00, -1.699, -1.801, -1.743, 1.085, -0.085, -0.812, -0.655, 1795, 5.85,\n\t\t\t\t0.495, 0.362, 0.613, 0.276, 0.672);\n\t\t// PGV - these are actually from 1-sec SA using the Newmark & Hall (1982). According to the ShakeMap docs this\n\t\t// scaling factor is PGV = (37.27*2.54)*SA1.0\n\t\t// The following formula is slightly more accurate (from Ken Campbell)\n\t\tdouble SA10toPGV = Math.log(981.0 / (2.0 * Math.PI * 1.65));\n\t\tBJF_1997_AttenRelCoefficients coeff5 = new BJF_1997_AttenRelCoefficients(\n\t\t\t\tPGV_Param.NAME,\n\t\t\t\t-1, -1.133 + SA10toPGV, -1.009 + SA10toPGV, -1.08 + SA10toPGV, 1.036,\n\t\t\t\t-0.032, -0.798, -0.698, 1406, 2.9, 0.474, 0.325, 0.575, 0.214, 0.613);\n\n\t\t// add these to the list\n\t\tcoefficientsBJF.put(coeff0.getName(), coeff0);\n\t\tcoefficientsBJF.put(coeff1.getName(), coeff1);\n\t\tcoefficientsBJF.put(coeff2.getName(), coeff2);\n\t\tcoefficientsBJF.put(coeff3.getName(), coeff3);\n\t\tcoefficientsBJF.put(coeff4.getName(), coeff4);\n\t\tcoefficientsBJF.put(coeff5.getName(), coeff5);\n\n\t}", "public void fitParams (RJGUIController.XferFittingMod xfer) {\n\n\t\t// Get sequence-specific parameters\n\n\t\tRange aRange = xfer.x_aValRangeParam;\n\t\tint aNum = xfer.x_aValNumParam;\n\t\t//validateRange(aRange, aNum, \"a-value\");\n\t\tRange pRange = xfer.x_pValRangeParam;\n\t\tint pNum = xfer.x_pValNumParam;\n\t\t//validateRange(pRange, pNum, \"p-value\");\n\t\tRange cRange = xfer.x_cValRangeParam;\n\t\tint cNum = xfer.x_cValNumParam;\n\t\t//validateRange(cRange, cNum, \"c-value\");\n\t\t\t\t\t\n\t\tdouble mc = xfer.x_mcParam;\n\t\t\t\t\t\t\t\t\t\n\t\tdouble b = xfer.x_bParam;\n\n\t\t// Save the sequence-specific parameters for possible use in analyst options\n\n\t\tfetch_fcparams.seq_spec_params = new SeqSpecRJ_Parameters (\n\t\t\tb,\n\t\t\taRange.getLowerBound(),\n\t\t\taRange.getUpperBound(),\n\t\t\taNum,\n\t\t\tpRange.getLowerBound(),\n\t\t\tpRange.getUpperBound(),\n\t\t\tpNum,\n\t\t\tcRange.getLowerBound(),\n\t\t\tcRange.getUpperBound(),\n\t\t\tcNum\n\t\t);\n\n\t\t// Magnitude of completeness info\n\t\t\t\t\t\t\n\t\tdouble mCat;\n\n\t\tMagCompFn magCompFn;\n\n\t\t// If doing time-dependent magnitude of completeness\n\t\t\t\t\t\n\t\tif (xfer.x_timeDepMcParam) {\n\n\t\t\tdouble f = xfer.x_fParam;\n\t\t\t\t\t\t\n\t\t\tdouble g = xfer.x_gParam;\n\t\t\t\t\t\t\n\t\t\tdouble h = xfer.x_hParam;\n\t\t\t\t\t\t\n\t\t\tmCat = xfer.x_mCatParam;\n\n\t\t\tmagCompFn = MagCompFn.makePageOrConstant (f, g, h);\n\t\t\t\t\t\t\n\t\t\tcur_model = new RJ_AftershockModel_SequenceSpecific(get_cur_mainshock(), get_cur_aftershocks(), mCat, magCompFn, b,\n\t\t\t\t\txfer.x_dataStartTimeParam, xfer.x_dataEndTimeParam,\n\t\t\t\t\taRange.getLowerBound(), aRange.getUpperBound(), aNum,\n\t\t\t\t\tpRange.getLowerBound(), pRange.getUpperBound(), pNum,\n\t\t\t\t\tcRange.getLowerBound(), cRange.getUpperBound(), cNum);\n\n\t\t// Otherwise, time-independent magnitude of completeness\n\n\t\t} else {\n\t\t\t\t\t\t\n\t\t\tmCat = mc;\n\n\t\t\tmagCompFn = MagCompFn.makeConstant();\n\n\t\t\tcur_model = new RJ_AftershockModel_SequenceSpecific(get_cur_mainshock(), get_cur_aftershocks(), mc, b,\n\t\t\t\t\txfer.x_dataStartTimeParam, xfer.x_dataEndTimeParam,\n\t\t\t\t\taRange.getLowerBound(), aRange.getUpperBound(), aNum,\n\t\t\t\t\tpRange.getLowerBound(), pRange.getUpperBound(), pNum,\n\t\t\t\t\tcRange.getLowerBound(), cRange.getUpperBound(), cNum);\n\t\t}\n\n\t\t// Save the magnitude-of-completeness parameters for possible use in analyst options\n\n\t\tSearchMagFn magSample = aafs_fcparams.mag_comp_params.get_fcn_magSample();\t// the original value\n\t\tSearchRadiusFn radiusSample = fetch_fcparams.mag_comp_params.get_fcn_radiusSample();\n\t\tSearchMagFn magCentroid = aafs_fcparams.mag_comp_params.get_fcn_magCentroid();\t// the original value\n\t\tSearchRadiusFn radiusCentroid = fetch_fcparams.mag_comp_params.get_fcn_radiusCentroid();\n\n\t\tfetch_fcparams.mag_comp_params = new MagCompPage_Parameters (\n\t\t\tmCat,\n\t\t\tmagCompFn,\n\t\t\tmagSample.makeForAnalystMagCat (mCat),\n\t\t\tradiusSample,\n\t\t\tmagCentroid.makeForAnalystMagCat (mCat),\n\t\t\tradiusCentroid\n\t\t);\n\n\t\t// Make the Bayesian model if possible\n\t\t\t\t\t\n\t\tbayesianModel = null;\n\t\tif (genericModel != null) {\n\t\t\tif (RJ_AftershockModel_Bayesian.areModelsEquivalent(cur_model, genericModel))\n\t\t\t\tbayesianModel = new RJ_AftershockModel_Bayesian(cur_model, genericModel);\n\t\t\telse\n\t\t\t\tSystem.out.println(\"Could not create Bayesian model as sequence specifc and \"\n\t\t\t\t\t\t+ \"generic models are not equivalent\");\n\t\t}\n\n\t\t// Save the catalog parameters (we should already have these values)\n\n\t\tcat_dataStartTimeParam = xfer.x_dataStartTimeParam;\n\t\tcat_dataEndTimeParam = xfer.x_dataEndTimeParam;\n\t\tcat_mcParam = xfer.x_mcParam;\n\t\tcat_bParam = xfer.x_bParam;\n\n\t\treturn;\n\t}", "public ScalarParameterInformation(ScalarConstraintInterface constraint) {\r\n\t\tsuper();\r\n\t\tthis.isParameterToCalibrate = true;\r\n\t\tthis.constraint = constraint;\r\n\t}", "public double calc_c() {\r\n \t\t\r\n \t\tdouble cij = 0;\r\n \t\tint sum_i = 0;\r\n \t\tint sum_j = 0;\r\n \t\tint diff = 0;\r\n \t\tint state = 0;\r\n \t\t\r\n \t\tdouble li, lri, lj, lrj;\r\n \t\t\r\n \t\tList<Integer> samestate_i = new ArrayList<>();\r\n \t\tList<Integer> samestate_j = new ArrayList<>();\r\n \t\t\r\n \t\tList<Double> gradient_i = new ArrayList<>();\r\n \t\tList<Double> gradient_j = new ArrayList<>();\r\n \t\t\r\n\t\t// if the time step is less than the window cij is initialized to zero.\r\n\t\tif(this.n <= this.w || this.w <2) {\r\n\t\t\tcij = 0;\r\n\t\t}\r\n\t\t\r\n\t\telse {\r\n\t\t\t\r\n\t\t\t// else we determine the state of the region i and region j of which\r\n\t\t\t// we are calculating the cij for\r\n\t \t\tDeterminestate di = new Determinestate(this.i, this.n);\r\n\t\t\tDeterminestate dj = new Determinestate(this.j, this.n);\r\n\t\t\t\r\n\t\t\tProbability pi = new Probability(this.i, this.n, this.w, this.neighborsize);\r\n\t\t\tProbability pj = new Probability(this.i, this.n, this.w, this.neighborsize);\r\n\t\t\t\r\n\t\t\tif(di.regionCurrentstate() == dj.regionCurrentstate()) {\r\n\t\t\t\tli = pi.getLsave().get(0);\r\n\t\t\t\tlj = pj.getLsave().get(0);\r\n\t\t\t\tstate = 0;\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tli = pi.getLsave().get(1);\r\n\t\t\t\tlj = pj.getLsave().get(1);\r\n\t\t\t\tstate =1;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t// for the time window\r\n\t\t\tfor(int k=1; k<this.w; k++) {\r\n\t\t\t\t\r\n\t\t\t\t// determine the state of i and j in the in n-k time step\r\n\t \t\t\tDeterminestate dri = new Determinestate(this.i, this.n-k);\r\n\t \t\t\tDeterminestate drj = new Determinestate(this.j, this.n-k);\r\n\t \t\t\t\r\n\t \t\t\tProbability pri = new Probability(this.i, this.n, this.w, this.neighborsize);\r\n\t\t\t\tProbability prj = new Probability(this.i, this.n, this.w, this.neighborsize);\r\n\t\t\t\t\r\n\t\t\t\tlri = pri.getLsave().get(state);\r\n\t\t\t\tlrj = prj.getLsave().get(state);\r\n\t \t\t\t\r\n\t \t\t\t\r\n\t \t\t\t//if state matches for i make a list of time step in which they match and another list of gradient of Likelihood \r\n\t \t\t\tif(di.regionCurrentstate() == dri.regionCurrentstate()){\r\n\t \t\t\t\tsamestate_i.add(k);\r\n\t \t\t\t\tgradient_i.add(li - lri);\r\n\t \t\t\t}\r\n\t \t\t\t\r\n\t \t\t\t//if state matches for j make a list of time step in which they match and another list of gradient of Likelihood \r\n\t \t\t\tif(di.regionCurrentstate() == drj.regionCurrentstate()){\r\n\t \t\t\t\tsamestate_j.add(k);\r\n\t \t\t\t\tgradient_j.add(lj - lrj);\r\n\t \t\t\t}\r\n\t \t\t\t\r\n\t \t\t}\r\n\t\t}\r\n\t\t\t\r\n\t\t// if no match found return zero\r\n\t\tif(samestate_i.size() == 0 || samestate_j.size() == 0) {\r\n\t\t\tcij = 0;\r\n\t\t}\r\n\t\t\r\n\t\t// else calculate cij\r\n\t\telse {\r\n\t\t\t\r\n\t\t\t// if both have same length \r\n\t\t\tif(samestate_i.size() == samestate_j.size()) {\r\n\t\t\t\tfor(int i=0; i<samestate_i.size(); i++) {\r\n\t\t\t\t\tsum_i = sum_i + samestate_i.get(i);\r\n\t\t\t\t\tsum_j = sum_j + samestate_j.get(i);\r\n\t\t\t\t}\r\n\t\t\t\tdiff = (sum_i%this.w - sum_j%this.w);\r\n\t\t\t\tif (diff == 0) {\r\n\t\t\t\t\tcij = cosine_sim(gradient_i, gradient_j);\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tcij = cosine_sim(gradient_i, gradient_j) * Math.abs(diff/(double)this.w);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//if i is smaller\r\n\t\t\telse if(samestate_i.size() < samestate_j.size()) {\r\n\t\t\t\tfor(int i=0; i<samestate_i.size(); i++) {\r\n\t\t\t\t\tsum_i = sum_i + samestate_i.get(i);\r\n\t\t\t\t\tsum_j = sum_j + samestate_j.get(i);\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\tdiff = (sum_i%this.w - sum_j%this.w);\r\n\t\t\t\tif (diff == 0) {\r\n\t\t\t\t\tcij = cosine_sim(gradient_i.subList(0, samestate_i.size()), gradient_j);\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tcij = cosine_sim(gradient_i.subList(0, samestate_i.size()), gradient_j) * diff/(double)this.w;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// if j is smaller \r\n\t\t\telse {\r\n\t\t\t\tfor(int i=0; i<samestate_j.size(); i++) {\r\n\t\t\t\t\tsum_i = sum_i + samestate_i.get(i);\r\n\t\t\t\t\tsum_j = sum_j + samestate_j.get(i);\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\tdiff = (sum_i%this.w - sum_j%this.w);\r\n\t\t\t\tif (diff == 0) {\r\n\t\t\t\t\tcij = cosine_sim(gradient_i.subList(0, samestate_j.size()), gradient_j);\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tcij = cosine_sim(gradient_i.subList(0, samestate_j.size()), gradient_j) * diff/(double)this.w;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tif (Double.isNaN(cij)) {\r\n\t\t\treturn 0;\r\n\t\t}\r\n\t\telse {\r\n\t\t\treturn cij;\r\n\t\t}\r\n \t}", "private double calcuFcost() {\n\t\treturn num * configMap.get('r') + (num-1) * configMap.get('l') + num * configMap.get('f') + configMap.get('t');\n\t}", "public void recalculateStats(){\n weight = .25f * (shaftMat.getParameter(\"Density\") * length + headMat.getParameter(\"Density\") * .4f);\n sharpness = headMat.getParameter(\"Malleability\") + 1f / headMat.getParameter(\"Durability\"); //Malleable objects can be sharp, as can fragile objects\n// fragility = 1f / (shaftMat.getParameter(\"Durability\") * .5f + headMat.getParameter(\"Durability\") * .5f);\n durability = (shaftMat.getParameter(\"Durability\") * .5f + headMat.getParameter(\"Durability\") * .5f);\n trueness = shaftMat.getParameter(\"Regularity\") + headMat.getParameter(\"Regularity\");\n// length = 2f;\n }", "public double[] getFitParameters() {\r\n\t\treturn a;\r\n\t}", "int getExposureCompensationPref();", "void kernel_load_parameters(double max_point_distance) {\n\t Matrix3 covariance_xyz = node.m_covariance;\n\t Matrix3 jacobian_normal = new Matrix3();\n Vector4d n = node.normal1.Normalized();\n // Jacobian Matrix calculation\n //double t=1.0;\n double EPS2 = 0.00001; //epsilon?\n Vector4d p = n.multiply(rho);\n double w = (p.x * p.x) + (p.y * p.y);\n double p2 = w + (p.z * p.z);\n double sqrtW = Math.sqrt(w);\n jacobian_normal.set(0,0, n.x);\n\t jacobian_normal.set(0,1, n.y);\n\t jacobian_normal.set(0,2, n.z);\n jacobian_normal.set(1,0, sqrtW<EPS2?(p.x * p.z)/EPS2:(p.x * p.z) / (sqrtW * p2)); \n\t jacobian_normal.set(1,1, sqrtW<EPS2?(p.y * p.z)/EPS2:(p.y * p.z) / (sqrtW * p2)); \n\t jacobian_normal.set(1,2, p2<EPS2?-sqrtW/EPS2:(-sqrtW / p2));\n jacobian_normal.set(2,0, (w<EPS2)?-p.y/EPS2:-p.y / w);\n\t jacobian_normal.set(2,1, (w<EPS2)?p.x/EPS2:p.x / w);\n\t jacobian_normal.set(2,2, 0.0);\n \n\t // Area importance (w_a) \n double w_a = 0.75;\n // Number-of-points importance (w_d)\n double w_d = 1- w_a;\n // w_a times node size over octree size plus w_d times samples in cluster over total samples in cloud\n node.representativeness = ( ((double)node.m_size/(double)node.m_root.m_size) * w_a ) + \n\t\t\t\t\t\t\t\t( ((double)node.m_indexes.size()/(double)node.m_root.m_points.size()) * w_d );\n\n // Uncertainty propagation\n\t Matrix3 jacobian_transposed_normal = Matrix3.transpose(jacobian_normal);\n\t // calculate covariance matrix\n\t // First order uncertainty propagation analysis generates variances and covariances in theta,phi,rho space \n\t // from euclidian space.\n covariance_rpt_normal = jacobian_normal.multiply(covariance_xyz).multiply(jacobian_transposed_normal);\n \n // Cluster representativeness\n covariance_rpt_normal.set(0,0, covariance_rpt_normal.get(0,0)+NONZERO);\n constant_normal = Math.sqrt(Math.abs(covariance_rpt_normal.determinant())*root22pi32);\n // if matrix is singular determinant is zero and constant_normal is 0\n // Supposedly adding epsilon averts this according to paper and in normal circumstances\n // a singular matrix would mean coplanar samples and voting should be done with bivariate kernel over theta,phi\n if( constant_normal == 0 ) {\n \t if( DEBUG ) {\n \t\t System.out.println(\"kernel_t kernel_load_parameters determinant is 0 for \"+this);\n \t }\n \t voting_limit = 0;\n \t return;\n }\n // if invert comes back null then the matrix is singular, which means the samples are coplanar\n covariance_rpt_inv_normal = covariance_rpt_normal.invert();\n if( covariance_rpt_inv_normal == null ) {\n \t if( DEBUG ) {\n \t\t System.out.println(\"kernel_t kernel_load_parameters covariance matrix is singular for \"+this);\n \t }\n \t voting_limit = 0;\n \t return;\n }\n\t EigenvalueDecomposition eigenvalue_decomp = new EigenvalueDecomposition(covariance_rpt_normal);\n\t double[] eigenvalues_vector = eigenvalue_decomp.getRealEigenvalues();\n\t Matrix3 eigenvectors_matrix = eigenvalue_decomp.getV();\n // Sort eigenvalues\n int min_index = 0;\n if (eigenvalues_vector[min_index] > eigenvalues_vector[1])\n min_index = 1;\n if (eigenvalues_vector[min_index] > eigenvalues_vector[2])\n min_index = 2;\n if( DEBUG )\n \t System.out.println(\"kernel_t kernel_load_parameters eigenvalues_vector=[\"+eigenvalues_vector[0]+\" \"+eigenvalues_vector[1]+\" \"+eigenvalues_vector[2]+\"] min_index=\"+min_index);\n // Voting limit calculation (g_min)\n double radius = Math.sqrt( eigenvalues_vector[min_index] ) * 2;\n voting_limit = trivariated_gaussian_dist_normal( eigenvectors_matrix.get(0, min_index) * radius, \n\t\t\t\t\t\t\t\t\t\t\t\t\t eigenvectors_matrix.get(1, min_index) * radius, \n\t\t\t\t\t\t\t\t\t\t\t\t\t eigenvectors_matrix.get(2, min_index) * radius);\n if(DEBUG)\n \t System.out.println(\"kernel_t kernel_load_parameters voting limit=\"+voting_limit);\n }", "public interface HazardCurveCalculatorAPI {\n\n\t/**\n\t * Get the adjustable parameter list of calculation parameters\n\t *\n\t * @return the adjustable ParameterList\n\t */\n\tpublic ParameterList getAdjustableParams();\n\n\t/**\n\t * Get iterator for the adjustable parameters\n\t *\n\t * @return parameter iterator\n\t */\n\tpublic ListIterator<Parameter<?>> getAdjustableParamsIterator();\n\t\n\t/**\n\t * This sets the type of point-source distance correction that is desired\n\t * (see the class PtSrcDistCorr for options)\n\t * @param ptSrcDistCorrType\n\t */\n\tpublic void setPtSrcDistCorrType(PtSrcDistCorr.Type ptSrcDistCorrType);\n\n\t/**\n\t * This gets the type of point-source distance correction that is desired\n\t * (see the class PtSrcDistCorr for options)\n\t * @param ptSrcDistCorrType\n\t */\n\tpublic PtSrcDistCorr.Type getPtSrcDistCorrType();\n\n\t/**\n\t * This sets the maximum distance of sources to be considered in the calculation.\n\t * Sources more than this distance away are ignored. This is simply a direct\n\t * way of setting the parameter.\n\t * Default value is 250 km.\n\t *\n\t * @param distance: the maximum distance in km\n\t */\n\tpublic void setMaxSourceDistance(double distance);\n\n\t/**\n\t * This sets the minimum magnitude considered in the calculation. Values\n\t * less than the specified amount will be ignored.\n\t *\n\t * @param magnitude: the minimum magnitude\n\t */\n\tpublic void setMinMagnitude(double magnitude);\n\n\n\t/**\n\t * This is a direct way of getting the distance cutoff from that parameter\n\t * \n\t * @return max source distance\n\t */\n\tpublic double getMaxSourceDistance();\n\n\t/**\n\t * This sets the mag-dist filter function (distance on x-axis and \n\t * mag on y-axis), and also sets the value of includeMagDistFilterParam as true\n\t * \n\t * @param magDistfunc function to set\n\t */\n\tpublic void setMagDistCutoffFunc(ArbitrarilyDiscretizedFunc magDistfunc);\n\n\t/**\n\t * Set the number of stochastic event set realizations for average event set hazard\n\t * curve calculation. This simply sets the <code>NumStochasticEventSetsParam</code>\n\t * parameter.\n\t * \n\t * @param numRealizations number of stochastic event set realizations\n\t */\n\tpublic void setNumStochEventSetRealizations(int numRealizations);\n\n\t/**\n\t * Sets the <code>IncludeMagDistFilterParam</code> parameter, which determines if the\n\t * magnitude/distance filter is used in calculation.\n\t * \n\t * @param include if true, the magnitude/distance filter is included\n\t */\n\tpublic void setIncludeMagDistCutoff(boolean include);\n\n\t/**\n\t * This gets the mag-dist filter function (distance on x-axis and \n\t * mag on y-axis), returning null if the includeMagDistFilterParam\n\t * has been set to false.\n\t * \n\t * @return mag-dist filter function\n\t */\n\tpublic ArbitrarilyDiscretizedFunc getMagDistCutoffFunc();\n\n\t/**\n\t * This was created so new instances of this calculator could be\n\t * given pointers to a set of parameter that already exist.\n\t * \n\t * @param paramList parameters to be set\n\t */\n\tpublic void setAdjustableParams(ParameterList paramList);\n\n\n\n\t/**\n\t * Returns the Annualized Rates for the Hazard Curves \n\t * \n\t * @param hazFunction Discretized Hazard Function\n\t * @return annualized rates for the given hazard function\n\t */\n\tpublic DiscretizedFunc getAnnualizedRates(DiscretizedFunc hazFunction,double years);\n\n\t/**\n\t * This function computes a hazard curve for the given Site, IMR, ERF, and \n\t * discretized function, where the latter supplies the x-axis values (the IMLs) for the \n\t * computation, and the result (probability) is placed in the y-axis values of this function.\n\t * This always applies a source and rupture distance cutoff using the value of the\n\t * maxDistanceParam parameter (set to a very high value if you don't want this). It also \n\t * applies a magnitude-dependent distance cutoff on the sources if the value of \n\t * includeMagDistFilterParam is \"true\" and using the function in magDistCutoffParam.\n\t * @param hazFunction: This function is where the hazard curve is placed\n\t * @param site: site object\n\t * @param imr: selected IMR object\n\t * @param eqkRupForecast: selected Earthquake rup forecast\n\t * @return\n\t */\n\tpublic DiscretizedFunc getHazardCurve(DiscretizedFunc hazFunction,\n\t\t\tSite site, ScalarIMR imr, ERF eqkRupForecast);\n\n\t/**\n\t * This function computes a hazard curve for the given Site, imrMap, ERF, and \n\t * discretized function, where the latter supplies the x-axis values (the IMLs) for the \n\t * computation, and the result (probability) is placed in the y-axis values of this function.\n\t * \n\t * This always applies a source and rupture distance cutoff using the value of the\n\t * maxDistanceParam parameter (set to a very high value if you don't want this). It also \n\t * applies a magnitude-dependent distance cutoff on the sources if the value of \n\t * includeMagDistFilterParam is \"true\" and using the function in magDistCutoffParam.\n\t * \n\t * The IMR will be selected on a source by source basis by the <code>imrMap</code> parameter.\n\t * If the mapping only contains a single IMR, then that IMR will be used for all sources.\n\t * Otherwise, if a mapping exists for the source's tectonic region type (TRT), then the IMR\n\t * from that mapping will be used for that source. If no mapping exists, a NullPointerException\n\t * will be thrown.\n\t * \n\t * Once the IMR is selected, it's TRT paramter can be set by the soruce, depending\n\t * on the <code>SetTRTinIMR_FromSourceParam</code> param and <code>NonSupportedTRT_OptionsParam</code>\n\t * param. If <code>SetTRTinIMR_FromSourceParam</code> is true, then the IMR's TRT param will be set by\n\t * the source (otherwise it will be left unchanged). If it is to be set, but the source's TRT is not\n\t * supported by the IMR, then <code>NonSupportedTRT_OptionsParam</code> is used.\n\t * \n\t * @param hazFunction: This function is where the hazard curve is placed\n\t * @param site: site object\n\t * @param imrMap this <code>Map<TectonicRegionType,ScalarIntensityMeasureRelationshipAPI></code>\n\t * specifies which IMR to use with each tectonic region.\n\t * @param eqkRupForecast selected Earthquake rup forecast\n\t * @return hazard curve. Function passed in is updated in place, so this is just a pointer to\n\t * the <code>hazFunction</code> param.\n\t * @throws NullPointerException if there are multiple IMRs in the mapping, but no mapping exists for\n\t * a soruce in the ERF.\n\t */\n\tpublic DiscretizedFunc getHazardCurve(\n\t\t\tDiscretizedFunc hazFunction,\n\t\t\tSite site,\n\t\t\tMap<TectonicRegionType, ScalarIMR> imrMap, \n\t\t\tERF eqkRupForecast);\n\n\n\t/**\n\t * This computes the \"deterministic\" exceedance curve for the given Site, IMR, and ProbEqkrupture\n\t * (conditioned on the event actually occurring). The hazFunction passed in provides the x-axis\n\t * values (the IMLs) and the result (probability) is placed in the y-axis values of this function.\n\t * @param hazFunction This function is where the deterministic hazard curve is placed\n\t * @param site site object\n\t * @param imr selected IMR object\n\t * @param rupture Single Earthquake Rupture\n\t * @return hazard curve. Function passed in is updated in place, so this is just a pointer to\n\t * the <code>hazFunction</code> param.\n\t */\n\tpublic DiscretizedFunc getHazardCurve(DiscretizedFunc\n\t\t\thazFunction,\n\t\t\tSite site, ScalarIMR imr, EqkRupture rupture);\n\n\n\n\t/**\n\t * gets the current rupture that is being processed\n\t * \n\t * @returncurrent rupture that is being processed\n\t */\n\tpublic int getCurrRuptures();\n\n\t/**\n\t * gets the total number of ruptures.\n\t * \n\t * @return total number of ruptures.\n\t */\n\tpublic int getTotRuptures();\n\n\t/**\n\t * stops the Hazard Curve calculations.\n\t */\n\tpublic void stopCalc();\n\n\t/**\n\t * This function computes an average hazard curve from a number of stochastic event sets\n\t * for the given Site, IMR, eqkRupForecast, where the number of event-set realizations\n\t * is specified as the value in numStochEventSetRealizationsParam. The passed in \n\t * discretized function supplies the x-axis values (the IMLs) \n\t * for the computation, and the result (probability) is placed in the \n\t * y-axis values of this function. This always applies a rupture distance \n\t * cutoff using the value of the maxDistanceParam parameter (set to a very high \n\t * value if you don't want this). This does not (yet?) apply the magnitude-dependent \n\t * distance cutoff represented by includeMagDistFilterParam and magDistCutoffParam.\n\t * \n\t * @param hazFunction This function is where the hazard curve is placed\n\t * @param site site object\n\t * @param imr selected IMR object\n\t * @param eqkRupForecast selected Earthquake rup forecast\n\t * @return hazard curve. Function passed in is updated in place, so this is just a pointer to\n\t * the <code>hazFunction</code> param.\n\t */\n\tpublic DiscretizedFunc getAverageEventSetHazardCurve(DiscretizedFunc hazFunction,\n\t\t\tSite site, ScalarIMR imr, \n\t\t\tERF eqkRupForecast);\n\n\t/**\n\t * This function computes a hazard curve for the given Site, IMR, and event set\n\t * (eqkRupList), where it is assumed that each of the events occur (probability \n\t * of each is 1.0). The passed in discretized function supplies the x-axis values \n\t * (the IMLs) for the computation, and the result (probability) is placed in the \n\t * y-axis values of this function. This always applies a rupture distance \n\t * cutoff using the value of the maxDistanceParam parameter (set to a very high \n\t * value if you don't want this). This does not (yet?) apply the magnitude-dependent \n\t * distance cutoff represented by includeMagDistFilterParam and magDistCutoffParam.\n\t * \n\t * @param hazFunction This function is where the hazard curve is placed\n\t * @param site site object\n\t * @param imr selected IMR object\n\t * @param eqkRupForecast selected Earthquake rup forecast\n\t * @param updateCurrRuptures tells whether to update current ruptures (for the getCurrRuptures() method used for progress bars)\n\t * @return hazard curve. Function passed in is updated in place, so this is just a pointer to\n\t * the <code>hazFunction</code> param.\n\t */\n\tpublic DiscretizedFunc getEventSetHazardCurve(DiscretizedFunc hazFunction,\n\t\t\tSite site, ScalarIMR imr, \n\t\t\tList<EqkRupture> eqkRupList, boolean updateCurrRuptures);\n\n}", "public void setIntensities(float r0, float g0, float b0, float a0,\n float r1, float g1, float b1, float a1,\n float r2, float g2, float b2, float a2) {\n // Check if we need alpha or not?\n if ((a0 != 1.0f) || (a1 != 1.0f) || (a2 != 1.0f)) {\n INTERPOLATE_ALPHA = true;\n a_array[0] = (a0 * 253f + 1.0f) * 65536f;\n a_array[1] = (a1 * 253f + 1.0f) * 65536f;\n a_array[2] = (a2 * 253f + 1.0f) * 65536f;\n m_drawFlags|=R_ALPHA;\n } else {\n INTERPOLATE_ALPHA = false;\n m_drawFlags&=~R_ALPHA;\n }\n \n // Check if we need to interpolate the intensity values\n if ((r0 != r1) || (r1 != r2)) {\n INTERPOLATE_RGB = true;\n m_drawFlags |= R_GOURAUD;\n } else if ((g0 != g1) || (g1 != g2)) {\n INTERPOLATE_RGB = true;\n m_drawFlags |= R_GOURAUD;\n } else if ((b0 != b1) || (b1 != b2)) {\n INTERPOLATE_RGB = true;\n m_drawFlags |= R_GOURAUD;\n } else {\n //m_fill = parent.filli;\n m_drawFlags &=~ R_GOURAUD;\n }\n \n // push values to arrays.. some extra scaling is added\n // to prevent possible color \"overflood\" due to rounding errors\n r_array[0] = (r0 * 253f + 1.0f) * 65536f;\n r_array[1] = (r1 * 253f + 1.0f) * 65536f;\n r_array[2] = (r2 * 253f + 1.0f) * 65536f;\n \n g_array[0] = (g0 * 253f + 1.0f) * 65536f;\n g_array[1] = (g1 * 253f + 1.0f) * 65536f;\n g_array[2] = (g2 * 253f + 1.0f) * 65536f;\n \n b_array[0] = (b0 * 253f + 1.0f) * 65536f;\n b_array[1] = (b1 * 253f + 1.0f) * 65536f;\n b_array[2] = (b2 * 253f + 1.0f) * 65536f;\n \n // for plain triangles\n m_fill = 0xFF000000 | \n ((int)(255*r0) << 16) | ((int)(255*g0) << 8) | (int)(255*b0);\n }", "protected void cameraToParameters(PinholeCamera camera, double[] result) \n throws CameraException, NotAvailableException {\n \n camera.decompose();\n \n PinholeCameraIntrinsicParameters intrinsic =\n camera.getIntrinsicParameters();\n result[0] = intrinsic.getSkewness();\n result[1] = intrinsic.getHorizontalFocalLength();\n result[2] = intrinsic.getVerticalFocalLength();\n result[3] = intrinsic.getHorizontalPrincipalPoint();\n result[4] = intrinsic.getVerticalPrincipalPoint();\n \n Rotation3D rotation = camera.getCameraRotation();\n if (mResidualRotation == null) {\n mResidualRotation = rotation.toQuaternion();\n } else {\n rotation.toQuaternion(mResidualRotation);\n }\n mResidualRotation.normalize();\n \n result[5] = mResidualRotation.getA();\n result[6] = mResidualRotation.getB();\n result[7] = mResidualRotation.getC();\n result[8] = mResidualRotation.getD();\n \n Point3D center = camera.getCameraCenter();\n \n result[9] = center.getInhomX();\n result[10] = center.getInhomY();\n result[11] = center.getInhomZ(); \n }", "public abstract double calcSA();", "static interface FittingFunction {\r\n\r\n /**\r\n * Returns the value of the function for the given array of parameter\r\n * values.\r\n */\r\n double evaluate(double[] argument);\r\n\r\n /**\r\n * Returns the number of parameters.\r\n */\r\n int getNumParameters();\r\n }", "@Override\n\tpublic double getRx() {\n\ndouble object = 0;\n for(int i = 0; i < x.length; i++){\n object += Math.pow(y[i] - ( theta[0] + theta[1] * x[i]), 2);\n }\n return object / 2 ;\n }", "@Override\n\tpublic void ecCalibrationStatus(LinphoneCore lc, EcCalibratorStatus status,\n\t\t\tint delay_ms, Object data) {\n\t\t\n\t}", "public ParameterList getAdjustableParams();", "private Matrix performCalibration(ArrayList<double[]> points2d, ArrayList<double[]> points3d) {\n\n\t\tSystem.out.println(\"out\");\n\t\t//create A, Chapter 7, pg 5\n\t\tdouble [] m = new double[2*points3d.size()*12];\n\n\t\tint width = 12;\n\t\tfor(int y = 0; y<points3d.size()*2; y++){\n\t\t\tfor(int x=0; x<width; x++){\n\t\t\t\tif((y%2)==0){\n\t\t\t\t\tif(x>=0 && x<4) {\n\t\t\t\t\t\t/*System.out.println(\"X \" + x);\n\t\t\t\t\t\tSystem.out.println(\"Y \" + y);\n\t\t\t\t\t\tSystem.out.println(\"SZ \" + points3d.size());\n\t\t\t\t\t\tif(x == 0 && y ==24){\n\t\t\t\t\t\t\tSystem.out.println(\"BREAK\");\n\t\t\t\t\t\t}*/\n\t\t\t\t\t\tm[y * width + x] = points3d.get(y/2)[x];\n\t\t\t\t\t}\n\t\t\t\t\telse if(x>3 && x<8)\n\t\t\t\t\t\tm[y*width+x] = 0;\n\t\t\t\t\telse if(x>7 && x<12)\n\t\t\t\t\t\tm[y*width+x] = -(points3d.get(y/2)[x-8] * points2d.get(y/2)[0]);\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tif(x>=0 && x<4)\n\t\t\t\t\t\tm[y*width+x] = 0;\n\t\t\t\t\telse if(x>3 && x<8)\n\t\t\t\t\t\tm[y*width+x] = points3d.get(y/2)[x-4];\n\t\t\t\t\telse if(x>7 && x<12)\n\t\t\t\t\t\tm[y*width+x] = -(points3d.get(y/2)[x-8] * points2d.get(y/2)[1]);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t//System.out.println(\"Finish\");\n\t\t//create matrix A\n\t\tMatrix A = new Matrix(points2d.size() * 2, 12, m);//rows,columns\n\n\t\tMatrix U = new Matrix ();\n\t\tMatrix D = new Matrix ();\n\t\tMatrix V = new Matrix ();\n\n\t\t//perform SVD2 on A\n\t\tA.SVD2(U,D,V);\n\n\t\tdouble[] rv = new double[12];\n\t\tMatrix p = new Matrix();\n\t\tV.getCol(V.cols-1,p);\n\n\t\tfor(int i=0; i<12; i++){\n\t\t\trv[i] = p.get(i,0)/p.get(11,0);\n\t\t}\n\n\t\treturn new Matrix(3, 4, rv);\n\t}", "private void generateParameterValues()\n\t{\n\t\t/*\n\t\t * Initialize variables for storage of the actual parameter data and prepare the histogram bins aggregating them. \n\t\t */\n\t\t\n\t\t// Init storage.\n\t\tparameterValues.clear();\n\t\tparameterValues.put(\"alpha\", new ArrayList<Double>(numberOfDivisions));\n\t\tparameterValues.put(\"eta\", new ArrayList<Double>(numberOfDivisions));\n\t\tparameterValues.put(\"kappa\", new ArrayList<Double>(numberOfDivisions));\n\t\t\n\t\t// Init bins.\n\t\tfinal int numberOfBins \t\t\t\t\t= 50;\n\t\tMap<String, int[]> parameterBinLists\t= new HashMap<String, int[]>();\n\t\tparameterBinLists.put(\"alpha\", new int[numberOfBins]);\n\t\tparameterBinLists.put(\"eta\", new int[numberOfBins]);\n\t\tparameterBinLists.put(\"kappa\", new int[numberOfBins]);\n\t\t\n\t\t// Init random number generator.\n\t\tRandom randomGenerator\t= new Random();\n\t\t\n\t\t/*\n\t\t * Generate numberOfDivisions values for each parameter.\n\t\t */\n\t\t\n\t\tswitch (sampling_combobox.getValue())\n\t\t{\n\t\t\tcase \"Random\":\n\t\t\t\t// Generated values are allowed to be up to rangeSlider.getHighValue() and as low as rangeSlider.getLowValue().\n\t\t\t\tdouble intervalAlpha \t= rangeSliders.get(\"alpha\").getHighValue() - rangeSliders.get(\"alpha\").getLowValue();\n\t\t\t\tdouble intervalEta\t\t= rangeSliders.get(\"eta\").getHighValue() - rangeSliders.get(\"eta\").getLowValue();\n\t\t\t\tdouble intervalKappa\t= rangeSliders.get(\"kappa\").getHighValue() - rangeSliders.get(\"kappa\").getLowValue();\n\t\t\t\t\n\t\t\t\t// Generate random parameter values.\t\t\n\t\t\t\tfor (int i = 0; i < numberOfDivisions; i++) {\n\t\t\t\t\tparameterValues.get(\"alpha\").add(rangeSliders.get(\"alpha\").getLowValue() + randomGenerator.nextFloat() * intervalAlpha);\n\t\t\t\t\tparameterValues.get(\"eta\").add(rangeSliders.get(\"eta\").getLowValue() + randomGenerator.nextFloat() * intervalEta);\n\t\t\t\t\tparameterValues.get(\"kappa\").add(rangeSliders.get(\"kappa\").getLowValue() + randomGenerator.nextFloat() * intervalKappa);\n\t\t\t\t}\n\t\t\tbreak;\n\t\t\t\n\t\t\tcase \"Cartesian\":\n\t\t\t\tfor (String param : LDAConfiguration.SUPPORTED_PARAMETERS) {\n\t\t\t\t\tfinal double interval = (rangeSliders.get(param).getHighValue() - rangeSliders.get(param).getLowValue()) / (numberOfDivisions);\n\t\t\t\t\t\n\t\t\t\t\tfor (int i = 0; i < numberOfDivisions; i++) {\n\t\t\t\t\t\tparameterValues.get(param).add(rangeSliders.get(param).getLowValue() + interval * i + interval / 2);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\tbreak;\n\t\t\t\n\t\t\tcase \"Latin Hypercube\":\n\t\t\t\tfor (String param : LDAConfiguration.SUPPORTED_PARAMETERS) {\n\t\t\t\t\t// Calcualte bin interval.\n\t\t\t\t\tfinal double interval \t\t= (rangeSliders.get(param).getHighValue() - rangeSliders.get(param).getLowValue()) / (numberOfDivisions);\n\n\t\t\t\t\tfor (int i = 0; i < numberOfDivisions; i++) {\n\t\t\t\t\t\t// Minimal value allowed for current bin.\n\t\t\t\t\t\tfinal double currentBinMin = rangeSliders.get(param).getLowValue() + interval * i;\n\t\t\t\t\t\t// Generate value for this bin.\n\t\t\t\t\t\tparameterValues.get(param).add(currentBinMin + randomGenerator.nextFloat() * interval);\n\t\t\t\t\t}\n\t\t\t\t\t\t\n\t//\t\t\t\t\tto do:\n\t//\t\t\t\t\t\t- test: check generate.txt.\n\t//\t\t\t\t\t\t- after that: START WRITING PAPER (SATURDAY!).\n\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\tbreak;\n\t\t}\n\t\t\n\t\t/*\n\t\t * Bin data for use in histograms/scented widgets.\n\t\t */\n\t\t\n\t\t// Bin data.\n\t\tfor (Map.Entry<String, ArrayList<Double>> entry : parameterValues.entrySet()) {\n\t\t\tdouble binInterval = (rangeSliders.get(entry.getKey()).getMax() - rangeSliders.get(entry.getKey()).getMin()) / numberOfBins;\n\t\t\t\n\t\t\t// Check every value and assign it to the correct bin.\n\t\t\tfor (double value : entry.getValue()) {\n\t\t\t\tint index_key = (int) ( (value - rangeSliders.get(entry.getKey()).getMin()) / binInterval);\n\t\t\t\t// Check if element is highest allowed entry.\n\t\t\t\tindex_key = index_key < numberOfBins ? index_key : numberOfBins - 1;\n\t\t\t\t\n\t\t\t\t// Increment content of corresponding bin.\n\t\t\t\tparameterBinLists.get(entry.getKey())[index_key]++;\t\n\t\t\t}\n\t\t}\n\t\t\n\t\t/*\n\t\t * Transfer data to scented widgets.\n\t\t */\n\t\t\n\t\t// Clear old data.\n\t\talpha_barchart.getData().clear();\n\t\teta_barchart.getData().clear();\n\t\tkappa_barchart.getData().clear();\n\n\t\t// Add data series to barcharts.\n\t\talpha_barchart.getData().add(generateParameterHistogramDataSeries(\"alpha\", parameterBinLists, numberOfBins));\n\t\teta_barchart.getData().add(generateParameterHistogramDataSeries(\"eta\", parameterBinLists, numberOfBins));\n\t\tkappa_barchart.getData().add(generateParameterHistogramDataSeries(\"kappa\", parameterBinLists, numberOfBins));\n\t}", "void getCirculation (double effaoa, double thickness_pst, double camber_pst) { \n double beta;\n double th_abs = thickness_pst/100.0; \n xcval = 0.0;\n ycval = camber_pst/50; // was: current_part.camber/25/2\n\n if (current_part.foil == FOIL_CYLINDER || /* get circulation for rotating cylnder */\n current_part.foil == FOIL_BALL) { /* get circulation for rotating ball */\n rval = radius/lconv;\n gamval = 4.0 * Math.PI * Math.PI *spin * rval * rval\n / (velocity/vconv);\n gamval = gamval * spindr;\n ycval = .0001;\n } else {\n rval = th_abs + Math.sqrt((current_part.foil == FOIL_FLAT_PLATE\n ? 0 : th_abs*th_abs)\n + ycval*ycval + 1.0);\n xcval = current_part.foil == FOIL_JOUKOWSKI ? 0 : (1.0 - Math.sqrt(rval*rval - ycval*ycval));\n beta = Math.asin(ycval/rval)/convdr; /* Kutta condition */\n gamval = 2.0*rval*Math.sin((effaoa+beta)*convdr);\n }\n }", "public abstract double calcular();", "public void recalculateDistanceFunction()\r\n {\n findBoundaryGivenPhi();\r\n \r\n active.removeAllElements();\r\n\tfor(int i=0; i<pixelsWide; i++)\r\n\t\tfor(int j=0; j<pixelsHigh; j++)\r\n\t\t\t{\r\n if(!boundary.contains(new Int2d(i,j))) phi[i][j] = phiStart;\r\n //else System.out.println(\"Boundary point at i,j = \" + i + \", \" + j + \" with phi = \" + phi[i][j]);\r\n\t\t\t}\r\n \r\n //System.out.println(\"Building Initial Band\");\r\n\tbuildInitialBand(); \r\n \r\n //System.out.println(active.size());\r\n \r\n //System.out.println(\"Running Algorithm\");\r\n\twhile(active.size()>0)\r\n\t\t{\r\n\t\trunAlgorithmStep();\r\n\t\t}\r\n\t\r\n //System.out.println(\"Distance function calculated\");\r\n\t//maxPhi = findMaxPhi();\r\n }", "protected void initEqkRuptureParams() {\n\n\t\tmagParam = new MagParam(MAG_WARN_MIN, MAG_WARN_MAX);\n\n\t\tStringConstraint constraint = new StringConstraint();\n\t\tconstraint.addString(FLT_TYPE_UNKNOWN);\n\t\tconstraint.addString(FLT_TYPE_STRIKE_SLIP);\n\t\tconstraint.addString(FLT_TYPE_REVERSE);\n\t\tconstraint.setNonEditable();\n\t\tfltTypeParam = new FaultTypeParam(constraint,FLT_TYPE_UNKNOWN);\n\n\t\teqkRuptureParams.clear();\n\t\teqkRuptureParams.addParameter(magParam);\n\t\teqkRuptureParams.addParameter(fltTypeParam);\n\n\t}", "private double[][] calculateValues() throws ExafsScanPointCreatorException {\n\t\tscanTimes= new ArrayList<> ();\n\t\tdouble[][] preEdgeEnergies = createStepArray(initialEnergy, aEnergy, preEdgeStep, preEdgeTime, false,\n\t\t\t\tnumberDetectors);\n\t\tscanTimes.add(new ExafsScanRegionTime(\"PreEdge\", preEdgeEnergies.length, new double[]{preEdgeTime}));\n\t\tdouble[][] abEnergies = convertABSteps(aEnergy, bEnergy, preEdgeStep, edgeStep, preEdgeTime);\n\t\tscanTimes.add(new ExafsScanRegionTime(\"AbEdge\", abEnergies.length, new double[]{preEdgeTime}));\n\n\t\tdouble[][] bcEnergies = createStepArray(bEnergy+edgeStep, cEnergy, edgeStep, edgeTime, false, numberDetectors);\n\t\tscanTimes.add(new ExafsScanRegionTime(\"BcEnergy\", bcEnergies.length, new double[]{edgeTime}));\n\t\t// if varying time the temporarily set the exafs time to a fixed value\n\t\tif (!exafsConstantTime)\n\t\t\texafsTime = exafsFromTime;\n\n\t\tdouble[][] exafsEnergies;\n\t\tif (exafsConstantEnergyStep)\n\t\t\texafsEnergies = createStepArray(cEnergy, finalEnergy, exafsStep, exafsTime, true, numberDetectors);\n\t\telse\n\t\t\texafsEnergies = calculateExafsEnergiesConstantKStep();\n\t\t// now change all the exafs times if they vary\n\t\tif (!exafsConstantTime)\n\t\t\texafsEnergies = convertTimes(exafsEnergies, exafsFromTime, exafsToTime);\n\n\t\t// Smooth out the transition between edge and exafs region.\n\t\tfinal double[][][] newRegions = createEdgeToExafsSteps(cEnergy, exafsEnergies, edgeStep, exafsTime);\n\t\tfinal double[][] edgeToExafsEnergies = newRegions[0];\n\t\tif(edgeToExafsEnergies != null)\n\t\t\tscanTimes.add(new ExafsScanRegionTime(\"EdgetoExafs\", edgeToExafsEnergies.length, new double[]{exafsTime}));\n\t\texafsEnergies = newRegions[1];\n\n\t\t// The edgeToExafsEnergies replaces the first EXAFS_SMOOTH_COUNT\n\n\t\t// merge arrays\n\t\tdouble []exafsRegionTimeArray = new double[exafsEnergies.length];\n\t\tint k =0;\n\t\tfor(double[] exafsEnergy : exafsEnergies)\n\t\t\texafsRegionTimeArray[k++ ] = exafsEnergy[1];\n\t\tscanTimes.add(new ExafsScanRegionTime(\"Exafs\", 1, exafsRegionTimeArray));\n\t\tdouble[][] allEnergies = (double[][]) ArrayUtils.addAll(preEdgeEnergies, abEnergies);\n\t\tallEnergies = (double[][]) ArrayUtils.addAll(allEnergies, bcEnergies);\n\t\tif (edgeToExafsEnergies != null)\n\t\t\tallEnergies = (double[][]) ArrayUtils.addAll(allEnergies, edgeToExafsEnergies);\n\t\tallEnergies = (double[][]) ArrayUtils.addAll(allEnergies, exafsEnergies);\n\t\treturn allEnergies;\n\t}", "public void init() {\n//\t\tint anglesToEncTicks = (int) ((90 - currentAngle) * encoderTicksPerRev);\n//\t\tarmMotor.setEncPosition(anglesToEncTicks);\n\t\twhile (armMotor.isFwdLimitSwitchClosed() != true) {\n\t\t\tarmMotor.set(.2);\n\t\t}\n\t\tSystem.out.println(\"Calibrated!\");\n\t\tarmMotor.setEncPosition(0);\n\t}", "public void readBoardCalibration() {\n String line = null;\n try {\n FileReader fileReader = new FileReader(fileNameBoardDimensions);\n BufferedReader bufferedReader = new BufferedReader(fileReader);\n line = bufferedReader.readLine();\n String readFieldSize[]=line.split(\",\");\n xBoardMin=Double.parseDouble(readFieldSize[0]);\n xBoardMax=Double.parseDouble(readFieldSize[1]);\n yBoardMin=Double.parseDouble(readFieldSize[2]);\n yBoardMax=Double.parseDouble(readFieldSize[3]);\n \t\t\tfieldWidthX=(xBoardMax-xBoardMin)/3;\n \t\t\tfieldHeightY=(yBoardMax-yBoardMin)/3;\n bufferedReader.close();\n setFields();\n }\n catch(FileNotFoundException ex) {\n System.out.println(\"Unable to open file '\" +fileNameBoardDimensions + \"'\"); \n }\n catch(IOException ex) {\n System.out.println(\"Error reading file '\"+ fileNameBoardDimensions + \"'\"); \n }\n\t}", "float calcularFinal(){\n return (calif1*0.3f)+(calif2*0.3f)+(calif3*0.4f);// debo agregar la f para que lo tome como float y no como double\r\n }", "private void updateControlValues(RangeSlider rs, String parameter)\n\t{\n\t\tMap<String, Double> parameterValues_low\t\t= new HashMap<String, Double>();\n\t\tMap<String, Double> parameterValues_high\t= new HashMap<String, Double>();\n\t\t\n\t\tfor (String param : rangeSliders.keySet()) {\n\t\t\tparameterValues_low.put(param, rs.getLowValue() >= rangeSliders.get(param).getMin() ? rs.getLowValue() : rangeSliders.get(param).getMin());\n\t\t\tparameterValues_high.put(param, rs.getHighValue() <= rangeSliders.get(param).getMax() ? rs.getHighValue() : rangeSliders.get(param).getMax());\n\t\t}\n\t\t\t\n \tswitch (parameter) \n \t{\n \t\tcase \"alpha\":\n \t\t\talpha_min_textfield.setText(String.valueOf(parameterValues_low.get(\"alpha\")));\n \talpha_max_textfield.setText(String.valueOf(parameterValues_high.get(\"alpha\")));\n \t\tbreak;\n \t\t\n \t\tcase \"eta\":\n \t \teta_min_textfield.setText(String.valueOf(parameterValues_low.get(\"eta\")));\n \teta_max_textfield.setText(String.valueOf(parameterValues_high.get(\"eta\")));\n \tbreak;\n \t\t\n \t\tcase \"kappa\":\n \t\t\tkappa_min_textfield.setText(String.valueOf(parameterValues_low.get(\"kappa\")));\n \tkappa_max_textfield.setText(String.valueOf(parameterValues_high.get(\"kappa\")));\n \tbreak;\t\n \t}\n\t}", "@Override\n\tpublic Parameter[] getGridSearchParameters() {\n\t\treturn new Parameter[] { kernelCoefficient, kernelDegree, kernelGamma, parameterC, parameterNu };\n\t}", "public void calibrationPhase() {\n\t\t// iterate over all secret combination\n\t\tfor (Secret secretA : this.dataSet.getSecrets()) {\n\t\t\tfor (Secret secretB : this.dataSet.getSecrets()) {\n\t\t\t\tif(secretA != secretB) {\n\t\t\t\t\tif(this.optimalBox[0] == 0.0 && this.optimalBox[1] == 0.0) {\n\t\t\t\t\t\tif(searchOptimalBox(secretA, secretB)) {\n\t\t\t\t\t\t\tint smallestSize = searchSmallestSize(secretA, secretB);\n\t\t\t\t\t\t\tthis.openValidationPhase(secretA, secretB, smallestSize, this.optimalBox);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tthis.optimalBox = new double[2];\n\t\t\t\t\t\tthis.optimalBox[0] = 0.0;\n\t\t\t\t\t\tthis.optimalBox[1] = 0.0;\n\n\t\t\t\t\t} else {\n\t\t\t\t\t\tint smallestSize = searchSmallestSize(secretA, secretB);\n\t\t\t\t\t\tif(smallestSize != 0) {\n\t\t\t\t\t\t\tplotPool.plot(\"Filtered Measurments: User Input Optimal Box (\" + secretA.getName() + \"-\" + secretB.getName() + \")\", this.optimalBox[0], this.optimalBox[1]);\n\n\t\t\t\t\t\t\tthis.openValidationPhase(secretA, secretB, smallestSize, this.optimalBox);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tlogger.warning(secretA.getName() + \" < \" + secretB.getName() + \": no significant different result found! You need to measure more times.\");\n\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t}\n\t\t}\n\t}", "public void get_InputValues(){\r\n\tA[1]=-0.185900;\r\n\tA[2]=-0.85900;\r\n\tA[3]=-0.059660;\r\n\tA[4]=-0.077373;\r\n\tB[1]=30.0;\r\n\tB[2]=19.2;\r\n\tB[3]=13.8;\r\n\tB[4]=22.5;\r\n\tC[1]=4.5;\r\n\tC[2]=12.5;\r\n\tC[3]=27.5;\r\n\tD[1]=16.0;\r\n\tD[2]=10.0;\r\n\tD[3]=7.0;\r\n\tD[4]=5.0;\r\n\tD[5]=4.0;\r\n\tD[6]=3.0;\r\n\t\r\n}", "public double getValue(double[] parameters);", "public CalibrateReturn changeCalibrationCoordinates(JFrame con, MyPoint3D typed1, MyPoint3D typed2) {\n final String title = \"Calibrate\";\n final String prompt1 = \"Enter the coordinates of the \";\n String[] prompts = new String[2];\n prompts[0] = \"first\";\n prompts[1] = \"second\";\n final String prompt2 = \" calibration point:\";\n final String message = \"Enter three numeric values.\";\n MyPoint3D[] newTyped = new MyPoint3D[2];\n \n // Loop over each calibration point:\n for (int i=0 ; i<2 ; i++) {\n \n String input, prompt;\n String[] inputs;\n double x,y,z;\n MyPoint3D p;\n if (i==0) {\n p = typed1;\n } else {\n p = typed2;\n }\n \n // Ask for the spatial coordinates of the current clicked point:\n prompt = prompt1 + prompts[i] + prompt2;\n if (p==null) {\n input = Dialogs.input(con,prompt,title);\n } else {\n input = Dialogs.input(con,prompt,title,p.toString());\n }\n if (input==null) { return null; } // user cancelled\n input = input.trim();\n inputs = input.split(\"[ ]+\");\n if (inputs.length!=3) {\n Dialogs.error(con,\"You must enter 3 values.\",title);\n return null;\n }\n \n // Parse the inputs to doubles and set the current typed point:\n try {\n x = Double.parseDouble(inputs[0].trim());\n y = Double.parseDouble(inputs[1].trim());\n z = Double.parseDouble(inputs[2].trim());\n } catch (NumberFormatException | ArrayIndexOutOfBoundsException e) {\n Dialogs.error(con,message,title);\n return null;\n }\n newTyped[i] = new MyPoint3D(x,y,z);\n \n } // for i\n \n // Return successfully with both altered typed points:\n return new CalibrateReturn(true,newTyped[0],newTyped[1]);\n \n }", "private BNO055IMU.Parameters getIMUParameters(){\n BNO055IMU.Parameters parameters = new BNO055IMU.Parameters();\n parameters.angleUnit = BNO055IMU.AngleUnit.DEGREES;\n parameters.accelUnit = BNO055IMU.AccelUnit.METERS_PERSEC_PERSEC;\n parameters.calibrationDataFile = \"BNO055IMUCalibration.json\"; // see the calibration sample opmode\n parameters.loggingEnabled = true;\n parameters.loggingTag = \"IMU\";\n parameters.accelerationIntegrationAlgorithm = new JustLoggingAccelerationIntegrator();\n parameters.mode = BNO055IMU.SensorMode.IMU;\n\n return parameters;\n }", "double getPWMRate();", "public NewtonRaphsonCalibrator()\r\n\t{\r\n\t}", "public static native void OpenMM_AmoebaGeneralizedKirkwoodForce_getParticleParameters(PointerByReference target, int index, DoubleByReference charge, DoubleByReference radius, DoubleByReference scalingFactor);", "Double getFrictionCoefficient();", "private double processImg() {\n\n\t\ttry {\n\t\t\timgPreview.setVisibility(View.VISIBLE);\n\n\t\t\t// bitmap factory\n\t\t\tBitmapFactory.Options options = new BitmapFactory.Options();\n\n\t\t\t// downsizing image as it throws OutOfMemory Exception for larger\n\t\t\t// images\n\t\t\toptions.inSampleSize = 8;\n\n\t\t\tbitmap_ref = BitmapFactory.decodeFile(fileUriSafe.getPath(),\n\t\t\t\t\toptions);\n\n\t\t\tbitmap_sample = BitmapFactory.decodeFile(fileUriMole.getPath(),\n\t\t\t\t\toptions);\n\n\t\t\t//convert from bitmap to Mat\n\t\t\tMat ref = new Mat(bitmap_ref.getHeight(), bitmap_ref.getWidth(), CvType.CV_8UC4);\n\t\t\tMat sample = new Mat(bitmap_sample.getHeight(), bitmap_sample.getWidth(), CvType.CV_8UC4);\n\t\t\tMat mask = new Mat(bitmap_sample.getHeight(),bitmap_sample.getWidth(),CvType.CV_8UC4);\n\t\t\tMat sample2calcgrad = new Mat(bitmap_sample.getHeight(), bitmap_sample.getWidth(), CvType.CV_8UC4);\n\n\t\t\tUtils.bitmapToMat(bitmap_ref, ref);\n\t\t\tUtils.bitmapToMat(bitmap_sample, sample);\n\t\t\tUtils.bitmapToMat(bitmap_sample,sample2calcgrad);\n\n\t\t\t//normalize image based on reference\t\t\t\n\t\t\t//sample = normalizeImg(sample, ref);\n\n\t\t\t//Using Sobel filter to calculate gradient\n\t\t\tMat grad_x = new Mat();\n\t\t\tMat grad_y = new Mat();\n\t\t\tMat abs_grad_x = new Mat();\n\t\t\tMat abs_grad_y = new Mat();\n\t\t\tMat gradVals = new Mat();\n\t\t\tMat sample_gray = new Mat(bitmap_sample.getHeight(),bitmap_sample.getWidth(),CvType.CV_8UC1);\n\t\t\tImgproc.cvtColor(sample2calcgrad, sample_gray, Imgproc.COLOR_BGRA2GRAY);\n\t\t\tImgproc.GaussianBlur(sample_gray, sample_gray, new Size(5,5), 0);\n\n\t\t\t//Gradient X\n\t\t\tImgproc.Sobel(sample_gray, grad_x, CvType.CV_8UC1, 1, 0);\n\t\t\tCore.convertScaleAbs(grad_x, abs_grad_x,10,0);\n\n\t\t\t//Gradient Y\n\t\t\tImgproc.Sobel(sample_gray, grad_y, CvType.CV_8UC1, 0, 1);\n\t\t\tCore.convertScaleAbs(grad_y,abs_grad_y, 10, 0);\n\n\t\t\t//combine with grad = sqrt(gx^2 + gy^2)\n\t\t\tCore.addWeighted(abs_grad_x, .5, abs_grad_y, .5, 0, gradVals);\n\n\n\t\t\t//Using CANNY to further smooth Gaussian blurred image; extract contours\n\t\t\tImgproc.Canny(sample_gray, mIntermediateMat, 80, 90);\n\n\t\t\t//find contours of filtered image\n\t\t\tList <MatOfPoint> contours = new ArrayList<MatOfPoint>();\n\t\t\tImgproc.findContours(mIntermediateMat, contours, mHierarchy, Imgproc.RETR_EXTERNAL, Imgproc.CHAIN_APPROX_SIMPLE);\n\n\t\t\t// Find max contour area\n\t\t\tdouble maxArea = 0;\n\t\t\tIterator<MatOfPoint> each = contours.iterator();\n\t\t\twhile (each.hasNext()) {\n\t\t\t\tMatOfPoint wrapper = each.next();\n\t\t\t\tdouble area = Imgproc.contourArea(wrapper);\n\t\t\t\tif (area > maxArea)\n\t\t\t\t\tmaxArea = area;\n\t\t\t}\n\n\t\t\t// Filter contours by area and only keep those above thresh value\n\t\t\tmContours.clear();\n\t\t\teach = contours.iterator();\n\t\t\twhile (each.hasNext()) {\n\t\t\t\tMatOfPoint contour = each.next();\n\t\t\t\tif (Imgproc.contourArea(contour) > mMinContourArea*maxArea) {\n\t\t\t\t\tmContours.add(contour);\n\t\t\t\t\tborder.addAll(contour.toList());\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t//segment border into 8 parts \n\t\t\t//calc gradient along contour segment & normalize based on number of points in border\n\t\t\t//upto 7 points at end of border list ignored\n\t\t\tdouble [] seg_val = new double [8];\n\t\t\tint seg_len = border.size()/8;\n\t\t\tfor(int i = 0; i<8; i++){\n\t\t\t\tdouble contourGradientSum = 0;\n\t\t\t\tfor(int j=i*seg_len; j<(i+1)*seg_len;j++){\n\t\t\t\t\tPoint pt = border.get(j);\n\t\t\t\t\tint x = (int) pt.x;\n\t\t\t\t\tint y = (int) pt.y;\t\t\t\n\t\t\t\t\tcontourGradientSum += Core.mean(gradVals.submat(y-1, y+1, x-1, x+1)).val[0];\n\t\t\t\t}\n\t\t\t\tseg_val[i]=contourGradientSum/seg_len;\n\t\t\t}\n\n\n\t\t\tLog.v(TAG, \"grad vals: [\" + seg_val[0] + \",\" + seg_val[1] + \",\" \n\t\t\t\t\t+ seg_val[2] + \",\"+ seg_val[3] + \",\"\n\t\t\t\t\t+ seg_val[4] + \",\"+ seg_val[5] + \",\"\n\t\t\t\t\t+ seg_val[6] + \",\"+ seg_val[7] + \"]\");\n\t\t\t\n\t\t\tdouble thresh = 140;\n\t\t\tdouble score = 0;\n\n\t\t\tfor(double val:seg_val){\n\t\t\t\tif (val<=thresh){\n\t\t\t\t\tscore++;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tif(score<8){\n\t\t\t\tscore += mContours.size()/7;\n\t\t\t\tscore = Math.min(8,score);\n\t\t\t}\n\n\n\n\t\t\tLog.v(TAG, \"score: \" +score);\n\t\t\tLog.v(TAG, \"Contours count: \" + mContours.size());\n\t\t\tLog.v(TAG, \"Border size: \" + border.size());\n\t\t\tImgproc.drawContours(sample, mContours, -1, CONTOUR_COLOR);\n\t\t\tImgproc.drawContours(mask, mContours, -1, COLOR_WHITE, -1);\n\t\t\tborders = mask;\n\n\t\t\t//display image with contours\n\t\t\tUtils.matToBitmap(sample, bitmap_sample);\n\t\t\timgPreview.setImageBitmap(bitmap_sample);\n\t\t\timgPreview.setFocusable(true);\n\n\t\t\treturn score;\n\n\t\t\t//\t\t\t\n\t\t} catch (NullPointerException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\treturn -1;\n\t}", "double calculate(OptAlgEnvironment<?, ?> environment);", "protected void acceptValuesInInteractiveControlPanel()\n\t{\n\t\tsuper.acceptValuesInInteractiveControlPanel();\n\t\t\n\t\taHat = aHatPanel.getVector3D();\n\t\tuHat = uHatPanel.getVector3D();\n\t\tvHat = vHatPanel.getVector3D();\n\t\tetaU = etaPanel.getVector2D().x;\n\t\tetaV = etaPanel.getVector2D().y;\n\t\tdeltaU = deltaPanel.getVector2D().x;\n\t\tdeltaV = deltaPanel.getVector2D().y;\n\t\t\n\t\tif(apertureParametersTabbedPane.getSelectedComponent().equals(zeroParametersLabel)) alphaChoice = AlphaChoice.ZERO;\n\t\telse if(apertureParametersTabbedPane.getSelectedComponent().equals(manualParametersPanel)) alphaChoice = AlphaChoice.MANUAL;\n\t\telse if(apertureParametersTabbedPane.getSelectedComponent().equals(optimisedParametersPanel)) alphaChoice = AlphaChoice.OPTIMISED;\n\n\t\tsigma1U = sigma1Panel.getVector2D().x;\n\t\tsigma1V = sigma1Panel.getVector2D().y;\n\t\tsigma2U = sigma2Panel.getVector2D().x;\n\t\tsigma2V = sigma2Panel.getVector2D().y;\n\t\talpha1U = alpha1Panel.getVector2D().x;\n\t\talpha1V = alpha1Panel.getVector2D().y;\n\t\talpha2U = alpha2Panel.getVector2D().x;\n\t\talpha2V = alpha2Panel.getVector2D().y;\n\t\tpointAtFOVCentre = pointAtFOVCentrePanel.getVector3D();\n//\t\tparallelityParameter = parallelityParameterPanel.getNumber();\n//\t\tJComboBox alphaChoiceComboBox;\n\t\tapertureCentre = apertureCentrePanel.getVector3D();\n\t\tbrightnessFactor = brightnessFactorPanel.getNumber();\n\t}", "protected static void adaptivaeThresholdCalc() {\n\t\tif (triggerCount > 3) {\n\t\t\tthreshold /= 0.9;\n\t\t\t// Log.d(\"visualizer\", \"threshold up to \" + threshold);\n\t\t}\n\t\tif (triggerCount < 2) {\n\t\t\tthreshold *= 0.9;\n\t\t\t// Log.d(\"visualizer\", \"threshold down to \" + threshold);\n\t\t}\n\n\t\tif (threshold < 1.5f)\n\t\t\tthreshold = 1.5f;\n\t}", "protected final double fr(double x, double rc, double re) {return rc*(K*K)/Math.pow(x, re);}", "double compute() {\r\ndouble b, e;\r\nb = (1 + rateOfRet/compPerYear);\r\ne = compPerYear * numYears;\r\nreturn principal * Math.pow(b, e);\r\n}", "public void calculateCG() {\n\n\t\t//-------------------------------------------------------------\n\t\t// Lateral faces xCG calculation (LFR = Local Reference Frame):\n\t\tList<Double[]> xCGLateralFacesLFRList = new ArrayList<Double[]>();\n\t\t\n\t\tfor(int i=0; i<this._prismoidsLength.size(); i++) {\n\t\t\t\n\t\t\tDouble[] xCGLateralFacesLFR = new Double[4];\n\t\t\t\n\t\t\txCGLateralFacesLFR[0] = this._thicknessAtMainSpar.get(i)\n\t\t\t\t\t\t\t\t\t\t.plus(this._thicknessAtSecondarySpar.get(i).times(2))\n\t\t\t\t\t\t\t\t\t\t\t.divide(\n\t\t\t\t\t\t\t\t\t\t\t\tthis._thicknessAtMainSpar.get(i)\n\t\t\t\t\t\t\t\t\t\t\t\t\t.plus(this._thicknessAtSecondarySpar.get(i))\n\t\t\t\t\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t\t\t\t\t.times(this._distanceBetweenSpars.get(i).divide(3))\n\t\t\t\t\t\t\t\t\t\t\t\t\t.getEstimatedValue();\n\t\t\t\n\t\t\txCGLateralFacesLFR[1] = this._thicknessAtSecondarySpar.get(i)\n\t\t\t\t\t\t\t\t\t\t.plus(this._thicknessAtSecondarySpar.get(i+1).times(2))\n\t\t\t\t\t\t\t\t\t\t\t.divide(\n\t\t\t\t\t\t\t\t\t\t\t\tthis._thicknessAtSecondarySpar.get(i)\n\t\t\t\t\t\t\t\t\t\t\t\t\t.plus(this._thicknessAtSecondarySpar.get(i+1))\n\t\t\t\t\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t\t\t\t\t.times(this._prismoidsLength.get(i).divide(3))\n\t\t\t\t\t\t\t\t\t\t\t\t\t.getEstimatedValue();\n\t\t\t\n\t\t\txCGLateralFacesLFR[2] = this._thicknessAtMainSpar.get(i+1)\n\t\t\t\t\t\t\t\t\t\t.plus(this._thicknessAtSecondarySpar.get(i+1).times(2))\n\t\t\t\t\t\t\t\t\t\t\t.divide(\n\t\t\t\t\t\t\t\t\t\t\t\t\tthis._thicknessAtMainSpar.get(i+1)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.plus(this._thicknessAtSecondarySpar.get(i+1))\n\t\t\t\t\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t\t\t\t\t.times(this._distanceBetweenSpars.get(i+1).divide(3))\n\t\t\t\t\t\t\t\t\t\t\t\t\t.getEstimatedValue();\n\t\t\t\n\t\t\txCGLateralFacesLFR[3] = this._thicknessAtMainSpar.get(i)\n\t\t\t\t\t\t\t\t\t\t.plus(this._thicknessAtMainSpar.get(i+1).times(2))\n\t\t\t\t\t\t\t\t\t\t\t.divide(\n\t\t\t\t\t\t\t\t\t\t\t\t\tthis._thicknessAtMainSpar.get(i)\n\t\t\t\t\t\t\t\t\t\t\t\t\t.plus(this._thicknessAtMainSpar.get(i+1))\n\t\t\t\t\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t\t\t\t\t.times(this._prismoidsLength.get(i).divide(3))\n\t\t\t\t\t\t\t\t\t\t\t\t\t.getEstimatedValue();\n\t\t\t\n\t\t\txCGLateralFacesLFRList.add(xCGLateralFacesLFR);\n\t\t}\n\t\t\n\t\t//-------------------------------------------------------------\n\t\t// Calculation of the Xcg coordinates of each prismoid in wing LRF.\n\t\t\n\t\tList<Amount<Length>> xCGPrismoidsList = new ArrayList<Amount<Length>>();\n\t\t\n\t\tfor(int i=0; i<xCGLateralFacesLFRList.size(); i++) {\n\t\t\t\n\t\t\tdouble[] xCGSegmentOppositeFaceSpanwiseX = new double[2];\n\t\t\tdouble[] xCGSegmentOppositeFaceSpanwiseY = new double[2];\n\t\t\t\n\t\t\tdouble[] xCGSegmentOppositeFaceChordwiseX = new double[2];\n\t\t\tdouble[] xCGSegmentOppositeFaceChordwiseY = new double[2];\n\t\t\t\n\t\t\txCGSegmentOppositeFaceSpanwiseX[0] = this._fuelTankStations.get(i).doubleValue(SI.METER);\n\t\t\txCGSegmentOppositeFaceSpanwiseX[1] = this._fuelTankStations.get(i+1).doubleValue(SI.METER);\n\t\t\txCGSegmentOppositeFaceSpanwiseY[0] = this._theWing\n\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.getXLEAtYActual(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tthis._fuelTankStations.get(i).doubleValue(SI.METER)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.plus(this._wingChordsAtFuelTankStations.get(i)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.times(_theWing.getMainSparDimensionlessPosition())\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.doubleValue(SI.METER) + xCGLateralFacesLFRList.get(i)[0];\n\t\t\txCGSegmentOppositeFaceSpanwiseY[1] = this._theWing\n\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.getXLEAtYActual(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tthis._fuelTankStations.get(i+1).doubleValue(SI.METER)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.plus(this._wingChordsAtFuelTankStations.get(i+1)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.times(_theWing.getMainSparDimensionlessPosition())\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.doubleValue(SI.METER) + xCGLateralFacesLFRList.get(i)[2];\n\n\t\t\txCGSegmentOppositeFaceChordwiseX[0] = this._theWing\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.getYBreakPoints().get(i)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.doubleValue(SI.METER)\n\t\t\t\t\t\t\t\t\t\t\t\t + xCGLateralFacesLFRList.get(i)[3]; \n\t\t\txCGSegmentOppositeFaceChordwiseX[1] = this._theWing\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.getYBreakPoints().get(i)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.doubleValue(SI.METER)\n\t\t\t\t\t\t\t\t\t\t\t\t + xCGLateralFacesLFRList.get(i)[1];\n\t\t\t\n\t\t\txCGSegmentOppositeFaceChordwiseY[0] = this._theWing\n\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.getXLEAtYActual(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tthis._theWing\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.getYBreakPoints().get(i)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.doubleValue(SI.METER)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t+ xCGLateralFacesLFRList.get(i)[3]\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t).doubleValue(SI.METER)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t+ (this._theWing.getChordAtYActual(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tthis._theWing\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.getYBreakPoints().get(i)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.doubleValue(SI.METER)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t+ xCGLateralFacesLFRList.get(i)[3])\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t* _theWing.getMainSparDimensionlessPosition()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t);\n\t\t\txCGSegmentOppositeFaceChordwiseY[1] = this._theWing\n\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.getXLEAtYActual(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tthis._theWing\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.getYBreakPoints().get(i)\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.doubleValue(SI.METER)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t+ xCGLateralFacesLFRList.get(i)[1]\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t).doubleValue(SI.METER)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t+ (this._theWing.getChordAtYActual(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tthis._theWing\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.getYBreakPoints().get(i)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.doubleValue(SI.METER)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t+ xCGLateralFacesLFRList.get(i)[1])\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t* _theWing.getMainSparDimensionlessPosition()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t+ ((this._theWing.getChordAtYActual(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tthis._theWing\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.getYBreakPoints().get(i)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.doubleValue(SI.METER)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t+ xCGLateralFacesLFRList.get(i)[1])\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t* _theWing.getSecondarySparDimensionlessPosition())\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t- (this._theWing.getChordAtYActual(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tthis._theWing\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.getYBreakPoints().get(i)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.doubleValue(SI.METER)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t+ xCGLateralFacesLFRList.get(i)[1])\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t* _theWing.getMainSparDimensionlessPosition()));\n\n\t\t\t// check if the chordwise X array is monotonic increasing\n\t\t\tif(xCGSegmentOppositeFaceChordwiseX[1] - xCGSegmentOppositeFaceChordwiseX[0] < 0.0001)\n\t\t\t\txCGSegmentOppositeFaceChordwiseX[0] -= 0.0001; \n\t\t\t\n\t\t\t// now that the segments coordinates are calculated, we have to intersect these latter.\n\t\t\txCGPrismoidsList.add(\n\t\t\t\t\tAmount.valueOf(\n\t\t\t\t\t\t\tMyMathUtils.getInterpolatedValue1DLinear(\n\t\t\t\t\t\t\t\t\txCGSegmentOppositeFaceSpanwiseX,\n\t\t\t\t\t\t\t\t\txCGSegmentOppositeFaceSpanwiseY,\n\t\t\t\t\t\t\t\t\txCGSegmentOppositeFaceChordwiseX[0]),\n\t\t\t\t\t\t\tSI.METER\n\t\t\t\t\t\t\t)\n\t\t\t\t\t);\n\t\t\t\n\t\t\t\n\t\t}\n\t\t\n\t\tSystem.out.println(\"\\n xCG list = \" + xCGPrismoidsList);\n\t\t\n\t\t_xCGLRF = Amount.valueOf(0.0, SI.METER);\n\t\t\n\t\tfor(int i=0; i<this._prismoidsVolumes.size(); i++)\n\t\t\t_xCGLRF = _xCGLRF.plus(\n\t\t\t\t\tAmount.valueOf(\n\t\t\t\t\t\t\tthis._prismoidsVolumes.get(i).getEstimatedValue()\n\t\t\t\t\t\t\t*xCGPrismoidsList.get(i).getEstimatedValue()\n\t\t\t\t\t\t\t, SI.METER\n\t\t\t\t\t\t\t)\n\t\t\t\t\t);\n\t\t_xCGLRF = _xCGLRF.divide(this._fuelVolume.divide(2).getEstimatedValue());\n\t\t_xCG = _xCGLRF.plus(_theWing.getXApexConstructionAxes());\n\t\t\n\t\t_yCGLRF = Amount.valueOf(0.0, SI.METER);\n\t\t_yCG = Amount.valueOf(0.0, SI.METER);\n\t\t\n\t\t_zCGLRF = _theWing.getTheBalanceManager().getCG().getZLRF();\n\t\t_zCG = _theWing.getTheBalanceManager().getCG().getZBRF();\n\t\t\n\t\t_cG = new CenterOfGravity();\n\t\t_cG.setX0(_theWing.getXApexConstructionAxes().to(SI.METER));\n\t\t_cG.setY0(_theWing.getYApexConstructionAxes().to(SI.METER));\n\t\t_cG.setZ0(_theWing.getZApexConstructionAxes().to(SI.METER));\n\t\t_cG.setXLRF(_xCGLRF.to(SI.METER));\n\t\t_cG.setYLRF(_yCGLRF.to(SI.METER));\n\t\t_cG.setZLRF(_zCGLRF.to(SI.METER));\n\t\t\n\t\t_cG.calculateCGinBRF(ComponentEnum.FUEL_TANK);\n\t\t\n\t}", "@Test\n\tpublic void testATMSwaptionCalibration() throws CalculationException, SolverException {\n\n\t\tfinal int numberOfPaths\t\t= 10000; // ideale è 10'000 paths!\n\t\tfinal int numberOfFactors\t= 1;\n\n\t\tfinal long millisCurvesStart = System.currentTimeMillis();\n\n\n\t\tSystem.out.println(\"Calibration to Swaptions.\\n\");\n\n\t\tSystem.out.println(\"Calibration of rate curves:\");\n\n\t\tfinal AnalyticModel curveModel = getCalibratedCurve();\n\n\t\t// Create the forward curve (initial value of the LIBOR market model)\n\t\tfinal ForwardCurve forwardCurve = curveModel.getForwardCurve(\"ForwardCurveFromDiscountCurve(discountCurve-EUR,1D)\");\n\t\tfinal DiscountCurve discountCurve = curveModel.getDiscountCurve(\"discountCurve-EUR\");\n\t\t//\t\tcurveModel.addCurve(discountCurve.getName(), discountCurve);\n\n\t\tfinal long millisCurvesEnd = System.currentTimeMillis();\n\t\tSystem.out.println();\n\n\t\tSystem.out.println(\"Brute force Monte-Carlo calibration of model volatilities:\");\n\n\t\tfinal ArrayList<String>\t\t\t\tcalibrationItemNames\t= new ArrayList<>();\n\t\tfinal ArrayList<CalibrationProduct>\tcalibrationProducts\t\t= new ArrayList<>();\n\n\t\tfinal double\tswapPeriodLength\t= 0.5;\n\n\t\tfinal String[] atmExpiries = {\n\t\t\t\t\"1M\", \"1M\", \"1M\", \"1M\", \"1M\", \"1M\", \"1M\", \"1M\", \"1M\", \"1M\", \"1M\", \"1M\", \"1M\", \"1M\",\n\t\t\t\t\"2M\", \"2M\", \"2M\", \"2M\", \"2M\", \"2M\", \"2M\", \"2M\", \"2M\", \"2M\", \"2M\", \"2M\", \"2M\", \"2M\", \n\t\t\t\t\"3M\", \"3M\", \"3M\", \"3M\", \"3M\", \"3M\", \"3M\", \"3M\", \"3M\", \"3M\", \"3M\", \"3M\", \"3M\", \"3M\",\n\t\t\t\t\"6M\", \"6M\", \"6M\", \"6M\", \"6M\", \"6M\", \"6M\", \"6M\", \"6M\", \"6M\", \"6M\", \"6M\", \"6M\", \"6M\",\n\t\t\t\t\"9M\", \"9M\", \"9M\", \"9M\", \"9M\", \"9M\", \"9M\", \"9M\", \"9M\", \"9M\", \"9M\", \"9M\", \"9M\", \"9M\",\n\t\t\t\t\"1Y\", \"1Y\", \"1Y\", \"1Y\", \"1Y\", \"1Y\", \"1Y\", \"1Y\", \"1Y\", \"1Y\", \"1Y\", \"1Y\", \"1Y\", \"1Y\", \n\t\t\t\t\"18M\", \"18M\", \"18M\", \"18M\", \"18M\", \"18M\", \"18M\", \"18M\", \"18M\", \"18M\", \"18M\", \"18M\", \"18M\", \"18M\",\n\t\t\t\t\"2Y\", \"2Y\", \"2Y\", \"2Y\", \"2Y\", \"2Y\", \"2Y\", \"2Y\", \"2Y\", \"2Y\", \"2Y\", \"2Y\", \"2Y\", \"2Y\",\n\t\t\t\t\"3Y\", \"3Y\", \"3Y\", \"3Y\", \"3Y\", \"3Y\", \"3Y\", \"3Y\", \"3Y\", \"3Y\", \"3Y\", \"3Y\", \"3Y\", \"3Y\", \"4Y\",\n\t\t\t\t\"4Y\", \"4Y\", \"4Y\", \"4Y\", \"4Y\", \"4Y\", \"4Y\", \"4Y\", \"4Y\", \"4Y\", \"4Y\", \"4Y\", \"4Y\", \"5Y\", \"5Y\", \"5Y\", \"5Y\",\n\t\t\t\t\"5Y\", \"5Y\", \"5Y\", \"5Y\", \"5Y\", \"5Y\", \"5Y\", \"5Y\", \"5Y\", \"5Y\", \"7Y\", \"7Y\", \"7Y\", \"7Y\", \"7Y\", \"7Y\", \"7Y\",\n\t\t\t\t\"7Y\", \"7Y\", \"7Y\", \"7Y\", \"7Y\", \"7Y\", \"7Y\", \"10Y\", \"10Y\", \"10Y\", \"10Y\", \"10Y\", \"10Y\", \"10Y\", \"10Y\", \"10Y\",\n\t\t\t\t\"10Y\", \"10Y\", \"10Y\", \"10Y\", \"10Y\", \"15Y\", \"15Y\", \"15Y\", \"15Y\", \"15Y\", \"15Y\", \"15Y\", \"15Y\", \"15Y\", \"15Y\",\n\t\t\t\t\"15Y\", \"15Y\", \"15Y\", \"15Y\", \"20Y\", \"20Y\", \"20Y\", \"20Y\", \"20Y\", \"20Y\", \"20Y\", \"20Y\", \"20Y\", \"20Y\", \"20Y\",\n\t\t\t\t\"20Y\", \"20Y\", \"20Y\", \"25Y\", \"25Y\", \"25Y\", \"25Y\", \"25Y\", \"25Y\", \"25Y\", \"25Y\", \"25Y\", \"25Y\", \"25Y\", \"25Y\",\n\t\t\t\t\"25Y\", \"25Y\", \"30Y\", \"30Y\", \"30Y\", \"30Y\", \"30Y\", \"30Y\", \"30Y\", \"30Y\", \"30Y\", \"30Y\", \"30Y\", \"30Y\", \"30Y\", \"30Y\" };\n\n\t\tfinal String[] atmTenors = {\n\t\t\t\t\"1Y\", \"2Y\", \"3Y\", \"4Y\", \"5Y\", \"6Y\", \"7Y\", \"8Y\", \"9Y\", \"10Y\", \"15Y\", \"20Y\", \"25Y\", \"30Y\", \n\t\t\t\t\n\t\t\t\t\"1Y\", \"2Y\", \"3Y\", \"4Y\", \"5Y\", \"6Y\", \"7Y\", \"8Y\", \"9Y\", \"10Y\", \"15Y\", \"20Y\", \"25Y\", \"30Y\",\n\t\t\t\t\"1Y\", \"2Y\", \"3Y\", \"4Y\", \"5Y\", \"6Y\", \"7Y\", \"8Y\", \"9Y\", \"10Y\", \"15Y\", \"20Y\", \"25Y\", \"30Y\",\n\t\t\t\t\"1Y\", \"2Y\", \"3Y\", \"4Y\", \"5Y\", \"6Y\", \"7Y\", \"8Y\", \"9Y\", \"10Y\", \"15Y\", \"20Y\", \"25Y\", \"30Y\",\n\n\t\t\t\t\"1Y\", \"2Y\",\"3Y\", \"4Y\", \"5Y\", \"6Y\", \"7Y\", \"8Y\", \"9Y\", \"10Y\", \"15Y\", \"20Y\", \"25Y\", \"30Y\",\n\t\t\t\t\"1Y\", \"2Y\", \"3Y\", \"4Y\",\"5Y\", \"6Y\", \"7Y\", \"8Y\", \"9Y\", \"10Y\", \"15Y\", \"20Y\", \"25Y\", \"30Y\", \"1Y\", \"2Y\", \"3Y\", \"4Y\", \"5Y\", \"6Y\",\n\t\t\t\t\"7Y\", \"8Y\", \"9Y\", \"10Y\", \"15Y\", \"20Y\", \"25Y\", \"30Y\", \"1Y\", \"2Y\", \"3Y\", \"4Y\", \"5Y\", \"6Y\", \"7Y\", \"8Y\",\n\t\t\t\t\"9Y\", \"10Y\", \"15Y\", \"20Y\", \"25Y\", \"30Y\", \"1Y\", \"2Y\", \"3Y\", \"4Y\", \"5Y\", \"6Y\", \"7Y\", \"8Y\", \"9Y\", \"10Y\",\n\t\t\t\t\"15Y\", \"20Y\", \"25Y\", \"30Y\", \"1Y\", \"2Y\", \"3Y\", \"4Y\", \"5Y\", \"6Y\", \"7Y\", \"8Y\", \"9Y\", \"10Y\", \"15Y\", \"20Y\",\n\t\t\t\t\"25Y\", \"30Y\", \"1Y\", \"2Y\", \"3Y\", \"4Y\", \"5Y\", \"6Y\", \"7Y\", \"8Y\", \"9Y\", \"10Y\", \"15Y\", \"20Y\", \"25Y\", \"30Y\",\n\t\t\t\t\"1Y\", \"2Y\", \"3Y\", \"4Y\", \"5Y\", \"6Y\", \"7Y\", \"8Y\", \"9Y\", \"10Y\", \"15Y\", \"20Y\", \"25Y\", \"30Y\", \"1Y\", \"2Y\",\n\t\t\t\t\"3Y\", \"4Y\", \"5Y\", \"6Y\", \"7Y\", \"8Y\", \"9Y\", \"10Y\", \"15Y\", \"20Y\", \"25Y\", \"30Y\", \"1Y\", \"2Y\", \"3Y\", \"4Y\",\n\t\t\t\t\"5Y\", \"6Y\", \"7Y\", \"8Y\", \"9Y\", \"10Y\", \"15Y\", \"20Y\", \"25Y\", \"30Y\", \"1Y\", \"2Y\", \"3Y\", \"4Y\", \"5Y\", \"6Y\",\n\t\t\t\t\"7Y\", \"8Y\", \"9Y\", \"10Y\", \"15Y\", \"20Y\", \"25Y\", \"30Y\", \"1Y\", \"2Y\", \"3Y\", \"4Y\", \"5Y\", \"6Y\", \"7Y\", \"8Y\",\n\t\t\t\t\"9Y\", \"10Y\", \"15Y\", \"20Y\", \"25Y\", \"30Y\", \"1Y\", \"2Y\", \"3Y\", \"4Y\", \"5Y\", \"6Y\", \"7Y\", \"8Y\", \"9Y\", \"10Y\",\n\t\t\t\t\"15Y\", \"20Y\", \"25Y\", \"30Y\" };\n\n\t\tfinal double[] atmNormalVolatilities = {\n\t\t\t\t0.0015335, 0.0015179, 0.0019499, 0.0024161, 0.0027817, 0.0031067, 0.0033722, 0.0035158, 0.0036656, 0.0037844, 0.00452, 0.0050913, 0.0054071, 0.0056496,\n\t\t\t\t//next is 2M\n\t\t\t\t0.0016709, 0.0016287, 0.0020182, 0.0024951, 0.002827, 0.0031023, 0.0034348, 0.0036183, 0.0038008, 0.0039155, 0.0046602, 0.0051981, 0.0055116, 0.0057249,\n\t\t\t\t\n\t\t\t\t0.0015543, 0.0016509, 0.0020863, 0.002587, 0.002949, 0.0032105, 0.0035338, 0.0037133, 0.0038475, 0.0040674, 0.0047458, 0.005276, 0.005476, 0.005793,\n\t\t\t\t0.0016777, 0.001937, 0.0023423, 0.0027823, 0.0031476, 0.0034569, 0.0037466, 0.0039852, 0.0041802, 0.0043221, 0.0049649, 0.0054206, 0.0057009, 0.0059071,\n\t\t\t\t//next is 9M\n\t\t\t\t0.0017809, 0.0020951, 0.0024978, 0.0029226, 0.0032379, 0.0035522, 0.0038397, 0.0040864, 0.0043122, 0.0044836, 0.0050939, 0.0054761, 0.0057374, 0.0059448,\n\t\t\t\t\n\t\t\t\t0.0020129, 0.0022865, 0.0027082, 0.0030921, 0.0033849, 0.0037107, 0.0039782, 0.0042058, 0.0044272, 0.0046082, 0.0051564, 0.0055307, 0.0057924, 0.0059811,\n\t\t\t\t//next is 18M\n\t\t\t\t0.0022824, 0.0025971, 0.0029895, 0.0033299, 0.0036346, 0.0039337, 0.0042153, 0.0044347, 0.0046686, 0.0048244, 0.0052739, 0.005604, 0.0058311, 0.0060011,\n\t\t\t\n\t\t\t\t0.0026477, 0.0029709, 0.0033639, 0.0036507, 0.0039096, 0.0041553, 0.0044241, 0.00462, 0.0048265, 0.004989, 0.005361, 0.0056565, 0.0058529, 0.0060102,\n\t\t\t\t0.003382, 0.0036593, 0.0039353, 0.0041484, 0.0043526, 0.0045677, 0.004775, 0.0049506, 0.0051159, 0.0052722, 0.0055185, 0.0057089, 0.0058555, 0.0059432,\n\t\t\t\t0.0040679, 0.0042363, 0.0044602, 0.0046206, 0.0047527, 0.0048998, 0.0050513, 0.0051928, 0.0053439, 0.0054657, 0.0056016, 0.0057244, 0.0058153, 0.0058793,\n\t\t\t\t0.0045508, 0.0046174, 0.0047712, 0.0048999, 0.0050364, 0.0051504, 0.0052623, 0.0053821, 0.0054941, 0.0055918, 0.0056569, 0.0057283, 0.0057752, 0.0058109,\n\t\t\t\t0.0051385, 0.0051373, 0.0052236, 0.005312, 0.0053793, 0.0054396, 0.0055037, 0.0055537, 0.0056213, 0.0056943, 0.005671, 0.0056707, 0.0056468, 0.0056423,\n\t\t\t\t0.0055069, 0.0054836, 0.0055329, 0.0055696, 0.005605, 0.0056229, 0.0056562, 0.005655, 0.0056679, 0.0057382, 0.0056494, 0.0055831, 0.0055096, 0.0054526,\n\t\t\t\t0.0054486, 0.0054057, 0.0054439, 0.005462, 0.0054915, 0.0054993, 0.0055134, 0.0054985, 0.0055318, 0.0055596, 0.005369, 0.0052513, 0.0051405, 0.0050416,\n\t\t\t\t0.005317, 0.005268, 0.005312, 0.0053112, 0.0053417, 0.0053556, 0.0053323, 0.0053251, 0.0053233, 0.0053126, 0.0050827, 0.004922, 0.0047924, 0.0046666,\n\t\t\t\t0.0051198, 0.0051013, 0.0051421, 0.0051418, 0.0051538, 0.005133, 0.0051081, 0.0050552, 0.005055, 0.0050473, 0.0048161, 0.0045965, 0.0044512, 0.0043099,\n\t\t\t\t0.0049482, 0.004947, 0.0049805, 0.0049951, 0.0050215, 0.0049849, 0.0049111, 0.0048498, 0.0047879, 0.0047688, 0.0044943, 0.0042786, 0.0041191, 0.0039756};\n\n\t\tfinal LocalDate referenceDate = LocalDate.of(2020, Month.JULY, 31);\n\t\tfinal BusinessdayCalendarExcludingTARGETHolidays cal = new BusinessdayCalendarExcludingTARGETHolidays();\n\t\tfinal DayCountConvention_ACT_365 modelDC = new DayCountConvention_ACT_365();\n\t\tfor(int i=0; i<atmNormalVolatilities.length; i++ ) {\n\n\t\t\tfinal LocalDate exerciseDate = cal.getDateFromDateAndOffsetCode(referenceDate, atmExpiries[i]);\n\t\t\tfinal LocalDate tenorEndDate = cal.getDateFromDateAndOffsetCode(exerciseDate, atmTenors[i]);\n\t\t\tdouble\texercise\t\t= modelDC.getDaycountFraction(referenceDate, exerciseDate);\n\t\t\tdouble\ttenor\t\t\t= modelDC.getDaycountFraction(exerciseDate, tenorEndDate);\n\n\t\t\t// We consider an idealized tenor grid (alternative: adapt the model grid)\n\t\t\texercise\t= Math.round(exercise/0.25)*0.25;\n\t\t\ttenor\t\t= Math.round(tenor/0.25)*0.25;\n\t\t\tif(exercise < 0.25) {continue;}\n\t\t\t//if(exercise < 1.0) {continue;}\n\n\t\t\tfinal int numberOfPeriods = (int)Math.round(tenor / swapPeriodLength);\n\n\t\t\tfinal double\tmoneyness\t\t\t= 0.0;\n\t\t\tfinal double\ttargetVolatility\t= atmNormalVolatilities[i];\n\n\t\t\tfinal String\ttargetVolatilityType = \"VOLATILITYNORMAL\";\n\n\t\t\tfinal double\tweight = 1.0;\n\n\t\t\tcalibrationProducts.add(createCalibrationItem(weight, exercise, swapPeriodLength, numberOfPeriods, moneyness, targetVolatility, targetVolatilityType, forwardCurve, discountCurve));\n\t\t\tcalibrationItemNames.add(atmExpiries[i]+\"\\t\"+atmTenors[i]);\n\t\t}\n\n\t\t/*\n\t\t * Create a simulation time discretization\n\t\t */\n\t\t// If simulation time is below libor time, exceptions will be hard to track.\n\t\tfinal double lastTime\t= 21.0;\n\t\tfinal double dtLibor\t= 0.5;\n\t\tfinal double dt\t= 0.125;\n\t\tfinal TimeDiscretization timeDiscretizationFromArray = new TimeDiscretizationFromArray(0.0, (int) (lastTime / dt), dt);\n\t\tfinal TimeDiscretization liborPeriodDiscretization = new TimeDiscretizationFromArray(0.0, (int) (lastTime / dtLibor), dtLibor);\n\t\tint seed =1111;\n\t\tSystem.out.println(\"seed: \" + seed);\n\t\tfinal BrownianMotion brownianMotion = new net.finmath.montecarlo.BrownianMotionLazyInit(timeDiscretizationFromArray, numberOfFactors, numberOfPaths, seed /* seed */); \n\t\tTimeDiscretization timeToMaturityDiscretization = new TimeDiscretizationFromArray(0.00,0.25, 0.5, 1.00, 2.00, 3.00, 5.00, 7.00, 10.0, 15.0, 21.0);\n\t\t//TimeDiscretization timeToMaturityDiscretization = new TimeDiscretizationFromArray(0.00, 1.00, 2.00, 3.00, 4.00, 5.00, 6.0, 7.00, 8.0,9.0, 10.0, 12.5, 15.0, 21.0);\t\t// needed if you use LIBORVolatilityModelPiecewiseConstantWithMercurioModification: TimeDiscretization = new TimeDiscretizationFromArray(0.0, 0.25, 0.50, 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0, 10.0, 15.0, 20.0, 25.0, 30.0, 40.0);\n\t //TimeDiscretization timeToMaturityDiscretization = new TimeDiscretizationFromArray(0.00, 0.5, 1.00, 2.00, 3.00, 4.00, 5.00, 6.00, 7.00, 8.00, 9,00, 10.0, 11.0, 12.0, 13.0, 14.0, 15.0, 16.0 , 17.0, 18.0, 19.0 ,20.0,21.0);\n //TimeDiscretization timeToMaturityDiscretization = new TimeDiscretizationFromArray(0.00, 21, 1.0);\n\n\t\tdouble[] arrayValues = new double [timeToMaturityDiscretization.getNumberOfTimes()];\n\t\tfor (int i=0; i<timeToMaturityDiscretization.getNumberOfTimes(); i++) {arrayValues[i]= 0.1/100;}\n\n\t //final LIBORVolatilityModel volatilityModel = new LIBORVolatilityModelTimeHomogenousPiecewiseConstantWithMercurioModification(timeDiscretizationFromArray, liborPeriodDiscretization, timeToMaturityDiscretization, arrayValues);\n\t\tLIBORVolatilityModel volatilityModel = new LIBORVolatilityModelFourParameterExponentialFormWithMercurioModification(timeDiscretizationFromArray, liborPeriodDiscretization, 0.002, 0.0005, 0.2, 0.00005, true); //0.20/100.0, 0.05/100.0, 0.10, 0.05/100.0, \n\t\t//final LIBORVolatilityModel volatilityModel = new LIBORVolatilityModelPiecewiseConstantWithMercurioModification(timeDiscretizationFromArray, liborPeriodDiscretization,optionMaturityDiscretization,timeToMaturityDiscretization, 0.50 / 100);\n\t\t\n\t\tfinal LIBORCorrelationModel correlationModel = new LIBORCorrelationModelExponentialDecayWithMercurioModification(timeDiscretizationFromArray, liborPeriodDiscretization, numberOfFactors, 0.05, false);\n\t\t//AbstractLIBORCovarianceModelParametric covarianceModelParametric = new LIBORCovarianceModelExponentialForm5Param(timeDiscretizationFromArray, liborPeriodDiscretization, numberOfFactors, new double[] { 0.20/100.0, 0.05/100.0, 0.10, 0.05/100.0, 0.10} );\n\t\tfinal AbstractLIBORCovarianceModelParametric covarianceModelParametric = new LIBORCovarianceModelFromVolatilityAndCorrelation(timeDiscretizationFromArray, liborPeriodDiscretization, volatilityModel, correlationModel);\n\n\t\t// Create blended local volatility model with fixed parameter (0=lognormal, > 1 = almost a normal model).\n\t\tfinal AbstractLIBORCovarianceModelParametric covarianceModelDisplaced = new DisplacedLocalVolatilityModel(covarianceModelParametric, 1.0/0.25, false /* isCalibrateable */);\n\t\tfinal AbstractLIBORCovarianceModelParametric covarianceModelReducedVolatility = new VolatilityReductionMercurioModel(covarianceModelDisplaced);\n\t\t\n\t\t// Set model properties\n\t\tfinal Map<String, Object> properties = new HashMap<>();\n\t\tSystem.out.println(\"Number of volatility parameters: \" + volatilityModel.getParameter().length);\n\n\t\tproperties.put(\"measure\", LIBORMarketModelFromCovarianceModelWithMercurioModification.Measure.SPOT.name());\n\n\t\t// Choose normal state space for the Euler scheme (the covariance model above carries a linear local volatility model).\n\t\tproperties.put(\"stateSpace\", LIBORMarketModelFromCovarianceModelWithMercurioModification.StateSpace.NORMAL.name());\n\n\t\t// Set calibration properties (should use our brownianMotion for calibration - needed to have to right correlation).\n\t\tfinal Double accuracy = new Double(1E-8);\t// Lower accuracy to reduce runtime of the unit test\n\t\tfinal int maxIterations = 400;\n\t\tfinal int numberOfThreads = 6;\n\t\tfinal OptimizerFactory optimizerFactory = new OptimizerFactoryLevenbergMarquardt(maxIterations, accuracy, numberOfThreads);\n\n\t\t//penso che getParameterAsDouble().length mi ritorni il numero di tutti i paratemtri da calibrare cioè tutta la piecewise volatiliy e anche correlazion\n\t\tfinal double[] parameterStandardDeviation = new double[covarianceModelParametric.getParameterAsDouble().length];\n\t\tfinal double[] parameterLowerBound = new double[covarianceModelParametric.getParameterAsDouble().length];\n\t\tfinal double[] parameterUpperBound = new double[covarianceModelParametric.getParameterAsDouble().length];\n\t\tArrays.fill(parameterStandardDeviation, 0.20/100.0);\n\t\tArrays.fill(parameterLowerBound, 0.0);\n\t\tArrays.fill(parameterUpperBound, Double.POSITIVE_INFINITY);\n\n\t\t// Set calibration properties (should use our brownianMotion for calibration - needed to have to right correlation).\n\t\tfinal Map<String, Object> calibrationParameters = new HashMap<>();\n\t\tcalibrationParameters.put(\"accuracy\", accuracy);\n\t\tcalibrationParameters.put(\"brownianMotion\", brownianMotion);\n\t\tcalibrationParameters.put(\"optimizerFactory\", optimizerFactory);\n\t\tcalibrationParameters.put(\"parameterStep\", new Double(1E-4));\n\t\tproperties.put(\"calibrationParameters\", calibrationParameters);\n\n\t\tfinal long millisCalibrationStart = System.currentTimeMillis();\n\n\t\t/*\n\t\t * Create corresponding Forward Market Model\n\t\t */\n\t\tfinal CalibrationProduct[] calibrationItemsLMM = new CalibrationProduct[calibrationItemNames.size()];\n\t\tfor(int i=0; i<calibrationItemNames.size(); i++) {\n\t\t\tcalibrationItemsLMM[i] = new CalibrationProduct(calibrationProducts.get(i).getProduct(),calibrationProducts.get(i).getTargetValue(),calibrationProducts.get(i).getWeight());\n\t\t}\n\t\tfinal LIBORMarketModel mercurioModelCalibrated = LIBORMarketModelFromCovarianceModelWithMercurioModification.of(\n\t\t\t\tliborPeriodDiscretization,\n\t\t\t\tcurveModel,\n\t\t\t\tforwardCurve,\n\t\t\t\tnew DiscountCurveFromForwardCurve(forwardCurve),\n\t\t\t\trandomVariableFactory,\n\t\t\t\tcovarianceModelReducedVolatility,\n\t\t\t\tcalibrationItemsLMM, properties);\n\n\t\tfinal long millisCalibrationEnd = System.currentTimeMillis();\n\t\t\n//-------------------------------------------------------------------------------- fine calibrazione volatility------------------------------\n\t\tSystem.out.println(\"\\nCalibrated parameters are:\");\n\t\tfinal double[] param = ((AbstractLIBORCovarianceModelParametric)((LIBORMarketModelFromCovarianceModelWithMercurioModification) mercurioModelCalibrated).getCovarianceModel()).getParameterAsDouble();\n\t\tfor (final double p : param) {\n\t\t\tSystem.out.println(p);\n\t\t}\n\n\t\tfinal EulerSchemeFromProcessModel process = new EulerSchemeFromProcessModel(mercurioModelCalibrated, brownianMotion);\n\t\tfinal LIBORModelMonteCarloSimulationModel simulationMercurioCalibrated = new LIBORMonteCarloSimulationFromLIBORModel(process);\n\n\t\tSystem.out.println(\"\\nValuation on calibrated model:\");\n\t\tdouble deviationSum\t\t\t= 0.0;\n\t\tdouble deviationSquaredSum\t= 0.0;\n\t\tfor (int i = 0; i < calibrationProducts.size(); i++) {\n\t\t\tfinal AbstractLIBORMonteCarloProduct calibrationProduct = calibrationProducts.get(i).getProduct();\n\t\t\ttry {\n\t\t\t\tfinal double valueModel = calibrationProduct.getValue(simulationMercurioCalibrated);\n\t\t\t\tfinal double valueTarget = calibrationProducts.get(i).getTargetValue().getAverage();\n\t\t\t\tfinal double error = valueModel-valueTarget;\n\t\t\t\tdeviationSum += error;\n\t\t\t\tdeviationSquaredSum += error*error;\n\t\t\t\tSystem.out.println(calibrationItemNames.get(i) + \"\\t\" + \"Model: \" + formatterValue.format(valueModel) + \"\\t Target: \" + formatterValue.format(valueTarget) + \"\\t Deviation: \" + formatterDeviation.format(valueModel-valueTarget));// + \"\\t\" + calibrationProduct.toString());\n\t\t\t}\n\t\t\tcatch(final Exception e) {\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(\"Time required for calibration of curves.........: \" + (millisCurvesEnd-millisCurvesStart)/1000.0 + \" s.\");\n\t\tSystem.out.println(\"Time required for calibration of volatilities...: \" + (millisCalibrationEnd-millisCalibrationStart)/1000.0 + \" s.\");\n\n\t\tfinal double averageDeviation = deviationSum/calibrationProducts.size();\n\t\tSystem.out.println(\"Mean Deviation:\" + formatterValue.format(averageDeviation));\n\t\tSystem.out.println(\"RMS Error.....:\" + formatterValue.format(Math.sqrt(deviationSquaredSum/calibrationProducts.size())));\n\t\tSystem.out.println(\"__________________________________________________________________________________________\\n\");\n\n\t\tAssert.assertTrue(Math.abs(averageDeviation) < 2E-4);\n\n//\n//\t\t/*\n//\t\t * Checking serilization\n//\t\t */\n//\t\tbyte[] lmmSerialized = null;\n//\t\ttry {\n//\t\t\tfinal ByteArrayOutputStream baos = new ByteArrayOutputStream();\n//\t\t\tfinal ObjectOutputStream oos = new ObjectOutputStream( baos );\n//\t\t\toos.writeObject(mercurioModelCalibrated.getCloneWithModifiedData(null));\n//\t\t\tlmmSerialized = baos.toByteArray();\n//\t\t} catch (final IOException e) {\n//\t\t\tfail(\"Serialization failed with exception \" + e.getMessage());\n//\t\t}\n//\n//\t\tLIBORMarketModelFromCovarianceModelWithMercurioModification liborMarketModelFromSerialization = null;\n//\t\ttry {\n//\t\t\tfinal ObjectInputStream ois = new ObjectInputStream(new ByteArrayInputStream(lmmSerialized) );\n//\t\t\tliborMarketModelFromSerialization = (LIBORMarketModelFromCovarianceModelWithMercurioModification)ois.readObject();\n//\t\t} catch (IOException | ClassNotFoundException e) {\n//\t\t\tfail(\"Deserialization failed with exception \" + e.getMessage());\n//\t\t}\n//\n//\t\t/*\n//\t\t * Check if the deserialized model and the original calibrated model give the same valuations\n//\t\t */\n//\t\tif(liborMarketModelFromSerialization != null) {\n//\t\t\tfinal LIBORModelMonteCarloSimulationModel simulationFromSerialization = new LIBORMonteCarloSimulationFromLIBORModel(new EulerSchemeFromProcessModel(liborMarketModelFromSerialization, brownianMotion));\n//\n//\t\t\tSystem.out.println(\"\\nValuation on calibrated model:\");\n//\t\t\tfor (int i = 0; i < calibrationProducts.size(); i++) {\n//\t\t\t\tfinal AbstractLIBORMonteCarloProduct calibrationProduct = calibrationProducts.get(i).getProduct();\n//\t\t\t\ttry {\n//\t\t\t\t\tfinal double valueFromCalibratedModel = calibrationProduct.getValue(simulationMercurioCalibrated);\n//\t\t\t\t\tfinal double valueFromSerializedModel = calibrationProduct.getValue(simulationFromSerialization);\n//\t\t\t\t\tfinal double error = valueFromSerializedModel-valueFromCalibratedModel;\n//\t\t\t\t\tAssert.assertEquals(\"Valuation using deserilized model.\", valueFromCalibratedModel, valueFromSerializedModel, 1E-12);\n//\t\t\t\t\tSystem.out.println(calibrationItemNames.get(i) + \"\\t\" + formatterDeviation.format(error));\n//\t\t\t\t}\n//\t\t\t\tcatch(final Exception e) {\n//\t\t\t\t}\n//\t\t\t}\n//\t\t}\n\t\t\n\t\t// CAPLET ON BACKWARD LOOKING RATE SEMESTRALI\n\t\tDecimalFormat formatterTimeValue = new DecimalFormat(\"##0.00;\");\n\t\tDecimalFormat formatterVolValue = new DecimalFormat(\"##0.00000;\");\n\t\tDecimalFormat formatterAnalytic = new DecimalFormat(\"##0.000;\");\n\t\tDecimalFormat formatterPercentage = new DecimalFormat(\" ##0.000%;-##0.000%\", new DecimalFormatSymbols(Locale.ENGLISH));\n\t\tdouble[] mktData = new double[] {/* 6M 0.00167, */ /* 12M*/ 0.00201, /* 18M*/ 0.00228, /* 2Y */ 0.00264, 0.0, /* 3Y */ 0.0033, /* 4Y */0.00406, /* 5Y */ 0.00455, /* 6Y - NA */ 0.0, /* 7Y */0.00513, /* 8Y- NA */0.0, /* 9Y */0.0, /* 10Y */0.00550,0.0,0.0,0.0,0.0, /* 15Y */0.00544,0.0,0.0,0.0,0.0, /* 20Y */0.0053,0.0,0.0,0.0,0.0,/* 25Y */ 0.0053,0.0,0.0,0.0,0.0,/* 30Y */0.00495,0.0,0.0,0.0 };\n\t\t\n\t\tdouble strike = 0.004783;\n\t\n\t\tint liborIndex=1;\n\t\tint mktDataIndex = 0;\n\n\t\t//Results with CALIBRATED model\n\t\tSystem.out.println(\"\\n results on CALIBRATED model \\n\");\n\t\twhile(liborIndex < liborPeriodDiscretization.getNumberOfTimes()) {\n\t\t\tdouble maturityMinusLengthLibor =liborPeriodDiscretization.getTime(liborIndex);\n\t\t\tdouble fixBackwardTime=liborPeriodDiscretization.getTime(liborIndex+1);\n\t\t\tCaplet capletCassical = new Caplet(maturityMinusLengthLibor, dtLibor, strike, dtLibor, false, ValueUnit.NORMALVOLATILITY);\n\t\t\t//set to default ValueUnit.NORMALVOLATILITY for CapletOnBackwardLookingRate\n\t\t\tCapletOnBackwardLookingRate capletBackward = new CapletOnBackwardLookingRate(maturityMinusLengthLibor, dtLibor, strike, dtLibor, false);\t\t\t\n\t\t\tdouble impliedVolClassical = capletCassical.getValue(simulationMercurioCalibrated);\n\t\t\tdouble impliedVolBackward = capletBackward.getValue(simulationMercurioCalibrated);\n\t\t\tdouble analyticFormulaPaper = Math.sqrt(1+0.5/(maturityMinusLengthLibor*3));\n\t\t\tdouble ratioImpliedVol = impliedVolBackward/impliedVolClassical;\n\t\t\tdouble error = (analyticFormulaPaper-ratioImpliedVol)/analyticFormulaPaper;\n\n\t\t\tif (liborIndex<5) {\t\t//da i valori del caplet per maturity 1.5Y, 2Y, 2.5Y,.\n\t\t\t\tif (mktData[mktDataIndex] == 0.0) {\n\t\t\t\t\tSystem.out.println(\"Caplet on B(\" + formatterTimeValue.format(maturityMinusLengthLibor) + \", \"\n\t\t\t\t\t\t\t+ formatterTimeValue.format(fixBackwardTime) + \"; \"\n\t\t\t\t\t\t\t+ \"\" + formatterTimeValue.format(fixBackwardTime) + \") \" + \"\\t\" + \"Backward Caplet: \" \n\t\t\t\t\t\t\t+ formatterPercentage.format(impliedVolBackward) + \"\\t\" + \"Classical Caplet: \" \n\t\t\t\t\t\t\t+ formatterPercentage.format(impliedVolClassical)+ \"\\t\" +\"Analytic ratio: \" \n\t\t\t\t\t\t\t+ formatterAnalytic.format(analyticFormulaPaper)+ \"\\t\" + \"MC ratio: \"\n\t\t\t\t\t\t\t+ formatterAnalytic.format(ratioImpliedVol) + \"\\t\" +\"Error: \"\n\t\t\t\t\t\t+ formatterPercentage.format(error) );\n\t\t\t\tliborIndex+=1;\n\t\t\t\tmktDataIndex+=1;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tdouble ratioMktVol =impliedVolBackward/mktData[mktDataIndex];\n\t\t\t\t\tdouble errorMkt = (analyticFormulaPaper-ratioMktVol)/analyticFormulaPaper;\n\t\t\t\t\tSystem.out.println(\"Caplet on B(\" + formatterTimeValue.format(maturityMinusLengthLibor) + \", \"\n\t\t\t\t\t\t\t+ formatterTimeValue.format(fixBackwardTime) + \"; \"\n\t\t\t\t\t\t\t+ \"\" + formatterTimeValue.format(fixBackwardTime) + \") \" + \"\\t\" + \"Backward Caplet: \" \n\t\t\t\t\t\t\t+ formatterPercentage.format(impliedVolBackward) + \"\\t\" + \"Classical Caplet: \" \n\t\t\t\t\t\t\t+ formatterPercentage.format(impliedVolClassical)+ \"\\t\" +\"Analytic ratio: \" \n\t\t\t\t\t\t\t+ formatterAnalytic.format(analyticFormulaPaper)+ \"\\t\" + \"MC ratio: \"\n\t\t\t\t\t\t\t+ formatterAnalytic.format(ratioImpliedVol) + \"\\t\" +\"Error: \"\n\t\t\t\t\t\t\t+ formatterPercentage.format(error) \n\t\t\t\t\t\t\t+ \"\\t\" +\"Market Caplet Vol. \" + formatterPercentage.format(mktData[mktDataIndex])\n\t\t\t\t\t\t\t+ \"\\t\" +\"Market Ratio: \"\t+ formatterAnalytic.format(ratioMktVol)\t\n\t\t\t\t\t\t\t+ \"\\t\" +\"Market Error: \"\t+ formatterPercentage.format(errorMkt)\n\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\t\n\t\t\t\t\tliborIndex+=1;\n\t\t\t\t\tmktDataIndex+=1;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\telse {\t//secondo loop da i valori del caplet per maturity 4Y,5Y,...,21\n\t\t\t\tif (mktData[mktDataIndex] == 0.0) {\n\t\t\t\t\tSystem.out.println(\"Caplet on B(\" + formatterTimeValue.format(maturityMinusLengthLibor) + \", \"\n\t\t\t\t\t\t\t+ formatterTimeValue.format(fixBackwardTime) + \"; \"\n\t\t\t\t\t\t\t+ \"\" + formatterTimeValue.format(fixBackwardTime) + \") \" + \"\\t\" + \"Backward Caplet: \" \n\t\t\t\t\t\t\t+ formatterPercentage.format(impliedVolBackward) + \"\\t\" + \"Classical Caplet: \" \n\t\t\t\t\t\t\t+ formatterPercentage.format(impliedVolClassical)+ \"\\t\" +\"Analytic ratio: \" \n\t\t\t\t\t\t\t+ formatterAnalytic.format(analyticFormulaPaper)+ \"\\t\" + \"MC ratio: \"\n\t\t\t\t\t\t\t+ formatterAnalytic.format(ratioImpliedVol) + \"\\t\" +\"Error: \"\n\t\t\t\t\t\t+ formatterPercentage.format(error) );\n\t\t\t\t\tliborIndex+=2;\n\t\t\t\t\tmktDataIndex+=1;\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tdouble ratioMktVol =impliedVolBackward/mktData[mktDataIndex];\n\t\t\t\t\t\tdouble errorMkt = (analyticFormulaPaper-ratioMktVol)/analyticFormulaPaper;\n\t\t\t\t\t\tSystem.out.println(\"Caplet on B(\" + formatterTimeValue.format(maturityMinusLengthLibor) + \", \"\n\t\t\t\t\t\t\t\t+ formatterTimeValue.format(fixBackwardTime) + \"; \"\n\t\t\t\t\t\t\t\t+ \"\" + formatterTimeValue.format(fixBackwardTime) + \") \" + \"\\t\" + \"Backward Caplet: \" \n\t\t\t\t\t\t\t\t+ formatterPercentage.format(impliedVolBackward) + \"\\t\" + \"Classical Caplet: \" \n\t\t\t\t\t\t\t\t+ formatterPercentage.format(impliedVolClassical)+ \"\\t\" +\"Analytic ratio: \" \n\t\t\t\t\t\t\t\t+ formatterAnalytic.format(analyticFormulaPaper)+ \"\\t\" + \"MC ratio: \"\n\t\t\t\t\t\t\t\t+ formatterAnalytic.format(ratioImpliedVol) + \"\\t\" +\"Error: \"\n\t\t\t\t\t\t\t\t+ formatterPercentage.format(error) \n\t\t\t\t\t\t\t\t+ \"\\t\" +\"Market Caplet Vol. \" + formatterPercentage.format(mktData[mktDataIndex])\n\t\t\t\t\t\t\t\t+ \"\\t\" +\"Market Ratio: \"\t+ formatterAnalytic.format(ratioMktVol)\t\n\t\t\t\t\t\t\t\t+ \"\\t\" +\"Market Error: \"\t+ formatterPercentage.format(errorMkt)\n\t\t\t\t\t\t\t\t);\n\t\t\t\t\t\tliborIndex+=2;\n\t\t\t\t\t\tmktDataIndex+=1;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t}\n\t\t}\n\n\n\t\t// Set model properties\n\t\tMap<String, String> properties2 = new HashMap<String, String >();\n\t\tproperties2.put(\"measure\", LIBORMarketModelFromCovarianceModelWithMercurioModification.Measure.SPOT.name());\n\t\tproperties2.put(\"stateSpace\", LIBORMarketModelFromCovarianceModelWithMercurioModification.StateSpace.NORMAL.name());\n\n\t\tfinal LIBORMarketModel MercurioModelNONcalibrated= new LIBORMarketModelFromCovarianceModelWithMercurioModification(\n\t\t\t\tliborPeriodDiscretization,\n\t\t\t\tcurveModel,\n\t\t\t\tforwardCurve,\n\t\t\t\tnew DiscountCurveFromForwardCurve(forwardCurve),\n\t\t\t\trandomVariableFactory,\n\t\t\t\tcovarianceModelReducedVolatility,\n\t\t\t\tproperties2\n\t\t\t\t);\n\n\t\tfinal EulerSchemeFromProcessModel process2 = new EulerSchemeFromProcessModel(MercurioModelNONcalibrated,brownianMotion);\n\t\tfinal LIBORModelMonteCarloSimulationModel simulationMercurioModelNONcalibrated = new LIBORMonteCarloSimulationFromLIBORModel(process2);\n\t\n\t\t\n\t\t//Results with NON calibrated model\n\t\tliborIndex=1;\n\t\tmktDataIndex = 0;\n\t\tSystem.out.println(\"\\n results on NON-CALIBRATED model \\n\");\n\t\twhile(liborIndex < liborPeriodDiscretization.getNumberOfTimes()) {\n\t\t\tdouble maturityMinusLengthLibor =liborPeriodDiscretization.getTime(liborIndex);\n\t\t\tdouble fixBackwardTime=liborPeriodDiscretization.getTime(liborIndex+1);\n\t\t\tCaplet capletCassical = new Caplet(maturityMinusLengthLibor, dtLibor, strike, dtLibor, false, ValueUnit.NORMALVOLATILITY);\n\t\t\t//set to default ValueUnit.NORMALVOLATILITY for CapletOnBackwardLookingRate\n\t\t\tCapletOnBackwardLookingRate capletBackward = new CapletOnBackwardLookingRate(maturityMinusLengthLibor, dtLibor, strike, dtLibor, false);\t\t\t\n\t\t\tdouble impliedVolClassical = capletCassical.getValue(simulationMercurioModelNONcalibrated);\n\t\t\tdouble impliedVolBackward = capletBackward.getValue(simulationMercurioModelNONcalibrated);\n\t\t\tdouble analyticFormulaPaper = Math.sqrt(1+0.5/(maturityMinusLengthLibor*3));\n\t\t\tdouble ratioImpliedVol = impliedVolBackward/impliedVolClassical;\n\t\t\tdouble error = (analyticFormulaPaper-ratioImpliedVol)/analyticFormulaPaper;\n\n\t\t\tif (liborIndex<5) {\t\t//da i valori del caplet per maturity 1.0Y, 1.5Y, 2Y, 2.5Y, 3Y\n\t\t\t\tif (mktData[mktDataIndex] == 0.0) {\n\t\t\t\t\tSystem.out.println(\"Caplet on B(\" + formatterTimeValue.format(maturityMinusLengthLibor) + \", \"\n\t\t\t\t\t\t\t+ formatterTimeValue.format(fixBackwardTime) + \"; \"\n\t\t\t\t\t\t\t+ \"\" + formatterTimeValue.format(fixBackwardTime) + \") \" + \"\\t\" + \"Backward Caplet: \" \n\t\t\t\t\t\t\t+ formatterPercentage.format(impliedVolBackward) + \"\\t\" + \"Classical Caplet: \" \n\t\t\t\t\t\t\t+ formatterPercentage.format(impliedVolClassical)+ \"\\t\" +\"Analytic ratio: \" \n\t\t\t\t\t\t\t+ formatterAnalytic.format(analyticFormulaPaper)+ \"\\t\" + \"MC ratio: \"\n\t\t\t\t\t\t\t+ formatterAnalytic.format(ratioImpliedVol) + \"\\t\" +\"Error: \"\n\t\t\t\t\t\t+ formatterPercentage.format(error) );\n\t\t\t\tliborIndex+=1;\n\t\t\t\tmktDataIndex+=1;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tdouble ratioMktVol =impliedVolBackward/mktData[mktDataIndex];\n\t\t\t\t\tdouble errorMkt = (analyticFormulaPaper-ratioMktVol)/analyticFormulaPaper;\n\n\t\t\t\t\tSystem.out.println(\"Caplet on B(\" + formatterTimeValue.format(maturityMinusLengthLibor) + \", \"\n\t\t\t\t\t\t\t+ formatterTimeValue.format(fixBackwardTime) + \"; \"\n\t\t\t\t\t\t\t+ \"\" + formatterTimeValue.format(fixBackwardTime) + \") \" + \"\\t\" + \"Backward Caplet: \" \n\t\t\t\t\t\t\t+ formatterPercentage.format(impliedVolBackward) + \"\\t\" + \"Classical Caplet: \" \n\t\t\t\t\t\t\t+ formatterPercentage.format(impliedVolClassical)+ \"\\t\" +\"Analytic ratio: \" \n\t\t\t\t\t\t\t+ formatterAnalytic.format(analyticFormulaPaper)+ \"\\t\" + \"MC ratio: \"\n\t\t\t\t\t\t\t+ formatterAnalytic.format(ratioImpliedVol) + \"\\t\" +\"Error: \"\n\t\t\t\t\t\t\t+ formatterPercentage.format(error) \n\t\t\t\t\t\t\t+ \"\\t\" +\"Market Caplet Vol. \" + formatterPercentage.format(mktData[mktDataIndex])\n\t\t\t\t\t\t\t+ \"\\t\" +\"Market Ratio: \"\t+ formatterAnalytic.format(ratioMktVol)\t\n\t\t\t\t\t\t\t+ \"\\t\" +\"Market Error: \"\t+ formatterPercentage.format(errorMkt)\n\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\t\n\t\t\t\t\tliborIndex+=1;\n\t\t\t\t\tmktDataIndex+=1;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\telse {\t//secondo loop da i valori del caplet per maturity 4Y,5Y,...,21\n\t\t\t\tif (mktData[mktDataIndex] == 0.0) {\n\t\t\t\t\tSystem.out.println(\"Caplet on B(\" + formatterTimeValue.format(maturityMinusLengthLibor) + \", \"\n\t\t\t\t\t\t\t+ formatterTimeValue.format(fixBackwardTime) + \"; \"\n\t\t\t\t\t\t\t+ \"\" + formatterTimeValue.format(fixBackwardTime) + \") \" + \"\\t\" + \"Backward Caplet: \" \n\t\t\t\t\t\t\t+ formatterPercentage.format(impliedVolBackward) + \"\\t\" + \"Classical Caplet: \" \n\t\t\t\t\t\t\t+ formatterPercentage.format(impliedVolClassical)+ \"\\t\" +\"Analytic ratio: \" \n\t\t\t\t\t\t\t+ formatterAnalytic.format(analyticFormulaPaper)+ \"\\t\" + \"MC ratio: \"\n\t\t\t\t\t\t\t+ formatterAnalytic.format(ratioImpliedVol) + \"\\t\" +\"Error: \"\n\t\t\t\t\t\t+ formatterPercentage.format(error) );\n\t\t\t\t\tliborIndex+=2;\n\t\t\t\t\tmktDataIndex+=1;\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tdouble ratioMktVol =impliedVolBackward/mktData[mktDataIndex];\n\t\t\t\t\t\tdouble errorMkt = (analyticFormulaPaper-ratioMktVol)/analyticFormulaPaper;\n\n\t\t\t\t\t\tSystem.out.println(\"Caplet on B(\" + formatterTimeValue.format(maturityMinusLengthLibor) + \", \"\n\t\t\t\t\t\t\t\t+ formatterTimeValue.format(fixBackwardTime) + \"; \"\n\t\t\t\t\t\t\t\t+ \"\" + formatterTimeValue.format(fixBackwardTime) + \") \" + \"\\t\" + \"Backward Caplet: \" \n\t\t\t\t\t\t\t\t+ formatterPercentage.format(impliedVolBackward) + \"\\t\" + \"Classical Caplet: \" \n\t\t\t\t\t\t\t\t+ formatterPercentage.format(impliedVolClassical)+ \"\\t\" +\"Analytic ratio: \" \n\t\t\t\t\t\t\t\t+ formatterAnalytic.format(analyticFormulaPaper)+ \"\\t\" + \"MC ratio: \"\n\t\t\t\t\t\t\t\t+ formatterAnalytic.format(ratioImpliedVol) + \"\\t\" +\"Error: \"\n\t\t\t\t\t\t\t\t+ formatterPercentage.format(error) \n\t\t\t\t\t\t\t\t+ \"\\t\" +\"Market Caplet Vol. \" + formatterPercentage.format(mktData[mktDataIndex])\n\t\t\t\t\t\t\t\t+ \"\\t\" +\"Market Ratio: \"\t+ formatterAnalytic.format(ratioMktVol)\t\n\t\t\t\t\t\t\t\t+ \"\\t\" +\"Market Error: \"\t+ formatterPercentage.format(errorMkt)\n\t\t\t\t\t\t\t\t);\n\t\t\t\t\t\tliborIndex+=2;\n\t\t\t\t\t\tmktDataIndex+=1;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t}\n\t\t}\n\n\t\t\n\t\t\n\t\tint timeIndex = 4;\n\t\tSystem.out.println(\" \\n Backward looking rate evaluated at the END of the accrual period:\");\n\t\tfor( liborIndex=0; liborIndex<liborPeriodDiscretization.getNumberOfTimes()-1; liborIndex++) {\n\t\t\tdouble evaluationTime=timeDiscretizationFromArray.getTime(timeIndex);\n\t\t\tdouble liborStartingTime=liborPeriodDiscretization.getTime(liborIndex);\n\t\t\tdouble liborEndingTime=liborPeriodDiscretization.getTime(liborIndex+1);\n\t\t\tRandomVariable backwardLookingRate = simulationMercurioModelNONcalibrated.getLIBOR(timeIndex, liborIndex);\n\t\t\tdouble avgBackwardLookingRate =backwardLookingRate.getAverage();\n\t\t\tSystem.out.println(\"Backward B(\" + formatterTimeValue.format(liborStartingTime) + \", \" + formatterTimeValue.format(liborEndingTime) + \") evaluated in t= \" + formatterTimeValue.format(evaluationTime) + \".\"+ \"\\t\" + \"Average: \" + avgBackwardLookingRate);\n\t\t\ttimeIndex += 4;\n\t\t}\t\n\t\t\n\t\tint timeIndex2 = 0;\n\t\tSystem.out.println(\"\\n Backward looking rate evaluated at the BEGIN of the accrual period:\");\n\t\tfor( liborIndex=0; liborIndex<liborPeriodDiscretization.getNumberOfTimes()-1; liborIndex++) {\n\t\t\tdouble evaluationTime=timeDiscretizationFromArray.getTime(timeIndex2);\n\t\t\tdouble liborStartingTime=liborPeriodDiscretization.getTime(liborIndex);\n\t\t\tdouble liborEndingTime=liborPeriodDiscretization.getTime(liborIndex+1);\n\t\t\tRandomVariable backwardLookingRate = simulationMercurioModelNONcalibrated.getLIBOR(timeIndex2, liborIndex);\n\t\t\tdouble avgBackwardLookingRate =backwardLookingRate.getAverage();\n\t\t\tSystem.out.println(\"Backward B(\" + formatterTimeValue.format(liborStartingTime) + \", \" + formatterTimeValue.format(liborEndingTime) + \") evaluated in t= \" + formatterTimeValue.format(evaluationTime) + \".\"+ \"\\t\" + \"Average: \" + avgBackwardLookingRate);\n\t\t\ttimeIndex2 += 4;\n\t\t}\n\n\t}", "private void calculations() {\n\t\tSystem.out.println(\"Starting calculations\\n\");\n\t\tcalcMedian(myProt.getChain(requestedChain));\n\t\tcalcZvalue(myProt.getChain(requestedChain));\n\t\tcalcSVMweightedZvalue(myProt.getChain(requestedChain));\n\t}", "private void setInitializationParams() {\n\t\tint spreadRate = 130-((JSlider)components.get(\"spreadSlider\")).getValue();\n\t\tint intensity = ((JSlider)components.get(\"intensitySlider\")).getValue();\n\t\tint[] boatParams = new int[8];\n\t\tboatParams[0] = (int) ((JSpinner)components.get(\"cleanerSpinner\")).getValue();\n\t\tboatParams[1] = (int) ((JSpinner)components.get(\"cleanerFuelSpinner\")).getValue();\n\t\tboatParams[2] = (int) ((JSpinner)components.get(\"cleanerLoadSpinner\")).getValue();\n\t\tboatParams[3] = (int) ((JSpinner)components.get(\"collectorSpinner\")).getValue();\n\t\tboatParams[4] = (int) ((JSpinner)components.get(\"collectorFuelSpinner\")).getValue();\n\t\tboatParams[5] = (int) ((JSpinner)components.get(\"collectorLoadSpinner\")).getValue();\n\t\tboatParams[6] = (int) ((JSpinner)components.get(\"refuelSpinner\")).getValue();\n\t\tboatParams[7] = (int) ((JSpinner)components.get(\"refuelFuelSpinner\")).getValue();\n\t\tlog.info(\"Simulation initializing with spread rate \"+ spreadRate + \" and intensity \" + intensity);\n\t\tsimulateInitialConditions(spreadRate,boatParams,3,intensity);\n\t}", "public abstract ArrayList< Double > getObjectiveCoefs();", "public double getValue( Coordinate[] controlPoints, Coordinate interpolated );", "public static native void OpenMM_AmoebaGeneralizedKirkwoodForce_getParticleParameters(PointerByReference target, int index, DoubleBuffer charge, DoubleBuffer radius, DoubleBuffer scalingFactor);", "@SuppressWarnings(\"unchecked\")\r\n private void makeIntensityProfiles() {\r\n\r\n // find the center of mass of the single label object in the sliceBuffer (abdomenImage)\r\n findAbdomenCM();\r\n int xcm = centerOfMass[0];\r\n int ycm = centerOfMass[1];\r\n \r\n // There should be only one VOI\r\n VOIVector vois = abdomenImage.getVOIs();\r\n VOI theVOI = vois.get(0);\r\n\r\n // there should be only one curve corresponding to the external abdomen boundary\r\n VOIContour curve = ((VOIContour)theVOI.getCurves().get(0));\r\n int[] xVals;\r\n int[] yVals;\r\n int[] zVals;\r\n try {\r\n xVals = new int [curve.size()];\r\n yVals = new int [curve.size()];\r\n zVals = new int [curve.size()];\r\n } catch (OutOfMemoryError error) {\r\n System.gc();\r\n MipavUtil.displayError(\"makeIntensityProfiles(): Can NOT allocate the abdomen VOI arrays\");\r\n return;\r\n }\r\n curve.exportArrays(xVals, yVals, zVals);\r\n \r\n // one intensity profile for each radial line. Each radial line is 3 degrees and\r\n // there are 360 degrees in a circle\r\n try {\r\n intensityProfiles = new ArrayList[360 /angularResolution];\r\n xProfileLocs = new ArrayList[360 / angularResolution];\r\n yProfileLocs = new ArrayList[360 / angularResolution];\r\n } catch (OutOfMemoryError error) {\r\n System.gc();\r\n MipavUtil.displayError(\"makeIntensityProfiles(): Can NOT allocate profile arrays\");\r\n return;\r\n }\r\n \r\n // load the srcImage into the slice buffer (it has the segmented abdomen image in it now)\r\n try {\r\n srcImage.exportData(0, sliceSize, sliceBuffer);\r\n } catch (IOException ex) {\r\n System.err.println(\"JCATsegmentAbdomen2D(): Error exporting data\");\r\n return;\r\n }\r\n\r\n double angleRad;\r\n int count;\r\n int contourPointIdx = 0;\r\n for (int angle = 0; angle < 360; angle += angularResolution) {\r\n count = 0;\r\n int x = xcm;\r\n int y = ycm;\r\n int yOffset = y * xDim;\r\n double scaleFactor; // reduces the number of trig operations that must be performed\r\n \r\n // allocate the ArrayLists for each radial line\r\n try {\r\n intensityProfiles[contourPointIdx] = new ArrayList<Short>();\r\n xProfileLocs[contourPointIdx] = new ArrayList<Integer>();\r\n yProfileLocs[contourPointIdx] = new ArrayList<Integer>();\r\n } catch (OutOfMemoryError error) {\r\n System.gc();\r\n MipavUtil.displayError(\"makeIntensityProfiles(): Can NOT allocate profile list: \" +contourPointIdx);\r\n return;\r\n }\r\n \r\n angleRad = Math.PI * angle / 180.0;\r\n if (angle > 315 || angle <= 45) {\r\n // increment x each step\r\n scaleFactor = Math.tan(angleRad);\r\n while (x < xVals[contourPointIdx]) {\r\n // store the intensity and location of each point along the radial line\r\n intensityProfiles[contourPointIdx].add((short)sliceBuffer[yOffset + x]);\r\n xProfileLocs[contourPointIdx].add(x);\r\n yProfileLocs[contourPointIdx].add(y);\r\n count++;\r\n \r\n // walk out in x and compute the value of y for the given radial line\r\n x++;\r\n y = ycm - (int)((x - xcm) * scaleFactor);\r\n yOffset = y * xDim;\r\n }\r\n \r\n } else if (angle > 45 && angle <= 135) {\r\n // decrement y each step\r\n scaleFactor = (Math.tan((Math.PI / 2.0) - angleRad));\r\n while (y > yVals[contourPointIdx]) {\r\n // store the intensity and location of each point along the radial line\r\n intensityProfiles[contourPointIdx].add((short)sliceBuffer[yOffset + x]);\r\n xProfileLocs[contourPointIdx].add(x);\r\n yProfileLocs[contourPointIdx].add(y);\r\n count++;\r\n \r\n // walk to the top of the image and compute values of x for the given radial line\r\n y--;\r\n x = xcm + (int)((ycm - y) * scaleFactor);\r\n yOffset = y * xDim;\r\n }\r\n \r\n } else if (angle > 135 && angle <= 225) {\r\n // decrement x each step\r\n scaleFactor = Math.tan(Math.PI - angleRad);\r\n while (x > xVals[contourPointIdx]) {\r\n // store the intensity and location of each point along the radial line\r\n intensityProfiles[contourPointIdx].add((short)sliceBuffer[yOffset + x]);\r\n xProfileLocs[contourPointIdx].add(x);\r\n yProfileLocs[contourPointIdx].add(y);\r\n count++;\r\n \r\n x--;\r\n y = ycm - (int)((xcm - x) * scaleFactor);\r\n yOffset = y * xDim;\r\n }\r\n\r\n } else if (angle > 225 && angle <= 315) {\r\n // increment y each step\r\n scaleFactor = Math.tan((3.0 * Math.PI / 2.0) - angleRad);\r\n while (y < yVals[contourPointIdx]) {\r\n // store the intensity and location of each point along the radial line\r\n intensityProfiles[contourPointIdx].add((short)sliceBuffer[yOffset + x]);\r\n xProfileLocs[contourPointIdx].add(x);\r\n yProfileLocs[contourPointIdx].add(y);\r\n count++;\r\n \r\n y++;\r\n x = xcm - (int)((y - ycm) * scaleFactor);\r\n yOffset = y * xDim;\r\n }\r\n }\r\n \r\n contourPointIdx++;\r\n } // end for (angle = 0; ...\r\n\r\n // intensityProfiles, xProfileLocs, and yProfileLocs are set, we can find the \r\n // internal boundary of the subcutaneous fat now\r\n }", "private void compute() {\r\n int i, j, k;\r\n float gx, gy, gz;\r\n for (int q = 0; q < data.length; q++) {\r\n data[q] = new VoxelGradient();\r\n }\r\n\r\n\r\n // gradient at extremes, 0 and dim-1\r\n i = 0;\r\n j = 0;\r\n k = 0;\r\n gx = (volume.data[(i + 1) + (dimX * (j + (dimY * k)))] - volume.data[i + (dimX * (j + (dimY * k)))]) / 1;\r\n gy = (volume.data[i + (dimX * ((j + 1) + (dimY * k)))] - volume.data[i + (dimX * (j + (dimY * k)))]) / 1;\r\n gz = (volume.data[i + (dimX * (j + (dimY * (k + 1))))] - volume.data[i + (dimX * (j + (dimY * k)))]) / 1;\r\n data[i + dimX * (j + dimY * k)] = new VoxelGradient(gx, gy, gz);\r\n i = dimX - 1;\r\n j = dimY - 1;\r\n k = dimZ - 1;\r\n gx = (volume.data[i + (dimX * (j + (dimY * k)))] - volume.data[(i - 1) + (dimX * (j + (dimY * k)))]) / 1;\r\n gy = (volume.data[i + (dimX * (j + (dimY * k)))] - volume.data[i + (dimX * ((j - 1) + (dimY * k)))]) / 1;\r\n gz = (volume.data[i + (dimX * (j + (dimY * k)))] - volume.data[i + (dimX * (j + (dimY * (k - 1))))]) / 1;\r\n data[i + dimX * (j + dimY * k)] = new VoxelGradient(gx, gy, gz);\r\n\r\n\r\n //gradient in non-extreme points\r\n for (i = 1; i < dimX - 1; i++) {\r\n for (j = 1; j < dimY - 1; j++) {\r\n for (k = 1; k < dimZ - 1; k++) {\r\n\r\n gx = (volume.data[(i + 1) + (dimX * (j + (dimY * k)))] - volume.data[(i - 1) + (dimX * (j + (dimY * k)))]) / 2;\r\n\r\n gy = (volume.data[i + (dimX * ((j + 1) + (dimY * k)))] - volume.data[i + (dimX * ((j - 1) + (dimY * k)))]) / 2;\r\n\r\n gz = (volume.data[i + (dimX * (j + (dimY * (k + 1))))] - volume.data[i + (dimX * (j + (dimY * (k - 1))))]) / 2;\r\n\r\n data[i + dimX * (j + dimY * k)] = new VoxelGradient(gx, gy, gz);\r\n\r\n\r\n }\r\n }\r\n }\r\n }", "@Override\n\tpublic ParameterSet requiredParameters()\n\t{\n\t\t// Parameter p0 = new\n\t\t// Parameter(\"Dummy Parameter\",\"Lets user know that the function has been selected.\",FormLine.DROPDOWN,new\n\t\t// String[] {\"true\"},0);\n\t\tParameter p0 = getNumThreadsParameter(10, 4);\n\t\tParameter p1 = new Parameter(\"Old Min\", \"Image Intensity Value\", \"0.0\");\n\t\tParameter p2 = new Parameter(\"Old Max\", \"Image Intensity Value\", \"4095.0\");\n\t\tParameter p3 = new Parameter(\"New Min\", \"Image Intensity Value\", \"0.0\");\n\t\tParameter p4 = new Parameter(\"New Max\", \"Image Intensity Value\", \"65535.0\");\n\t\tParameter p5 = new Parameter(\"Gamma\", \"0.1-5.0, value of 1 results in no change\", \"1.0\");\n\t\tParameter p6 = new Parameter(\"Output Bit Depth\", \"Depth of the outputted image\", Parameter.DROPDOWN, new String[] { \"8\", \"16\", \"32\" }, 1);\n\t\t\n\t\t// Make an array of the parameters and return it\n\t\tParameterSet parameterArray = new ParameterSet();\n\t\tparameterArray.addParameter(p0);\n\t\tparameterArray.addParameter(p1);\n\t\tparameterArray.addParameter(p2);\n\t\tparameterArray.addParameter(p3);\n\t\tparameterArray.addParameter(p4);\n\t\tparameterArray.addParameter(p5);\n\t\tparameterArray.addParameter(p6);\n\t\treturn parameterArray;\n\t}", "public void FVA( ArrayList< Double > objCoefs, Double objVal, ArrayList< Double > fbasoln, ArrayList< Double > min, ArrayList< Double > max, SolverComponent component ) throws Exception;", "public void c(double paramDouble1, double paramDouble2, double paramDouble3, float paramFloat1, float paramFloat2)\r\n/* 77: */ {\r\n/* 78: 89 */ float f1 = uv.a(paramDouble1 * paramDouble1 + paramDouble2 * paramDouble2 + paramDouble3 * paramDouble3);\r\n/* 79: */ \r\n/* 80: 91 */ paramDouble1 /= f1;\r\n/* 81: 92 */ paramDouble2 /= f1;\r\n/* 82: 93 */ paramDouble3 /= f1;\r\n/* 83: */ \r\n/* 84: 95 */ paramDouble1 += this.V.nextGaussian() * 0.007499999832361937D * paramFloat2;\r\n/* 85: 96 */ paramDouble2 += this.V.nextGaussian() * 0.007499999832361937D * paramFloat2;\r\n/* 86: 97 */ paramDouble3 += this.V.nextGaussian() * 0.007499999832361937D * paramFloat2;\r\n/* 87: */ \r\n/* 88: 99 */ paramDouble1 *= paramFloat1;\r\n/* 89:100 */ paramDouble2 *= paramFloat1;\r\n/* 90:101 */ paramDouble3 *= paramFloat1;\r\n/* 91: */ \r\n/* 92:103 */ this.v = paramDouble1;\r\n/* 93:104 */ this.w = paramDouble2;\r\n/* 94:105 */ this.x = paramDouble3;\r\n/* 95: */ \r\n/* 96:107 */ float f2 = uv.a(paramDouble1 * paramDouble1 + paramDouble3 * paramDouble3);\r\n/* 97: */ \r\n/* 98:109 */ this.A = (this.y = (float)(Math.atan2(paramDouble1, paramDouble3) * 180.0D / 3.141592741012573D));\r\n/* 99:110 */ this.B = (this.z = (float)(Math.atan2(paramDouble2, f2) * 180.0D / 3.141592741012573D));\r\n/* 100:111 */ this.i = 0;\r\n/* 101: */ }", "public void calibrated() {\n weaponDamage = weaponDamage + 10;\r\n }", "private void getParameters(BlendmontParam blendmontParam) {\n blendmontParam.setBinByFactor(getBinning());\n updateMetaData();\n }", "@Override\n\tpublic double initialize() {\n\n\t\treturn calculate();\n\t\t\n\t}", "void vng_interpolate()\n{\n}", "private void applyFriction()\n {\n xSpeed *= Level.FRICTION;\n }" ]
[ "0.6154056", "0.5699614", "0.5677495", "0.554801", "0.55388975", "0.5534334", "0.5519184", "0.5516085", "0.5486097", "0.5449856", "0.54191625", "0.53218853", "0.53177184", "0.52777946", "0.52680933", "0.5256848", "0.5234145", "0.51522046", "0.51459664", "0.508056", "0.50623345", "0.5061406", "0.5049554", "0.5028979", "0.5026155", "0.5025707", "0.5021123", "0.49999702", "0.49529427", "0.4940535", "0.49349773", "0.49061272", "0.49058536", "0.49042723", "0.48870572", "0.4876507", "0.48745885", "0.48732686", "0.4859527", "0.48487207", "0.48443756", "0.48374537", "0.48224002", "0.4818424", "0.48055303", "0.48042336", "0.4802803", "0.479235", "0.47916284", "0.47692612", "0.47566313", "0.47561297", "0.47479492", "0.47436044", "0.47327933", "0.47327298", "0.47297916", "0.47212684", "0.4718233", "0.4717619", "0.47080874", "0.46934822", "0.4691242", "0.46828577", "0.4673239", "0.46651855", "0.4658543", "0.4656314", "0.46531343", "0.46477678", "0.46406874", "0.46379486", "0.46358132", "0.46356288", "0.46326986", "0.46286887", "0.46277815", "0.46262017", "0.46211162", "0.46184847", "0.46078464", "0.46052182", "0.4602229", "0.45987332", "0.45979202", "0.45969445", "0.45931366", "0.45879975", "0.45863813", "0.45804802", "0.4580296", "0.45784017", "0.45745614", "0.45575643", "0.45572394", "0.45514932", "0.45507807", "0.45465797", "0.4545164", "0.4538408", "0.4537047" ]
0.0
-1
TODO: Warning this method won't work in the case the id fields are not set
@Override public boolean equals(Object object) { if (!(object instanceof ResAtencion)) { return false; } ResAtencion other = (ResAtencion) object; if ((this.idResultadoAtencion == null && other.idResultadoAtencion != null) || (this.idResultadoAtencion != null && !this.idResultadoAtencion.equals(other.idResultadoAtencion))) { return false; } return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void setId(Integer id) { this.id = id; }", "private Integer getId() { return this.id; }", "public void setId(int id){ this.id = id; }", "public void setId(Long id) {this.id = id;}", "public void setId(Long id) {this.id = id;}", "public void setID(String idIn) {this.id = idIn;}", "public void setId(int id) { this.id = id; }", "public void setId(int id) { this.id = id; }", "public int getId() { return id; }", "public int getId() { return id; }", "public int getId() { return id; }", "public int getId() { return id; }", "public int getId() { return id; }", "public int getId() { return id; }", "public void setId(long id) { this.id = id; }", "public void setId(long id) { this.id = id; }", "public int getId(){ return id; }", "public int getId() {return id;}", "public int getId() {return Id;}", "public int getId(){return id;}", "public void setId(long id) {\n id_ = id;\n }", "private int getId() {\r\n\t\treturn id;\r\n\t}", "public Integer getId(){return id;}", "public int id() {return id;}", "public long getId(){return this.id;}", "public int getId(){\r\n return this.id;\r\n }", "@Override public String getID() { return id;}", "public Long id() { return this.id; }", "public Integer getId() { return id; }", "@Override\n\tpublic Integer getId() {\n return id;\n }", "@Override\n public Long getId () {\n return id;\n }", "@Override\n public long getId() {\n return id;\n }", "public Long getId() {return id;}", "public Long getId() {return id;}", "public String getId(){return id;}", "@Override\r\n\tpublic Long getId() {\n\t\treturn null;\r\n\t}", "public Integer getId() { return this.id; }", "@Override\r\n public int getId() {\n return id;\r\n }", "@Override\n\t\tpublic long getId() {\n\t\t\treturn 0;\n\t\t}", "public int getId() {\n return id;\n }", "public long getId() { return _id; }", "public int getId() {\n/* 35 */ return this.id;\n/* */ }", "public long getId() { return id; }", "public long getId() { return id; }", "public void setId(Long id) \n {\n this.id = id;\n }", "@Override\n\tpublic Long getId() {\n\t\treturn null;\n\t}", "@Override\n\tpublic Long getId() {\n\t\treturn null;\n\t}", "public void setId(String id) {\n this.id = id;\n }", "@Override\n\tpublic void setId(Long id) {\n\t}", "public Long getId() {\n return id;\n }", "public long getId() { return this.id; }", "public int getId()\n {\n return id;\n }", "public void setId(int id){\r\n this.id = id;\r\n }", "@Test\r\n\tpublic void testSetId() {\r\n\t\tbreaku1.setId(5);\r\n\t\texternu1.setId(6);\r\n\t\tmeetingu1.setId(7);\r\n\t\tteachu1.setId(8);\r\n\r\n\t\tassertEquals(5, breaku1.getId());\r\n\t\tassertEquals(6, externu1.getId());\r\n\t\tassertEquals(7, meetingu1.getId());\r\n\t\tassertEquals(8, teachu1.getId());\r\n\t}", "protected abstract String getId();", "@Override\n\tpublic int getId(){\n\t\treturn id;\n\t}", "public int getID() {return id;}", "public int getID() {return id;}", "public String getId() { return id; }", "public String getId() { return id; }", "public String getId() { return id; }", "public int getId ()\r\n {\r\n return id;\r\n }", "@Override\n public int getField(int id) {\n return 0;\n }", "public void setId(Long id)\n/* */ {\n/* 66 */ this.id = id;\n/* */ }", "public int getId(){\r\n return localId;\r\n }", "void setId(int id) {\n this.id = id;\n }", "@Override\n public Integer getId() {\n return id;\n }", "@Override\n\tpublic Object selectById(Object id) {\n\t\treturn null;\n\t}", "private void clearId() {\n \n id_ = 0;\n }", "private void clearId() {\n \n id_ = 0;\n }", "private void clearId() {\n \n id_ = 0;\n }", "private void clearId() {\n \n id_ = 0;\n }", "private void clearId() {\n \n id_ = 0;\n }", "private void clearId() {\n \n id_ = 0;\n }", "private void clearId() {\n \n id_ = 0;\n }", "@Override\n public int getId() {\n return id;\n }", "@Override\n public int getId() {\n return id;\n }", "public void setId(int id)\n {\n this.id=id;\n }", "@Override\r\n public int getID()\r\n {\r\n\treturn id;\r\n }", "@Override\n\tpublic Integer getId() {\n\t\treturn null;\n\t}", "public int getId()\r\n {\r\n return id;\r\n }", "public void setId(Long id){\n this.id = id;\n }", "@java.lang.Override\n public int getId() {\n return id_;\n }", "@java.lang.Override\n public int getId() {\n return id_;\n }", "private void clearId() {\n \n id_ = 0;\n }", "final protected int getId() {\n\t\treturn id;\n\t}", "public abstract Long getId();", "public void setId(Long id) \r\n {\r\n this.id = id;\r\n }", "@Override\n public long getId() {\n return this.id;\n }", "public String getId(){ return id.get(); }", "@SuppressWarnings ( \"unused\" )\n private void setId ( final Long id ) {\n this.id = id;\n }", "public void setId(long id){\n this.id = id;\n }", "public void setId(long id){\n this.id = id;\n }", "public void setId(Integer id)\r\n/* */ {\r\n/* 122 */ this.id = id;\r\n/* */ }", "public Long getId() \n {\n return id;\n }", "@Override\n\tpublic void setId(int id) {\n\n\t}", "public void test_getId() {\n assertEquals(\"'id' value should be properly retrieved.\", id, instance.getId());\n }", "@Override\r\n\tpublic Object getId() {\n\t\treturn null;\r\n\t}", "public int getID(){\n return id;\n }", "public int getId()\n {\n return id;\n }", "public String getID(){\n return Id;\n }" ]
[ "0.6896886", "0.6838461", "0.67056817", "0.66419715", "0.66419715", "0.6592331", "0.6579151", "0.6579151", "0.6574321", "0.6574321", "0.6574321", "0.6574321", "0.6574321", "0.6574321", "0.65624106", "0.65624106", "0.65441847", "0.65243006", "0.65154546", "0.6487427", "0.6477893", "0.6426692", "0.6418966", "0.6416817", "0.6401561", "0.63664836", "0.63549376", "0.63515353", "0.6347672", "0.6324549", "0.6319196", "0.6301484", "0.62935394", "0.62935394", "0.62832105", "0.62710917", "0.62661785", "0.6265274", "0.6261401", "0.6259253", "0.62559646", "0.6251244", "0.6247282", "0.6247282", "0.6245526", "0.6238957", "0.6238957", "0.6232451", "0.62247443", "0.6220427", "0.6219304", "0.6211484", "0.620991", "0.62023336", "0.62010616", "0.6192621", "0.61895776", "0.61895776", "0.61893976", "0.61893976", "0.61893976", "0.6184292", "0.618331", "0.61754644", "0.6173718", "0.6168409", "0.6166131", "0.6161708", "0.6157667", "0.6157667", "0.6157667", "0.6157667", "0.6157667", "0.6157667", "0.6157667", "0.61556244", "0.61556244", "0.61430943", "0.61340135", "0.6128617", "0.6127841", "0.61065215", "0.61043483", "0.61043483", "0.6103568", "0.61028486", "0.61017346", "0.6101399", "0.6098963", "0.6094214", "0.6094", "0.6093529", "0.6093529", "0.6091623", "0.60896", "0.6076881", "0.60723215", "0.6071593", "0.6070138", "0.6069936", "0.6069529" ]
0.0
-1
Intent intent=new Intent(Home.this,Astigmatism.class); startActivity(intent);
@Override public void onClick(View view) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void homemenu() \n\n{\nstartActivity (new Intent(getApplicationContext(), Home.class));\n\n\t\n}", "void mChapie(){\n Intent i = new Intent(context,Peminjaman.class);\n context.startActivity(i);\n\n }", "private void openHome(){\n Intent intent2 = new Intent(AddExercises.this, MainActivity.class);\n startActivity(intent2);\n }", "public void tohome (View view){\n Intent i = new Intent(this,Intro.class);\n startActivity(i);\n }", "public void goToHome() {\n Intent intent = new Intent(this, MainActivity_3.class);\n startActivity(intent);\n }", "public void onClick(View arg0) {\n\n Intent i = new Intent(getApplicationContext(), sejarah.class);\n\n startActivity(i);\n }", "void mstrange(){\n Intent i = new Intent(context,Pengembalian.class);\n context.startActivity(i);\n }", "public void Inicio (View view){\n Intent inicio = new Intent(this, MainActivity.class);\n startActivity(inicio);\n }", "@Override\n public void onClick(View view) {\n Intent intent = new Intent(Visa.this,Recepit.class);\n startActivity(intent);\n\n\n }", "private void goSomewhere() {\n\n Intent intent = new Intent();\n intent.setClassName(Home.this,this.tip.getTipIntent());\n startActivity(intent);\n }", "private void goToMain(){\n Intent intent = new Intent(this, MainActivity.class);\n startActivity(intent);\n }", "public void openActivity3(){\n Intent intent = new Intent(this, Favoris.class);\n startActivity(intent);\n }", "public void onClick(View v) {\n\n\n\n startActivity(myIntent);\n }", "@Override\n public void onClick(View v) {\n Intent HomeScreen = new Intent(v.getContext(), MainActivity.class);\n startActivity(HomeScreen);\n }", "@Override\n public void onClick(View v) {\n Intent p1page = new Intent(v.getContext(), AshmoleanMusuem.class);\n startActivity(p1page);\n }", "@Override\n public void onClick(View view){\n startActivity(new Intent(homePage.this, MainActivity.class));\n finish();\n\n }", "public void goHomeScreen(View view)\n {\n\n Intent homeScreen;\n\n homeScreen = new Intent(this, homeScreen.class);\n\n startActivity(homeScreen);\n\n }", "public void Volgende(Intent intent){\r\n\r\n startActivity(intent);\r\n\r\n }", "public void onClick(View v) {\n Intent i = new Intent(getApplicationContext(),GameActivity.class);\n\n\n startActivity(i);\n }", "public void toBeam(){\n Intent intent = new Intent(this, Beam.class);\n startActivity(intent);\n }", "public void backtoMain()\n {\n Intent i=new Intent(this,MainActivity.class);\n startActivity(i);\n }", "private void goToMain(){\n Intent intent = new Intent(getBaseContext(), MainActivity.class);\n startActivity(intent);\n }", "@Override\n public void onClick(View v) {\n startActivity(new Intent(StartPage.this,MainActivity.class));\n }", "@Override\n public void onClick(View view) {\n Intent nationIntent = new Intent(MainActivity.this, NationActivity.class);\n startActivity(nationIntent);\n }", "@Override\n public void onClick(View view) {\n\n Intent intent = new Intent(MainActivity.this, TAXActivity.class);\n// Intent intent = new Intent(MainActivity.this, Main3Activity.class);\n startActivity(intent);\n }", "@Override\n public void onClick(View view) {\n Intent intent = new Intent(MainActivity.this, SecondActivity.class);\n startActivity(intent);\n\n }", "@Override\n public void onClick(DialogInterface dialog, int which) {\n Intent intent = new Intent(SuperScouting.this, HomeScreen.class);\n startActivity(intent);\n }", "@Override\n public void onClick(View v) {\n Intent intent = new Intent(getApplicationContext(), Gametwofive.class);\n startActivity(intent);\n }", "public void openNewActivity(){\n Intent intent = new Intent(this, InventoryDisplay.class);\n startActivity(intent);\n }", "@Override\n public void onClick(View view) {\n startActivity(new Intent(StartActivity.this, MainActivity.class));\n }", "public void toHomeScreen(View view) {\n Intent intent = new Intent(SportHome.this, HomeScreen.class);\n startActivity(intent);\n\n }", "public void goToMainMenu(View v){\n startActivity(new Intent(MainActivity.this, frontClass.class));\n }", "public void start(View v){\n Intent intent = new Intent(this, Home.class);\n startActivity(intent);\n }", "public void proximaTela2(View view) {\n\n Intent intent = new Intent(this, Activity3.class);\n startActivity(intent);\n\n\n }", "public void newGame(View v){\n\n startActivity(new Intent(getApplicationContext(),MainActivity.class)); // same as startActivity(new Intent (this, Main2Activity.class));\n\n }", "private void back_home()\n {\n btn_home.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n\n Intent myintent=new Intent(getApplicationContext(), Dictionary_MainActivity.class);\n\n startActivity(myintent);\n\n }\n });\n\n }", "@Override\n public void onClick(View arg0) {\n Intent i = new Intent(getApplicationContext(), sh1.class);\n startActivity(i);\n }", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tIntent imiddle_gaza = new Intent(man_lamar.this,man_middle_gaza.class);\n\t\t\t\tstartActivity(imiddle_gaza);\n\t\t\t\n\t\t\t}", "public void LocateClick(View view){\n startActivity(new Intent(this,locateKNUST.class));\n\n }", "@Override\n public void onClick(View v) {\n \tIntent intent = new Intent(getApplicationContext(), Gamenine.class);\n\t\t\t\tstartActivity(intent);\n\t\t\t}", "private void goToWeather(){\n \tIntent intent = new Intent(PresentadorV_main.this,\n \t\t\tPresentador_weather.class); \t\n \tstartActivity(intent); \t\n }", "private void HomePage(){\n Intent intent = new Intent();\n intent.setClass(FaultActivity.this, MainActivity.class);\n startActivity(intent);\n FaultActivity.this.finish();\n }", "@Override\n public void onClick(View v) {\n Intent p3page = new Intent(v.getContext(), MagdalenCollege.class);\n startActivity(p3page);\n }", "@Override\n public void onClick(View view) {\n Intent i = new Intent(HelpActivity.this, HomeActivity.class);\n startActivity(i);\n }", "public static void seeClassement(){\n\n\n Intent seeClassementIntent = new Intent(This, Classement_Activity.class);\n\n This.startActivity(seeClassementIntent);\n }", "@Override\n public void onClick(View v) {\n Intent intent = new Intent(MainActivity.this, CardapioActivity.class);\n startActivity(intent);\n }", "@Override\n public void onClick(View view) {\n\n startActivity(getIntent());\n }", "public void figura1(View view){\n Intent figura1 = new Intent(this,Figura1.class);\n startActivity(figura1);\n }", "@Override\n public void onClick(View view) {\n Intent intent = new Intent(NowPlaying.this, classDestination);\n // starting new activity\n startActivity(intent);\n }", "@Override\n\t\tpublic void onClick(View arg0) {\n\t\t\tIntent igaza = new Intent(man_lamar.this,man_gaza.class);\n\t\t\tstartActivity(igaza);\n\t\t\n\t\t}", "public void loginUser(){\n Intent intent=new Intent(MainActivity.this,SnapsActivity.class);\n startActivity(intent);\n }", "@Override\n public void onClick(View v) {\n Intent intent = new Intent(LaunchActivity.this, MainActivity.class);\n startActivity(intent);\n }", "void startNewActivity(Intent intent);", "@Override\n public void onClick(View v) {\n Intent intent = new Intent(getActivity(), ANQ.class);\n startActivity(intent);\n\n }", "private void startActivity(Class destination)\n {\n Intent intent = new Intent(MainActivity.this, destination);\n startActivity(intent);\n }", "public void catButton(View view){\n Intent intent=new Intent(PM_L1.this,PM_L1_G1.class);\n startActivity(intent);\n\n }", "public void cariGambar(View view) {\n Intent i = new Intent(this, CariGambar.class);\n //memulai activity cari gambar\n startActivity(i);\n }", "public void onClick(View arg0) {\n\t\t\tClass ourClass5;\n\t\t\ttry {\n\t\t\t\tourClass5 = Class.forName(\"com.first.aid.abcd.Nek\");\n\t\t\t\tIntent intentVijf = new Intent(vijfde.this, ourClass5);\n\t\t\t\tintentVijf.addFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP);\n\t\t\t\tstartActivity(intentVijf);\t\n\t\t\t} catch (ClassNotFoundException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}", "@Override\r\n public void onClick(View view) {\n Intent goCreateHabitIntent = new Intent(MainActivity.this, CreateHabit.class);\r\n startActivity(goCreateHabitIntent);\r\n }", "@Override\n public void onClick(View v){\n Intent intent = new Intent(MainMenu.this, basketballMenu.class);\n startActivity(intent);\n }", "@Override\n public void onClick(View v) {\n Intent intent = new Intent(getActivity(), JdMainActivity.class);\n startActivity(intent);\n }", "@Override\n public void onClick(View view) {\n startActivity(new Intent(MainActivity.this, ViewActivity.class));\n }", "private void goLogin(){\n Intent intent = new Intent(Menu.this, MainActivity.class);\n startActivity(intent);\n }", "@Override\n public void onClick(View view) {\n Intent wannaGuess = new Intent(mContext, WannaGuessActivity.class);\n mContext.startActivity(wannaGuess);\n\n// Intent detailIntent = Game.starter(mContext, mCurrentSport.getTitle(),\n// mCurrentSport.getImageResource());\n\n\n //Start the detail activity\n// mContext.startActivity(detailIntent);\n\n //anoter ver\n\n // @Override\n// protected void onCreate(Bundle savedInstanceState) {\n// super.onCreate(savedInstanceState);\n// setContentView(R.layout.activity_main);\n//\n// //Find the view that shows the catch me category\n//// TextView catchMe = (TextView) findViewById(R.id.catch_me);\n//// catchMe.setOnClickListener(new View.OnClickListener() {\n//// @Override\n//// public void onClick(View v) {\n//// Intent catchMeIntent = new Intent(MainActivity.this, CatchMe.class);\n//// startActivity(catchMeIntent);\n//// }\n//// });\n//\n// }\n }", "public void launchHomePage() {\n Intent intent = new Intent(LoginActivity.this, HomeActivity.class);\n startActivity(intent);\n }", "public void onClick(View v) {\n Intent intent = new Intent();\n intent.setClass(memberinfo.this, home_page.class);\n startActivity(intent);\n\n }", "@Override\n public void onClick(View view) {\n startActivity(new Intent(MainActivity.this, InputActivity.class));\n }", "public void mangoButton(View view){\n Intent intent=new Intent(PM_L1.this,PM_L1_G2.class);\n startActivity(intent);\n\n }", "@Override\n public void onClick(View view) {\n Intent intent = new Intent(MainActivity.this, TriggerActivity.class);\n startActivity(intent);\n }", "@Override\n public void jumpActivity() {\n startActivity(new Intent(MainActivity.this, MainActivity.class));\n }", "public void btn_medical_information_On_click(View v) {\n Intent i = new Intent(MainActivity.this, Medical_information.class);\n startActivity(i);\n }", "public void toNeedymap (View v){\n Intent i = new Intent(Startup_menu_activity.this,web_page.class);\n startActivity(i);\n }", "@Override\n public void onClick(View arg0) {\n Intent i = new Intent(getApplicationContext(), web.class);\n startActivity(i);\n }", "@Override\r\n public void onClick(View view) {\n Intent intent=new Intent(MainActivity.this, CameraActivity.class);\r\n startActivity(intent);\r\n }", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tIntent irafah = new Intent(man_lamar.this,man_rafah.class);\n\t\t\t\tstartActivity(irafah);\n\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tIntent north_gaza = new Intent(man_lamar.this,man_north_gaza.class);\n\t\t\t\tstartActivity(north_gaza);\n\t\t\t\n\t\t\t}", "@Override\r\n\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\tIntent i=new Intent(getApplicationContext(),MainActivity.class);\r\n\t\t\t\t\tstartActivity(i);\r\n\t\t\t\t\t\r\n\t\t\t\t}", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tIntent intent=new Intent();\n\t\t\t\tintent.setClass(MotionSensor.this, MainActivity.class);\n\t\t\t\tMotionSensor.this.startActivity(intent);\n\t\t\t}", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tIntent it = new Intent(ManaInsertActivity.this,ManaMediActivity.class); \n it.putExtras(it);\n startActivity(it);\n\t\t\t}", "@Override\n public void onClick(View v) {\n\n Intent intent = new Intent(chitietsanpham.this, thanhtoandathang.class);\n // Intent intent = new Intent(mContext,chitietsanpham.class);\n intent.putExtra(\"name\",name);\n // intent.putExtra(\"image\",mData.get(position).getPhoto());\n intent.putExtra(\"gia\",gia1);\n startActivity(intent);\n }", "@Override\n public void onClick(View view) {\n Intent intent = new Intent();\n intent.setClass(AddPlan.this,Favorite_Site.class);\n// Bundle bundle = new Bundle();\n// bundle.putString(\"myChoice\",\"hello\");\n// intent.putExtras(bundle);\n// startActivityForResult(intent,0);\n startActivity(intent);\n// //AddPlan.this.finish();\n finish();\n\n }", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tIntent in = new Intent(getApplicationContext(),MainActivity.class);\n\t\t\t\tstartActivity(in);\n\t\t\t}", "public void ClickHome(View view){\n MainActivity.redirectActivity(this,MainActivity.class);\n\n }", "private void goToLoginScreen()\n {\n Intent intent = new Intent(this, Login.class);\n startActivity(intent);\n }", "public void openActivity2() {\n //I have an intent, which is called openQuadraticActivity\n //Make a new Intent that goes from this file to the quadratic class file\n Intent openQuadraticActivity = new Intent(this, Quadratic.class);\n startActivity(openQuadraticActivity);\n }", "@Override\n public void onClick(View arg0) {\n Intent i = new Intent(getApplicationContext(), web1.class);\n startActivity(i);\n }", "public void volver(View view){\n Intent i = new Intent(this,MainActivity.class);\n startActivity(i);\n finish();\n }", "public void openActivity(){\n Intent intent = new Intent();\n if(bopenLogin)\n {\n intent = new Intent(Splashscreen.this, Login.class);\n }\n else\n {\n intent = new Intent(Splashscreen.this, MainActivity.class);\n }\n startActivity(intent);\n finish();\n }", "@Override\n public void onClick(View view) {\n Intent drakeIntent = new Intent(MainActivity.this, DrakeActivity.class);\n startActivity(drakeIntent);\n }", "private void goMainActivity() {\n Intent i = new Intent(this, MainActivity.class);\n startActivity(i);\n finish();\n }", "private void activate_previous_activity(){\n\n Intent intent = new Intent(this,MainActivity.class);\n startActivity(intent);\n\n }", "private void startMainActivity() {\n Intent intent = new Intent(this, MyActivity.class);\n startActivity(intent);\n }", "public void toHomescreen () {\n Intent intent = new Intent(this, MainActivity.class);\n startActivity(intent);\n overridePendingTransition(R.anim.slide_in_left, R.anim.slide_out_right); //animation for transitioning back to the homescreen\n }", "@Override\n public void onClick(View v) {\n startActivity(new Intent(StartPage.this,Score.class));\n\n }", "private void openHome() {\n Intent intent = new Intent(this, WelcomeActivity.class);\n startActivity(intent);\n\n finish();\n }", "public void nextIntent(){\n \t\n \tIntent y=new Intent();\n \ty.setClass(MainActivity.this, Dashboard.class);\n \t\n \tstartActivity(y);\n \t\n \t\n}", "@Override\r\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tIntent i=new Intent(getApplicationContext(),Exam.class);\r\n\t\t\t\tstartActivity(i);\r\n\t\t\t}", "public void iniciarActivity() {\n\n Intent intent = new Intent(ActivityA.this, ActivityB.class);\n startActivity(intent);\n }", "public void openActivity3() {\n //I have an intent, which is called openCubicActivity\n //Make a new Intent that goes from this file to the cubic class file\n Intent openCubicActivity = new Intent(this, Cubic.class);\n startActivity(openCubicActivity);\n }", "@Override\n public void run() {\n\n Intent home = new Intent(MainActivity.this, HomeActivity.class);\n\n startActivity(home);\n finish();\n }", "public void go_to_setting(){\n Intent i=new Intent(LoginSelection.this, Configuration.class);\n startActivity(i);\n }" ]
[ "0.80029297", "0.77418274", "0.7709174", "0.7535702", "0.752183", "0.74899966", "0.74862885", "0.743872", "0.7436853", "0.74261445", "0.74063325", "0.7405057", "0.7390914", "0.73782283", "0.73772985", "0.7356626", "0.73476386", "0.73319054", "0.7321056", "0.7299424", "0.72990197", "0.7288139", "0.72599417", "0.72367316", "0.7216941", "0.72137886", "0.72016233", "0.7166803", "0.71592003", "0.7155317", "0.714797", "0.71460027", "0.71386594", "0.713097", "0.7118504", "0.71171534", "0.7115882", "0.7109138", "0.71046317", "0.71030074", "0.70790964", "0.70778227", "0.7068782", "0.7068497", "0.7065228", "0.70629996", "0.70615757", "0.7058833", "0.70574874", "0.7042785", "0.70413995", "0.70405585", "0.7033059", "0.7032525", "0.7027494", "0.7027299", "0.7022626", "0.70109123", "0.6992634", "0.6991179", "0.69907796", "0.6989029", "0.6981283", "0.69788635", "0.6978428", "0.6975656", "0.69728965", "0.6968648", "0.6959027", "0.6959016", "0.6958894", "0.6957791", "0.6945138", "0.69425833", "0.6941117", "0.6935132", "0.6935056", "0.693253", "0.69172585", "0.69101185", "0.6907191", "0.6897459", "0.68957037", "0.6895091", "0.6892589", "0.68912876", "0.6881525", "0.6876323", "0.68759274", "0.68669915", "0.68664026", "0.6866235", "0.6865386", "0.68636155", "0.68609345", "0.6859444", "0.685584", "0.6850868", "0.6850314", "0.6846545", "0.68458766" ]
0.0
-1
Intent intent=new Intent(Home.this,CataractDetection.class); startActivity(intent);
@Override public void onClick(View view) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onClick(View view) {\n Intent intent = new Intent(Visa.this,Recepit.class);\n startActivity(intent);\n\n\n }", "private void homemenu() \n\n{\nstartActivity (new Intent(getApplicationContext(), Home.class));\n\n\t\n}", "@Override\r\n public void onClick(View view) {\n Intent intent=new Intent(MainActivity.this, CameraActivity.class);\r\n startActivity(intent);\r\n }", "public void Volgende(Intent intent){\r\n\r\n startActivity(intent);\r\n\r\n }", "public void LocateClick(View view){\n startActivity(new Intent(this,locateKNUST.class));\n\n }", "public void onClick(View v) {\n\n\n\n startActivity(myIntent);\n }", "public void proximaTela2(View view) {\n\n Intent intent = new Intent(this, Activity3.class);\n startActivity(intent);\n\n\n }", "public void catButton(View view){\n Intent intent=new Intent(PM_L1.this,PM_L1_G1.class);\n startActivity(intent);\n\n }", "void mChapie(){\n Intent i = new Intent(context,Peminjaman.class);\n context.startActivity(i);\n\n }", "@Override\n public void onClick(View v) {\n Intent intent = new Intent(MainActivity.this, CardapioActivity.class);\n startActivity(intent);\n }", "private void openHome(){\n Intent intent2 = new Intent(AddExercises.this, MainActivity.class);\n startActivity(intent2);\n }", "private void goToMain(){\n Intent intent = new Intent(this, MainActivity.class);\n startActivity(intent);\n }", "@Override\n public void onClick(View arg0) {\n Intent i = new Intent(getApplicationContext(), web1.class);\n startActivity(i);\n }", "public void onClick(View arg0) {\n\n Intent i = new Intent(getApplicationContext(), sejarah.class);\n\n startActivity(i);\n }", "private void goToMain(){\n Intent intent = new Intent(getBaseContext(), MainActivity.class);\n startActivity(intent);\n }", "@Override\n public void onClick(View arg0) {\n Intent i = new Intent(getApplicationContext(), web.class);\n startActivity(i);\n }", "public void openActivity3(){\n Intent intent = new Intent(this, Favoris.class);\n startActivity(intent);\n }", "@Override\n public void onClick(View v) {\n Intent welcome = new Intent(Welcome.this, Scan.class);\n startActivity(welcome);\n\n }", "@Override\n public void onClick(View view) {\n\n Intent intent = new Intent(MainActivity.this, TAXActivity.class);\n// Intent intent = new Intent(MainActivity.this, Main3Activity.class);\n startActivity(intent);\n }", "public void btn_medical_information_On_click(View v) {\n Intent i = new Intent(MainActivity.this, Medical_information.class);\n startActivity(i);\n }", "private void startActivity(Class destination)\n {\n Intent intent = new Intent(MainActivity.this, destination);\n startActivity(intent);\n }", "private void activate_previous_activity(){\n\n Intent intent = new Intent(this,MainActivity.class);\n startActivity(intent);\n\n }", "public void onClick(View v) {\n Intent i = new Intent(getApplicationContext(),GameActivity.class);\n\n\n startActivity(i);\n }", "public void goToHome() {\n Intent intent = new Intent(this, MainActivity_3.class);\n startActivity(intent);\n }", "public void Inicio (View view){\n Intent inicio = new Intent(this, MainActivity.class);\n startActivity(inicio);\n }", "public void loginUser(){\n Intent intent=new Intent(MainActivity.this,SnapsActivity.class);\n startActivity(intent);\n }", "@Override\n public void run() {\n\n\n Intent i;\n\n if(sharedperference.getToken()==null || sharedperference.getToken()==\"\") {\n i = new Intent(SplashScreen.this, MainActivity.class);\n }\n else{\n i = new Intent(SplashScreen.this, MainActivity.class);\n\n }\n\n //i = new Intent(SplashScreen.this, LanuageSelection.class);\n\n\n startActivity(i);\n finish();\n\n }", "@Override\n public void onClick(View v) {\n Intent intent = new Intent(getApplicationContext(), Gametwofive.class);\n startActivity(intent);\n }", "@Override\n public void onClick(View arg0) {\n Intent i = new Intent(getApplicationContext(), sh1.class);\n startActivity(i);\n }", "@Override\n public void onClick(View v) {\n Intent HomeScreen = new Intent(v.getContext(), MainActivity.class);\n startActivity(HomeScreen);\n }", "public void ClickScanner(View view){\n MainActivity.redirectActivity(this,Scanner.class);\n\n }", "@Override\n public void performAction(View view) {\n startActivity(new Intent(MainActivity.this, MyInfoActivity.class));\n }", "public void backtoMain()\n {\n Intent i=new Intent(this,MainActivity.class);\n startActivity(i);\n }", "public void tohome (View view){\n Intent i = new Intent(this,Intro.class);\n startActivity(i);\n }", "public void cariGambar(View view) {\n Intent i = new Intent(this, CariGambar.class);\n //memulai activity cari gambar\n startActivity(i);\n }", "@Override\n public void onClick(View v) {\n\n Intent intent = new Intent(MainDashBoardActivity.this, DealerSearchActivity.class);\n startActivity(intent);\n\n\n }", "@Override\n public void onClick(View view) {\n\n startActivity(getIntent());\n }", "@Override\n public void onClick(View view) {\n Intent intent = new Intent(MainActivity.this, SecondActivity.class);\n startActivity(intent);\n\n }", "@Override\n public void onClick(View view) {\n Intent intent = new Intent(MainActivity.this, TriggerActivity.class);\n startActivity(intent);\n }", "@Override\n public void onClick(View v) {\n startActivity(new Intent(StartPage.this,MainActivity.class));\n }", "private void goSomewhere() {\n\n Intent intent = new Intent();\n intent.setClassName(Home.this,this.tip.getTipIntent());\n startActivity(intent);\n }", "@Override\r\n public void onClick(View view) {\n\r\n Intent gotoWiFISwitch = new Intent(MainActivity.this, WiFISwitch.class);\r\n startActivity(gotoWiFISwitch);\r\n\r\n\r\n }", "private void HomePage(){\n Intent intent = new Intent();\n intent.setClass(FaultActivity.this, MainActivity.class);\n startActivity(intent);\n FaultActivity.this.finish();\n }", "@Override\n public void onClick(View view) {\n\n\n Intent i = new Intent(getApplicationContext(),Selection.class);\n startActivity(i);\n }", "public void toBeam(){\n Intent intent = new Intent(this, Beam.class);\n startActivity(intent);\n }", "public void ClickHome(View view){\n MainActivity.redirectActivity(this,MainActivity.class);\n\n }", "@Override\n public void onClick(View view) {\n Intent intent = new Intent(NowPlaying.this, classDestination);\n // starting new activity\n startActivity(intent);\n }", "@Override\n public void onClick(View view) {\n startActivity(new Intent(MainActivity.this, InputActivity.class));\n }", "public void figura1(View view){\n Intent figura1 = new Intent(this,Figura1.class);\n startActivity(figura1);\n }", "@Override\n public void onClick(DialogInterface dialog, int which) {\n Intent intent = new Intent(SuperScouting.this, HomeScreen.class);\n startActivity(intent);\n }", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tIntent intent=new Intent();\n\t\t\t\tintent.setClass(MotionSensor.this, MainActivity.class);\n\t\t\t\tMotionSensor.this.startActivity(intent);\n\t\t\t}", "public void openActivity2(){\n Intent intent = new Intent(this, SearchBook.class);\n startActivity(intent);\n }", "public void goToDisplayActivity(View view)\n {\n Intent intent = new Intent(MainActivity.this, DisplayActivity.class);\n startActivity(intent);\n }", "@Override\n public void onClick(View v) {\n Intent intent = new Intent(LaunchActivity.this, MainActivity.class);\n startActivity(intent);\n }", "public void volver(View view){\n Intent i = new Intent(this,MainActivity.class);\n startActivity(i);\n finish();\n }", "public void openNewActivity(){\n Intent intent = new Intent(this, InventoryDisplay.class);\n startActivity(intent);\n }", "@Override\n public void onFinish(){\n Intent intent = new Intent(getBaseContext(), CodakActivity.class);\n startActivity(intent);\n }", "private void goToWeather(){\n \tIntent intent = new Intent(PresentadorV_main.this,\n \t\t\tPresentador_weather.class); \t\n \tstartActivity(intent); \t\n }", "@Override\n public void run() {\n\n Intent home = new Intent(MainActivity.this, HomeActivity.class);\n\n startActivity(home);\n finish();\n }", "public void go_to_setting(){\n Intent i=new Intent(LoginSelection.this, Configuration.class);\n startActivity(i);\n }", "public void verProfesionista(View view){\n Intent siguiente = new Intent(verEmpleos.this,verProfesionista.class);\n startActivity(siguiente);//se inicia\n }", "@Override\n public void onClick(View view){\n startActivity(new Intent(homePage.this, MainActivity.class));\n finish();\n\n }", "@Override\n public void onClick(View v) {\n Intent intent = new Intent(getActivity(), JdMainActivity.class);\n startActivity(intent);\n }", "@Override\n public void onClick(View view) {\n startActivity(new Intent(StartActivity.this, MainActivity.class));\n }", "public void newGame(View v){\n\n startActivity(new Intent(getApplicationContext(),MainActivity.class)); // same as startActivity(new Intent (this, Main2Activity.class));\n\n }", "@Override\n public void onClick(View view) {\n startActivity(new Intent(MainActivity.this, ViewActivity.class));\n }", "public void openActivity(){\n Intent intent = new Intent();\n if(bopenLogin)\n {\n intent = new Intent(Splashscreen.this, Login.class);\n }\n else\n {\n intent = new Intent(Splashscreen.this, MainActivity.class);\n }\n startActivity(intent);\n finish();\n }", "@Override\r\n\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\tIntent i=new Intent(getApplicationContext(),MainActivity.class);\r\n\t\t\t\t\tstartActivity(i);\r\n\t\t\t\t\t\r\n\t\t\t\t}", "void mstrange(){\n Intent i = new Intent(context,Pengembalian.class);\n context.startActivity(i);\n }", "private void startControlRobotActivity(){\n Intent intent = new Intent(this, ControlRobotActivity.class );\n startActivity(intent);\n finish();\n }", "@Override\n public void onClick(View view)\n {\n Intent intent = new Intent(BoilerRoom.this, Inspection.class);\n startActivity(intent);\n }", "void startNewActivity(Intent intent);", "private void mystartActivity(Class c){\n Intent intent = new Intent(this,c);\n intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n startActivity(intent);\n }", "@Override\n public void onClick(View v) {\n Intent intent = new Intent(getActivity(), ANQ.class);\n startActivity(intent);\n\n }", "public void start(View v){\n Intent intent = new Intent(this, Home.class);\n startActivity(intent);\n }", "@Override\n public void run() {\n Intent home=new Intent(home.this, MainActivity.class);\n startActivity(home);\n finish();\n\n }", "public void goHomeScreen(View view)\n {\n\n Intent homeScreen;\n\n homeScreen = new Intent(this, homeScreen.class);\n\n startActivity(homeScreen);\n\n }", "private void back_home()\n {\n btn_home.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n\n Intent myintent=new Intent(getApplicationContext(), Dictionary_MainActivity.class);\n\n startActivity(myintent);\n\n }\n });\n\n }", "@Override\n public void onClick(View v) {\n Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(\"http://www.gteducation.in\"));\n startActivity(intent);\n Toast.makeText(NoticeActivity.this,\"go to my website\",Toast.LENGTH_SHORT).show();\n\n }", "public void GoInfo(View view) {\n Intent a = new Intent(MainActivity.this, Info.class);\n startActivity(a);\n }", "@Override\n public void onClick(View v) {\n Intent p1page = new Intent(v.getContext(), AshmoleanMusuem.class);\n startActivity(p1page);\n }", "public void onResume(){\n Intent thissa = new Intent(SuperNotCalled.this,SuperNotCalled.class); \n startActivity(thissa);\n }", "public void onClick(View v) {\n Intent intent = new Intent(MainActivity.this, Setup.class);\n startActivity(intent);\n }", "public void onClick(View v) {\n Intent intent = new Intent(MainActivity.this, Setup.class);\n startActivity(intent);\n }", "public void onClick(View v) {\n Intent intent = new Intent(MainActivity.this, Setup.class);\n startActivity(intent);\n }", "@Override\n public void onClick(View arg0) {\n Intent intent = new Intent(context, MainActivity2.class); //al click sul bottone apre una nuova activity\n startActivity(intent);\n\n }", "private void goToLoginScreen()\n {\n Intent intent = new Intent(this, Login.class);\n startActivity(intent);\n }", "@Override\n public void onClick(View v) {\n Intent r2page = new Intent(v.getContext(), Cherwell_Boathouse.class);\n startActivity(r2page);\n }", "@Override\n public void onClick(View view) {\n Intent drakeIntent = new Intent(MainActivity.this, DrakeActivity.class);\n startActivity(drakeIntent);\n }", "public void onClickSearch (View v)\n{\n startActivity (new Intent(getApplicationContext(), SearchActivity.class));\n}", "public void gotonewpatient(View view)\n {\n Intent i=new Intent(this,AddNewPatient.class);\n startActivity(i);\n }", "@Override\n public void jumpActivity() {\n startActivity(new Intent(MainActivity.this, MainActivity.class));\n }", "void showResultActivity() {\n\n Intent intent = new Intent();\n intent.setClass(this, ScanResultActivity.class);\n startActivity(intent);\n finish();\n\n playEffect();\n }", "private void courses() {\n\tstartActivity (new Intent(getApplicationContext(), Courses.class));\n\n\n}", "@Override\n public void onClick(View view) {\n try {\n if (ol_Data.getEnglish().equals(\"Courses\")) {\n\n Intent cour = new Intent(ctx, AllCourses.class);\n cour.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n ctx.startActivity(cour);\n } else if (ol_Data.getEnglish().equals(\"Hijri Calender\")) {\n Intent nq = new Intent(ctx, CaldroidSampleActivity.class);\n nq.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n ctx.startActivity(nq);\n }else if (ol_Data.getEnglish().equals(\"Namaz Alarm\")) {\n Intent nq = new Intent(ctx, Muazzin.class);\n nq.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n ctx.startActivity(nq);\n }else if (ol_Data.getEnglish().equals(\"General Knowledge\")) {\n Intent nq = new Intent(ctx, GK.class);\n nq.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n ctx.startActivity(nq);\n }\n } catch (Exception e) {\n Toast.makeText(ctx, \"Error \" + e.getMessage(), Toast.LENGTH_LONG).show();\n }\n\n }", "@Override\n public void onClick(View view) {\n Intent loginIntent = new Intent(MainActivity.this, LoginActivity.class);\n startActivity(loginIntent);\n }", "private void startMainActivity() {\n Intent intent = new Intent(this, MyActivity.class);\n startActivity(intent);\n }", "@Override\n public void onClick(View view) {\n Intent wannaGuess = new Intent(mContext, WannaGuessActivity.class);\n mContext.startActivity(wannaGuess);\n\n// Intent detailIntent = Game.starter(mContext, mCurrentSport.getTitle(),\n// mCurrentSport.getImageResource());\n\n\n //Start the detail activity\n// mContext.startActivity(detailIntent);\n\n //anoter ver\n\n // @Override\n// protected void onCreate(Bundle savedInstanceState) {\n// super.onCreate(savedInstanceState);\n// setContentView(R.layout.activity_main);\n//\n// //Find the view that shows the catch me category\n//// TextView catchMe = (TextView) findViewById(R.id.catch_me);\n//// catchMe.setOnClickListener(new View.OnClickListener() {\n//// @Override\n//// public void onClick(View v) {\n//// Intent catchMeIntent = new Intent(MainActivity.this, CatchMe.class);\n//// startActivity(catchMeIntent);\n//// }\n//// });\n//\n// }\n }", "public void onClick(View v) {\n\n Intent visitSite_intent = new Intent(MainActivity.this, DetailActivity.class);\n visitSite_intent.putExtra(\"url\",\"http://aanm-vvrsrpolytechnic.ac.in/\");\n startActivity(visitSite_intent);\n }", "void intentPass(Activity activity, Class classname) {\n Intent i = new Intent(activity, classname);\n i.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TASK | Intent.FLAG_ACTIVITY_CLEAR_TOP | Intent.FLAG_ACTIVITY_NEW_TASK);\n startActivity(i);\n enterAnimation();\n }", "@Override\n public void run() {\n startActivity(intent);\n }" ]
[ "0.7409625", "0.74067485", "0.7343664", "0.7304985", "0.7147326", "0.71343917", "0.7124445", "0.7122913", "0.70707375", "0.70600325", "0.70596576", "0.7054068", "0.7045488", "0.7044769", "0.7029064", "0.7024219", "0.70160913", "0.69916123", "0.69851875", "0.6980505", "0.6975831", "0.69682986", "0.6960976", "0.695888", "0.6958683", "0.69538254", "0.6952043", "0.694941", "0.69360644", "0.69316626", "0.6925908", "0.691774", "0.6915384", "0.69137603", "0.6912457", "0.6912101", "0.690812", "0.6906449", "0.6905482", "0.6905087", "0.68918294", "0.6888346", "0.68785465", "0.687484", "0.6872041", "0.6869604", "0.68590766", "0.68514866", "0.68475425", "0.68417406", "0.6828105", "0.68164194", "0.6814828", "0.6807495", "0.68047744", "0.680287", "0.68015516", "0.6796514", "0.6787722", "0.67827266", "0.6778991", "0.677678", "0.67752707", "0.6773593", "0.6771821", "0.6767531", "0.67569375", "0.67545027", "0.675306", "0.6747308", "0.6735001", "0.67348015", "0.6732762", "0.67278016", "0.67252636", "0.67220587", "0.6721912", "0.67053443", "0.669658", "0.6696045", "0.66917735", "0.66862774", "0.66846853", "0.66846853", "0.66846853", "0.6684092", "0.66817623", "0.66731906", "0.66694546", "0.6668896", "0.6667862", "0.6665114", "0.6659481", "0.6659467", "0.66533613", "0.6653074", "0.6652495", "0.6646526", "0.6639097", "0.6638582", "0.66355664" ]
0.0
-1
Creates new form AC_PGERENTE
public AC_PGERENTE() { initComponents(); Table(); setTitle("Acesso exclusivo gerente - AutoCar"); setLocationRelativeTo(null); setResizable(false); setSize(640, 450); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void createCpteEpargne(CompteEpargne cpt) {\n\t\t\n\t}", "public void createAd(/*Should be a form*/){\n Ad ad = new Ad();\n User owner = this.user;\n Vehicle vehicle = this.vehicle;\n String \n// //ADICIONAR\n ad.setOwner();\n ad.setVehicle();\n ad.setDescription();\n ad.setPics();\n ad.setMain_pic();\n }", "public CreateAccount() {\n initComponents();\n selectionall();\n }", "public void CrearNew(ActionEvent e) {\n List<Pensum> R = ejbFacade.existePensumID(super.getSelected().getIdpensum());\n if(R.isEmpty()){\n super.saveNew(e);\n }else{\n new Auxiliares().setMsj(3,\"PENSUM ID YA EXISTE\");\n }\n }", "public CrearGrupos() throws SQLException {\n initComponents();\n setTitle(\"Crear Grupos\");\n setSize(643, 450);\n setLocationRelativeTo(this);\n cargarModelo();\n }", "public frm_tutor_subida_prueba() {\n }", "public static Result newForm() {\n return ok(newForm.render(palletForm, setOfArticleForm));\n }", "public void create(PessoasEspacosDeCafe pec) {\n\n Connection con = ConnectionFactory.getConnection();\n PreparedStatement stmt = null;\n\n try {\n stmt = con.prepareStatement(\"INSERT INTO PessoasEspacosDeCafe (pessoasIdPessoas, espacosDeCafeIdEspacosDeCafe)VALUES(?, ?)\");\n\n stmt.setInt(1, pec.getPessoasIdPessoas());\n stmt.setInt(2, pec.getEspacosDeCafeIdEspacosDeCafe());\n\n stmt.executeUpdate();\n\n JOptionPane.showMessageDialog(null, \"Salvo com Sucesso!\");\n } catch (SQLException ex) {\n JOptionPane.showMessageDialog(null, \"Erro ao Salvar: \" + ex);\n } finally {\n ConnectionFactory.closeConnection(con, stmt);\n }\n }", "public void crearPersonaje(ActionEvent event) {\r\n\r\n\t\tthis.personaje.setAspecto(url);\r\n\r\n\t\tDatabaseOperaciones.guardarPersonaje(stats, personaje);\r\n\r\n\t\tvisualizaPersonajes();\r\n\t}", "public void createAgendamento() {\n\n if (tbagendamento.getTmdataagendamento().after(TimeControl.getDateIni())) {\n if (agendamentoLogic.createTbagendamento(tbagendamento)) {\n AbstractFacesContextUtils.redirectPage(PagesUrl.URL_AGENDAMENTO_LIST);\n AbstractFacesContextUtils.addMessageInfo(\"Agendamento cadastrado com sucesso.\");\n } else {\n AbstractFacesContextUtils.addMessageWarn(\"Falhar ao realizado cadastro do agendamento.\");\n }\n } else {\n AbstractFacesContextUtils.addMessageWarn(\"verifique se a data de agendamento esta correta.\");\n }\n }", "FORM createFORM();", "public creacionempresa() {\n initComponents();\n mostrardatos();\n }", "public CrearPedidos() {\n initComponents();\n }", "@Override\n\tpublic void create(CreateCoinForm form) throws Exception {\n\t}", "public void crearDialogo() {\r\n final PantallaCompletaDialog a2 = PantallaCompletaDialog.a(getString(R.string.hubo_error), getString(R.string.no_hay_internet), getString(R.string.cerrar).toUpperCase(), R.drawable.ic_error);\r\n a2.f4589b = new a() {\r\n public void onClick(View view) {\r\n a2.dismiss();\r\n }\r\n };\r\n a2.show(getParentFragmentManager(), \"TAG\");\r\n }", "public void createCompte(Compte compte);", "Compuesta createCompuesta();", "public FundsVolunteerCreate(AppState appState) {\n initComponents();\n setDefaultCloseOperation(DISPOSE_ON_CLOSE);\n btCancelar.setVisible(false);\n btSave.setVisible(false);\n btnRemove.setVisible(false);\n btnSaveEdit.setVisible(false);\n enableFields(false);\n this.appState = appState;\n }", "public void postularse() {\n\t\t\n\t\ttry {\t\t\t\n\n\t\t\tPostulante postulante= new Postulante();\n\t\t\tpostulante.setLegajo(Integer.valueOf(this.txtLegajo.getText()));\n\t\t\tpostulante.setFamiliaresACargo(Integer.valueOf(this.txtFamiliaresACargo.getText()));\n\t\t\tpostulante.setNombre(txtNombre.getText());\n\t\t\tpostulante.setApellido(txtApellido.getText());\n\t\t\t//postulante.setFechaDeNacimiento(this.txtFechaDeNaciminto.getText());\n\t\t\tpostulante.setCarrera(this.cmbCarrera.getSelectedItem().toString());\n\t\t\tpostulante.setNacionalidad(this.txtNacionalidad.getText());\n\t\t\tpostulante.setLocalidad(this.txtLocalidad.getText());\n\t\t\tpostulante.setProvincia(this.txtProvincia.getText());\n\t\t\t//postulante.setSituacionSocial(this.txtSituacionSocial.getText());\n\t\t\tpostulante.setDomicilio(this.txtDomicilio.getText());\n\t\t\tpostulante.setCodigoPostal(this.txtCodigoPostal.getText());\n\t\t\tpostulante.setEmail(this.txtEmail.getText());\n\t\t\tpostulante.setTelefono(Long.valueOf(this.txtTelefono.getText()));\n\t\t\t\n\t\t\t\n\t\t\tint ingresos=0, miembrosEconomicamenteActivos = 0;\n\t\t\tfor(Familiar familiar: familiares) {\n\t\t\t\tingresos+=familiar.getIngresos();\n\t\t\t\tif(ingresos > 0) {\n\t\t\t\t\tmiembrosEconomicamenteActivos++;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tpostulante.setCantidadDeFamiliares(familiares.size());\n\t\t\tdouble promedio = Math.random() * (61) + 30 ; \n\t\t\tpostulante.setPromedio((int) promedio);\n\t\t\t\n\t\t\t\n\t\t\tint pIngresos, pActLaboral = 0, pVivienda = 0, pSalud = 0, pDependencia, pPromedio, pRendimiento, pDesarrollo;\n\t\t\t\n\t\t\t//Puntaje Ingresos\n\t\t\tint canastaBasicaPostulante = familiares.size() * canastaBasicaPromedio; \n\t\t\tif(ingresos <= canastaBasicaPostulante) {\n\t\t\t\tpIngresos = 30;\n\t\t\t}\n\t\t\telse if(ingresos >= (2*canastaBasicaPostulante)) {\n\t\t\t\tpIngresos = 0;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tpIngresos = (int) (30 - 0.15 * (familiares.size() - ingresos));\n\t\t\t}\n\t\t\t\n\t\t\t//Puntaje Condicion Actividad Laboral\n\t\t\t\n\t\t\t\n\t\t\tint puntajeMiembros = 0;\n\t\t\t\n\t\t\tfor (Familiar familiar: familiares) {\n\t\t\t\t\tif(familiar.getIngresos() == 0) {\n\t\t\t\t\t\tpuntajeMiembros = puntajeMiembros + 5;\n\t\t\t\t\t}\n\t\t\t\t\telse if(familiar.getIngresos() < salarioMinimo) {\n\t\t\t\t\t\tpuntajeMiembros = puntajeMiembros + 3;\n\t\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tif(miembrosEconomicamenteActivos>0) {\n\t\t\tpActLaboral = puntajeMiembros/miembrosEconomicamenteActivos;\n\t\t\t}\n\t\t\t\n\t\t\t//Puntaje Vivienda - Extrae de cmbVivienda: 0 sin deudas - 1 con deudas - 2 sin propiedad\n\t\t\tint condicionVivienda = this.cmbVivienda.getSelectedIndex();\n\t\t\tswitch (condicionVivienda) {\n\t\t\tcase 0:\n\t\t\t\tpVivienda = 0;\n\t\t\t\tbreak;\n\t\t\tcase 1:\n\t\t\t\tpVivienda = 3;\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\tpVivienda = 5;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t\t//Puntaje Salud - Extrae de cmbSalud: 0 tiene obra - 1 cobertura parcial - 2 no tiene\n\t\t\tint condicionSalud = this.cmbSalud.getSelectedIndex();\n\t\t\tswitch (condicionSalud) {\n\t\t\tcase 0:\n\t\t\t\tpSalud = 0;\n\t\t\t\tbreak;\n\t\t\tcase 1:\n\t\t\t\tpSalud = 3;\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\tpSalud = 5;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t\t//Puntaje Dependencia\n\t\t\tif (familiares.size() - miembrosEconomicamenteActivos == 0) {\n\t\t\t\tpDependencia = 0;\n\t\t\t}\n\t\t\telse if(familiares.size() - miembrosEconomicamenteActivos > 2) {\n\t\t\t\tpDependencia = 5;\n\t\t\t}\n\t\t\telse{\n\t\t\t\tpDependencia = 3;\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t//Puntaje Rendimiento académico\n\t\t\tint materiasAprobadas = (int) (Math.random() * (11));\n\t\t\tif(materiasAprobadas == 0) {\n\t\t\t\tpRendimiento = 4;\n\t\t\t\tpPromedio = 14;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tint materiasRegularizadas = (int) (Math.random() * (41 - materiasAprobadas));\n\t\t\t\tpRendimiento = materiasAprobadas/materiasRegularizadas * 10;\n\t\t\t//Puntaje Promedio: Se recuperaria del sysacad\n\t\t\t\tpPromedio = (int) (promedio/10 * 3.5);\n\t\t\t}\n\t\t\t\n\t\t\t//Puntaje Plan Desarrollo: Evaluado por comisión local\n\t\t\tpDesarrollo = (int) (Math.random() * 5 + 1);\n\n\n\t\t\tpuntaje = pIngresos + pActLaboral + pVivienda + pSalud + pDependencia + pPromedio + pRendimiento + pDesarrollo;\n\t\t\tpostulante.setMatAprobadas(materiasAprobadas);\n\t\t\t\n\t\t\ttry{ \n\t\t\t\tcontroller.postular(postulante,puntaje); \n\t\t\t\tJOptionPane.showMessageDialog(null, \"Se postuló al alumno \"+postulante.getNombre()+\" \"+postulante.getApellido()+\".\", \"Postulación exitosa.\", JOptionPane.OK_OPTION);\n\t\t\t\tlimpiarCampos();\n\t\t\t} \n\t\t\tcatch(Exception ex) {\n\t\t\t\tex.printStackTrace();\n\t\t\t\tJOptionPane.showMessageDialog(null, \"No se pudo postular el alumno\", \"Error\", JOptionPane.OK_OPTION);\n\t\t\t}\n\n\t\t\t\n\t\t}\n\t\tcatch(Exception ex) {\n\t\t\tex.printStackTrace();\n\t\t\tJOptionPane.showMessageDialog(null, \"Datos incorrectos\", \"Error\", JOptionPane.OK_OPTION);\n\t\t}\n\t\t\n\t}", "private void btn_cadActionPerformed(java.awt.event.ActionEvent evt) {\n \n CDs_dao c = new CDs_dao();\n TabelaCDsBean p = new TabelaCDsBean();\n \n TabelaGeneroBean ge = (TabelaGeneroBean) g_box.getSelectedItem();\n TabelaArtistaBean au = (TabelaArtistaBean) g_box2.getSelectedItem();\n\n //p.setId(Integer.parseInt(id_txt.getText()));\n p.setTitulo(nm_txt.getText());\n p.setPreco(Double.parseDouble(vr_txt.getText()));\n p.setGenero(ge);\n p.setArtista(au);\n c.create(p);\n\n nm_txt.setText(\"\");\n //isqn_txt.setText(\"\");\n vr_txt.setText(\"\");\n cd_txt.setText(\"\");\n g_box.setSelectedIndex(0);\n g_box2.setSelectedIndex(0);\n \n }", "@_esCocinero\n public Result crearPaso() {\n Form<Paso> frm = frmFactory.form(Paso.class).bindFromRequest();\n\n // Comprobación de errores\n if (frm.hasErrors()) {\n return status(409, frm.errorsAsJson());\n }\n\n Paso nuevoPaso = frm.get();\n\n // Comprobar autor\n String key = request().getQueryString(\"apikey\");\n if (!SeguridadFunctions.esAutorReceta(nuevoPaso.p_receta.getId(), key))\n return Results.badRequest();\n\n // Checkeamos y guardamos\n if (nuevoPaso.checkAndCreate()) {\n Cachefunctions.vaciarCacheListas(\"pasos\", Paso.numPasos(), cache);\n Cachefunctions.vaciarCacheListas(\"recetas\", Receta.numRecetas(), cache);\n return Results.created();\n } else {\n return Results.badRequest();\n }\n\n }", "public String crearPostulante() {\n\t\tString r = \"\";\n\t\ttry {\n\t\t\tif (edicion) {\n\t\t\t\tsetPos_password(Utilidades.Encriptar(getPos_password()));// PASS\n\t\t\t\tmanagergest.editarPostulante(pos_id.trim(), pos_nombre.trim(),\n\t\t\t\t\t\tpos_apellido.trim(), pos_direccion.trim(),\n\t\t\t\t\t\tpos_correo.trim(), pos_telefono.trim(),\n\t\t\t\t\t\tpos_celular.trim(), pos_password.trim(), \"A\");\n\t\t\t\tpos_id = \"\";\n\t\t\t\tpos_nombre = \"\";\n\t\t\t\tpos_apellido = \"\";\n\t\t\t\tpos_direccion = \"\";\n\t\t\t\tpos_correo = \"\";\n\t\t\t\tpos_password = \"\";\n\t\t\t\tpos_telefono = \"\";\n\t\t\t\tpos_celular = \"\";\n\t\t\t\tpos_institucion = \"\";\n\t\t\t\tpos_gerencia = \"\";\n\t\t\t\tpos_area = \"\";\n\t\t\t\tMensaje.crearMensajeINFO(\"Modificado - Editado\");\n\t\t\t\tr = \"home?faces-redirect=true\";\n\t\t\t} else {\n\t\t\t\tMensaje.crearMensajeINFO(\"Error..!!! Usuario no pudo ser Creado\");\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tMensaje.crearMensajeINFO(\"Error..!!! Usuario no pudo ser Creado\");\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn r;\n\t}", "public void onCreate() {\r\n Session session = sessionService.getCurrentSession();\r\n Map<String, Region> items = ControlUtility.createForm(Pc.class);\r\n\r\n ControlUtility.fillComboBox((ComboBox<Kind>) items.get(\"Kind\"), session.getCampaign().getCampaignVariant().getKinds());\r\n ControlUtility.fillComboBox((ComboBox<Race>) items.get(\"Race\"), session.getCampaign().getCampaignVariant().getRaces());\r\n ControlUtility.fillCheckComboBox((CheckComboBox<Ability>) items.get(\"SavingThrows\"), Arrays.asList(Ability.values()));\r\n ControlUtility.fillCheckComboBox((CheckComboBox<Proficiency>) items.get(\"Proficiencies\"), session.getCampaign().getCampaignVariant().getProficiencies());\r\n ControlUtility.fillCheckComboBox((CheckComboBox<Feature>) items.get(\"Features\"), session.getCampaign().getCampaignVariant().getFeatures());\r\n ControlUtility.fillCheckComboBox((CheckComboBox<Trait>) items.get(\"Traits\"), session.getCampaign().getCampaignVariant().getTraits());\r\n ControlUtility.fillCheckComboBox((CheckComboBox<Equipment>) items.get(\"Equipment\"), session.getCampaign().getCampaignVariant().getEquipments());\r\n\r\n Campaign campaign = session.getCampaign();\r\n\r\n Dialog<String> dialog = ControlUtility.createDialog(\"Create Playable Character\", items);\r\n dialog.show();\r\n\r\n dialog.setResultConverter(buttonType -> {\r\n if (buttonType != null) {\r\n Pc pc = null;\r\n try {\r\n pc = ControlUtility.controlsToValues(Pc.class, items);\r\n } catch (NoSuchMethodException | IllegalAccessException | InvocationTargetException | InstantiationException | ClassNotFoundException e) {\r\n e.printStackTrace();\r\n }\r\n if (pc != null) {\r\n try {\r\n characterService.createPlayerCharacter(pc);\r\n } catch (SessionAlreadyExists | IndexAlreadyExistsException sessionAlreadyExists) {\r\n sessionAlreadyExists.printStackTrace();\r\n }\r\n try {\r\n playerManagementService.addOrUpdatePcForRegisteredPlayer(pc);\r\n Player player = playerManagementService.getRegisteredPlayer();\r\n campaign.addPlayer(player);\r\n campaign.addCharacter(pc);\r\n if (campaignListingService.campaignExists(campaign.getId())) {\r\n manipulationService.updateCampaign(campaign);\r\n } else {\r\n manipulationService.createCampaign(campaign);\r\n }\r\n } catch (MultiplePlayersException | EntityNotFoundException | SessionAlreadyExists | IndexAlreadyExistsException e) {\r\n e.printStackTrace();\r\n }\r\n try {\r\n playerManagementService.addOrUpdatePcForRegisteredPlayer(pc);\r\n } catch (MultiplePlayersException | EntityNotFoundException e) {\r\n e.printStackTrace();\r\n }\r\n try {\r\n sessionService.updateParticipant(playerManagementService.getRegisteredPlayer().getId(), pc.getId());\r\n sessionService.updateCampaign(campaign);\r\n } catch (EntityNotFoundException e) {\r\n e.printStackTrace();\r\n }\r\n render();\r\n return pc.toString();\r\n }\r\n }\r\n return null;\r\n });\r\n }", "protected void creaPagine() {\n Pagina pag;\n Pannello pan;\n\n try { // prova ad eseguire il codice\n\n /* crea la pagina e aggiunge campi e pannelli */\n pag = this.addPagina(\"generale\");\n\n pan = PannelloFactory.orizzontale(this);\n pan.add(Cam.data);\n pan.add(Cam.importo.get());\n pan.add(Cam.note.get());\n pag.add(pan);\n\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n }// fine del blocco try-catch\n\n }", "@Override\r\n protected void createDbContentCreateEdit() {\n DbContentCreateEdit dbContentCreateEdit = new DbContentCreateEdit();\r\n dbContentCreateEdit.init(null);\r\n form.getModelObject().setDbContentCreateEdit(dbContentCreateEdit);\r\n dbContentCreateEdit.setParent(form.getModelObject());\r\n ruServiceHelper.updateDbEntity(form.getModelObject()); \r\n }", "public CadastroProdutoNew() {\n initComponents();\n }", "public CreateProfile() {\n initComponents();\n }", "private void createBtnActionPerformed(java.awt.event.ActionEvent evt) {\n\n staff.setName(regName.getText());\n staff.setID(regID.getText());\n staff.setPassword(regPwd.getText());\n staff.setPosition(regPos.getSelectedItem().toString());\n staff.setGender(regGender.getSelectedItem().toString());\n staff.setEmail(regEmail.getText());\n staff.setPhoneNo(regPhone.getText());\n staff.addStaff();\n if (staff.getPosition().equals(\"Vet\")) {\n Vet vet = new Vet();\n vet.setExpertise(regExp.getSelectedItem().toString());\n vet.setExpertise_2(regExp2.getSelectedItem().toString());\n vet.addExpertise(staff.getID());\n }\n JOptionPane.showMessageDialog(null, \"User added to database\");\n updateJTable();\n }", "public ViewCreatePagamento() {\n initComponents();\n clientesDAO cDAO = DaoFactory.createClientesDao(); \n matriculaDAO mDAO = DaoFactory.createMatriculaDao();\n \n cmbIDClientes.addItem(null);\n cDAO.findAll().forEach((p) -> {\n cmbIDClientes.addItem(p.getNome());\n });\n \n \n txtDataAtual.setText(DateFormat.getDateInstance().format(new Date()));\n }", "private void jButtonNewStageplaatsActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonNewStageplaatsActionPerformed\n\n this.geselecteerdeStageplaats = new Stageplaats();\n this.geselecteerdeStageplaats.setSitueertID((Situeert)this.jComboBoxSitueert.getSelectedItem());\n this.geselecteerdeStageplaats.getSitueertID().setSpecialisatieID((Specialisatie)this.jComboBoxSpecialisatie.getSelectedItem());\n this.geselecteerdeStageplaats.setBedrijfID(null);\n this.geselecteerdeStageplaats.setAanmaakDatum(new Date());\n this.geselecteerdeStageplaats.setLaatsteWijziging(new Date());\n this.geselecteerdeStageplaats.setStudentStageplaatsList(new ArrayList<StudentStageplaats>());\n refreshDataCache();\n ClearDisplayedStageplaats();\n refreshDisplayedStageplaats();\n enableButtons();\n }", "public String newBoleta() {\n\t\tresetForm();\n\t\treturn \"/boleta/insert.xhtml\";\n\t}", "public static AddNewScheduleDialog createInstance(int quantity){\n AddNewScheduleDialog frag = new AddNewScheduleDialog();\n frag.quantity = quantity;\n return frag;\n }", "public Create_Course() {\n initComponents();\n comboBoxLec();\n comboBoxDep();\n }", "private void createPassenger() {\n account = new Account(\"driver\", \"password\", \"driver@uclive.ac.nz\",\n \"Dan\", \"20 Howard Street\", 1234567, 64278182123L);\n }", "public String crea() {\n c.setId(0);\n clienteDAO.crea(c); \n //Post-Redirect-Get\n return \"visualiza?faces-redirect=true&id=\"+c.getId();\n }", "public NewProjectDialog(String pt) {\n\t\t\t\n\t\t\tsuper(frame, \"Add new project\");\n\t\t\tresetFields();\n\t\t\tpType = pt;\n\t\t\t\n\t\t\tfinal JDialog npd = this;\n\t\t\t\n\t\t\tpSDate.setHorizontalAlignment(SwingConstants.RIGHT);\n\t\t\tpDeadline.setHorizontalAlignment(SwingConstants.RIGHT);\n\t\t\tpEndDate.setHorizontalAlignment(SwingConstants.RIGHT);\n\t\t\tpBudget.setHorizontalAlignment(SwingConstants.RIGHT);\n\t\t\tpTotalCost.setHorizontalAlignment(SwingConstants.RIGHT);\n\t\t\tpCompletion.setHorizontalAlignment(SwingConstants.RIGHT);\n\t\t\t\n\t\t\tint x = frame.getLocation().x;\n\t\t\tint y = frame.getLocation().y;\n\t\t\t\n\t\t\tint pWidth = frame.getSize().width;\n\t\t\tint pHeight = frame.getSize().height;\n\t\t\t\n\t\t\tgetContentPane().setLayout(new BorderLayout());\n\t\t\t\n\t\t\tfinal JPanel fieldPanel = new JPanel();\n\t\t\t\n\t\t\tpCode.setText(portfolio.getNewCode());\n\t\t\tpCode.setEditable(false);\n\t\t\t\n\t\t\tif(pType.equals(\"o\")) {\n\t\t\t\tfieldPanel.setLayout(new GridLayout(7,3));\n\t\t\t\tSystem.out.println(\"ongoing\");\n\t\t\t\tthis.setPreferredSize(new Dimension(600,230));\n\t\t\t} else if(pType.equals(\"f\")) {\n\t\t\t\tfieldPanel.setLayout(new GridLayout(6,3));\n\t\t\t\tSystem.out.println(\"finished\");\n\t\t\t\tthis.setPreferredSize(new Dimension(600,200));\n\t\t\t}\n\t\t\tfieldPanel.add(new JLabel(\"Project Code :\"));\n\t\t\tfieldPanel.add(pCode);\n\t\t\tfieldPanel.add(msgCode);\t\t\n\t\t\tfieldPanel.add(new JLabel(\"Project Name :\"));\n\t\t\tfieldPanel.add(pName);\n\t\t\tfieldPanel.add(msgName);\n\t\t\tfieldPanel.add(new JLabel(\"Client :\"));\n\t\t\tfieldPanel.add(pClient);\n\t\t\tfieldPanel.add(msgClient);\n\t\t\tfieldPanel.add(new JLabel(\"Start date: \"));\n\t\t\tfieldPanel.add(pSDate);\n\t\t\tfieldPanel.add(msgSDate);\n\t\t\tmsgSDate.setText(DATE_FORMAT);\n\t\t\t\n\t\t\tif(pType.equals(\"o\")) {\n\t\t\t\tfieldPanel.add(new JLabel(\"Deadline :\"));\n\t\t\t\tfieldPanel.add(pDeadline);\n\t\t\t\tfieldPanel.add(msgDeadline);\n\t\t\t\tmsgDeadline.setText(DATE_FORMAT);\n\t\t\t\tfieldPanel.add(new JLabel(\"Budget :\"));\n\t\t\t\tfieldPanel.add(pBudget);\n\t\t\t\tfieldPanel.add(msgBudget);\n\t\t\t\tfieldPanel.add(new JLabel(\"Completion :\"));\n\t\t\t\tfieldPanel.add(pCompletion);\t\t\t\n\t\t\t\tfieldPanel.add(msgCompletion);\n\t\t\t\t\n\t\t\t} else if(pType.equals(\"f\")) {\n\t\t\t\tfieldPanel.add(new JLabel(\"End Date :\"));\n\t\t\t\tfieldPanel.add(pEndDate);\n\t\t\t\tfieldPanel.add(msgEndDate);\n\t\t\t\tmsgEndDate.setText(DATE_FORMAT);\n\t\t\t\tfieldPanel.add(new JLabel(\"Total Cost :\"));\n\t\t\t\tfieldPanel.add(pTotalCost);\n\t\t\t\tfieldPanel.add(msgTotalCost);\n\t\t\t}\n\t\t\t\n\t\t\tJPanel optionButtons = new JPanel();\n\t\t\toptionButtons.setLayout(new FlowLayout());\n\t\t\t\n\t\t\tJButton btnAdd = new JButton(\"Add\");\n\t\t\tbtnAdd.addActionListener(new ActionListener() {\n\n\t\t\t\t/**\n\t\t\t\t * Validates the information entered by the user and adds the project to the\n\t\t\t\t * Portfolio object if data is valid.\n\t\t\t\t */\n\t\t\t\t@Override\n\t\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\t\n\t\t\t\t\tif(validateForm()) {\n\t\t\t\t\t\t\n\t\t\t\t\t\tProject prj = compileProject();\n\t\t\t\t\t\tportfolio.add(prj,config.isUpdateDB());\n\t\t\t\t\t\tif(prj instanceof OngoingProject) {\n\t\t\t\t\t\t\tProjectTableModel tm = (ProjectTableModel) opTable.getModel();\n\t\t\t\t\t\t\ttm.addRow(prj.toTable());\n\t\t\t\t\t\t\topTable.setModel(tm);\n\t\t\t\t\t\t\tupdateCounters();\n\t\t\t\t\t\t\ttoggleSaved(false);\n\t\t\t\t\t\t\tsel.add(pCode.getText());\n\t\t\t\t\t\t} else if (prj instanceof FinishedProject) {\n\t\t\t\t\t\t\tProjectTableModel tm = (ProjectTableModel) fpTable.getModel();\n\t\t\t\t\t\t\ttm.addRow(prj.toTable());\n\t\t\t\t\t\t\tfpTable.setModel(tm);\n\t\t\t\t\t\t\tupdateCounters();\n\t\t\t\t\t\t\ttoggleSaved(false);\n\t\t\t\t\t\t\tsel.add(pCode.getText());\n\t\t\t\t\t\t}\n\t\t\t\t\t\tnpd.dispose();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t});\n\t\t\toptionButtons.add(btnAdd);\n\t\t\t\n\t\t\tJButton btnClose = new JButton(\"Close\");\n\t\t\tbtnClose.addActionListener(new ActionListener() {\n\n\t\t\t\t/* Closes the NewProjectDialog window. */\n\t\t\t\t@Override\n\t\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\tnpd.dispose();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t});\n\t\t\t\n\t\t\toptionButtons.add(btnClose);\n\t\t\tgetContentPane().add(new JLabel(\"Enter the data for your new \" + getPType(pType) + \" project:\"), BorderLayout.PAGE_START);\n\t\t\tthis.add(fieldPanel, BorderLayout.CENTER);\n\t\t\tthis.add(optionButtons, BorderLayout.PAGE_END);\n\n\t\t\tthis.pack();\n\t\t\t\t\t\n\t\t\tint width = this.getSize().width;\n\t\t\tint height = this.getSize().height;\n\t\t\t\n\t\t\tthis.setLocation(new Point((x+pWidth/2-width/2),(y+pHeight/2-height/2)));\n\t\t\tthis.setVisible(true);\n\t\t}", "Paper addNewPaper(PaperForm form, Long courseId)throws Exception;", "@RequestMapping(value=\"/formpaciente\")\r\n\tpublic String crearPaciente(Map<String, Object> model) {\t\t\r\n\t\t\r\n\t\tPaciente paciente = new Paciente();\r\n\t\tmodel.put(\"paciente\", paciente);\r\n\t\tmodel.put(\"obrasociales\",obraSocialService.findAll());\r\n\t\t//model.put(\"obrasPlanesForm\", new ObrasPlanesForm());\r\n\t\t//model.put(\"planes\", planService.findAll());\r\n\t\tmodel.put(\"titulo\", \"Formulario de Alta de Paciente\");\r\n\t\t\r\n\t\treturn \"formpaciente\";\r\n\t}", "private void azzeraInsertForm() {\n\t\tviewInserimento.getCmbbxTipologia().setSelectedIndex(-1);\n\t\tviewInserimento.getTxtFieldDataI().setText(\"\");\n\t\tviewInserimento.getTxtFieldValore().setText(\"\");\n\t\tviewInserimento.getTxtFieldDataI().setBackground(Color.white);\n\t\tviewInserimento.getTxtFieldValore().setBackground(Color.white);\n\t}", "public abstract void creationGrille();", "@Override\r\n\tprotected void agregarObjeto() {\r\n\t\t// opcion 1 es agregar nuevo justificativo\r\n\t\tthis.setTitle(\"PROCESOS - PERMISOS INDIVIDUALES (AGREGANDO)\");\r\n\t\tthis.opcion = 1;\r\n\t\tactivarFormulario();\r\n\t\tlimpiarTabla();\r\n\t\tthis.panelBotones.habilitar();\r\n\t}", "private void newProject()\n\t{\n\t\tnew FenetreCreationProjet();\n\t}", "@Override\r\n\tpublic void crearVehiculo() {\n\t\t\r\n\t}", "public CreateAccout() {\n initComponents();\n showCT();\n ProcessCtr(true);\n }", "@Override\n public void buttonClick(ClickEvent event) {\n \n \ttry {\n\t\t\t\t\tUI.getCurrent().getNavigator().addView(_nombreSeccion + \"Adm/\" + _titulo.getCaption(), new AdministradorClase(new Lista_Mensaje_V_Administrador(it.getIdTema())));\n\t\t\t\t} catch (PersistentException 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\tUI.getCurrent().getNavigator().navigateTo(_nombreSeccion+ \"Adm/\" + _titulo.getCaption());\n \t\n \t\n }", "public createNew(){\n\t\tsuper(\"Create\"); // title for the frame\n\t\t//layout as null\n\t\tgetContentPane().setLayout(null);\n\t\t//get the background image\n\t\ttry {\n\t\t\tbackground =\n\t\t\t\t\tnew ImageIcon (ImageIO.read(getClass().getResource(\"Wallpaper.jpg\")));\n\t\t}//Catch for file error\n\t\tcatch (IOException e1) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\tJOptionPane.showMessageDialog(null, \n\t\t\t\t\t\"ERROR: File(s) Not Found\\n Please Check Your File Format\\n\"\n\t\t\t\t\t\t\t+ \"and The File Name!\");\n\t\t}\n\t\t//Initialize all of the compenents \n\t\tlblBackground = new JLabel (background);\n\t\tlblTitle = new JLabel (\"Create Menu\");\n\t\tlblTitle.setFont(new Font(\"ARIAL\",Font.ITALIC, 30));\n\t\tlblName = new JLabel(\"Please Enter Your First Name.\");\n\t\tlblLastName= new JLabel (\"Please Enter Your Last Name.\");\n\t\tlblPhoneNumber = new JLabel (\"Please Enter Your Phone Number.\");\n\t\tlblAddress = new JLabel (\"Please Enter Your Address.\");\n\t\tlblMiddle = new JLabel (\"Please Enter Your Middle Name (Optional).\");\n\t\tbtnCreate = new JButton (\"Create\");\n\t\tbtnBack = new JButton (\"Back\");\n\t\t//set the font\n\t\tlblName.setFont(new Font(\"Times New Roman\",Font.BOLD, 18));\n\t\tlblLastName.setFont(new Font(\"Times New Roman\",Font.BOLD, 18));\n\t\tlblPhoneNumber.setFont(new Font(\"Times New Roman\",Font.BOLD, 18));\n\t\tlblAddress.setFont(new Font(\"Times New Roman\",Font.BOLD, 18));\n\t\tlblMiddle.setFont(new Font(\"Times New Roman\",Font.BOLD, 18));\n\n\t\t//add action listener\n\t\tbtnCreate.addActionListener(this);\n\t\tbtnBack.addActionListener(this);\n\t\t//set bounds for all the components\n\t\tbtnCreate.setBounds(393, 594, 220, 36);\n\t\ttxtMiddle.setBounds(333, 249, 342, 36);\n\t\ttxtName.setBounds(333, 158, 342, 36);\n\t\ttxtLastName.setBounds(333, 339, 342, 36);\n\t\ttxtPhoneNumber.setBounds(333, 429, 342, 36);\n\t\ttxtAddress.setBounds(333, 511, 342, 36);\n\t\tbtnBack.setBounds(6,716,64,36);\n\t\tlblTitle.setBounds(417, 0, 182, 50);\n\t\tlblMiddle.setBounds(333, 201, 342, 36);\n\t\tlblName.setBounds(387, 110, 239, 36);\n\t\tlblLastName.setBounds(387, 297, 239, 36);\n\t\tlblPhoneNumber.setBounds(369, 387, 269, 36);\n\t\tlblAddress.setBounds(393, 477, 215, 30);\n\t\tbtnBack.setBounds(6,716,64,36);\n\t\tlblTitle.setBounds(417, 0, 182, 50);\n\t\tlblBackground.setBounds(0, 0, 1000, 1000);\n\t\t//add components to frame\n\t\tgetContentPane().add(btnCreate);\n\t\tgetContentPane().add(txtMiddle);\n\t\tgetContentPane().add(txtLastName);\n\t\tgetContentPane().add(txtAddress);\n\t\tgetContentPane().add(txtPhoneNumber);\n\t\tgetContentPane().add(txtName);\n\t\tgetContentPane().add(lblMiddle);\n\t\tgetContentPane().add(lblLastName);\n\t\tgetContentPane().add(lblAddress);\n\t\tgetContentPane().add(lblPhoneNumber);\n\t\tgetContentPane().add(lblName);\n\t\tgetContentPane().add(btnBack);\n\t\tgetContentPane().add(lblTitle);\n\t\tgetContentPane().add(lblBackground);\n\t\t//set size, visible and action for close\n\t\tsetSize(1000,1000);\n\t\tsetVisible(true);\n\t\tsetDefaultCloseOperation(EXIT_ON_CLOSE);\n\n\t}", "public CreateAccountPanel() {\n initComponents();\n initializeDateChooser();\n }", "public StavkaFaktureInsert() {\n initComponents();\n CBFakture();\n CBProizvod();\n }", "private void creaPannelli() {\n /* variabili e costanti locali di lavoro */\n Pannello pan;\n\n try { // prova ad eseguire il codice\n\n /* pannello date */\n pan = this.creaPanDate();\n this.addPannello(pan);\n\n /* pannello coperti */\n PanCoperti panCoperti = new PanCoperti();\n this.setPanCoperti(panCoperti);\n this.addPannello(panCoperti);\n\n\n /* pannello placeholder per il Navigatore risultati */\n /* il navigatore vi viene inserito in fase di inizializzazione */\n pan = new PannelloFlusso(Layout.ORIENTAMENTO_ORIZZONTALE);\n this.setPanNavigatore(pan);\n this.addPannello(pan);\n\n\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n } // fine del blocco try-catch\n\n }", "public ProductCreate() {\n initComponents();\n }", "public FrmPartida(JugadorPartida jp){\n initComponents();\n PnlPartida.setVisible(false);\n jugadorPartida = jp;\n this.setTitle(\"Jugador: \" + jp.getJugador().getNombreUsuario() + \" - Esperando en Lobby...\"); \n controller = new PartidaController(this, jugadorPartida);\n lblNumeroJugadores.setText(\"Jugadores esperando: \" + jp.getPartida().getColJugadores().size()); \n btnTirarCarta.setEnabled(false);\n pozo = (jugadorPartida.getPartida().getValorApuesta() * 3);\n \n \n \n \n }", "@OnClick (R.id.create_course_btn)\n public void createCourse()\n {\n\n CourseData courseData = new CourseData();\n courseData.CreateCourse( getView() ,UserData.user.getId() ,courseName.getText().toString() , placeName.getText().toString() , instructor.getText().toString() , Integer.parseInt(price.getText().toString()), date.getText().toString() , descreption.getText().toString() ,location.getText().toString() , subField.getSelectedItem().toString() , field.getSelectedItem().toString());\n }", "public void crear() {\n con = new Conexion();\n con.setInsertar(\"insert into lenguajes_programacion (nombre, fecha_creacion, estado) values ('\"+this.getNombre()+\"', '\"+this.getFecha_creacion()+\"', 'activo')\");\n }", "@Override\n\tpublic void createCpteCourant(CompteCourant cpt) {\n\t\t\n\t}", "private void setupCreateOffering() {\n\t\tmakeButton(\"Create Course Offering\", (ActionEvent e) -> {\n\t\t\ttry {\n\t\t\t\tint row = table.getSelectedRow();\n\n\t\t\t\tif (row < 0) {\n\t\t\t\t\tJOptionPane.showMessageDialog(getRootPane(), \"Please select a course\", \"Error\",\n\t\t\t\t\t\t\tJOptionPane.OK_OPTION);\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\tString[] inputs = getInputs(new String[] { \"Section Number:\", \"Section Capacity:\" });\n\n\t\t\t\tif (inputs == null)\n\t\t\t\t\treturn;\n\n\t\t\t\tint courseId = adCon.getCourseIdFromRow(row);\n\t\t\t\tint num = Integer.parseInt(inputs[0]);\n\t\t\t\tint cap = Integer.parseInt(inputs[1]);\n\t\t\t\tadCon.addOffering(courseId, num, cap);\n\t\t\t\tupdateTextArea(adCon.searchCourseById(courseId));\n\n\t\t\t} catch (NumberFormatException ex) {\n\t\t\t\tJOptionPane.showMessageDialog(getRootPane(), \"Course number must be a number\", \"Error\",\n\t\t\t\t\t\tJOptionPane.OK_OPTION);\n\t\t\t}\n\t\t});\n\t}", "public static Result startNewForm() {\r\n\t\tString formName = ChangeOrderForm.NAME;\r\n\t\tDecision firstDecision = CMSGuidedFormFill.startNewForm(formName,\r\n\t\t\t\tCMSSession.getEmployeeName(), CMSSession.getEmployeeId());\r\n\t\treturn ok(backdrop.render(firstDecision));\r\n\t}", "public Crear() {\n initComponents();\n \n \n this.getContentPane().setBackground(Color.WHITE);\n txtaPR.setEnabled(false); \n txtFNocmbre.requestFocus();\n \n \n }", "public TelaCadastrarProduto() {\n initComponents();\n entidade = new Produto();\n setRepositorio(RepositorioBuilder.getProdutoRepositorio());\n grupo.add(jRadioButton1);\n grupo.add(jRadioButton2);\n }", "@Override\n\tpublic void createGerant(Gerant g) {\n\t\t\n\t}", "public void crearReaTrans(){\n\t // could have been factorized with the precedent view\n\t\tgetContentPane().setLayout(new BorderLayout());\n\t \n\t\tp1 = new JPanel();\n\t p2 = new JPanel();\n\t \n\t String[] a = {\"Regresar\",\"Continuar\"}, c = {\"Cuenta de origen\",\"Monto\",\"Cuenta de destino\"};\n\t \n\t p1.setLayout(new GridLayout(1,2));\n\t p2.setLayout(new GridLayout(1,3));\n\t \n\t for (int x=0; x<2; x++) {\n\t b = new JButton(a[x]);\n\t botones.add(b);\n\t }\n\t for (JButton x:botones) {\n\t x.setPreferredSize(new Dimension(110,110));\n\t p1.add(x);\n\t }\n // Add buttons panel \n\t add(p1, BorderLayout.SOUTH);\n\t \n\t for (int x=0; x<3; x++){\n\t tf=new JTextField(c[x]);\n\t tf.setPreferredSize(new Dimension(10,100));\n textos.add(tf);\n\t p2.add(tf);\n\t }\n // Add textfields panel\n\t add(p2, BorderLayout.NORTH);\n\t}", "Compleja createCompleja();", "public newRelationship() {\n initComponents();\n }", "void createGebruikersBeheerPanel() {\n frame.add(gebruikersBeheerView.createGebruikersBeheerPanel());\n frame.setTitle(gebruikersBeheerModel.getTitle());\n }", "private void generaVentana()\n {\n // Crea la ventana\n ventana = new JFrame(\"SpaceInvaders\");\n panel = (JPanel) ventana.getContentPane();\n \n // Establece el tamaño del panel\n panel.setPreferredSize(new Dimension(anchoVentana, altoVentana));\n\n // Establece el layout por defecto\n panel.setLayout(null);\n\n // Establece el fondo para el panel\n panel.setBackground(Color.black);\n\n // Establece el tamaño de Canvas y lo añade a la ventana\n setBounds(0,0,altoVentana,anchoVentana);\n panel.add(this);\n\n // Establece que el programa se cerrará cuando la ventana se cierre\n ventana.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n // Establece el tamaño de la ventana\n ventana.pack();\n\n // La ventana no se cambia de tamaño\n ventana.setResizable(false);\n\n // Centra la ventana en la pantalla\n ventana.setLocationRelativeTo(null);\n\n // Muestra la ventana\n ventana.setVisible(true);\n\n // Mantine el foco en la ventana\n requestFocusInWindow();\n }", "public TelaAgendamento() {\n initComponents();\n }", "public void createPartyPanel()\n {\n setPartyLabel(game.getPartyPane(), 0);\n //setPartyLabel(\"EMPTY\", 1);\n //setPartyLabel(\"EMPTY\", 2);\n //setPartyLabel(\"EMPTY\", 3);\n reloadPartyPanel();\n }", "protected void nuevo(){\n wp = new frmEspacioTrabajo();\n System.runFinalization();\n inicializar();\n }", "public void makeNew() {\n\t\towner.switchMode(WindowMode.ITEMCREATE);\n\t}", "public PrimerNivel() {\n initComponents();\n }", "private void crearComponentes(){\n\tjdpFondo.setSize(942,592);\n\t\n\tjtpcContenedor.setSize(230,592);\n\t\n\tjtpPanel.setTitle(\"Opciones\");\n\tjtpPanel2.setTitle(\"Volver\");\n \n jpnlPanelPrincilal.setBounds(240, 10 ,685, 540);\n \n }", "@GetMapping(value = \"/create\") // https://localhost:8080/etiquetasTipoDisenio/create\n\tpublic String create(Model model) {\n\t\tetiquetasTipoDisenio etiquetasTipoDisenio = new etiquetasTipoDisenio();\n\t\tmodel.addAttribute(\"title\", \"Registro de una nuev entrega\");\n\t\tmodel.addAttribute(\"etiquetasTipoDisenio\", etiquetasTipoDisenio); // similar al ViewBag\n\t\treturn \"etiquetasTipoDisenio/form\"; // la ubicacion de la vista\n\t}", "public CrearProductos() {\n initComponents();\n }", "public TelaCadasroProjeto() {\n initComponents();\n }", "public String actionCreateNew() {\r\n \t\tsetBook(new Book());\r\n \t\treturn \"new\";\r\n \t}", "public PlanoSaude create(long plano_id);", "public DCrearDisco( InterfazDiscotienda id ){\r\n super( id, true );\r\n principal = id;\r\n\r\n panelDatos = new PanelCrearDisco( );\r\n panelBotones = new PanelBotonesDisco( this );\r\n\r\n getContentPane( ).add( panelDatos, BorderLayout.CENTER );\r\n getContentPane( ).add( panelBotones, BorderLayout.SOUTH );\r\n\r\n setTitle( \"Crear Disco\" );\r\n pack();\r\n }", "public CatProveedores() {\n initComponents();\n cargartabla();\n }", "@Override\n\tpublic void createForm(ERForm form) {\n\t\t\tString sql = \"insert into project1.reimbursementInfo (userName, fullName, thedate, eventstartdate, thelocation, description, thecost, gradingformat, passingpercentage, eventtype, filename,status,reason) values (?,?,?,?,?,?,?,?,?,?,?,?,?);\";\n\t\t\ttry {PreparedStatement stmt = conn.prepareCall(sql);\n\t\t\t//RID should auto increment, so this isnt necessary\n\t\t\t\n\t\t\tstmt.setString(1, form.getUserName());\n\t\t\tstmt.setString(2, form.getFullName());\n\t\t\tstmt.setDate(3, Date.valueOf(form.getTheDate()));\n\t\t\tstmt.setDate(4, Date.valueOf(form.getEventStartDate()));\n\t\t\tstmt.setString(5, form.getTheLocation());\n\t\t\tstmt.setString(6, form.getDescription());\n\t\t\tstmt.setDouble(7, form.getTheCost());\n\t\t\tstmt.setString(8, form.getGradingFormat());\n\t\t\tstmt.setString(9, form.getPassingPercentage());\n\t\t\tstmt.setString(10, form.getEventType());\n\t\t\tstmt.setString(11, form.getFileName());\n\t\t\tstmt.setString(12, \"pending\");\n\t\t\tstmt.setString(13, \"\");\n\t\t\tstmt.executeUpdate();\n\t\t\t\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public NewJFrame() {\n initComponents();\n \n \n //combo box\n comboCompet.addItem(\"Séléction officielle\");\n comboCompet.addItem(\"Un certain regard\");\n comboCompet.addItem(\"Cannes Courts métrages\");\n comboCompet.addItem(\"Hors compétitions\");\n comboCompet.addItem(\"Cannes Classics\");\n \n \n //redimension\n this.setResizable(false);\n \n planning = new Planning();\n \n \n }", "public Project_Create() {\n initComponents();\n }", "public FormFuncionario(FormMenu telaPai) {\n initComponents();\n this.telaPai = telaPai;\n\n txtNome.setText(\"Nome\");\n lblNome.setVisible(false);\n txtSobrenome.setText(\"Sobrenome\");\n lblSobrenome.setVisible(false);\n campoMensagem.setVisible(false);\n lblMensagem.setVisible(false);\n\n }", "public pInsertar() {\n initComponents();\n }", "public GenerateNodesDialog(GUI p){\n\t\tsuper(p, \"Create new Nodes\", true);\n\t\tGuiHelper.setWindowIcon(this);\n\t\tcancel.addActionListener(this);\n\t\tok.addActionListener(this);\n\t\t\n\t\tFont f = distributionModelComboBox.getFont().deriveFont(Font.PLAIN);\n\t\tdistributionModelComboBox.setFont(f);\n\t\tnodeTypeComboBox.setFont(f);\n\t\tconnectivityModelComboBox.setFont(f);\n\t\tinterferenceModelComboBox.setFont(f);\n\t\tmobilityModelComboBox.setFont(f);\n\t\treliabilityModelComboBox.setFont(f);\n\n\t\t// Detect ESCAPE button\n\t\tKeyboardFocusManager focusManager = KeyboardFocusManager.getCurrentKeyboardFocusManager();\n\t\tfocusManager.addKeyEventPostProcessor(new KeyEventPostProcessor() {\n\t\t\tpublic boolean postProcessKeyEvent(KeyEvent e) {\n\t\t\t\tif(!e.isConsumed() && e.getID() == KeyEvent.KEY_PRESSED && e.getKeyCode() == KeyEvent.VK_ESCAPE) {\n\t\t\t\t\tGenerateNodesDialog.this.setVisible(false);\n\t\t\t\t}\n\t\t\t\treturn false;\n\t\t\t}\n\t\t});\n\t\t\n\t\tthis.setLocationRelativeTo(p);\n\t\tthis.parent = p;\n\t}", "public void crearPersona(){\r\n persona = new Persona();\r\n persona.setNombre(\"Jose\");\r\n persona.setCedula(12345678);\r\n }", "public VistaCrearPedidoAbonado() {\n initComponents();\n errorLabel.setVisible(false);\n controlador = new CtrlVistaCrearPedidoAbonado(this);\n }", "public MostraVenta(String idtrasp, Object[][] clienteM1, Object[][] vendedorM1, String idmarc, String responsable,ListaTraspaso panel)\n{\n this.padre = panel;\n this.clienteM = clienteM1;\n this.vendedorM = vendedorM1;\n this.idtraspaso= idtrasp;\n this.idmarca=idmarc;\n//this.tipoenvioM = new String[]{\"INGRESO\", \"TRASPASO\"};\n String tituloTabla =\"Detalle Venta\";\n // padre=panel;\n String nombreBoton1 = \"Registrar\";\n String nombreBoton2 = \"Cancelar\";\n // String nombreBoton3 = \"Eliminar Empresa\";\n\n setId(\"win-NuevaEmpresaForm1\");\n setTitle(tituloTabla);\n setWidth(400);\n setMinWidth(ANCHO);\n setHeight(250);\n setLayout(new FitLayout());\n setPaddings(WINDOW_PADDING);\n setButtonAlign(Position.CENTER);\n setCloseAction(Window.CLOSE);\n setPlain(true);\n\n but_aceptar = new Button(nombreBoton1);\n but_cancelar = new Button(nombreBoton2);\n // addButton(but_aceptarv);\n addButton(but_aceptar);\n addButton(but_cancelar);\n\n formPanelCliente = new FormPanel();\n formPanelCliente.setBaseCls(\"x-plain\");\n //formPanelCliente.setLabelWidth(130);\n formPanelCliente.setUrl(\"save-form.php\");\n formPanelCliente.setWidth(ANCHO);\n formPanelCliente.setHeight(ALTO);\n formPanelCliente.setLabelAlign(Position.LEFT);\n\n formPanelCliente.setAutoWidth(true);\n\n\ndat_fecha1 = new DateField(\"Fecha\", \"d-m-Y\");\n fechahoy = new Date();\n dat_fecha1.setValue(fechahoy);\n dat_fecha1.setReadOnly(true);\n\ncom_vendedor = new ComboBox(\"Vendedor al que enviamos\", \"idempleado\");\ncom_cliente = new ComboBox(\"Clientes\", \"idcliente\");\n//com_tipo = new ComboBox(\"Tipo Envio\", \"idtipo\");\n initValues1();\n\n\n\n formPanelCliente.add(dat_fecha1);\n// formPanelCliente.add(com_tipo);\n// formPanelCliente.add(tex_nombreC);\n// formPanelCliente.add(tex_codigoBarra);\n // formPanelCliente.add(tex_codigoC);\nformPanelCliente.add(com_vendedor);\n formPanelCliente.add(com_cliente);\n add(formPanelCliente);\nanadirListenersTexfield();\n addListeners();\n\n }", "@Override\r\n\t\tpublic void onClick(ClickEvent event) {\n\t\t\tdropdown.clear();\r\n\t\t\tRootPanel.get(\"details\").clear();\r\n\t\t\tSpielplanErstellenForm erstellen = new SpielplanErstellenForm();\r\n\r\n\t\t\tRootPanel.get(\"details\").add(erstellen);\r\n\t\t}", "public PanelPermintaan(Pegawai pg) {\n initComponents();\n this.pg = pg;\n setTabel();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n Title = new javax.swing.JLabel();\n NAME = new javax.swing.JLabel();\n txt_name = new javax.swing.JTextField();\n PROVIDER = new javax.swing.JLabel();\n ComboBox_provider = new javax.swing.JComboBox<>();\n CATEGORY = new javax.swing.JLabel();\n ComboBox_category = new javax.swing.JComboBox<>();\n Trademark = new javax.swing.JLabel();\n ComboBox_trademark = new javax.swing.JComboBox<>();\n COLOR = new javax.swing.JLabel();\n ComboBox_color = new javax.swing.JComboBox<>();\n SIZE = new javax.swing.JLabel();\n ComboBox_size = new javax.swing.JComboBox<>();\n MATERIAL = new javax.swing.JLabel();\n ComboBox_material = new javax.swing.JComboBox<>();\n PRICE = new javax.swing.JLabel();\n txt_price = new javax.swing.JTextField();\n SAVE = new javax.swing.JButton();\n CANCEL = new javax.swing.JButton();\n Background = new javax.swing.JLabel();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n getContentPane().setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n Title.setFont(new java.awt.Font(\"Dialog\", 1, 24)); // NOI18N\n Title.setForeground(new java.awt.Color(255, 255, 255));\n Title.setText(\"NEW PRODUCT\");\n getContentPane().add(Title, new org.netbeans.lib.awtextra.AbsoluteConstraints(200, 33, -1, -1));\n\n NAME.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n NAME.setForeground(new java.awt.Color(255, 255, 255));\n NAME.setText(\"Name\");\n getContentPane().add(NAME, new org.netbeans.lib.awtextra.AbsoluteConstraints(40, 150, 70, 30));\n\n txt_name.setBackground(new java.awt.Color(51, 51, 51));\n txt_name.setForeground(new java.awt.Color(255, 255, 255));\n getContentPane().add(txt_name, new org.netbeans.lib.awtextra.AbsoluteConstraints(120, 150, 100, 30));\n\n PROVIDER.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n PROVIDER.setForeground(new java.awt.Color(255, 255, 255));\n PROVIDER.setText(\"Provider\");\n getContentPane().add(PROVIDER, new org.netbeans.lib.awtextra.AbsoluteConstraints(30, 200, 70, 30));\n\n ComboBox_provider.setBackground(new java.awt.Color(51, 51, 51));\n ComboBox_provider.setForeground(new java.awt.Color(255, 255, 255));\n ComboBox_provider.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"Item 1\", \"Item 2\", \"Item 3\", \"Item 4\" }));\n getContentPane().add(ComboBox_provider, new org.netbeans.lib.awtextra.AbsoluteConstraints(120, 200, 100, 30));\n\n CATEGORY.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n CATEGORY.setForeground(new java.awt.Color(255, 255, 255));\n CATEGORY.setText(\"Category\");\n getContentPane().add(CATEGORY, new org.netbeans.lib.awtextra.AbsoluteConstraints(30, 250, 70, 30));\n\n ComboBox_category.setBackground(new java.awt.Color(51, 51, 51));\n ComboBox_category.setForeground(new java.awt.Color(255, 255, 255));\n ComboBox_category.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"Item 1\", \"Item 2\", \"Item 3\", \"Item 4\" }));\n getContentPane().add(ComboBox_category, new org.netbeans.lib.awtextra.AbsoluteConstraints(120, 250, 100, 30));\n\n Trademark.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n Trademark.setForeground(new java.awt.Color(255, 255, 255));\n Trademark.setText(\"Trademark\");\n getContentPane().add(Trademark, new org.netbeans.lib.awtextra.AbsoluteConstraints(30, 300, 70, 30));\n\n ComboBox_trademark.setBackground(new java.awt.Color(51, 51, 51));\n ComboBox_trademark.setForeground(new java.awt.Color(255, 255, 255));\n ComboBox_trademark.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"Item 1\", \"Item 2\", \"Item 3\", \"Item 4\" }));\n ComboBox_trademark.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n ComboBox_trademarkActionPerformed(evt);\n }\n });\n getContentPane().add(ComboBox_trademark, new org.netbeans.lib.awtextra.AbsoluteConstraints(120, 300, 100, 30));\n\n COLOR.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n COLOR.setForeground(new java.awt.Color(255, 255, 255));\n COLOR.setText(\"Color\");\n getContentPane().add(COLOR, new org.netbeans.lib.awtextra.AbsoluteConstraints(300, 150, 70, 30));\n\n ComboBox_color.setBackground(new java.awt.Color(51, 51, 51));\n ComboBox_color.setForeground(new java.awt.Color(255, 255, 255));\n ComboBox_color.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"Item 1\", \"Item 2\", \"Item 3\", \"Item 4\" }));\n getContentPane().add(ComboBox_color, new org.netbeans.lib.awtextra.AbsoluteConstraints(400, 150, 100, 30));\n\n SIZE.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n SIZE.setForeground(new java.awt.Color(255, 255, 255));\n SIZE.setText(\"Size\");\n getContentPane().add(SIZE, new org.netbeans.lib.awtextra.AbsoluteConstraints(300, 200, 70, 30));\n\n ComboBox_size.setBackground(new java.awt.Color(51, 51, 51));\n ComboBox_size.setForeground(new java.awt.Color(255, 255, 255));\n ComboBox_size.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"Item 1\", \"Item 2\", \"Item 3\", \"Item 4\" }));\n getContentPane().add(ComboBox_size, new org.netbeans.lib.awtextra.AbsoluteConstraints(400, 200, 100, 30));\n\n MATERIAL.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n MATERIAL.setForeground(new java.awt.Color(255, 255, 255));\n MATERIAL.setText(\"Material\");\n getContentPane().add(MATERIAL, new org.netbeans.lib.awtextra.AbsoluteConstraints(300, 250, 70, 30));\n\n ComboBox_material.setBackground(new java.awt.Color(51, 51, 51));\n ComboBox_material.setForeground(new java.awt.Color(255, 255, 255));\n ComboBox_material.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"Item 1\", \"Item 2\", \"Item 3\", \"Item 4\" }));\n getContentPane().add(ComboBox_material, new org.netbeans.lib.awtextra.AbsoluteConstraints(400, 250, 100, 30));\n\n PRICE.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n PRICE.setForeground(new java.awt.Color(255, 255, 255));\n PRICE.setText(\"Price\");\n getContentPane().add(PRICE, new org.netbeans.lib.awtextra.AbsoluteConstraints(300, 300, 70, 30));\n\n txt_price.setBackground(new java.awt.Color(51, 51, 51));\n txt_price.setForeground(new java.awt.Color(255, 255, 255));\n txt_price.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n txt_priceActionPerformed(evt);\n }\n });\n getContentPane().add(txt_price, new org.netbeans.lib.awtextra.AbsoluteConstraints(400, 300, 100, 30));\n\n SAVE.setBackground(new java.awt.Color(25, 25, 25));\n SAVE.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/img/icono_guardar-A.png\"))); // NOI18N\n SAVE.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));\n SAVE.setPressedIcon(new javax.swing.ImageIcon(getClass().getResource(\"/img/icono_guardar-B.png\"))); // NOI18N\n SAVE.setRolloverIcon(new javax.swing.ImageIcon(getClass().getResource(\"/img/icono_guardar.png\"))); // NOI18N\n SAVE.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n SAVEActionPerformed(evt);\n }\n });\n getContentPane().add(SAVE, new org.netbeans.lib.awtextra.AbsoluteConstraints(210, 480, 50, 50));\n\n CANCEL.setBackground(new java.awt.Color(25, 25, 25));\n CANCEL.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/img/icono_no-A.png\"))); // NOI18N\n CANCEL.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));\n CANCEL.setPressedIcon(new javax.swing.ImageIcon(getClass().getResource(\"/img/icono_no-B.png\"))); // NOI18N\n CANCEL.setRolloverIcon(new javax.swing.ImageIcon(getClass().getResource(\"/img/icono_no.png\"))); // NOI18N\n CANCEL.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n CANCELActionPerformed(evt);\n }\n });\n getContentPane().add(CANCEL, new org.netbeans.lib.awtextra.AbsoluteConstraints(280, 480, 50, 50));\n\n Background.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/img/fondo_windows2.jpg\"))); // NOI18N\n getContentPane().add(Background, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, -1, -1));\n\n pack();\n }", "@FXML\n\tpublic void createProduct(ActionEvent event) {\n\t\tif (!txtProductName.getText().equals(\"\") && !txtProductPrice.getText().equals(\"\")\n\t\t\t\t&& ComboSize.getValue() != null && ComboType.getValue() != null && selectedIngredients.size() != 0) {\n\n\t\t\tProduct objProduct = new Product(txtProductName.getText(), ComboSize.getValue(), txtProductPrice.getText(),\n\t\t\t\t\tComboType.getValue(), selectedIngredients);\n\n\t\t\ttry {\n\t\t\t\trestaurant.addProduct(objProduct, empleadoUsername);\n\n\t\t\t\ttxtProductName.setText(null);\n\t\t\t\ttxtProductPrice.setText(null);\n\t\t\t\tComboSize.setValue(null);\n\t\t\t\tComboType.setValue(null);\n\t\t\t\tChoiceIngredients.setValue(null);\n\t\t\t\tselectedIngredients.clear();\n\t\t\t\tproductOptions.clear();\n\t\t\t\tproductOptions.addAll(restaurant.getStringReferencedIdsProducts());\n\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\n\t\t} else {\n\t\t\tDialog<String> dialog = createDialog();\n\t\t\tdialog.setContentText(\"Todos los campos deben de ser llenados\");\n\t\t\tdialog.setTitle(\"Error al guardar los datos\");\n\t\t\tdialog.show();\n\t\t}\n\n\t}", "public void crear(Tarea t) {\n t.saveIt();\n }", "@Override\n public void Create() {\n\n initView();\n }", "OperacionColeccion createOperacionColeccion();", "public FormGestionarProducto(java.awt.Frame parent) {\n super(parent, true);\n initComponents();\n crearTabla();\n }", "private static void createParty() {\n\n\n JFrame fenetre = new JFrame(\"Little Thief Auto\");\n\n Route route = new Route();\n User user = new User();\n\n Affichage affichage = new Affichage(fenetre, user, route);\n Controleur ctrl = new Controleur(affichage, user, route);\n //ctrl.setAffichage(affichage);\n //ctrl.setCmds();\n //Deplace deplace = new Deplace(user, route, affichage);\n\n //deplace.start();//Voir qui le lance, en fonction de si il y a une fenetre de demarage ou pas\n Data.initGame();\n\n //fenetre.add(affichage);\n //fenetre.add(affichage.outScreen);\n affichage.switchInteface(false);\n\n //ctrl.startPartie(); //Pas d ecran dacceuil\n /*\n\n Voler fly = new Voler();\n Etat modele = new Etat(fly);\n Controleur ctrl = new Controleur(modele);\n Affichage affichage = new Affichage(ctrl, modele);\n VueBird bird = new VueBird(affichage);\n\n Instant start = Instant.now();\n affichage.setTimer(start);\n\n ctrl.setVue(affichage);\n Avancer avance = new Avancer(affichage, modele.getParcours());\n\n ctrl.enableKeyPad();\n enableReload(fenetre, affichage);\n\n modele.getParcours().setTime(start);\n fly.start();\n avance.start();\n\n\n\n fenetre.add(affichage);\n*/\n\n\n\n\n fenetre.pack();\n fenetre.setVisible(true);\n fenetre.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n }", "public FormInserir() {\n initComponents();\n }", "public void clickCreate() {\n\t\tbtnCreate.click();\n\t}", "private static void crearPedidoGenerandoOPP() throws RemoteException {\n\n\t\tlong[] idVariedades = { 25 };\n\t\tint[] cantidades = { 7 };\n\t\tPedidoClienteDTO pedido = crearPedido(\"20362134596\", \"test 2\", idVariedades, cantidades);\n\n\t\tpedido = PedidoController.getInstance().crearPedido(pedido).toDTO();\n\n\t\tPedidoController.getInstance().cambiarEstadoPedidoCliente(pedido.getNroPedido(), EstadoPedidoCliente.ACEPTADO);\n\t}", "SpaceInvaderTest_VaisseauImmobile_DeplacerVaisseauVersLaGauche createSpaceInvaderTest_VaisseauImmobile_DeplacerVaisseauVersLaGauche();", "public void registrarMateria() {\n materia.setIdDepartamento(departamento);\n ejbFacade.create(materia);\n RequestContext requestContext = RequestContext.getCurrentInstance();\n requestContext.execute(\"PF('MateriaCreateDialog').hide()\");\n items = ejbFacade.findAll();\n departamento = new Departamento();\n materia = new Materia();\n\n FacesMessage msg = new FacesMessage(FacesMessage.SEVERITY_INFO, \"Información\", \"La materia se registró con éxito\");\n FacesContext.getCurrentInstance().addMessage(null, msg);\n requestContext.update(\"msg\");//Actualiza la etiqueta growl para que el mensaje pueda ser mostrado\n\n requestContext.update(\"MateriaListForm\");\n requestContext.update(\"MateriaCreateForm\");\n }" ]
[ "0.5959671", "0.59253734", "0.59168774", "0.5880731", "0.58331263", "0.5759851", "0.57505417", "0.57053226", "0.565355", "0.5631991", "0.561995", "0.5589389", "0.5578636", "0.55759853", "0.5558335", "0.5544538", "0.55390996", "0.55372757", "0.5498935", "0.54902565", "0.54573596", "0.5455349", "0.5455133", "0.5435344", "0.5431901", "0.5429431", "0.5424956", "0.5419246", "0.5411547", "0.54101586", "0.54013324", "0.5398546", "0.53837", "0.5380098", "0.53568953", "0.53562796", "0.53537583", "0.5345737", "0.5337546", "0.53355443", "0.53155303", "0.531503", "0.52962744", "0.5280303", "0.5277971", "0.527061", "0.5269749", "0.525077", "0.52465284", "0.5242179", "0.52402675", "0.52362365", "0.5233743", "0.523171", "0.5228211", "0.5225337", "0.5213143", "0.52129734", "0.52062905", "0.5194951", "0.51948404", "0.5188373", "0.5186458", "0.5186446", "0.51772493", "0.5174764", "0.517191", "0.5169874", "0.516794", "0.51661766", "0.51586145", "0.51554847", "0.5150838", "0.51507616", "0.5150695", "0.51504594", "0.5146513", "0.5128833", "0.5124947", "0.5122805", "0.5120988", "0.511517", "0.51055044", "0.5103714", "0.50946426", "0.50874174", "0.5084155", "0.507904", "0.5077345", "0.5075584", "0.507435", "0.50682735", "0.50672907", "0.5067144", "0.50628406", "0.5062296", "0.5061901", "0.5060678", "0.5054635", "0.50543183" ]
0.58316976
5
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor.
@SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { painel_fundo = new javax.swing.JPanel(); jDesktopPane1 = new javax.swing.JDesktopPane(); jPanel1 = new javax.swing.JPanel(); jScrollPane1 = new javax.swing.JScrollPane(); jTVeiculos = new javax.swing.JTable(); lbl_txt1 = new javax.swing.JLabel(); jSeparator2 = new javax.swing.JSeparator(); jLabel1 = new javax.swing.JLabel(); jLabel2 = new javax.swing.JLabel(); jLabel3 = new javax.swing.JLabel(); jLabel4 = new javax.swing.JLabel(); jLabel5 = new javax.swing.JLabel(); jLabel6 = new javax.swing.JLabel(); alt_chassi = new javax.swing.JTextField(); alt_modelo = new javax.swing.JTextField(); alt_fabricante = new javax.swing.JTextField(); alt_cor = new javax.swing.JTextField(); alt_ano = new javax.swing.JTextField(); alt_preco = new javax.swing.JTextField(); btn_alt = new javax.swing.JButton(); btn_buscar = new javax.swing.JButton(); txt_busca = new javax.swing.JTextField(); btn_atualizar = new javax.swing.JButton(); jSeparator4 = new javax.swing.JSeparator(); jSeparator5 = new javax.swing.JSeparator(); label_ac = new javax.swing.JLabel(); barra_menug = new javax.swing.JMenuBar(); menu_gerente = new javax.swing.JMenu(); item_alterar = new javax.swing.JMenuItem(); item_comissoes = new javax.swing.JMenuItem(); item_sair = new javax.swing.JMenuItem(); menu_cadastrar = new javax.swing.JMenu(); item_funcionario = new javax.swing.JMenuItem(); item_promocao = new javax.swing.JMenuItem(); item_veiculo = new javax.swing.JMenuItem(); item_gerar = new javax.swing.JMenu(); jMenuItem6 = new javax.swing.JMenuItem(); menu_sobre = new javax.swing.JMenu(); setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); painel_fundo.setBackground(new java.awt.Color(255, 255, 255)); painel_fundo.setBorder(new javax.swing.border.LineBorder(new java.awt.Color(0, 0, 0), 5, true)); painel_fundo.setForeground(new java.awt.Color(0, 0, 0)); jDesktopPane1.setBackground(new java.awt.Color(255, 255, 255)); jDesktopPane1.setDebugGraphicsOptions(javax.swing.DebugGraphics.NONE_OPTION); jDesktopPane1.addAncestorListener(new javax.swing.event.AncestorListener() { public void ancestorMoved(javax.swing.event.AncestorEvent evt) { } public void ancestorAdded(javax.swing.event.AncestorEvent evt) { jDesktopPane1AncestorAdded(evt); } public void ancestorRemoved(javax.swing.event.AncestorEvent evt) { } }); jPanel1.setBackground(new java.awt.Color(204, 204, 204)); jPanel1.setLayout(null); jTVeiculos.setBorder(new javax.swing.border.LineBorder(new java.awt.Color(0, 0, 0), 1, true)); jTVeiculos.setModel(new javax.swing.table.DefaultTableModel( new Object [][] { }, new String [] { "ID", "MODELO", "FABRICANTE", "COR", "ANO", "PREÇO", "CHASSI" } ) { boolean[] canEdit = new boolean [] { false, false, false, false, false, false, false }; public boolean isCellEditable(int rowIndex, int columnIndex) { return canEdit [columnIndex]; } }); jTVeiculos.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { jTVeiculosMouseClicked(evt); } }); jTVeiculos.addKeyListener(new java.awt.event.KeyAdapter() { public void keyReleased(java.awt.event.KeyEvent evt) { jTVeiculosKeyReleased(evt); } }); jScrollPane1.setViewportView(jTVeiculos); jPanel1.add(jScrollPane1); jScrollPane1.setBounds(0, 30, 630, 160); lbl_txt1.setFont(new java.awt.Font("Arial", 0, 14)); // NOI18N lbl_txt1.setForeground(new java.awt.Color(0, 0, 0)); lbl_txt1.setText("Todos os nossos veiculos"); jPanel1.add(lbl_txt1); lbl_txt1.setBounds(230, 0, 170, 20); jSeparator2.setBackground(new java.awt.Color(0, 0, 0)); jPanel1.add(jSeparator2); jSeparator2.setBounds(0, 200, 630, 2); jLabel1.setText("Chassi :"); jPanel1.add(jLabel1); jLabel1.setBounds(420, 250, 60, 20); jLabel2.setText("Modelo :"); jPanel1.add(jLabel2); jLabel2.setBounds(30, 210, 47, 20); jLabel3.setText("Fabricante :"); jPanel1.add(jLabel3); jLabel3.setBounds(220, 210, 70, 20); jLabel4.setText("Cor :"); jPanel1.add(jLabel4); jLabel4.setBounds(440, 210, 41, 20); jLabel5.setText("Ano :"); jPanel1.add(jLabel5); jLabel5.setBounds(50, 250, 41, 20); jLabel6.setText("Preço :"); jPanel1.add(jLabel6); jLabel6.setBounds(240, 250, 50, 20); jPanel1.add(alt_chassi); alt_chassi.setBounds(480, 250, 120, 24); jPanel1.add(alt_modelo); alt_modelo.setBounds(90, 210, 120, 24); jPanel1.add(alt_fabricante); alt_fabricante.setBounds(290, 210, 120, 24); jPanel1.add(alt_cor); alt_cor.setBounds(480, 210, 120, 24); jPanel1.add(alt_ano); alt_ano.setBounds(90, 250, 120, 24); jPanel1.add(alt_preco); alt_preco.setBounds(290, 250, 120, 24); btn_alt.setIcon(new javax.swing.ImageIcon(getClass().getResource("/IMG/page_edit.png"))); // NOI18N btn_alt.setText("ALTERAR DADOS"); btn_alt.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { btn_altActionPerformed(evt); } }); jPanel1.add(btn_alt); btn_alt.setBounds(20, 280, 160, 40); btn_buscar.setIcon(new javax.swing.ImageIcon(getClass().getResource("/IMG/zoom.png"))); // NOI18N btn_buscar.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { btn_buscarActionPerformed(evt); } }); jPanel1.add(btn_buscar); btn_buscar.setBounds(110, 0, 46, 20); txt_busca.setFont(new java.awt.Font("Arial", 0, 10)); // NOI18N txt_busca.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { txt_buscaActionPerformed(evt); } }); jPanel1.add(txt_busca); txt_busca.setBounds(0, 0, 110, 20); btn_atualizar.setIcon(new javax.swing.ImageIcon(getClass().getResource("/IMG/arrow_refresh.png"))); // NOI18N btn_atualizar.setText("ATUALIZAR"); btn_atualizar.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { btn_atualizarActionPerformed(evt); } }); jPanel1.add(btn_atualizar); btn_atualizar.setBounds(500, 0, 120, 20); jSeparator4.setBackground(new java.awt.Color(0, 0, 0)); jPanel1.add(jSeparator4); jSeparator4.setBounds(0, 0, 630, 10); jSeparator5.setBackground(new java.awt.Color(0, 0, 0)); jPanel1.add(jSeparator5); jSeparator5.setBounds(0, 20, 630, 10); jDesktopPane1.add(jPanel1); jPanel1.setBounds(0, 50, 630, 360); label_ac.setFont(new java.awt.Font("Magneto", 1, 48)); // NOI18N label_ac.setForeground(new java.awt.Color(0, 0, 0)); label_ac.setText(" AutoCar"); jDesktopPane1.add(label_ac); label_ac.setBounds(180, 0, 260, 40); javax.swing.GroupLayout painel_fundoLayout = new javax.swing.GroupLayout(painel_fundo); painel_fundo.setLayout(painel_fundoLayout); painel_fundoLayout.setHorizontalGroup( painel_fundoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jDesktopPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 630, Short.MAX_VALUE) ); painel_fundoLayout.setVerticalGroup( painel_fundoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jDesktopPane1, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 411, Short.MAX_VALUE) ); barra_menug.setBackground(new java.awt.Color(153, 153, 153)); barra_menug.setForeground(new java.awt.Color(0, 0, 0)); menu_gerente.setIcon(new javax.swing.ImageIcon(getClass().getResource("/IMG/user_gray.png"))); // NOI18N menu_gerente.setText("Gerente"); item_alterar.setIcon(new javax.swing.ImageIcon(getClass().getResource("/IMG/car.png"))); // NOI18N item_alterar.setText("Alterar dados"); item_alterar.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { item_alterarActionPerformed(evt); } }); menu_gerente.add(item_alterar); item_comissoes.setIcon(new javax.swing.ImageIcon(getClass().getResource("/IMG/group_go.png"))); // NOI18N item_comissoes.setText("Comissões"); item_comissoes.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { item_comissoesActionPerformed(evt); } }); menu_gerente.add(item_comissoes); item_sair.setIcon(new javax.swing.ImageIcon(getClass().getResource("/IMG/door_out.png"))); // NOI18N item_sair.setText("Sair"); item_sair.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { item_sairActionPerformed(evt); } }); menu_gerente.add(item_sair); barra_menug.add(menu_gerente); menu_cadastrar.setIcon(new javax.swing.ImageIcon(getClass().getResource("/IMG/user_add.png"))); // NOI18N menu_cadastrar.setText("Cadastrar"); item_funcionario.setIcon(new javax.swing.ImageIcon(getClass().getResource("/IMG/user_add.png"))); // NOI18N item_funcionario.setText("Novo funcionário"); item_funcionario.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { item_funcionarioActionPerformed(evt); } }); menu_cadastrar.add(item_funcionario); item_promocao.setIcon(new javax.swing.ImageIcon(getClass().getResource("/IMG/add.png"))); // NOI18N item_promocao.setText("Nova Promoção"); item_promocao.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { item_promocaoActionPerformed(evt); } }); menu_cadastrar.add(item_promocao); item_veiculo.setIcon(new javax.swing.ImageIcon(getClass().getResource("/IMG/car_add.png"))); // NOI18N item_veiculo.setText("Novo veículo"); item_veiculo.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { item_veiculoActionPerformed(evt); } }); menu_cadastrar.add(item_veiculo); barra_menug.add(menu_cadastrar); item_gerar.setIcon(new javax.swing.ImageIcon(getClass().getResource("/IMG/printer.png"))); // NOI18N item_gerar.setText("Relatórios"); jMenuItem6.setIcon(new javax.swing.ImageIcon(getClass().getResource("/IMG/page_word.png"))); // NOI18N jMenuItem6.setText("Gerar relatórios"); jMenuItem6.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItem6ActionPerformed(evt); } }); item_gerar.add(jMenuItem6); barra_menug.add(item_gerar); menu_sobre.setIcon(new javax.swing.ImageIcon(getClass().getResource("/IMG/bullet_green.png"))); // NOI18N menu_sobre.setText("Status"); menu_sobre.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { menu_sobreActionPerformed(evt); } }); barra_menug.add(menu_sobre); setJMenuBar(barra_menug); javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane()); getContentPane().setLayout(layout); layout.setHorizontalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(painel_fundo, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) ); layout.setVerticalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addContainerGap() .addComponent(painel_fundo, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) ); pack(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Form() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public frmRectangulo() {\n initComponents();\n }", "public form() {\n initComponents();\n }", "public AdjointForm() {\n initComponents();\n setDefaultCloseOperation(HIDE_ON_CLOSE);\n }", "public FormListRemarking() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n \n }", "public FormPemilihan() {\n initComponents();\n }", "public GUIForm() { \n initComponents();\n }", "public FrameForm() {\n initComponents();\n }", "public TorneoForm() {\n initComponents();\n }", "public FormCompra() {\n initComponents();\n }", "public muveletek() {\n initComponents();\n }", "public Interfax_D() {\n initComponents();\n }", "public quanlixe_form() {\n initComponents();\n }", "public SettingsForm() {\n initComponents();\n }", "public RegistrationForm() {\n initComponents();\n this.setLocationRelativeTo(null);\n }", "public Soru1() {\n initComponents();\n }", "public FMainForm() {\n initComponents();\n this.setResizable(false);\n setLocationRelativeTo(null);\n }", "public soal2GUI() {\n initComponents();\n }", "public EindopdrachtGUI() {\n initComponents();\n }", "public MechanicForm() {\n initComponents();\n }", "public AddDocumentLineForm(java.awt.Frame parent) {\n super(parent);\n initComponents();\n myInit();\n }", "public BloodDonationGUI() {\n initComponents();\n }", "public quotaGUI() {\n initComponents();\n }", "public Customer_Form() {\n initComponents();\n setSize(890,740);\n \n \n }", "public PatientUI() {\n initComponents();\n }", "public myForm() {\n\t\t\tinitComponents();\n\t\t}", "public Oddeven() {\n initComponents();\n }", "public intrebarea() {\n initComponents();\n }", "public Magasin() {\n initComponents();\n }", "public RadioUI()\n {\n initComponents();\n }", "public NewCustomerGUI() {\n initComponents();\n }", "public ZobrazUdalost() {\n initComponents();\n }", "public FormUtama() {\n initComponents();\n }", "public p0() {\n initComponents();\n }", "public INFORMACION() {\n initComponents();\n this.setLocationRelativeTo(null); \n }", "public ProgramForm() {\n setLookAndFeel();\n initComponents();\n }", "public AmountReleasedCommentsForm() {\r\n initComponents();\r\n }", "public form2() {\n initComponents();\n }", "public MainForm() {\n\t\tsuper(\"Hospital\", List.IMPLICIT);\n\n\t\tstartComponents();\n\t}", "public LixeiraForm() {\n initComponents();\n setLocationRelativeTo(null);\n }", "public kunde() {\n initComponents();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setName(\"Form\"); // NOI18N\n setRequestFocusEnabled(false);\n setVerifyInputWhenFocusTarget(false);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 465, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 357, Short.MAX_VALUE)\n );\n }", "public MusteriEkle() {\n initComponents();\n }", "public frmMain() {\n initComponents();\n }", "public frmMain() {\n initComponents();\n }", "public DESHBORDPANAL() {\n initComponents();\n }", "public GUIForm() {\n initComponents();\n inputField.setText(NO_FILE_SELECTED);\n outputField.setText(NO_FILE_SELECTED);\n progressLabel.setBackground(INFO);\n progressLabel.setText(SELECT_FILE);\n }", "public frmVenda() {\n initComponents();\n }", "public Botonera() {\n initComponents();\n }", "public FrmMenu() {\n initComponents();\n }", "public OffertoryGUI() {\n initComponents();\n setTypes();\n }", "public JFFornecedores() {\n initComponents();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents()\n {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setBackground(new java.awt.Color(255, 255, 255));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 983, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 769, Short.MAX_VALUE)\n );\n\n pack();\n }", "public EnterDetailsGUI() {\n initComponents();\n }", "public vpemesanan1() {\n initComponents();\n }", "public Kost() {\n initComponents();\n }", "public FormHorarioSSE() {\n initComponents();\n }", "public UploadForm() {\n initComponents();\n }", "public frmacceso() {\n initComponents();\n }", "public HW3() {\n initComponents();\n }", "public Managing_Staff_Main_Form() {\n initComponents();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents()\n {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n getContentPane().setLayout(null);\n\n pack();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setName(\"Form\"); // NOI18N\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 300, Short.MAX_VALUE)\n );\n }", "public sinavlar2() {\n initComponents();\n }", "public P0405() {\n initComponents();\n }", "public IssueBookForm() {\n initComponents();\n }", "public MiFrame2() {\n initComponents();\n }", "public Choose1() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n\n String oldAuthor = prefs.get(\"AUTHOR\", \"\");\n if(oldAuthor != null) {\n this.authorTextField.setText(oldAuthor);\n }\n String oldBook = prefs.get(\"BOOK\", \"\");\n if(oldBook != null) {\n this.bookTextField.setText(oldBook);\n }\n String oldDisc = prefs.get(\"DISC\", \"\");\n if(oldDisc != null) {\n try {\n int oldDiscNum = Integer.parseInt(oldDisc);\n oldDiscNum++;\n this.discNumberTextField.setText(Integer.toString(oldDiscNum));\n } catch (Exception ex) {\n this.discNumberTextField.setText(oldDisc);\n }\n this.bookTextField.setText(oldBook);\n }\n\n\n }", "public GUI_StudentInfo() {\n initComponents();\n }", "public Lihat_Dokter_Keseluruhan() {\n initComponents();\n }", "public JFrmPrincipal() {\n initComponents();\n }", "public bt526() {\n initComponents();\n }", "public Pemilihan_Dokter() {\n initComponents();\n }", "public Ablak() {\n initComponents();\n }", "@Override\n\tprotected void initUi() {\n\t\t\n\t}", "@SuppressWarnings(\"unchecked\")\n\t// <editor-fold defaultstate=\"collapsed\" desc=\"Generated\n\t// Code\">//GEN-BEGIN:initComponents\n\tprivate void initComponents() {\n\n\t\tlabel1 = new java.awt.Label();\n\t\tlabel2 = new java.awt.Label();\n\t\tlabel3 = new java.awt.Label();\n\t\tlabel4 = new java.awt.Label();\n\t\tlabel5 = new java.awt.Label();\n\t\tlabel6 = new java.awt.Label();\n\t\tlabel7 = new java.awt.Label();\n\t\tlabel8 = new java.awt.Label();\n\t\tlabel9 = new java.awt.Label();\n\t\tlabel10 = new java.awt.Label();\n\t\ttextField1 = new java.awt.TextField();\n\t\ttextField2 = new java.awt.TextField();\n\t\tlabel14 = new java.awt.Label();\n\t\tlabel15 = new java.awt.Label();\n\t\tlabel16 = new java.awt.Label();\n\t\ttextField3 = new java.awt.TextField();\n\t\ttextField4 = new java.awt.TextField();\n\t\ttextField5 = new java.awt.TextField();\n\t\tlabel17 = new java.awt.Label();\n\t\tlabel18 = new java.awt.Label();\n\t\tlabel19 = new java.awt.Label();\n\t\tlabel20 = new java.awt.Label();\n\t\tlabel21 = new java.awt.Label();\n\t\tlabel22 = new java.awt.Label();\n\t\ttextField6 = new java.awt.TextField();\n\t\ttextField7 = new java.awt.TextField();\n\t\ttextField8 = new java.awt.TextField();\n\t\tlabel23 = new java.awt.Label();\n\t\ttextField9 = new java.awt.TextField();\n\t\ttextField10 = new java.awt.TextField();\n\t\ttextField11 = new java.awt.TextField();\n\t\ttextField12 = new java.awt.TextField();\n\t\tlabel24 = new java.awt.Label();\n\t\tlabel25 = new java.awt.Label();\n\t\tlabel26 = new java.awt.Label();\n\t\tlabel27 = new java.awt.Label();\n\t\tlabel28 = new java.awt.Label();\n\t\tlabel30 = new java.awt.Label();\n\t\tlabel31 = new java.awt.Label();\n\t\tlabel32 = new java.awt.Label();\n\t\tjButton1 = new javax.swing.JButton();\n\n\t\tlabel1.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel1.setText(\"It seems that some of the buttons on the ATM machine are not working!\");\n\n\t\tlabel2.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel2.setText(\"Unfortunately these numbers are exactly what Professor has to use to type in his password.\");\n\n\t\tlabel3.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel3.setText(\n\t\t\t\t\"If you want to eat tonight, you have to help him out and construct the numbers of the password with the working buttons and math operators.\");\n\n\t\tlabel4.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 14)); // NOI18N\n\t\tlabel4.setText(\"Denver's Password: 2792\");\n\n\t\tlabel5.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel5.setText(\"import java.util.Scanner;\\n\");\n\n\t\tlabel6.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel6.setText(\"public class ATM{\");\n\n\t\tlabel7.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel7.setText(\"public static void main(String[] args){\");\n\n\t\tlabel8.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel8.setText(\"System.out.print(\");\n\n\t\tlabel9.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel9.setText(\" -\");\n\n\t\tlabel10.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel10.setText(\");\");\n\n\t\ttextField1.addActionListener(new java.awt.event.ActionListener() {\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt) {\n\t\t\t\ttextField1ActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\tlabel14.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel14.setText(\"System.out.print( (\");\n\n\t\tlabel15.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel15.setText(\"System.out.print(\");\n\n\t\tlabel16.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel16.setText(\"System.out.print( ( (\");\n\n\t\tlabel17.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel17.setText(\")\");\n\n\t\tlabel18.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel18.setText(\" +\");\n\n\t\tlabel19.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel19.setText(\");\");\n\n\t\tlabel20.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel20.setText(\" /\");\n\n\t\tlabel21.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel21.setText(\" %\");\n\n\t\tlabel22.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel22.setText(\" +\");\n\n\t\tlabel23.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel23.setText(\");\");\n\n\t\tlabel24.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel24.setText(\" +\");\n\n\t\tlabel25.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel25.setText(\" /\");\n\n\t\tlabel26.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel26.setText(\" *\");\n\n\t\tlabel27.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n\t\tlabel27.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel27.setText(\")\");\n\n\t\tlabel28.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel28.setText(\")\");\n\n\t\tlabel30.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel30.setText(\"}\");\n\n\t\tlabel31.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel31.setText(\"}\");\n\n\t\tlabel32.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel32.setText(\");\");\n\n\t\tjButton1.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 14)); // NOI18N\n\t\tjButton1.setText(\"Check\");\n\t\tjButton1.addActionListener(new java.awt.event.ActionListener() {\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt) {\n\t\t\t\tjButton1ActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\tjavax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n\t\tlayout.setHorizontalGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(28).addGroup(layout\n\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING).addComponent(getDoneButton()).addComponent(jButton1)\n\t\t\t\t\t\t.addComponent(label7, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label6, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label5, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label4, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t.addComponent(label1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t\t\t.addComponent(label2, GroupLayout.PREFERRED_SIZE, 774, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t.addGap(92).addGroup(layout.createParallelGroup(Alignment.LEADING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING, false)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label15, GroupLayout.PREFERRED_SIZE, 145,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField8, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(2)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label21, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField7, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label8, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField1, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label9, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED).addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttextField2, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label31, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label14, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(37))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(174)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField5, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label18, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(7)))\n\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING, false).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField4, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label17, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label22, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField9, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(20)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label23, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label20, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField3, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(20).addComponent(label19, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(23).addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tlabel10, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label16, GroupLayout.PREFERRED_SIZE, 177,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField12, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label24, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField6, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label27, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label25, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField11, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label28, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label26, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField10, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED).addComponent(label32,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t.addComponent(label30, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addContainerGap(GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));\n\t\tlayout.setVerticalGroup(\n\t\t\t\tlayout.createParallelGroup(Alignment.LEADING).addGroup(layout.createSequentialGroup().addContainerGap()\n\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t.addComponent(label1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addComponent(label2, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t.addComponent(label3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label4, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label5, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label6, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label7, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\tlayout.createSequentialGroup().addGroup(layout.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label9,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label8,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField1,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttextField2, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label10,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(3)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(19)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField5,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label14,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label18,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label17,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField4,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1))))\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label20, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label19, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField3, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(78)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label27, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(76)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField11, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(75)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label32,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField10,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tShort.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING, false)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label15,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField8,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label21,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField7,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(27))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField9,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label22,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlayout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(3)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlabel23,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(29)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label16,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField12,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label24,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField6,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1))))))\n\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label25, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label28, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label26, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t.addGap(30)\n\t\t\t\t\t\t.addComponent(label31, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGap(25)\n\t\t\t\t\t\t.addComponent(label30, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGap(26).addComponent(jButton1).addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(getDoneButton()).addContainerGap(23, Short.MAX_VALUE)));\n\t\tthis.setLayout(layout);\n\n\t\tlabel16.getAccessibleContext().setAccessibleName(\"System.out.print( ( (\");\n\t\tlabel17.getAccessibleContext().setAccessibleName(\"\");\n\t\tlabel18.getAccessibleContext().setAccessibleName(\" +\");\n\t}", "public Pregunta23() {\n initComponents();\n }", "public FormMenuUser() {\n super(\"Form Menu User\");\n initComponents();\n }", "public AvtekOkno() {\n initComponents();\n }", "public busdet() {\n initComponents();\n }", "public ViewPrescriptionForm() {\n initComponents();\n }", "public Ventaform() {\n initComponents();\n }", "public Kuis2() {\n initComponents();\n }", "public CreateAccount_GUI() {\n initComponents();\n }", "public POS1() {\n initComponents();\n }", "public Carrera() {\n initComponents();\n }", "public EqGUI() {\n initComponents();\n }", "public JFriau() {\n initComponents();\n this.setLocationRelativeTo(null);\n this.setTitle(\"BuNus - Budaya Nusantara\");\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setBackground(new java.awt.Color(204, 204, 204));\n setMinimumSize(new java.awt.Dimension(1, 1));\n setPreferredSize(new java.awt.Dimension(760, 402));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 750, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n }", "public nokno() {\n initComponents();\n }", "public dokter() {\n initComponents();\n }", "public ConverterGUI() {\n initComponents();\n }", "public hitungan() {\n initComponents();\n }", "public Modify() {\n initComponents();\n }", "public frmAddIncidencias() {\n initComponents();\n }", "public FP_Calculator_GUI() {\n initComponents();\n \n setVisible(true);\n }" ]
[ "0.73191476", "0.72906625", "0.72906625", "0.72906625", "0.72860986", "0.7248112", "0.7213479", "0.72078276", "0.7195841", "0.71899796", "0.71840525", "0.7158498", "0.71477973", "0.7092748", "0.70800966", "0.70558053", "0.69871384", "0.69773406", "0.69548076", "0.69533914", "0.6944929", "0.6942576", "0.69355655", "0.6931378", "0.6927896", "0.69248974", "0.6924723", "0.69116884", "0.6910487", "0.6892381", "0.68921053", "0.6890637", "0.68896896", "0.68881863", "0.68826133", "0.68815064", "0.6881078", "0.68771756", "0.6875212", "0.68744373", "0.68711984", "0.6858978", "0.68558776", "0.6855172", "0.6854685", "0.685434", "0.68525875", "0.6851834", "0.6851834", "0.684266", "0.6836586", "0.6836431", "0.6828333", "0.68276715", "0.68262815", "0.6823921", "0.682295", "0.68167603", "0.68164384", "0.6809564", "0.68086857", "0.6807804", "0.6807734", "0.68067646", "0.6802192", "0.67943805", "0.67934304", "0.6791657", "0.6789546", "0.6789006", "0.67878324", "0.67877173", "0.6781847", "0.6765398", "0.6765197", "0.6764246", "0.6756036", "0.6755023", "0.6751404", "0.67508715", "0.6743043", "0.67387456", "0.6736752", "0.67356426", "0.6732893", "0.6726715", "0.6726464", "0.67196447", "0.67157453", "0.6714399", "0.67140275", "0.6708251", "0.6707117", "0.670393", "0.6700697", "0.66995865", "0.66989213", "0.6697588", "0.66939527", "0.66908985", "0.668935" ]
0.0
-1
Creates new form frm_actualizar_cuentas
public frm_actualizar_cuentas(java.awt.Frame parent, boolean modal) { super(parent, modal); initComponents(); Colaborador.mostrarCuentasModificadasxMi(jTable1, "", Util.getFechaActual()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public frmMantEmpresas() {\n initComponents();\n this.presentarDatos();\n ClaseUtil.activarComponente(jPanelDatos, false);\n ClaseUtil.activarComponente(jPanelTabla, true);\n ClaseUtil.activarComponente(jPanelAcciones, false);\n }", "public creacionempresa() {\n initComponents();\n mostrardatos();\n }", "public frmTelaVendas() {\n initComponents();\n this.carrinho = new CarrinhoDeCompras();\n listaItens.setModel(this.lista);\n }", "protected void nuevo(){\n wp = new frmEspacioTrabajo();\n System.runFinalization();\n inicializar();\n }", "public String nuevo() {\n\n\t\tLOG.info(\"Submitado formulario, accion nuevo\");\n\t\tString view = \"/alumno/form\";\n\n\t\t// las validaciones son correctas, por lo cual los datos del formulario estan en\n\t\t// el atributo alumno\n\n\t\t// TODO simular index de la bbdd\n\t\tint id = this.alumnos.size();\n\t\tthis.alumno.setId(id);\n\n\t\tLOG.debug(\"alumno: \" + this.alumno);\n\n\t\t// TODO comprobar edad y fecha\n\n\t\talumnos.add(alumno);\n\t\tview = VIEW_LISTADO;\n\t\tmockAlumno();\n\n\t\t// mensaje flash\n\t\tFacesContext facesContext = FacesContext.getCurrentInstance();\n\t\tExternalContext externalContext = facesContext.getExternalContext();\n\t\texternalContext.getFlash().put(\"alertTipo\", \"success\");\n\t\texternalContext.getFlash().put(\"alertMensaje\", \"Alumno \" + this.alumno.getNombre() + \" creado con exito\");\n\n\t\treturn view + \"?faces-redirect=true\";\n\t}", "@GetMapping(path = \"/realizar\")\n public ModelAndView getForm(){\n\n return new ModelAndView(ViewConstant.MANTCOMPRASMINO).addObject(\"compraMinorista\", new CompraMinorista());\n }", "public Gui_lectura_consumo() {\n initComponents();\n centrarform();\n consumo_capturado.setEditable(false);\n limpiarCajas();\n \n \n }", "public JFrmPagoCuotaAnulacion() {\n setTitle(\"JFrmPagoCuotaAnulacion\");\n initComponents();\n }", "public MostraVenta(String idtrasp, Object[][] clienteM1, Object[][] vendedorM1, String idmarc, String responsable,ListaTraspaso panel)\n{\n this.padre = panel;\n this.clienteM = clienteM1;\n this.vendedorM = vendedorM1;\n this.idtraspaso= idtrasp;\n this.idmarca=idmarc;\n//this.tipoenvioM = new String[]{\"INGRESO\", \"TRASPASO\"};\n String tituloTabla =\"Detalle Venta\";\n // padre=panel;\n String nombreBoton1 = \"Registrar\";\n String nombreBoton2 = \"Cancelar\";\n // String nombreBoton3 = \"Eliminar Empresa\";\n\n setId(\"win-NuevaEmpresaForm1\");\n setTitle(tituloTabla);\n setWidth(400);\n setMinWidth(ANCHO);\n setHeight(250);\n setLayout(new FitLayout());\n setPaddings(WINDOW_PADDING);\n setButtonAlign(Position.CENTER);\n setCloseAction(Window.CLOSE);\n setPlain(true);\n\n but_aceptar = new Button(nombreBoton1);\n but_cancelar = new Button(nombreBoton2);\n // addButton(but_aceptarv);\n addButton(but_aceptar);\n addButton(but_cancelar);\n\n formPanelCliente = new FormPanel();\n formPanelCliente.setBaseCls(\"x-plain\");\n //formPanelCliente.setLabelWidth(130);\n formPanelCliente.setUrl(\"save-form.php\");\n formPanelCliente.setWidth(ANCHO);\n formPanelCliente.setHeight(ALTO);\n formPanelCliente.setLabelAlign(Position.LEFT);\n\n formPanelCliente.setAutoWidth(true);\n\n\ndat_fecha1 = new DateField(\"Fecha\", \"d-m-Y\");\n fechahoy = new Date();\n dat_fecha1.setValue(fechahoy);\n dat_fecha1.setReadOnly(true);\n\ncom_vendedor = new ComboBox(\"Vendedor al que enviamos\", \"idempleado\");\ncom_cliente = new ComboBox(\"Clientes\", \"idcliente\");\n//com_tipo = new ComboBox(\"Tipo Envio\", \"idtipo\");\n initValues1();\n\n\n\n formPanelCliente.add(dat_fecha1);\n// formPanelCliente.add(com_tipo);\n// formPanelCliente.add(tex_nombreC);\n// formPanelCliente.add(tex_codigoBarra);\n // formPanelCliente.add(tex_codigoC);\nformPanelCliente.add(com_vendedor);\n formPanelCliente.add(com_cliente);\n add(formPanelCliente);\nanadirListenersTexfield();\n addListeners();\n\n }", "@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 etiquetaTitulo = new javax.swing.JLabel();\n jScrollPane1 = new javax.swing.JScrollPane();\n tablaCuentas = new javax.swing.JTable();\n etiquetaLeyenda = new javax.swing.JLabel();\n jPanel2 = new javax.swing.JPanel();\n etiquetaCodigo = new javax.swing.JLabel();\n campoCodigo = new javax.swing.JTextField();\n etiquetaDescripcion = new javax.swing.JLabel();\n campoDescripcion = new javax.swing.JTextField();\n comboCuentaTitulo = new javax.swing.JComboBox<>();\n etiquetaCuentaTitulo = new javax.swing.JLabel();\n botonAceptar = new javax.swing.JButton();\n etiquetaNivel = new javax.swing.JLabel();\n campoNivel = new javax.swing.JTextField();\n etiquetaTitulo2 = new javax.swing.JLabel();\n botonVolver = new javax.swing.JButton();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n\n etiquetaTitulo.setFont(new java.awt.Font(\"Tahoma\", 1, 13)); // NOI18N\n etiquetaTitulo.setText(\"Crear una nueva Cuenta o Titulo\");\n\n tablaCuentas = new javax.swing.JTable() {\n public boolean isCellEditable(int rowIndex, int colIndex){\n return false;\n }\n };\n tablaCuentas.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n {null, null, null, null},\n {null, null, null, null},\n {null, null, null, null},\n {null, null, null, null}\n },\n new String [] {\n \"Codigo\", \"Descripcion\", \"Tipo\", \"Nro Cuenta\"\n }\n ));\n jScrollPane1.setViewportView(tablaCuentas);\n\n etiquetaLeyenda.setText(\"Seleccione bajo que titulo se crea la nueva cuenta o titulo\");\n\n etiquetaCodigo.setText(\"Codigo:\");\n\n etiquetaDescripcion.setText(\"Descripcion:\");\n\n comboCuentaTitulo.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"Titulo\", \"Cuenta\" }));\n\n etiquetaCuentaTitulo.setText(\"Cuenta o Titulo:\");\n\n botonAceptar.setText(\"Aceptar\");\n\n etiquetaNivel.setText(\"Nivel:\");\n\n campoNivel.setEnabled(false);\n\n etiquetaTitulo2.setText(\"Datos de la nueva Cuenta\");\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 .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGap(22, 22, 22)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(botonAceptar)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(etiquetaCodigo)\n .addComponent(etiquetaDescripcion)\n .addComponent(etiquetaCuentaTitulo))\n .addGap(18, 18, 18)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(campoDescripcion, javax.swing.GroupLayout.PREFERRED_SIZE, 257, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addComponent(comboCuentaTitulo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(34, 34, 34)\n .addComponent(etiquetaNivel)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(campoNivel, javax.swing.GroupLayout.PREFERRED_SIZE, 66, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addComponent(campoCodigo, javax.swing.GroupLayout.PREFERRED_SIZE, 257, javax.swing.GroupLayout.PREFERRED_SIZE)))))\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGap(99, 99, 99)\n .addComponent(etiquetaTitulo2)))\n .addContainerGap(38, Short.MAX_VALUE))\n );\n jPanel2Layout.setVerticalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(etiquetaTitulo2)\n .addGap(33, 33, 33)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(campoCodigo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(etiquetaCodigo))\n .addGap(40, 40, 40)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(etiquetaDescripcion)\n .addComponent(campoDescripcion, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(59, 59, 59)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(comboCuentaTitulo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(etiquetaCuentaTitulo)\n .addComponent(etiquetaNivel)\n .addComponent(campoNivel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(61, 61, 61)\n .addComponent(botonAceptar)\n .addContainerGap(52, Short.MAX_VALUE))\n );\n\n botonVolver.setText(\"Volver\");\n\n javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);\n jPanel1.setLayout(jPanel1Layout);\n jPanel1Layout.setHorizontalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(39, 39, 39)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(etiquetaLeyenda)\n .addComponent(jScrollPane1, 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(jPanel1Layout.createSequentialGroup()\n .addGap(50, 50, 50)\n .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(87, 87, 87)\n .addComponent(botonVolver))))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(317, 317, 317)\n .addComponent(etiquetaTitulo)))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(24, 24, 24)\n .addComponent(etiquetaTitulo)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 26, Short.MAX_VALUE)\n .addComponent(etiquetaLeyenda)\n .addGap(18, 18, 18)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 531, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(33, 33, 33))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(botonVolver)\n .addGap(67, 67, 67))))\n );\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n\n pack();\n }", "public ViewCreatePagamento() {\n initComponents();\n clientesDAO cDAO = DaoFactory.createClientesDao(); \n matriculaDAO mDAO = DaoFactory.createMatriculaDao();\n \n cmbIDClientes.addItem(null);\n cDAO.findAll().forEach((p) -> {\n cmbIDClientes.addItem(p.getNome());\n });\n \n \n txtDataAtual.setText(DateFormat.getDateInstance().format(new Date()));\n }", "public frm_tutor_subida_prueba() {\n }", "@Command\n\tpublic void nuevoAnalista(){\n\t\tMap<String, Object> parametros = new HashMap<String, Object>();\n\n\t\t//parametros.put(\"recordMode\", \"NEW\");\n\t\tllamarFormulario(\"formularioAnalistas.zul\", null);\n\t}", "public FrmNuevoAlumno() {\n initComponents();\n obtenerCarreras();\n comboCarrera.setSelectedIndex(-1);\n obtenerDependencias();\n comboPlantel.setSelectedIndex(-1);\n mostrarAlumnos();\n deshabilitar();\n lblId.setVisible(false);\n }", "public void actualizar_registro() {\n try {\n iC.nombre = fecha;\n\n String [] data = txtidReg.getText().toString().split(\":\");\n Long id = Long.parseLong(data[1].trim());\n\n int conteo1 = Integer.parseInt(cap_1.getText().toString());\n int conteo2 = Integer.parseInt(cap_2.getText().toString());\n int conteoT = Integer.parseInt(cap_ct.getText().toString());\n\n conteoTab cl = iC.oneId(id);\n\n conteoTab c = new conteoTab();\n\n c.setFecha(cl.getFecha());\n c.setEstado(cl.getEstado());\n c.setIdConteo(cl.getIdConteo());\n c.setIdSiembra(cl.getIdSiembra());\n c.setCama(cl.getCama());\n c.setIdBloque(cl.getIdBloque());\n c.setBloque(cl.getBloque());\n c.setIdVariedad(cl.getIdVariedad());\n c.setVariedad(cl.getVariedad());\n c.setCuadro(cl.getCuadro());\n c.setConteo1(conteo1);\n c.setConteo4(conteo2);\n c.setTotal(conteoT);\n c.setPlantas(cl.getPlantas());\n c.setArea(cl.getArea());\n c.setCuadros(cl.getCuadros());\n c.setIdUsuario(cl.getIdUsuario());\n if(cl.getEstado().equals(\"0\")) {\n iC.update(id, c);\n }else{\n Toast.makeText(this, \"El registro no se puede actualizar por que ya ha sido enviado\", Toast.LENGTH_LONG).show();\n }\n\n Intent i = new Intent(this,ActivityDetalles.class).addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n startActivity(i);\n }catch (Exception ex){\n Toast.makeText(this, \"exception al actualizar el registro \\n \\n\"+ex.toString(), Toast.LENGTH_SHORT).show();\n }\n }", "public FrmNuevoEmpleado() {\n initComponents();\n }", "private void modi() { \n try {\n cvo.getId_cliente();\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.actualizar(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 Modificado\");\n } catch (Exception e) {\n JOptionPane.showMessageDialog(null, \"Debe ingresar Datos para Modificar registro!\");\n }\n }", "public FormContasFinanceiras(String idUsuario) {\n initComponents();\n \n setPaginacao(0);\n \n setWhere(\"\");\n btAnterior.setEnabled(false);\n \n MontarTabela(\"\");\n \n //colocar a janela no meio da tela\n this.setLocationRelativeTo(null);\n \n lbUsuarioNome.setText(cb.getUsuarioNome(idUsuario));\n \n GetConfig gc = new GetConfig();\n this.setIconImage(gc.getIco());\n \n //visual Windows\n try{\n UIManager.setLookAndFeel(\"com.sun.java.swing.plaf.windows.WindowsLookAndFeel\");\n SwingUtilities.updateComponentTreeUI(this);\n }catch(Exception e){\n e.printStackTrace();\n }\n \n lbMsg.setText(getMensagem());\n \n }", "public FrmCrearEmpleado() {\n initComponents();\n tFecha.setDate(new Date());\n }", "public FORMRECOMP() {\n initComponents();\n this.setLocationRelativeTo(null);\n inicializa_controles();\n cerrar_ventan_recibo();\n }", "public ModificarVenta() {\n initComponents();\n txt_boletas.setValue((long)0);\n txt_transbank.setValue((long)0);\n txt_total.setValue((long)0);\n \n }", "public frmAfiliado() {\n initComponents();\n \n }", "public void actionPerformed(ActionEvent e) {\r\n\t\t\tif (e.getSource() == barra.btnuevo\r\n\t\t\t\t\t|| e.getSource() == barra.btmodifi) {\r\n\t\t\t\tif (e.getSource() == barra.btnuevo) {\r\n\t\t\t\t\ttfrif.setText(\"\");\r\n\t\t\t\t\ttfrazon.setText(\"\");\r\n\t\t\t\t\ttfdireccion.setText(\"\");\r\n\t\t\t\t\ttftelefono.setText(\"\");\r\n\t\t\t\t\ttfcorreo.setText(\"\");\r\n\t\t\t\t\tcbCiudad.setSelectedItem(-1);\r\n\t\t\t\t\tultimo = actual;\r\n\t\t\t\t\tactual = new Facturacion();\r\n\t\t\t\t}\r\n\t\t\t\tbarra.Edicion();\r\n\t\t\t\ttfrif.grabFocus();\r\n\r\n\t\t\t\ttfrif.setEditable(true);\r\n\t\t\t\ttfrazon.setEditable(true);\r\n\t\t\t\ttfdireccion.setEditable(true);\r\n\t\t\t\ttftelefono.setEditable(true);\r\n\t\t\t\ttfcorreo.setEditable(true);\r\n\t\t\t\tcbCiudad.setEditable(true);\r\n\t\t\t}\r\n\t\t\tif (e.getSource() == barra.btgrabar) {\r\n\t\t\t\tif (tfrif.getText().trim().equals(\"\")\r\n\t\t\t\t\t\t|| tfrazon.getText().trim().equals(\"\")\r\n\t\t\t\t\t\t|| tfdireccion.getText().trim().equals(\"\")) {\r\n\t\t\t\t\tJOptionPane\r\n\t\t\t\t\t\t\t.showMessageDialog(new JFrame(),\r\n\t\t\t\t\t\t\t\t\t\"Debe completar todos los Datos del Persona\\nIngreso de Nuevo Persona\");\r\n\t\t\t\t\ttfrif.grabFocus();\r\n\t\t\t\t} else {\r\n\t\t\t\t\tactual.setRif(tfrif.getText().trim());\r\n\t\t\t\t\tactual.setRazon(tfrazon.getText().trim());\r\n\t\t\t\t\tactual.setDireccion(tfdireccion.getText().trim());\r\n\t\t\t\t\tactual.setTelefono(tftelefono.getText().trim());\r\n\t\t\t\t\tactual.setFacCiudad(ModCiudad.getElemento(cbCiudad.getSelectedIndex()));\r\n\t\t\t\t\tactual.setFacOficina(principal.ofic);\r\n\t\t\t\t\tif (cbCiudad.getSelectedIndex()>-1)\r\n\t\t\t\t\t\tactual.setFacCiudad(ModCiudad.getElemento(cbCiudad.getSelectedIndex()));\r\n\t\t\t\t\tactual.setCorreo(tfcorreo.getText().trim());\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tSession sesion = principal.fabrica.getCurrentSession();\r\n\t\t\t\t\t\tsesion.beginTransaction();\r\n\t\t\t\t\t\tsesion.saveOrUpdate(actual);\r\n\t\t\t\t\t\tsesion.getTransaction().commit();\r\n\t\t\t\t\t} catch (HibernateException e2) {\r\n\t\t\t\t\t\tJOptionPane.showMessageDialog(new JFrame(),\r\n\t\t\t\t\t\t\t\t\"btGrabar!!!Errores de Base de Datos!!!\\n\" + e2\r\n\t\t\t\t\t\t\t\t\t\t+ \" \", \"Database Error!\",\r\n\t\t\t\t\t\t\t\tJOptionPane.ERROR_MESSAGE);\r\n\t\t\t\t\t\te2.printStackTrace();\r\n\t\t\t\t\t}\r\n\t\t\t\t\t/*\r\n\t\t\t\t\t * if (pac!=null) { JOptionPane.showMessageDialog(new\r\n\t\t\t\t\t * JFrame(),\r\n\t\t\t\t\t * \"Número de Cédula ya existe!!!\",\"Database Error!\"\r\n\t\t\t\t\t * ,JOptionPane.ERROR_MESSAGE); tfcedula.grabFocus(); }\r\n\t\t\t\t\t */\r\n\t\t\t\t\tbarra.Consulta();\r\n\t\t\t\t\tif (cierra)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tAdminFactura.setFacturacion(actual);\r\n\t\t\t\t\t\tcerrarventana();\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\t// refreshPersona();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif (e.getSource() == barra.btcancel) {\r\n\t\t\t\tif (cierra)\r\n\t\t\t\t{\r\n//\t\t\t\t\tAdminFactura.setFacturacion(actual); corregido el 12/01/2012 estaba dando error, ya que si cancela la ventana no debe grabar nada en AdminFactura.setFacturacion()\r\n\t\t\t\t\tcerrarventana();\r\n\t\t\t\t}\r\n\t\t\t\tif (buscando) {\r\n\t\t\t \tlbbuscando.setText(\"\");\r\n\t\t\t\t\tbuscando = false;\r\n\t\t\t\t}\r\n\t\t\t\tif (actual.equals(new Persona())) actual = ultimo;\r\n\t\t\t\tbarra.Consulta();\r\n\t\t\t\trefreshFacturacion();\r\n\t\t\t}\r\n\t\t\tif (e.getSource() == barra.btbuscar) {\r\n\t\t\t\tbarrabusca();\r\n\t\t\t}\r\n\t\t\tif (e.getSource() == barra.btanteri) {\r\n\t\t\t\tif (buscando){\r\n\t\t\t\t\tif (tfrif.isEditable()){\r\n\t\t\t\t\t\tbuscar();\t\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\tactual = busqueda.get(puntero>0?--puntero:puntero);\r\n\t\t\t\t\t\tSystem.out.println(\"\"+puntero+\"/\"+busqueda.size());\r\n\t\t\t\t\t\trefreshFacturacion();\r\n\t\t\t\t}else\r\n\t\t\t\t{\r\n\t\t\t\t\tFacturacion per = null;\r\n\t\t\t\t\tint text = actual.getCodigo();\r\n\t\t\t\t\tString q = \"from Facturacion where CodOficina = \"+principal.ccodoff+\" and codigo < :text order by codigo desc\";\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tSession sesion = principal.fabrica.getCurrentSession();\r\n\t\t\t\t\t\tsesion.beginTransaction();\r\n\t\t\t\t\t\tQuery queryResult = sesion\r\n\t\t\t\t\t\t\t\t.createQuery(q);\r\n\t\t\t\t\t\tqueryResult.setInteger(\"text\", text);\r\n\t\t\t\t\t\tqueryResult.setMaxResults(1);\r\n\t\t\t\t\t\tper = (Facturacion) queryResult.uniqueResult();\r\n\t\t\t\t\t\tsesion.getTransaction().commit();\r\n\t\t\t\t\t} catch (HibernateException e2) {\r\n\t\t\t\t\t\tJOptionPane.showMessageDialog(new JFrame(),\r\n\t\t\t\t\t\t\t\t\"btAnterior!!!Errores de Base de Datos!!!\\n\" + e2 + \" \"\r\n\t\t\t\t\t\t\t\t\t\t+ text, \"Database Error!\",\r\n\t\t\t\t\t\t\t\tJOptionPane.ERROR_MESSAGE);\r\n\t\t\t\t\t\te2.printStackTrace();\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (per != null) {\r\n\t\t\t\t\t\tactual = per;\r\n\t\t\t\t\t\trefreshFacturacion();\r\n\t\t\t\t\t}\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif (e.getSource() == barra.btsiguie) {\r\n\t\t\t\tif (buscando){\r\n\t\t\t\t\tif (tfrif.isEditable()){\r\n\t\t\t\t\t\tbuscar();\t\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\tactual = busqueda.get(puntero<busqueda.size()-1?++puntero:puntero);\r\n\t\t\t\t\t\tSystem.out.println(\"\"+puntero+\"/\"+busqueda.size());\r\n\t\t\t\t\t\trefreshFacturacion();\r\n\t\t\t\t}else\r\n\t\t\t\t{\r\n\t\t\t\t\tFacturacion per = null;\r\n\t\t\t\t\tint text = actual.getCodigo();\r\n\t\t\t\t\tString q = \"from Facturacion where CodOficina = \"+principal.ccodoff+\" and codigo > :text order by codigo asc\";\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tSession sesion = principal.fabrica.getCurrentSession();\r\n\t\t\t\t\t\tsesion.beginTransaction();\r\n\t\t\t\t\t\tQuery queryResult = sesion\r\n\t\t\t\t\t\t\t\t.createQuery(q);\r\n\t\t\t\t\t\tqueryResult.setInteger(\"text\", text);\r\n\t\t\t\t\t\tqueryResult.setMaxResults(1);\r\n\t\t\t\t\t\tper = (Facturacion) queryResult.uniqueResult();\r\n\t\t\t\t\t\tsesion.getTransaction().commit();\r\n\t\t\t\t\t} catch (HibernateException e2) {\r\n\t\t\t\t\t\tJOptionPane.showMessageDialog(new JFrame(),\r\n\t\t\t\t\t\t\t\t\"btsiguie!!!Errores de Base de Datos!!!\\n\" + e2 + \" \"\r\n\t\t\t\t\t\t\t\t\t\t+ text, \"Database Error!\",\r\n\t\t\t\t\t\t\t\tJOptionPane.ERROR_MESSAGE);\r\n\t\t\t\t\t\te2.printStackTrace();\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (per != null) {\r\n\t\t\t\t\t\tactual = per;\r\n\t\t\t\t\t\trefreshFacturacion();\r\n\t\t\t\t\t}\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tif (e.getSource() == barra.btultimo) {\r\n\t\t\t\tif (buscando)\r\n\t\t\t\t{\r\n\t\t\t\t\tpuntero = busqueda.size()-1;\r\n\t\t\t\t\tif (tfrif.isEditable()){\r\n\t\t\t\t\t\tbuscar();\t\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\tactual = busqueda.get(puntero);\r\n\t\t\t\t\t\tSystem.out.println(\"\"+puntero+\"/\"+busqueda.size());\r\n\t\t\t\t}\r\n\t\t\t\telse\r\n\t\t\t\t{\r\n\t\t\t\t\tactual = obtenerUltimo();\r\n\t\t\t\t\trefreshFacturacion();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif (e.getSource() == barra.btsalir) {\r\n\t\t\t\tdispose();\r\n\t\t\t}\r\n\t\t}", "public FrmIn_Contabilida() {\n initComponents();\n mObjModCuentas = new LogN_Class_ModeljTabCuentasMySql();\n Tab_Cuentas.setModel(mObjModCuentas);\n\n }", "public frmOrdenacao() {\n initComponents();\n setResizable(false);\n ordenacaoControle = new OrdenacaoControle();\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 jLabel6 = new javax.swing.JLabel();\n jPanel2 = new javax.swing.JPanel();\n jLabel4 = new javax.swing.JLabel();\n jLabel7 = new javax.swing.JLabel();\n jLabel5 = new javax.swing.JLabel();\n jLabel1 = new javax.swing.JLabel();\n direccion_vivienda = new javax.swing.JTextField();\n codigo_vivienda = new javax.swing.JTextField();\n consumo_mes = new javax.swing.JTextField();\n lectura_anterior = new javax.swing.JTextField();\n jButton2 = new javax.swing.JButton();\n Actualizar = new javax.swing.JButton();\n consumo_capturado = new javax.swing.JTextField();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n jPanel1.setBackground(new java.awt.Color(0, 153, 255));\n jPanel1.setBorder(javax.swing.BorderFactory.createTitledBorder(null, \"Registros de Consumos\", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font(\"Segoe UI\", 0, 14))); // NOI18N\n jPanel1.setFont(new java.awt.Font(\"Segoe UI Symbol\", 0, 18)); // NOI18N\n\n jLabel6.setText(\"Consumo Actual Medidor\");\n\n jPanel2.setBackground(new java.awt.Color(51, 204, 255));\n jPanel2.setBorder(javax.swing.BorderFactory.createTitledBorder(null, \"Informacion Vivienda\", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font(\"Segoe UI\", 0, 18))); // NOI18N\n jPanel2.setFont(new java.awt.Font(\"Segoe UI Symbol\", 0, 12)); // NOI18N\n\n jLabel4.setText(\"Direccion\");\n\n jLabel7.setText(\"Consumo Mes\");\n\n jLabel5.setText(\"Lectura Anterior\");\n\n jLabel1.setForeground(new java.awt.Color(255, 0, 51));\n jLabel1.setText(\"Codigo Vivienda\");\n\n direccion_vivienda.setEditable(false);\n direccion_vivienda.setFont(new java.awt.Font(\"Segoe UI Symbol\", 0, 12)); // NOI18N\n direccion_vivienda.setName(\"direccion_vivienda\"); // NOI18N\n direccion_vivienda.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n direccion_viviendaActionPerformed(evt);\n }\n });\n\n codigo_vivienda.setName(\"codigo_vivienda\"); // NOI18N\n codigo_vivienda.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n codigo_viviendaKeyPressed(evt);\n }\n public void keyTyped(java.awt.event.KeyEvent evt) {\n codigo_viviendaKeyTyped(evt);\n }\n });\n\n consumo_mes.setEditable(false);\n consumo_mes.setFont(new java.awt.Font(\"Segoe UI Symbol\", 0, 12)); // NOI18N\n consumo_mes.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n consumo_mesActionPerformed(evt);\n }\n });\n\n lectura_anterior.setEditable(false);\n lectura_anterior.setFont(new java.awt.Font(\"Segoe UI Symbol\", 0, 12)); // NOI18N\n\n jButton2.setFont(new java.awt.Font(\"Segoe UI Symbol\", 1, 12)); // NOI18N\n jButton2.setText(\"Buscar\");\n jButton2.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton2ActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout 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 .addContainerGap()\n .addComponent(jLabel1)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(codigo_vivienda, javax.swing.GroupLayout.PREFERRED_SIZE, 107, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jButton2, javax.swing.GroupLayout.PREFERRED_SIZE, 107, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(53, 53, 53)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel4)\n .addComponent(jLabel5)\n .addComponent(jLabel7))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addComponent(lectura_anterior, javax.swing.GroupLayout.DEFAULT_SIZE, 107, Short.MAX_VALUE)\n .addComponent(consumo_mes)\n .addComponent(direccion_vivienda))\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 .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 27, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(codigo_vivienda, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel4, javax.swing.GroupLayout.PREFERRED_SIZE, 27, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(direccion_vivienda, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGap(7, 7, 7)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(lectura_anterior, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel5, javax.swing.GroupLayout.PREFERRED_SIZE, 27, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(consumo_mes, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel7, javax.swing.GroupLayout.PREFERRED_SIZE, 27, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGap(18, 18, 18)\n .addComponent(jButton2, javax.swing.GroupLayout.PREFERRED_SIZE, 33, javax.swing.GroupLayout.PREFERRED_SIZE))))\n );\n\n Actualizar.setFont(new java.awt.Font(\"Segoe UI Symbol\", 1, 12)); // NOI18N\n Actualizar.setText(\"Actualizar\");\n Actualizar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n ActualizarActionPerformed(evt);\n }\n });\n\n consumo_capturado.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyTyped(java.awt.event.KeyEvent evt) {\n consumo_capturadoKeyTyped(evt);\n }\n });\n\n javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);\n jPanel1.setLayout(jPanel1Layout);\n jPanel1Layout.setHorizontalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(21, 21, 21)\n .addComponent(jLabel6)\n .addGap(28, 28, 28)\n .addComponent(consumo_capturado, javax.swing.GroupLayout.DEFAULT_SIZE, 107, Short.MAX_VALUE)\n .addGap(74, 74, 74)\n .addComponent(Actualizar, javax.swing.GroupLayout.PREFERRED_SIZE, 103, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(21, 21, 21))\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(consumo_capturado, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(Actualizar, javax.swing.GroupLayout.PREFERRED_SIZE, 39, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel6, javax.swing.GroupLayout.PREFERRED_SIZE, 27, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(11, 11, 11))\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.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n\n pack();\n }", "public JfrmAlterarFornecedor() {\n initComponents();\n jtxtBuscado.setDocument(new ApenasNumeros());\n carregaTabela();\n }", "private void iniciaFrm() {\n statusLbls(false);\n statusBtnInicial();\n try {\n clientes = new Cliente_DAO().findAll();\n } catch (Exception ex) {\n Logger.getLogger(JF_CadastroCliente.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "public SalidaCajaForm() {\n\t\tinicializarComponentes();\n }", "public de_gestionar_contrato_añadir() {\n initComponents();\n lbl_error_nombre_cliente.setVisible(false);\n lbl_error_numero_contrato.setVisible(false);\n lbl_error_fecha_inicio.setVisible(false);\n lbl.setVisible(false);\n lbl_fecha_expira_contrato.setVisible(false);\n\n // detectar cambio en jdateChoser (fecha de inicio en agregar contrato)\n fecha_inicio_contrato.getDateEditor().addPropertyChangeListener(\n new PropertyChangeListener() {\n @Override\n public void propertyChange(PropertyChangeEvent e) {\n if (\"date\".equals(e.getPropertyName())) {\n System.out.println(e.getPropertyName()\n + \": \" + (Date) e.getNewValue());\n if(fecha_inicio_contrato.getDate()!=null){\n lbl_fecha_expira_contrato.setText(toma_fecha(fecha_inicio_contrato).substring(0,6)+String.valueOf(Integer.parseInt(toma_fecha(fecha_inicio_contrato).substring(6))+1));\n lbl.setVisible(true);\n lbl_fecha_expira_contrato.setVisible(true);\n }\n }else{\n lbl_fecha_expira_contrato.setText(\"\");\n lbl_error_fecha_inicio.setVisible(false);\n lbl.setVisible(false);\n lbl_fecha_expira_contrato.setVisible(false);\n }\n }\n });\n this.add(fecha_inicio_contrato);\n \n deshabilitarPegar();\n }", "public crud_empleados() {\n initComponents();\n txt_usuario1.setEditable(false);\n Mostrar();\n \n\n\n }", "public FormCadastroAutomovel() {\n initComponents();\n }", "public ActualizarCuenta(JFrame window) {\n initComponents();\n this.setLocationRelativeTo(ActualizarCuenta.this);\n this.setResizable(false);\n cuenta = new Cuenta();\n Cuenta = new ConsultaCuentas();\n this.window = window;\n \n }", "public FRMPrestarComputador() {\n initComponents();\n // idb.setText(idloguin);\n this.TXTFechaDePrestamo.setText(fechaActual());\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n lbl_Nombre = new javax.swing.JLabel();\n lbl_Info = new javax.swing.JLabel();\n tf_ID = new javax.swing.JTextField();\n lbl_Ciudad = new javax.swing.JLabel();\n tf_Descuento = new javax.swing.JTextField();\n btn_Crear = new javax.swing.JButton();\n btn_Cancelar = new javax.swing.JButton();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n setTitle(\"Nuevo Cupon\");\n\n lbl_Nombre.setText(\"ID:\");\n\n lbl_Info.setText(\"Rellene los siguientes campos: \");\n\n tf_ID.setEditable(false);\n\n lbl_Ciudad.setText(\"Descuento:\");\n\n btn_Crear.setText(\"Crear Cupon\");\n btn_Crear.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btn_CrearActionPerformed(evt);\n }\n });\n\n btn_Cancelar.setText(\"Cancelar\");\n btn_Cancelar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btn_CancelarActionPerformed(evt);\n }\n });\n\n 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(29, 29, 29)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addGroup(layout.createSequentialGroup()\n .addComponent(lbl_Nombre, javax.swing.GroupLayout.DEFAULT_SIZE, 71, Short.MAX_VALUE)\n .addGap(11, 11, 11)\n .addComponent(tf_ID, javax.swing.GroupLayout.PREFERRED_SIZE, 174, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addComponent(btn_Cancelar)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(btn_Crear))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addComponent(lbl_Ciudad)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 11, Short.MAX_VALUE)\n .addComponent(tf_Descuento, javax.swing.GroupLayout.PREFERRED_SIZE, 174, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addComponent(lbl_Info, javax.swing.GroupLayout.Alignment.TRAILING))\n .addContainerGap(23, Short.MAX_VALUE))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(20, 20, 20)\n .addComponent(lbl_Info)\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(lbl_Nombre)\n .addComponent(tf_ID, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(lbl_Ciudad)\n .addComponent(tf_Descuento, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(btn_Crear)\n .addComponent(btn_Cancelar))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n\n setSize(new java.awt.Dimension(308, 193));\n setLocationRelativeTo(null);\n }", "public modVentaServicio(cleanCompany principalOrigen, regVentaServicio actual, String nombreCliente, String nombreServicio, JTable tabla) {\n this.principal = principalOrigen;\n this.actual = actual;\n this.nombreCliente = nombreCliente;\n this.nombreServicio = nombreServicio;\n this.tabla = tabla;\n initComponents();\n this.getContentPane().setBackground(Color.BLACK);\n this.setLocationRelativeTo(null);\n this.setTitle(\"Modificacion de Venta\");\n this.setIconImage(new ImageIcon(getClass().getResource(\"/Img/LogoApp.png\")).getImage());\n llenarCombos();\n// try {\n// mts.visualizarTabla(this.jtblRegistros, principal);\n// } catch (Exception ex) {\n// Logger.getLogger(registroServicio.class.getName()).log(Level.SEVERE, null, ex);\n// }\n\n texts();\n// this.jFormattedTextField3.setFormatterFactory(new JFormattedTextField.AbstractFormatterFactory() {\n//\n// @Override\n// public JFormattedTextField.AbstractFormatter getFormatter(JFormattedTextField tf) {\n// \n// DecimalFormat format = new DecimalFormat(\"#.00\");\n// format.setMinimumFractionDigits(2);\n// format.setMaximumFractionDigits(2);\n// format.setRoundingMode(RoundingMode.HALF_UP);\n// InternationalFormatter formatter = new InternationalFormatter(format);\n// formatter.setAllowsInvalid(false);\n// formatter.setMinimum(0.0);\n// formatter.setMaximum(1000.00);\n// return formatter;\n// }\n// });\n this.addWindowListener(new WindowAdapter() {\n public void windowClosing(WindowEvent evt) {\n visiblePrincipal();\n }\n });\n }", "public frmTaquilla() {\n initComponents();\n \n objSalaSecundaria.setCapacidad(250);\n objSalaSecundaria.setPrecioEntrada(180.0);//esto equivale a asignar los valores a través de de los metodos set\n libres1.setText(\"LIBRES \" + objSalaCentral.getCapacidad());\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 jPanel2 = new javax.swing.JPanel();\n jLabel1 = new javax.swing.JLabel();\n jLabel2 = new javax.swing.JLabel();\n txtMora = new javax.swing.JTextField();\n jLabel3 = new javax.swing.JLabel();\n txtCliente = new javax.swing.JTextField();\n jLabel4 = new javax.swing.JLabel();\n jfecha = new com.toedter.calendar.JDateChooser();\n jLabel5 = new javax.swing.JLabel();\n txtFact = new javax.swing.JTextField();\n jLabel6 = new javax.swing.JLabel();\n btnGuardar = new javax.swing.JButton();\n jLabel7 = new javax.swing.JLabel();\n txtCuota = new javax.swing.JTextField();\n jSeparator1 = new javax.swing.JSeparator();\n spAbono = new javax.swing.JTextField();\n jLabel8 = new javax.swing.JLabel();\n lblPending = new javax.swing.JLabel();\n txtPpago = new javax.swing.JTextField();\n jLabel10 = new javax.swing.JLabel();\n jLabel11 = new javax.swing.JLabel();\n txtProxP = new javax.swing.JTextField();\n jLabel9 = new javax.swing.JLabel();\n txtProducto = new javax.swing.JTextField();\n jLabel12 = new javax.swing.JLabel();\n spAbonoRec = new javax.swing.JTextField();\n jButton1 = new javax.swing.JButton();\n jLabel13 = new javax.swing.JLabel();\n lblCambio = new javax.swing.JLabel();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n\n jPanel1.setBackground(new java.awt.Color(255, 255, 255));\n\n jPanel2.setBackground(new java.awt.Color(102, 102, 255));\n\n jLabel1.setFont(new java.awt.Font(\"Times New Roman\", 0, 24)); // NOI18N\n jLabel1.setText(\"Abono a Cuenta\");\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(148, 148, 148)\n .addComponent(jLabel1)\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 .addContainerGap()\n .addComponent(jLabel1)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n\n jLabel2.setFont(new java.awt.Font(\"Times New Roman\", 0, 12)); // NOI18N\n jLabel2.setText(\"Mora $\");\n\n txtMora.setEditable(false);\n\n jLabel3.setFont(new java.awt.Font(\"Times New Roman\", 0, 12)); // NOI18N\n jLabel3.setText(\"Cliente\");\n\n txtCliente.setEditable(false);\n\n jLabel4.setFont(new java.awt.Font(\"Times New Roman\", 0, 12)); // NOI18N\n jLabel4.setText(\"Fecha\");\n\n jLabel5.setFont(new java.awt.Font(\"Times New Roman\", 0, 12)); // NOI18N\n jLabel5.setText(\"N° Factura\");\n\n txtFact.setEditable(false);\n\n jLabel6.setFont(new java.awt.Font(\"Times New Roman\", 0, 14)); // NOI18N\n jLabel6.setText(\"Monto a abonar\");\n\n btnGuardar.setFont(new java.awt.Font(\"Times New Roman\", 0, 14)); // NOI18N\n btnGuardar.setText(\"Guardar\");\n btnGuardar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnGuardarActionPerformed(evt);\n }\n });\n\n jLabel7.setText(\"Cuota $\");\n\n txtCuota.setEditable(false);\n\n spAbono.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n spAbono.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusLost(java.awt.event.FocusEvent evt) {\n spAbonoFocusLost(evt);\n }\n });\n spAbono.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n spAbonoActionPerformed(evt);\n }\n });\n spAbono.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyTyped(java.awt.event.KeyEvent evt) {\n spAbonoKeyTyped(evt);\n }\n });\n\n jLabel8.setText(\"Saldo Pendiente Actual:\");\n\n lblPending.setFont(new java.awt.Font(\"Tahoma\", 1, 11)); // NOI18N\n lblPending.setText(\"aaaa\");\n\n txtPpago.setEditable(false);\n txtPpago.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n txtPpagoActionPerformed(evt);\n }\n });\n\n jLabel10.setText(\"Fecha maxima de pago\");\n\n jLabel11.setText(\"Sig. Fecha de pago\");\n\n txtProxP.setEditable(false);\n txtProxP.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n txtProxPActionPerformed(evt);\n }\n });\n\n jLabel9.setText(\"Producto\");\n\n txtProducto.setEditable(false);\n\n jLabel12.setFont(new java.awt.Font(\"Times New Roman\", 0, 14)); // NOI18N\n jLabel12.setText(\"Monto recibido\");\n\n spAbonoRec.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n spAbonoRec.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusLost(java.awt.event.FocusEvent evt) {\n spAbonoRecFocusLost(evt);\n }\n });\n spAbonoRec.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n spAbonoRecActionPerformed(evt);\n }\n });\n spAbonoRec.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyTyped(java.awt.event.KeyEvent evt) {\n spAbonoRecKeyTyped(evt);\n }\n });\n\n jButton1.setFont(new java.awt.Font(\"Times New Roman\", 0, 14)); // NOI18N\n jButton1.setText(\"Calcular Cambio\");\n jButton1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton1ActionPerformed(evt);\n }\n });\n\n jLabel13.setFont(new java.awt.Font(\"Times New Roman\", 0, 14)); // NOI18N\n jLabel13.setText(\"Cambio $\");\n\n lblCambio.setFont(new java.awt.Font(\"Times New Roman\", 0, 14)); // NOI18N\n lblCambio.setText(\"0.00\");\n\n javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);\n jPanel1.setLayout(jPanel1Layout);\n jPanel1Layout.setHorizontalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jSeparator1, javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jLabel5)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(txtFact, javax.swing.GroupLayout.PREFERRED_SIZE, 61, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel4)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jfecha, javax.swing.GroupLayout.PREFERRED_SIZE, 139, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel7)\n .addComponent(jLabel3))\n .addGap(18, 18, 18)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(txtCliente, javax.swing.GroupLayout.PREFERRED_SIZE, 285, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(txtCuota, javax.swing.GroupLayout.PREFERRED_SIZE, 67, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(jLabel2)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(txtMora, javax.swing.GroupLayout.PREFERRED_SIZE, 63, javax.swing.GroupLayout.PREFERRED_SIZE))))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(18, 18, 18)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jLabel6)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(spAbono, javax.swing.GroupLayout.PREFERRED_SIZE, 120, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(jLabel12))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jButton1)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jLabel13)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(lblCambio, javax.swing.GroupLayout.PREFERRED_SIZE, 80, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(btnGuardar)\n .addComponent(spAbonoRec, javax.swing.GroupLayout.PREFERRED_SIZE, 120, 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(jLabel8)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(lblPending)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel11)\n .addComponent(txtPpago, javax.swing.GroupLayout.PREFERRED_SIZE, 113, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(txtProxP, javax.swing.GroupLayout.PREFERRED_SIZE, 113, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()\n .addComponent(jLabel9)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(txtProducto, javax.swing.GroupLayout.PREFERRED_SIZE, 177, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 84, Short.MAX_VALUE)\n .addComponent(jLabel10)))\n .addGap(58, 58, 58)))\n .addContainerGap())\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(24, 24, 24)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel4)\n .addComponent(jLabel5)\n .addComponent(txtFact, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addComponent(jfecha, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel7)\n .addComponent(txtCuota, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(21, 21, 21)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel3)\n .addComponent(txtCliente, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel2)\n .addComponent(txtMora, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGap(18, 18, 18)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel10, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel9)\n .addComponent(txtProducto, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(txtPpago, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel8)\n .addComponent(lblPending)\n .addComponent(jLabel11, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(txtProxP, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 16, Short.MAX_VALUE)\n .addComponent(jSeparator1, javax.swing.GroupLayout.PREFERRED_SIZE, 12, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(spAbono, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel6)\n .addComponent(spAbonoRec, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel12))\n .addGap(14, 14, 14)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(btnGuardar)\n .addComponent(jButton1)\n .addComponent(jLabel13)\n .addComponent(lblCambio))\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(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addContainerGap())\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addContainerGap())\n );\n\n pack();\n }", "private void jBtnActualizarActionPerformed(java.awt.event.ActionEvent evt) {\n jTFCantidad.setText(\"\");\n jTFColor.setText(\"\");\n jTFID.setText(\"\");\n jTFNombre.setText(\"\");\n jTFPrecio.setText(\"\");\n jTFTalla.setText(\"\");\n jTFTipo.setText(\"\");\n }", "private void azzeraInsertForm() {\n\t\tviewInserimento.getCmbbxTipologia().setSelectedIndex(-1);\n\t\tviewInserimento.getTxtFieldDataI().setText(\"\");\n\t\tviewInserimento.getTxtFieldValore().setText(\"\");\n\t\tviewInserimento.getTxtFieldDataI().setBackground(Color.white);\n\t\tviewInserimento.getTxtFieldValore().setBackground(Color.white);\n\t}", "private void btnEntrarActionPerformed(java.awt.event.ActionEvent evt) {\n dispose();\n Alumno.Aula = jcbAula.getSelectedItem().toString();\n Alumno.Materia = \"\";\n Info_Computo a1 = new Info_Computo();\n a1.setVisible(true);\n }", "FORM createFORM();", "@SuppressWarnings(\"unchecked\")\r\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\r\n private void initComponents() {\r\n\r\n jPanel1 = new javax.swing.JPanel();\r\n jPanel2 = new javax.swing.JPanel();\r\n btn_Registrar = new javax.swing.JButton();\r\n btn_cancelar = new javax.swing.JButton();\r\n jLabel2 = new javax.swing.JLabel();\r\n jLabel3 = new javax.swing.JLabel();\r\n jLabel5 = new javax.swing.JLabel();\r\n jLabel6 = new javax.swing.JLabel();\r\n jLabel7 = new javax.swing.JLabel();\r\n jLabel8 = new javax.swing.JLabel();\r\n t_txt_cedulaV = new javax.swing.JTextField();\r\n txt_nombreV = new javax.swing.JTextField();\r\n txt_apellidoV = new javax.swing.JTextField();\r\n txt_tlfV = new javax.swing.JTextField();\r\n btn_Examninar = new javax.swing.JButton();\r\n lbl_fotoV = new javax.swing.JLabel();\r\n fechaNaciV = new com.toedter.calendar.JDateChooser();\r\n jLabel10 = new javax.swing.JLabel();\r\n jpas_vendedor = new javax.swing.JPasswordField();\r\n jLabel11 = new javax.swing.JLabel();\r\n jpasw_vendedor1 = new javax.swing.JPasswordField();\r\n lbl_codigo = new javax.swing.JLabel();\r\n jLabel9 = new javax.swing.JLabel();\r\n jLabel4 = new javax.swing.JLabel();\r\n txt_CorreoV = new javax.swing.JTextField();\r\n lbl_text1 = new javax.swing.JLabel();\r\n jLabel12 = new javax.swing.JLabel();\r\n\r\n jPanel1.setBackground(new java.awt.Color(151, 28, 28));\r\n\r\n jPanel2.setBackground(new java.awt.Color(255, 255, 255));\r\n\r\n btn_Registrar.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/iconos/save.png\"))); // NOI18N\r\n btn_Registrar.setText(\"Registrar\");\r\n btn_Registrar.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n btn_RegistrarActionPerformed(evt);\r\n }\r\n });\r\n\r\n btn_cancelar.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/iconos/borrar.png\"))); // NOI18N\r\n btn_cancelar.setText(\"Cancelar\");\r\n\r\n jLabel2.setText(\"Nombre:\");\r\n\r\n jLabel3.setText(\"Apellido:\");\r\n\r\n jLabel6.setText(\"Telefono:\");\r\n\r\n jLabel7.setText(\"Fecha de Nacimiento:\");\r\n\r\n jLabel8.setText(\"Cédula:\");\r\n\r\n t_txt_cedulaV.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n t_txt_cedulaVActionPerformed(evt);\r\n }\r\n });\r\n\r\n txt_nombreV.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n txt_nombreVActionPerformed(evt);\r\n }\r\n });\r\n\r\n txt_apellidoV.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n txt_apellidoVActionPerformed(evt);\r\n }\r\n });\r\n\r\n btn_Examninar.setText(\"Examinar\");\r\n\r\n lbl_fotoV.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));\r\n\r\n jLabel10.setText(\"Contraseña:\");\r\n\r\n jLabel11.setText(\"Confirme Contraseña: \");\r\n\r\n jpasw_vendedor1.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n jpasw_vendedor1ActionPerformed(evt);\r\n }\r\n });\r\n\r\n lbl_codigo.setFont(new java.awt.Font(\"Dialog\", 1, 18)); // NOI18N\r\n lbl_codigo.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\r\n\r\n jLabel9.setFont(new java.awt.Font(\"Dialog\", 1, 24)); // NOI18N\r\n jLabel9.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\r\n jLabel9.setText(\"ID:\");\r\n\r\n jLabel4.setText(\"Correo:\");\r\n\r\n javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);\r\n jPanel2.setLayout(jPanel2Layout);\r\n jPanel2Layout.setHorizontalGroup(\r\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup()\r\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\r\n .addGroup(jPanel2Layout.createSequentialGroup()\r\n .addGap(25, 25, 25)\r\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(jPanel2Layout.createSequentialGroup()\r\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\r\n .addComponent(jLabel8)\r\n .addComponent(jLabel2)\r\n .addComponent(jLabel3)\r\n .addComponent(jLabel6))\r\n .addGap(32, 32, 32)\r\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addComponent(t_txt_cedulaV, javax.swing.GroupLayout.PREFERRED_SIZE, 186, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addComponent(txt_nombreV, javax.swing.GroupLayout.PREFERRED_SIZE, 186, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addComponent(txt_apellidoV, javax.swing.GroupLayout.PREFERRED_SIZE, 186, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addComponent(txt_tlfV, javax.swing.GroupLayout.PREFERRED_SIZE, 186, javax.swing.GroupLayout.PREFERRED_SIZE))\r\n .addGap(0, 83, Short.MAX_VALUE))\r\n .addGroup(jPanel2Layout.createSequentialGroup()\r\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addComponent(jLabel7, javax.swing.GroupLayout.PREFERRED_SIZE, 128, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addComponent(jLabel10, javax.swing.GroupLayout.PREFERRED_SIZE, 81, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addComponent(jLabel11)\r\n .addComponent(jLabel4, javax.swing.GroupLayout.PREFERRED_SIZE, 64, javax.swing.GroupLayout.PREFERRED_SIZE))\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\r\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addComponent(txt_CorreoV)\r\n .addComponent(jpas_vendedor)\r\n .addComponent(fechaNaciV, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\r\n .addComponent(jpasw_vendedor1))))\r\n .addGap(151, 151, 151)\r\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addComponent(btn_Examninar)\r\n .addComponent(lbl_fotoV, javax.swing.GroupLayout.PREFERRED_SIZE, 94, javax.swing.GroupLayout.PREFERRED_SIZE)))\r\n .addGroup(jPanel2Layout.createSequentialGroup()\r\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\r\n .addComponent(jLabel5)\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\r\n .addComponent(jLabel9, javax.swing.GroupLayout.PREFERRED_SIZE, 37, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\r\n .addComponent(lbl_codigo, javax.swing.GroupLayout.PREFERRED_SIZE, 106, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addGap(50, 50, 50))\r\n .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel2Layout.createSequentialGroup()\r\n .addGap(0, 0, Short.MAX_VALUE)\r\n .addComponent(btn_Registrar)\r\n .addGap(44, 44, 44)\r\n .addComponent(btn_cancelar)\r\n .addGap(71, 71, 71)))\r\n .addGap(40, 40, 40))\r\n );\r\n jPanel2Layout.setVerticalGroup(\r\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup()\r\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(jPanel2Layout.createSequentialGroup()\r\n .addGap(76, 76, 76)\r\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\r\n .addComponent(jLabel8)\r\n .addComponent(t_txt_cedulaV, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\r\n .addGap(21, 21, 21)\r\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\r\n .addComponent(jLabel2)\r\n .addComponent(txt_nombreV, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))\r\n .addGroup(jPanel2Layout.createSequentialGroup()\r\n .addGap(33, 33, 33)\r\n .addComponent(lbl_fotoV, javax.swing.GroupLayout.PREFERRED_SIZE, 93, javax.swing.GroupLayout.PREFERRED_SIZE)))\r\n .addGap(18, 18, 18)\r\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addComponent(btn_Examninar)\r\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\r\n .addComponent(txt_apellidoV, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addComponent(jLabel3)))\r\n .addGap(18, 18, 18)\r\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\r\n .addComponent(txt_tlfV, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addComponent(jLabel6))\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\r\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addComponent(jLabel7)\r\n .addComponent(fechaNaciV, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\r\n .addGap(18, 18, 18)\r\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addComponent(jLabel10)\r\n .addComponent(jpas_vendedor, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\r\n .addGap(32, 32, 32)\r\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\r\n .addComponent(jLabel11)\r\n .addComponent(jpasw_vendedor1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\r\n .addGap(14, 14, 14)\r\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(jPanel2Layout.createSequentialGroup()\r\n .addComponent(jLabel5)\r\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(jPanel2Layout.createSequentialGroup()\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 11, Short.MAX_VALUE)\r\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\r\n .addComponent(lbl_codigo, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\r\n .addComponent(jLabel9, javax.swing.GroupLayout.DEFAULT_SIZE, 40, Short.MAX_VALUE))\r\n .addGap(129, 129, 129))\r\n .addGroup(jPanel2Layout.createSequentialGroup()\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\r\n .addComponent(txt_CorreoV, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\r\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\r\n .addComponent(btn_Registrar)\r\n .addComponent(btn_cancelar))\r\n .addGap(36, 36, 36))))\r\n .addGroup(jPanel2Layout.createSequentialGroup()\r\n .addComponent(jLabel4)\r\n .addContainerGap(166, Short.MAX_VALUE))))\r\n );\r\n\r\n lbl_text1.setBackground(new java.awt.Color(166, 166, 35));\r\n lbl_text1.setFont(new java.awt.Font(\"Trebuchet MS\", 3, 18)); // NOI18N\r\n lbl_text1.setForeground(new java.awt.Color(255, 255, 255));\r\n lbl_text1.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\r\n lbl_text1.setText(\"Registro Vendedor\");\r\n\r\n jLabel12.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\r\n jLabel12.setForeground(new java.awt.Color(255, 255, 255));\r\n jLabel12.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/iconos/iconoGenral.png\"))); // NOI18N\r\n jLabel12.setText(\"EcuCinema\");\r\n\r\n javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);\r\n jPanel1.setLayout(jPanel1Layout);\r\n jPanel1Layout.setHorizontalGroup(\r\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(jPanel1Layout.createSequentialGroup()\r\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\r\n .addGroup(jPanel1Layout.createSequentialGroup()\r\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\r\n .addComponent(lbl_text1, javax.swing.GroupLayout.PREFERRED_SIZE, 239, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addGap(63, 63, 63)\r\n .addComponent(jLabel12, javax.swing.GroupLayout.PREFERRED_SIZE, 152, javax.swing.GroupLayout.PREFERRED_SIZE))\r\n .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel1Layout.createSequentialGroup()\r\n .addGap(61, 61, 61)\r\n .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))\r\n .addContainerGap(60, Short.MAX_VALUE))\r\n );\r\n jPanel1Layout.setVerticalGroup(\r\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(jPanel1Layout.createSequentialGroup()\r\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(jPanel1Layout.createSequentialGroup()\r\n .addGap(21, 21, 21)\r\n .addComponent(lbl_text1))\r\n .addComponent(jLabel12))\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\r\n .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\r\n );\r\n\r\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\r\n getContentPane().setLayout(layout);\r\n layout.setHorizontalGroup(\r\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\r\n );\r\n layout.setVerticalGroup(\r\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\r\n );\r\n\r\n pack();\r\n }", "public frmAddIncidencias() {\n initComponents();\n }", "public ventanaCRUDEAlumos() {\n initComponents();\n \n this.setLocationRelativeTo(null);\n this.setTitle(\"Registrar Alumno\");\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jPanel3 = new javax.swing.JPanel();\n id_usuario = new javax.swing.JTextField();\n jPanel4 = new javax.swing.JPanel();\n jLabel7 = new javax.swing.JLabel();\n jLabel9 = new javax.swing.JLabel();\n cbxMarca1 = new javax.swing.JComboBox<>();\n jLabel11 = new javax.swing.JLabel();\n cbxMedida1 = new javax.swing.JComboBox<>();\n jLabel15 = new javax.swing.JLabel();\n txtDescripcion1 = new javax.swing.JTextField();\n jLabel16 = new javax.swing.JLabel();\n cbxTipos1 = new javax.swing.JComboBox<>();\n btnAgregarTipo1 = new javax.swing.JButton();\n btnAgregarMedida1 = new javax.swing.JButton();\n btnAgreMarca1 = new javax.swing.JButton();\n jLabel17 = new javax.swing.JLabel();\n txtPeso1 = new javax.swing.JTextField();\n btnAgreEnvase1 = new javax.swing.JButton();\n jLabel18 = new javax.swing.JLabel();\n cbxEnvase1 = new javax.swing.JComboBox<>();\n codigo = new javax.swing.JTextField();\n jLabel19 = new javax.swing.JLabel();\n producto = new javax.swing.JTextField();\n jLabel22 = new javax.swing.JLabel();\n txtcantMinima = new javax.swing.JTextField();\n jLabel20 = new javax.swing.JLabel();\n cbxIva = new javax.swing.JComboBox<>();\n editarPrecio = new javax.swing.JButton();\n jLabel12 = new javax.swing.JLabel();\n txtUnidades = new javax.swing.JTextField();\n cbxReceta = new javax.swing.JComboBox<>();\n jLabel4 = new javax.swing.JLabel();\n jButton1 = new javax.swing.JButton();\n codigo2 = new javax.swing.JTextField();\n cbcucategoria = new javax.swing.JComboBox<>();\n jLabel1 = new javax.swing.JLabel();\n btnagregacategoria = new javax.swing.JButton();\n txtFechaActual1 = new javax.swing.JTextField();\n jLabel14 = new javax.swing.JLabel();\n btnModificar = new javax.swing.JButton();\n jLabel21 = new javax.swing.JLabel();\n lblEliminar = new javax.swing.JLabel();\n lblGuardar = new javax.swing.JLabel();\n lblImprimir = new javax.swing.JLabel();\n jPanel1 = new javax.swing.JPanel();\n jLabel23 = new javax.swing.JLabel();\n lblCerrar = new javax.swing.JLabel();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n setUndecorated(true);\n\n jPanel3.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(50, 99, 50), 2));\n jPanel3.setOpaque(false);\n\n id_usuario.setFont(new java.awt.Font(\"Tahoma\", 1, 12)); // NOI18N\n id_usuario.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(50, 99, 50)));\n id_usuario.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n id_usuarioActionPerformed(evt);\n }\n });\n\n jPanel4.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(50, 99, 50), 2));\n jPanel4.setOpaque(false);\n\n jLabel7.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n jLabel7.setForeground(new java.awt.Color(0, 27, 134));\n jLabel7.setText(\"PRODUCTO:\");\n\n jLabel9.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n jLabel9.setForeground(new java.awt.Color(0, 27, 134));\n jLabel9.setText(\"MARCA/LABORATORIO:\");\n\n cbxMarca1.setEditable(true);\n cbxMarca1.setFont(new java.awt.Font(\"Tahoma\", 1, 12)); // NOI18N\n cbxMarca1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n cbxMarca1ActionPerformed(evt);\n }\n });\n\n jLabel11.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n jLabel11.setForeground(new java.awt.Color(0, 27, 134));\n jLabel11.setText(\"UNIDAD DE MEDIDA:\");\n\n cbxMedida1.setEditable(true);\n cbxMedida1.setFont(new java.awt.Font(\"Tahoma\", 1, 12)); // NOI18N\n cbxMedida1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n cbxMedida1ActionPerformed(evt);\n }\n });\n\n jLabel15.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n jLabel15.setForeground(new java.awt.Color(0, 27, 134));\n jLabel15.setText(\"DESCRIPCION:\");\n\n txtDescripcion1.setFont(new java.awt.Font(\"Tahoma\", 1, 12)); // NOI18N\n txtDescripcion1.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(50, 99, 50)));\n txtDescripcion1.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusLost(java.awt.event.FocusEvent evt) {\n txtDescripcion1FocusLost(evt);\n }\n });\n\n jLabel16.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n jLabel16.setForeground(new java.awt.Color(0, 27, 134));\n jLabel16.setText(\"TIPO:\");\n\n cbxTipos1.setEditable(true);\n cbxTipos1.setFont(new java.awt.Font(\"Tahoma\", 1, 12)); // NOI18N\n cbxTipos1.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"Item 1\", \"Item 2\", \"Item 3\", \"Item 4\" }));\n cbxTipos1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n cbxTipos1ActionPerformed(evt);\n }\n });\n\n btnAgregarTipo1.setBackground(new java.awt.Color(0, 27, 134));\n btnAgregarTipo1.setFont(new java.awt.Font(\"Tahoma\", 1, 10)); // NOI18N\n btnAgregarTipo1.setForeground(new java.awt.Color(255, 255, 255));\n btnAgregarTipo1.setText(\"AGREGAR\");\n btnAgregarTipo1.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));\n btnAgregarTipo1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnAgregarTipo1ActionPerformed(evt);\n }\n });\n\n btnAgregarMedida1.setBackground(new java.awt.Color(0, 27, 134));\n btnAgregarMedida1.setFont(new java.awt.Font(\"Tahoma\", 1, 10)); // NOI18N\n btnAgregarMedida1.setForeground(new java.awt.Color(255, 255, 255));\n btnAgregarMedida1.setText(\"AGREGAR\");\n btnAgregarMedida1.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));\n btnAgregarMedida1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnAgregarMedida1ActionPerformed(evt);\n }\n });\n\n btnAgreMarca1.setBackground(new java.awt.Color(0, 27, 134));\n btnAgreMarca1.setFont(new java.awt.Font(\"Tahoma\", 1, 10)); // NOI18N\n btnAgreMarca1.setForeground(new java.awt.Color(255, 255, 255));\n btnAgreMarca1.setText(\"AGREGAR\");\n btnAgreMarca1.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));\n btnAgreMarca1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnAgreMarca1ActionPerformed(evt);\n }\n });\n\n jLabel17.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n jLabel17.setForeground(new java.awt.Color(0, 27, 134));\n jLabel17.setText(\"PESO:\");\n\n txtPeso1.setFont(new java.awt.Font(\"Tahoma\", 1, 12)); // NOI18N\n txtPeso1.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(50, 99, 50)));\n txtPeso1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n txtPeso1ActionPerformed(evt);\n }\n });\n\n btnAgreEnvase1.setBackground(new java.awt.Color(0, 27, 134));\n btnAgreEnvase1.setFont(new java.awt.Font(\"Tahoma\", 1, 10)); // NOI18N\n btnAgreEnvase1.setForeground(new java.awt.Color(255, 255, 255));\n btnAgreEnvase1.setText(\"AGREGAR\");\n btnAgreEnvase1.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));\n btnAgreEnvase1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnAgreEnvase1ActionPerformed(evt);\n }\n });\n\n jLabel18.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n jLabel18.setForeground(new java.awt.Color(0, 27, 134));\n jLabel18.setText(\"PRESENTACION:\");\n\n cbxEnvase1.setEditable(true);\n cbxEnvase1.setFont(new java.awt.Font(\"Tahoma\", 1, 12)); // NOI18N\n cbxEnvase1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n cbxEnvase1ActionPerformed(evt);\n }\n });\n\n codigo.setEditable(false);\n codigo.setFont(new java.awt.Font(\"Tahoma\", 1, 12)); // NOI18N\n codigo.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(50, 99, 50)));\n codigo.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusLost(java.awt.event.FocusEvent evt) {\n codigoFocusLost(evt);\n }\n });\n\n jLabel19.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n jLabel19.setForeground(new java.awt.Color(0, 27, 134));\n jLabel19.setText(\"CODIGO:\");\n\n producto.setFont(new java.awt.Font(\"Tahoma\", 1, 12)); // NOI18N\n producto.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(50, 99, 50)));\n producto.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusLost(java.awt.event.FocusEvent evt) {\n productoFocusLost(evt);\n }\n });\n\n jLabel22.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n jLabel22.setForeground(new java.awt.Color(0, 27, 134));\n jLabel22.setText(\"CANT. MINIMA STOCK:\");\n\n txtcantMinima.setFont(new java.awt.Font(\"Tahoma\", 1, 12)); // NOI18N\n txtcantMinima.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(50, 99, 50)));\n txtcantMinima.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n txtcantMinimaActionPerformed(evt);\n }\n });\n\n jLabel20.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n jLabel20.setForeground(new java.awt.Color(0, 27, 134));\n jLabel20.setText(\"IVA:\");\n\n cbxIva.setEditable(true);\n cbxIva.setFont(new java.awt.Font(\"Tahoma\", 1, 12)); // NOI18N\n cbxIva.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"NO\", \"SI\" }));\n cbxIva.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n cbxIvaActionPerformed(evt);\n }\n });\n\n editarPrecio.setBackground(new java.awt.Color(0, 27, 134));\n editarPrecio.setFont(new java.awt.Font(\"Tahoma\", 1, 10)); // NOI18N\n editarPrecio.setForeground(new java.awt.Color(255, 255, 255));\n editarPrecio.setText(\"EDITAR PRECIOS\");\n editarPrecio.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));\n editarPrecio.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n editarPrecioActionPerformed(evt);\n }\n });\n\n jLabel12.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n jLabel12.setForeground(new java.awt.Color(0, 27, 134));\n jLabel12.setText(\"UNIDADES:\");\n\n txtUnidades.setFont(new java.awt.Font(\"Tahoma\", 1, 12)); // NOI18N\n txtUnidades.setText(\"0\");\n txtUnidades.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(50, 99, 50)));\n txtUnidades.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n txtUnidadesActionPerformed(evt);\n }\n });\n txtUnidades.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyReleased(java.awt.event.KeyEvent evt) {\n txtUnidadesKeyReleased(evt);\n }\n public void keyTyped(java.awt.event.KeyEvent evt) {\n txtUnidadesKeyTyped(evt);\n }\n });\n\n cbxReceta.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"SIN RECETA \", \"CON RECETA\" }));\n\n jLabel4.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n jLabel4.setForeground(new java.awt.Color(0, 27, 134));\n jLabel4.setText(\"CODIGO DE BARRAS:\");\n\n jButton1.setBackground(new java.awt.Color(0, 27, 134));\n jButton1.setFont(new java.awt.Font(\"Tahoma\", 1, 10)); // NOI18N\n jButton1.setForeground(new java.awt.Color(255, 255, 255));\n jButton1.setText(\"MODIFICAR\");\n jButton1.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));\n jButton1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton1ActionPerformed(evt);\n }\n });\n\n codigo2.setEditable(false);\n codigo2.setFont(new java.awt.Font(\"Tahoma\", 1, 12)); // NOI18N\n codigo2.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n codigo2.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(50, 99, 50)));\n\n cbcucategoria.setFont(new java.awt.Font(\"Tahoma\", 1, 12)); // NOI18N\n cbcucategoria.setEnabled(false);\n cbcucategoria.setRequestFocusEnabled(false);\n cbcucategoria.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n cbcucategoriaActionPerformed(evt);\n }\n });\n\n jLabel1.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n jLabel1.setForeground(new java.awt.Color(0, 27, 134));\n jLabel1.setText(\"CATEGORIA:\");\n\n btnagregacategoria.setBackground(new java.awt.Color(0, 27, 134));\n btnagregacategoria.setFont(new java.awt.Font(\"Tahoma\", 1, 10)); // NOI18N\n btnagregacategoria.setForeground(new java.awt.Color(255, 255, 255));\n btnagregacategoria.setText(\"AGREGAR\");\n btnagregacategoria.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));\n btnagregacategoria.setEnabled(false);\n btnagregacategoria.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnagregacategoriaActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout jPanel4Layout = new javax.swing.GroupLayout(jPanel4);\n jPanel4.setLayout(jPanel4Layout);\n jPanel4Layout.setHorizontalGroup(\n jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel4Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel4Layout.createSequentialGroup()\n .addComponent(jLabel17)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(txtPeso1, javax.swing.GroupLayout.PREFERRED_SIZE, 61, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(jLabel12)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(txtUnidades, javax.swing.GroupLayout.PREFERRED_SIZE, 59, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(27, 27, 27)\n .addComponent(cbxReceta, javax.swing.GroupLayout.PREFERRED_SIZE, 120, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGroup(jPanel4Layout.createSequentialGroup()\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel4Layout.createSequentialGroup()\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel19)\n .addComponent(jLabel16)\n .addComponent(jLabel18)\n .addComponent(jLabel9)\n .addComponent(jLabel22)\n .addComponent(jLabel11)\n .addComponent(jLabel1))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel4Layout.createSequentialGroup()\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(cbxEnvase1, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(cbxMarca1, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(cbxMedida1, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(cbcucategoria, javax.swing.GroupLayout.Alignment.TRAILING, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(jPanel4Layout.createSequentialGroup()\n .addComponent(cbxTipos1, javax.swing.GroupLayout.PREFERRED_SIZE, 241, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 12, Short.MAX_VALUE)))\n .addGap(18, 18, 18)\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(btnagregacategoria, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 90, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(btnAgregarMedida1, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 90, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(btnAgregarTipo1, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 90, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(btnAgreEnvase1, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 90, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(btnAgreMarca1, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 90, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGroup(jPanel4Layout.createSequentialGroup()\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel4Layout.createSequentialGroup()\n .addComponent(codigo, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jLabel20)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(cbxIva, javax.swing.GroupLayout.PREFERRED_SIZE, 105, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel4Layout.createSequentialGroup()\n .addComponent(txtcantMinima, javax.swing.GroupLayout.PREFERRED_SIZE, 66, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(editarPrecio, javax.swing.GroupLayout.PREFERRED_SIZE, 138, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGap(0, 0, Short.MAX_VALUE))))\n .addGroup(jPanel4Layout.createSequentialGroup()\n .addComponent(jLabel4)\n .addGap(30, 30, 30)\n .addComponent(codigo2, javax.swing.GroupLayout.PREFERRED_SIZE, 160, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 103, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel4Layout.createSequentialGroup()\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel7)\n .addComponent(jLabel15))\n .addGap(68, 68, 68)\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(txtDescripcion1, javax.swing.GroupLayout.DEFAULT_SIZE, 363, Short.MAX_VALUE)\n .addComponent(producto))))\n .addGap(32, 32, 32))))\n );\n jPanel4Layout.setVerticalGroup(\n jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel4Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel4Layout.createSequentialGroup()\n .addGap(7, 7, 7)\n .addComponent(jLabel4))\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(codigo2, javax.swing.GroupLayout.PREFERRED_SIZE, 28, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jButton1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel20, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(cbxIva, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(codigo, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel19, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel7, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(producto, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel15, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(txtDescripcion1, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(cbcucategoria, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(btnagregacategoria, javax.swing.GroupLayout.PREFERRED_SIZE, 24, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addComponent(jLabel1, javax.swing.GroupLayout.Alignment.TRAILING))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel11, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(cbxMedida1, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(btnAgregarMedida1, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(cbxTipos1, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(btnAgregarTipo1, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel16, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(cbxEnvase1, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(btnAgreEnvase1, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel18, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel9, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(cbxMarca1, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(btnAgreMarca1, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel22, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(txtcantMinima, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(editarPrecio, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel17, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(txtPeso1, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel12, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(txtUnidades, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(cbxReceta, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18))\n );\n\n txtFechaActual1.setEditable(false);\n txtFechaActual1.setFont(new java.awt.Font(\"Tahoma\", 1, 12)); // NOI18N\n txtFechaActual1.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n txtFechaActual1.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(50, 99, 50)));\n\n jLabel14.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n jLabel14.setForeground(new java.awt.Color(0, 27, 134));\n jLabel14.setText(\"FECHA:\");\n\n btnModificar.setBackground(new java.awt.Color(0, 27, 134));\n btnModificar.setFont(new java.awt.Font(\"Tahoma\", 1, 11)); // NOI18N\n btnModificar.setForeground(new java.awt.Color(255, 255, 255));\n btnModificar.setText(\"MODIFICAR\");\n btnModificar.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));\n btnModificar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnModificarActionPerformed(evt);\n }\n });\n\n jLabel21.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n jLabel21.setForeground(new java.awt.Color(0, 27, 134));\n jLabel21.setText(\"USUARIO:\");\n\n lblEliminar.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/img/iconos/eliminar.png\"))); // NOI18N\n lblEliminar.setText(\"ELIMINAR\");\n lblEliminar.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));\n lblEliminar.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n lblEliminarMouseClicked(evt);\n }\n });\n\n lblGuardar.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/img/iconos/guardar.png\"))); // NOI18N\n lblGuardar.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));\n lblGuardar.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n lblGuardarMouseClicked(evt);\n }\n });\n\n lblImprimir.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/img/iconos/imprimir.png\"))); // NOI18N\n lblImprimir.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));\n lblImprimir.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n lblImprimirMouseClicked(evt);\n }\n });\n\n jPanel1.setBorder(javax.swing.BorderFactory.createMatteBorder(0, 0, 1, 0, new java.awt.Color(50, 99, 50)));\n jPanel1.setOpaque(false);\n\n jLabel23.setBackground(new java.awt.Color(0, 153, 153));\n jLabel23.setFont(new java.awt.Font(\"Tahoma\", 1, 24)); // NOI18N\n jLabel23.setForeground(new java.awt.Color(0, 27, 134));\n jLabel23.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel23.setText(\"PRODUCTO\");\n jLabel23.addMouseMotionListener(new java.awt.event.MouseMotionAdapter() {\n public void mouseDragged(java.awt.event.MouseEvent evt) {\n jLabel23MouseDragged(evt);\n }\n });\n jLabel23.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mousePressed(java.awt.event.MouseEvent evt) {\n jLabel23MousePressed(evt);\n }\n });\n\n lblCerrar.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/img/iconos/cerrar.png\"))); // NOI18N\n lblCerrar.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));\n lblCerrar.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n lblCerrarMouseClicked(evt);\n }\n });\n\n javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);\n jPanel1.setLayout(jPanel1Layout);\n jPanel1Layout.setHorizontalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(251, 251, 251)\n .addComponent(jLabel23)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(lblCerrar)\n .addGap(44, 44, 44))\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel23, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(12, 12, 12)\n .addComponent(lblCerrar)\n .addContainerGap())\n );\n\n javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3);\n jPanel3.setLayout(jPanel3Layout);\n jPanel3Layout.setHorizontalGroup(\n jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel1, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel3Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jLabel21)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(id_usuario)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel14)\n .addGap(6, 6, 6)\n .addComponent(txtFechaActual1, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(btnModificar, javax.swing.GroupLayout.PREFERRED_SIZE, 135, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(14, 14, 14))\n .addGroup(jPanel3Layout.createSequentialGroup()\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel3Layout.createSequentialGroup()\n .addGap(126, 126, 126)\n .addComponent(lblImprimir)\n .addGap(100, 100, 100)\n .addComponent(lblGuardar)\n .addGap(88, 88, 88)\n .addComponent(lblEliminar))\n .addGroup(jPanel3Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jPanel4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addContainerGap(24, Short.MAX_VALUE))\n );\n jPanel3Layout.setVerticalGroup(\n jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel3Layout.createSequentialGroup()\n .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(txtFechaActual1, javax.swing.GroupLayout.PREFERRED_SIZE, 27, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(btnModificar, javax.swing.GroupLayout.PREFERRED_SIZE, 36, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel14, javax.swing.GroupLayout.PREFERRED_SIZE, 27, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(id_usuario, javax.swing.GroupLayout.PREFERRED_SIZE, 27, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel21, javax.swing.GroupLayout.PREFERRED_SIZE, 27, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jPanel4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(lblGuardar)\n .addComponent(lblImprimir)\n .addGroup(jPanel3Layout.createSequentialGroup()\n .addGap(11, 11, 11)\n .addComponent(lblEliminar))))\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(jPanel3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n );\n\n pack();\n }", "private void iniFormEditar()\r\n\t{\r\n\t\tthis.operacion = Variables.OPERACION_EDITAR;\r\n\t\t\r\n\t\t/*Verificamos que tenga permisos*/\r\n\t\tboolean permisoNuevoEditar = this.permisos.permisoEnFormulaior(VariablesPermisos.FORMULARIO_CONCILIACION, VariablesPermisos.OPERACION_NUEVO_EDITAR);\r\n\t\t\r\n\t\tif(permisoNuevoEditar){\r\n\t\t\t\r\n\t\t\tthis.btnEditar.setVisible(false);\r\n\t\t\tthis.conciliar.setVisible(true);\r\n\t\t\tthis.btnEliminar.setVisible(false);\r\n\t\t\tthis.conciliar.setCaption(\"Guardar\");\r\n\t\t\t\r\n\t\t\tthis.nroDocum.setEnabled(false);\r\n\t\t\tthis.fecDoc.setEnabled(true);\r\n\t\t\tthis.observaciones.setEnabled(true);\r\n\t\t\t\r\n\t\t\tthis.botones.setWidth(\"187\");\r\n\t\t}\r\n\t\telse{\r\n\t\t\t\r\n\t\t\t/*Mostramos mensaje Sin permisos para operacion*/\r\n\t\t\tMensajes.mostrarMensajeError(Variables.USUSARIO_SIN_PERMISOS);\r\n\t\t}\r\n\t}", "public FrmCadastro() {\n initComponents();\n \n lblNumeroConta.setText(\"Número da conta: \" + Agencia.getProximaConta());\n \n List<Integer> agencias = Principal.banco.retornarNumeroAgencias();\n for(int i : agencias){\n cmbAgencias.addItem(\"Agência \" + i);\n }\n }", "public FRMCadastrarFornecedor() {\n initComponents();\n }", "public frmUsuarios() {\n initComponents();\n mostrar(\"\");\n inhabilitar();\n }", "private void initFormulario() {\n btnCadastro = findViewById(R.id.btnCadastro);\n editNome = findViewById(R.id.editNome);\n editEmail = findViewById(R.id.editEmail);\n editSenhaA = findViewById(R.id.editSenha);\n editSenhaB = findViewById(R.id.editSenhaB);\n chTermo = findViewById(R.id.chTermos);\n isFormOk = false;\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jLabel1 = new javax.swing.JLabel();\n jLabel2 = new javax.swing.JLabel();\n jLabel3 = new javax.swing.JLabel();\n jLabel4 = new javax.swing.JLabel();\n jLabel5 = new javax.swing.JLabel();\n jLabel6 = new javax.swing.JLabel();\n jLabel7 = new javax.swing.JLabel();\n jLabel8 = new javax.swing.JLabel();\n jLabel9 = new javax.swing.JLabel();\n jtfNombre = new javax.swing.JTextField();\n jtfApellido = new javax.swing.JTextField();\n jtfIdentificacion = new javax.swing.JTextField();\n jtfSalario = new javax.swing.JTextField();\n jtfPension = new javax.swing.JTextField();\n jtfSalud = new javax.swing.JTextField();\n jtfBanco = new javax.swing.JTextField();\n jtfCuenta = new javax.swing.JTextField();\n jScrollPane1 = new javax.swing.JScrollPane();\n jtbEmpleados = new javax.swing.JTable();\n jbtRegistrar = new javax.swing.JButton();\n jbtActualizar = new javax.swing.JButton();\n jLabel10 = new javax.swing.JLabel();\n jtfCargo = new javax.swing.JTextField();\n jbnLimpiar = new javax.swing.JButton();\n\n jLabel1.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n jLabel1.setText(\"Gestion Empleado\");\n\n jLabel2.setText(\"Nombre\");\n\n jLabel3.setText(\"Apellido\");\n\n jLabel4.setText(\"Identificacion\");\n\n jLabel5.setText(\"Salario Basico\");\n\n jLabel6.setText(\"Pension\");\n\n jLabel7.setText(\"Salud\");\n\n jLabel8.setText(\"Banco\");\n\n jLabel9.setText(\"Cuenta\");\n\n jtbEmpleados.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n\n },\n new String [] {\n \"Identificacion\", \"Nombre\", \"Apellido\", \"Cargo\", \"Salario Basico\", \"Pension\", \"Salud\", \"Banco\", \"Cuenta\"\n }\n ) {\n boolean[] canEdit = new boolean [] {\n false, false, false, false, false, false, false, false, false\n };\n\n public boolean isCellEditable(int rowIndex, int columnIndex) {\n return canEdit [columnIndex];\n }\n });\n jtbEmpleados.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jtbEmpleadosMouseClicked(evt);\n }\n });\n jScrollPane1.setViewportView(jtbEmpleados);\n\n jbtRegistrar.setText(\"Registrar\");\n jbtRegistrar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jbtRegistrarActionPerformed(evt);\n }\n });\n\n jbtActualizar.setText(\"Actualizar\");\n jbtActualizar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jbtActualizarActionPerformed(evt);\n }\n });\n\n jLabel10.setText(\"Cargo\");\n\n jbnLimpiar.setText(\"Limpiar\");\n jbnLimpiar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jbnLimpiarActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jScrollPane1)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addGap(0, 0, Short.MAX_VALUE)\n .addComponent(jbnLimpiar)\n .addGap(18, 18, 18)\n .addComponent(jbtActualizar)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jbtRegistrar))\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel1)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel4)\n .addGap(18, 18, 18)\n .addComponent(jtfIdentificacion, javax.swing.GroupLayout.PREFERRED_SIZE, 153, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(22, 22, 22)\n .addComponent(jLabel2)\n .addGap(18, 18, 18)\n .addComponent(jtfNombre, javax.swing.GroupLayout.PREFERRED_SIZE, 131, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(39, 39, 39)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel3)\n .addComponent(jLabel7)\n .addComponent(jLabel10)))\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel5)\n .addComponent(jLabel8))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jtfSalario, javax.swing.GroupLayout.DEFAULT_SIZE, 152, Short.MAX_VALUE)\n .addComponent(jtfBanco))\n .addGap(22, 22, 22)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel6)\n .addGap(18, 18, 18)\n .addComponent(jtfPension, javax.swing.GroupLayout.PREFERRED_SIZE, 131, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel9)\n .addGap(18, 18, 18)\n .addComponent(jtfCuenta, javax.swing.GroupLayout.PREFERRED_SIZE, 133, javax.swing.GroupLayout.PREFERRED_SIZE)))))\n .addGap(49, 49, 49)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jtfCargo, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 200, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jtfSalud, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 200, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jtfApellido, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 200, javax.swing.GroupLayout.PREFERRED_SIZE))))\n .addGap(0, 0, Short.MAX_VALUE)))\n .addContainerGap())\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jLabel1)\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel4)\n .addComponent(jtfIdentificacion, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel2)\n .addComponent(jtfNombre, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel3)\n .addComponent(jtfApellido, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel6)\n .addComponent(jtfPension, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel7)\n .addComponent(jtfSalud, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jtfSalario, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addComponent(jLabel5))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jtfCargo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel8)\n .addComponent(jtfBanco, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel9)\n .addComponent(jtfCuenta, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel10)))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jbtRegistrar)\n .addComponent(jbtActualizar)\n .addComponent(jbnLimpiar))\n .addGap(18, 18, 18)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 262, Short.MAX_VALUE)\n .addContainerGap())\n );\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jPanel2 = new javax.swing.JPanel();\n btnVolver = new javax.swing.JButton();\n jLabel1 = new javax.swing.JLabel();\n cmbRegiones = new javax.swing.JComboBox<>();\n jLabel2 = new javax.swing.JLabel();\n txtInfectados = new javax.swing.JTextField();\n jLabel3 = new javax.swing.JLabel();\n txtFecha = new javax.swing.JTextField();\n btnAddIncidencia = new javax.swing.JButton();\n jLabel4 = new javax.swing.JLabel();\n txtFallecidos = new javax.swing.JTextField();\n jLabel5 = new javax.swing.JLabel();\n txtAlta = new javax.swing.JTextField();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setTitle(\"Añadir Incidencias\");\n setSize(new java.awt.Dimension(761, 516));\n addWindowListener(new java.awt.event.WindowAdapter() {\n public void windowOpened(java.awt.event.WindowEvent evt) {\n formWindowOpened(evt);\n }\n });\n\n jPanel2.setBackground(new java.awt.Color(255, 255, 255));\n\n btnVolver.setText(\"Volver\");\n btnVolver.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnVolverActionPerformed(evt);\n }\n });\n\n jLabel1.setText(\"Region\");\n\n jLabel2.setText(\"Infectados\");\n\n jLabel3.setText(\"Fecha de infección\");\n\n txtFecha.setToolTipText(\"yyyy-mm-dd\");\n\n btnAddIncidencia.setText(\"Añadir incidencia\");\n btnAddIncidencia.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnAddIncidenciaActionPerformed(evt);\n }\n });\n\n jLabel4.setText(\"Fallecidos\");\n\n jLabel5.setText(\"Dados de alta\");\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 .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGap(332, 332, 332)\n .addComponent(btnVolver))\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGap(301, 301, 301)\n .addComponent(btnAddIncidencia)))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup()\n .addContainerGap(14, Short.MAX_VALUE)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel3, javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel1, javax.swing.GroupLayout.Alignment.TRAILING))\n .addGap(18, 18, 18)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(cmbRegiones, 0, 175, Short.MAX_VALUE)\n .addComponent(txtFecha))\n .addGap(61, 61, 61)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup()\n .addComponent(jLabel5)\n .addGap(18, 18, 18)\n .addComponent(txtAlta, javax.swing.GroupLayout.PREFERRED_SIZE, 230, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup()\n .addComponent(jLabel4)\n .addGap(18, 18, 18)\n .addComponent(txtFallecidos, javax.swing.GroupLayout.PREFERRED_SIZE, 230, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup()\n .addComponent(jLabel2)\n .addGap(18, 18, 18)\n .addComponent(txtInfectados, javax.swing.GroupLayout.PREFERRED_SIZE, 230, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGap(29, 29, 29))\n );\n jPanel2Layout.setVerticalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup()\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel2)\n .addComponent(txtInfectados, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel4)\n .addComponent(txtFallecidos, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel5)\n .addComponent(txtAlta, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGap(26, 26, 26)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel1)\n .addComponent(cmbRegiones, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel3)\n .addComponent(txtFecha, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))))\n .addGap(78, 78, 78)\n .addComponent(btnAddIncidencia)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(btnVolver)\n .addContainerGap(24, Short.MAX_VALUE))\n );\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n );\n\n pack();\n setLocationRelativeTo(null);\n }", "public Form_reporte_comuna_y_tipo(Controlador cont) {\n initComponents();\n this.controlador = cont;\n cargarSelect();\n\n }", "protected void limparCampos() {\n\t\tdispose();\r\n\t\tFrmCadastroMidias f = new FrmCadastroMidias();\r\n\t\tf.setLocationRelativeTo(null);\r\n\t\tf.setVisible(true);\r\n\t}", "public CadastrarMarcasModelos() {\n initComponents();\n }", "public frmVenda() {\n initComponents();\n }", "public FrmAbmAfiliado() {\n initComponents();\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 jScrollPane1 = new javax.swing.JScrollPane();\n tablaSocios = new javax.swing.JTable();\n jLabel1 = new javax.swing.JLabel();\n busquedaNombreTxt = new javax.swing.JTextField();\n jPanel2 = new javax.swing.JPanel();\n jScrollPane2 = new javax.swing.JScrollPane();\n tablaArticulos = new javax.swing.JTable();\n jLabel2 = new javax.swing.JLabel();\n busquedaArticulo = new javax.swing.JTextField();\n jPanel3 = new javax.swing.JPanel();\n jScrollPane3 = new javax.swing.JScrollPane();\n tablaVenta = new javax.swing.JTable();\n jLabel4 = new javax.swing.JLabel();\n nombreSocioTxt = new javax.swing.JTextField();\n idSocioTxt = new javax.swing.JTextField();\n jLabel5 = new javax.swing.JLabel();\n calendarioTxt = new com.toedter.calendar.JDateChooser();\n jLabel6 = new javax.swing.JLabel();\n totalTxt = new javax.swing.JTextField();\n quitarBtn = new javax.swing.JButton();\n registrarVentaBtn = new javax.swing.JButton();\n cancelarVentaBtn = new javax.swing.JButton();\n\n setClosable(true);\n setDefaultCloseOperation(javax.swing.WindowConstants.HIDE_ON_CLOSE);\n setIconifiable(true);\n setMaximizable(true);\n setResizable(true);\n setTitle(\"Cargar venta\");\n\n jPanel1.setBorder(javax.swing.BorderFactory.createTitledBorder(\"Clientes\"));\n\n tablaSocios.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n {null, null, null},\n {null, null, null},\n {null, null, null},\n {null, null, null}\n },\n new String [] {\n \"ID\", \"Nombre\", \"Direccion\"\n }\n ) {\n boolean[] canEdit = new boolean [] {\n false, false, false\n };\n\n public boolean isCellEditable(int rowIndex, int columnIndex) {\n return canEdit [columnIndex];\n }\n });\n jScrollPane1.setViewportView(tablaSocios);\n\n jLabel1.setText(\"Nombre\");\n\n busquedaNombreTxt.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n busquedaNombreTxtActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);\n jPanel1.setLayout(jPanel1Layout);\n jPanel1Layout.setHorizontalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 447, Short.MAX_VALUE)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jLabel1)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(busquedaNombreTxt, javax.swing.GroupLayout.PREFERRED_SIZE, 257, 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.BASELINE)\n .addComponent(busquedaNombreTxt, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel1))\n .addGap(18, 18, 18)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 0, Short.MAX_VALUE)\n .addContainerGap())\n );\n\n jPanel2.setBorder(javax.swing.BorderFactory.createTitledBorder(\"Articulos\"));\n\n tablaArticulos.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n {null, null, null, null},\n {null, null, null, null},\n {null, null, null, null},\n {null, null, null, null}\n },\n new String [] {\n \"Codigo\", \"Producto\", \"Stock\", \"Precio venta\"\n }\n ) {\n boolean[] canEdit = new boolean [] {\n false, false, false, false\n };\n\n public boolean isCellEditable(int rowIndex, int columnIndex) {\n return canEdit [columnIndex];\n }\n });\n jScrollPane2.setViewportView(tablaArticulos);\n\n jLabel2.setText(\"Articulo\");\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(6, 6, 6)\n .addComponent(jLabel2)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(busquedaArticulo, javax.swing.GroupLayout.PREFERRED_SIZE, 130, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 0, Short.MAX_VALUE))\n .addComponent(jScrollPane2, javax.swing.GroupLayout.DEFAULT_SIZE, 447, Short.MAX_VALUE)\n );\n jPanel2Layout.setVerticalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup()\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(busquedaArticulo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel2))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 0, Short.MAX_VALUE)\n .addContainerGap())\n );\n\n jPanel3.setBorder(javax.swing.BorderFactory.createTitledBorder(\"Venta\"));\n\n tablaVenta.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n\n },\n new String [] {\n \"ID\", \"Articulo\", \"Cantidad\",\"Precio unit.\", \"Precio tot.\" }\n ) {\n Class[] types = new Class [] {\n java.lang.Integer.class, java.lang.String.class, java.math.BigDecimal.class, java.math.BigDecimal.class, java.math.BigDecimal.class\n };\n boolean[] canEdit = new boolean [] {\n false, false, true, true, false\n };\n\n public Class getColumnClass(int columnIndex) {\n return types [columnIndex];\n }\n\n public boolean isCellEditable(int rowIndex, int columnIndex) {\n return canEdit [columnIndex];\n }\n });\n jScrollPane3.setViewportView(tablaVenta);\n\n jLabel4.setText(\"Cliente\");\n\n nombreSocioTxt.setEditable(false);\n\n idSocioTxt.setEnabled(false);\n\n jLabel5.setText(\"Fecha\");\n\n calendarioTxt.setDateFormatString(\"dd-MM-yyyy\");\n\n jLabel6.setFont(new java.awt.Font(\"Droid Sans\", 1, 24)); // NOI18N\n jLabel6.setText(\"TOTAL $\");\n\n totalTxt.setFont(new java.awt.Font(\"Droid Sans\", 1, 24)); // NOI18N\n\n quitarBtn.setText(\"Quitar articulo\");\n quitarBtn.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n quitarBtnActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3);\n jPanel3.setLayout(jPanel3Layout);\n jPanel3Layout.setHorizontalGroup(\n jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel3Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel3Layout.createSequentialGroup()\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel3Layout.createSequentialGroup()\n .addComponent(jLabel5)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(calendarioTxt, javax.swing.GroupLayout.PREFERRED_SIZE, 164, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 0, Short.MAX_VALUE))\n .addComponent(jScrollPane3, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 494, Short.MAX_VALUE))\n .addContainerGap())\n .addGroup(jPanel3Layout.createSequentialGroup()\n .addComponent(jLabel4)\n .addGap(4, 4, 4)\n .addComponent(nombreSocioTxt)\n .addGap(18, 18, 18)\n .addComponent(idSocioTxt, javax.swing.GroupLayout.PREFERRED_SIZE, 79, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(54, 54, 54))\n .addGroup(jPanel3Layout.createSequentialGroup()\n .addGap(12, 12, 12)\n .addComponent(quitarBtn, javax.swing.GroupLayout.PREFERRED_SIZE, 129, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(63, 63, 63)\n .addComponent(jLabel6)\n .addGap(18, 18, 18)\n .addComponent(totalTxt)\n .addGap(19, 19, 19))))\n );\n jPanel3Layout.setVerticalGroup(\n jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel3Layout.createSequentialGroup()\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(nombreSocioTxt, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel4)\n .addComponent(idSocioTxt, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel3Layout.createSequentialGroup()\n .addGap(11, 11, 11)\n .addComponent(jLabel5))\n .addGroup(jPanel3Layout.createSequentialGroup()\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(calendarioTxt, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel3Layout.createSequentialGroup()\n .addComponent(jScrollPane3, javax.swing.GroupLayout.DEFAULT_SIZE, 258, Short.MAX_VALUE)\n .addGap(29, 29, 29)\n .addComponent(quitarBtn))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel6)\n .addComponent(totalTxt, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGap(37, 37, 37))\n );\n\n registrarVentaBtn.setText(\"Registrar venta\");\n\n cancelarVentaBtn.setText(\"Cancelar venta\");\n cancelarVentaBtn.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n cancelarVentaBtnActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(registrarVentaBtn, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(cancelarVentaBtn, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addComponent(jPanel3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addContainerGap())\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jPanel3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(cancelarVentaBtn, javax.swing.GroupLayout.DEFAULT_SIZE, 39, Short.MAX_VALUE)\n .addComponent(registrarVentaBtn, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))\n .addGroup(layout.createSequentialGroup()\n .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\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 pack();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n NuevoBtn = new javax.swing.JButton();\n CerrarBtn = new javax.swing.JButton();\n jLabel3 = new javax.swing.JLabel();\n txt_descripcion = new javax.swing.JTextField();\n jLabel5 = new javax.swing.JLabel();\n txt_subtotal = new javax.swing.JTextField();\n jLabel6 = new javax.swing.JLabel();\n txt_impuesto = new javax.swing.JTextField();\n jLabel7 = new javax.swing.JLabel();\n txt_total = new javax.swing.JTextField();\n jLabel8 = new javax.swing.JLabel();\n RegistrarBtn = new javax.swing.JButton();\n jLabel9 = new javax.swing.JLabel();\n jcb_paciente = new javax.swing.JComboBox<>();\n jcb_cup = new javax.swing.JComboBox<>();\n jLabel1 = new javax.swing.JLabel();\n lbl_paciente = new javax.swing.JLabel();\n jLabel2 = new javax.swing.JLabel();\n lbl_cup = new javax.swing.JLabel();\n\n setTitle(\"Registrar Factura de Venta\");\n\n NuevoBtn.setText(\"Nuevo\");\n\n CerrarBtn.setText(\"Cerrar\");\n\n jLabel3.setText(\"Id Paciente:\");\n\n jLabel5.setText(\"Descripcion Factura:\");\n\n txt_subtotal.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyTyped(java.awt.event.KeyEvent evt) {\n txt_subtotalKeyTyped(evt);\n }\n });\n\n jLabel6.setText(\"Subtotal:\");\n\n txt_impuesto.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyTyped(java.awt.event.KeyEvent evt) {\n txt_impuestoKeyTyped(evt);\n }\n });\n\n jLabel7.setText(\"Impuesto:\");\n\n txt_total.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyTyped(java.awt.event.KeyEvent evt) {\n txt_totalKeyTyped(evt);\n }\n });\n\n jLabel8.setText(\"Total:\");\n\n RegistrarBtn.setText(\"Registrar\");\n\n jLabel9.setText(\"Id Cup:\");\n\n jcb_paciente.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"Item 1\", \"Item 2\", \"Item 3\", \"Item 4\" }));\n\n jcb_cup.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"Item 1\", \"Item 2\", \"Item 3\", \"Item 4\" }));\n\n jLabel1.setText(\"Nombre Paciente:\");\n\n jLabel2.setText(\"Nombre Cup:\");\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(30, 30, 30)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(RegistrarBtn)\n .addComponent(jLabel8)\n .addComponent(jLabel7)\n .addComponent(jLabel6)\n .addComponent(jLabel5)\n .addComponent(jLabel3)\n .addComponent(jLabel1)\n .addComponent(jLabel9)\n .addComponent(jLabel2))\n .addGap(42, 42, 42)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jcb_cup, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(layout.createSequentialGroup()\n .addGap(58, 58, 58)\n .addComponent(NuevoBtn)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 123, Short.MAX_VALUE)\n .addComponent(CerrarBtn))\n .addComponent(txt_descripcion)\n .addComponent(txt_subtotal)\n .addComponent(txt_impuesto)\n .addComponent(txt_total)\n .addComponent(jcb_paciente, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(lbl_paciente, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(lbl_cup, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGap(92, 92, 92))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(31, 31, 31)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel3)\n .addComponent(jcb_paciente, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addComponent(jLabel1)\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel9)\n .addComponent(jcb_cup, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGroup(layout.createSequentialGroup()\n .addComponent(lbl_paciente)\n .addGap(38, 38, 38)))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel2)\n .addComponent(lbl_cup))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel5)\n .addComponent(txt_descripcion, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(21, 21, 21)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel6)\n .addComponent(txt_subtotal, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel7)\n .addComponent(txt_impuesto, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel8)\n .addComponent(txt_total, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(62, 62, 62)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(RegistrarBtn)\n .addComponent(NuevoBtn)\n .addComponent(CerrarBtn))\n .addContainerGap(64, Short.MAX_VALUE))\n );\n\n pack();\n }", "public frmAdministracion() {\n initComponents();\n skin();\n DaoAdministracion da = new DaoAdministracion();\n da.setAdministracion(txtMedioAdministracion.getText());\n tblAdministracion.setModel(da.listar());\n\n }", "public form_utama_kasir() {\n initComponents(); \n koneksi DB = new koneksi(); \n con = DB.getConnection();\n aturtext();\n tampilkan();\n nofakturbaru();\n loadData();\n panelEditDataDiri.setVisible(false);\n txtHapusKodeTransaksi.setVisible(false);\n txtHapusQtyTransaksi.setVisible(false);\n txtHapusStokTersedia.setVisible(false);\n }", "public frmCliente() {\n initComponents();\n CargarProvinciasRes();\n CargarProvinciasTra();\n ManejadorCliente objCli = new ManejadorCliente();\n }", "public InformeCobranzasView() {\n super();\n setLocationRelativeTo(this);\n initComponents();\n estadoInicial();\n\n estilosFecha();\n Utilidad.soloNumeros(txHasta);\n Utilidad.soloNumeros(txDesde);\n \n cbOpcion.setSelectedIndex(0);\n\n }", "public frmClienteIncobrable() {\n initComponents();\n \n //CARGAR PROVINCIAS\n ArrayList<clsComboBox> dataProvincia = objProvincia.consultarTipoIncobrable(); \n for(int i=0;i<dataProvincia.size();i=i+1)\n {\n clsComboBox oItem = new clsComboBox(dataProvincia.get(i).getCodigo(), dataProvincia.get(i).getDescripcion());\n cmbTipoIncobrable.addItem(oItem); \n } \n \n \n //CARGAR AUTOCOMPLETAR\n List<String> dataCedula = objCliente.consultarCedulas(); \n SelectAllUtils.install(txtCedula);\n ListDataIntelliHints intellihints = new ListDataIntelliHints(txtCedula, dataCedula); \n intellihints.setCaseSensitive(false);\n \n Date fechaActual = new Date();\n txtFecha.setDate(fechaActual);\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jLabel1 = new javax.swing.JLabel();\n jButton4 = new javax.swing.JButton();\n cancelButton = new javax.swing.JButton();\n jPanel2 = new javax.swing.JPanel();\n jLabel6 = new javax.swing.JLabel();\n jLabel12 = new javax.swing.JLabel();\n jLabel13 = new javax.swing.JLabel();\n jLabel14 = new javax.swing.JLabel();\n jLabel15 = new javax.swing.JLabel();\n jTextField1 = new javax.swing.JTextField();\n jTextField2 = new javax.swing.JTextField();\n jTextField3 = new javax.swing.JTextField();\n jTextField4 = new javax.swing.JTextField();\n jTextField5 = new javax.swing.JTextField();\n jTextField6 = new javax.swing.JTextField();\n jLabel11 = new javax.swing.JLabel();\n jTextField7 = new javax.swing.JTextField();\n jLabel16 = new javax.swing.JLabel();\n jTextField8 = new javax.swing.JTextField();\n jLabel2 = new javax.swing.JLabel();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n addWindowListener(new java.awt.event.WindowAdapter() {\n public void windowClosing(java.awt.event.WindowEvent evt) {\n formWindowClosing(evt);\n }\n });\n\n jLabel1.setFont(new java.awt.Font(\"Yu Gothic\", 0, 18)); // NOI18N\n jLabel1.setText(\"MODIFICAR ARTICULO\");\n\n jButton4.setText(\"Modificar\");\n jButton4.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton4ActionPerformed(evt);\n }\n });\n\n cancelButton.setText(\"Cancelar\");\n cancelButton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n cancelButtonActionPerformed(evt);\n }\n });\n\n jPanel2.setBorder(javax.swing.BorderFactory.createEtchedBorder());\n\n jLabel6.setText(\"Precio Venta:\");\n\n jLabel12.setText(\"Código:\");\n\n jLabel13.setText(\"Nombre:\");\n\n jLabel14.setText(\"Marca:\");\n\n jLabel15.setText(\"Precio Costo:\");\n\n jLabel11.setText(\"Observaciones:\");\n\n jLabel16.setText(\"Rubro:\");\n\n jLabel2.setText(\"Stock:\");\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 .addContainerGap()\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addComponent(jLabel12)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jTextField1))\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addComponent(jLabel13)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jTextField2))\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addComponent(jLabel14)\n .addGap(8, 8, 8)\n .addComponent(jTextField3))\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addComponent(jLabel2)\n .addGap(7, 7, 7)\n .addComponent(jTextField6, javax.swing.GroupLayout.DEFAULT_SIZE, 243, Short.MAX_VALUE))\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel6)\n .addComponent(jLabel15))\n .addGap(8, 8, 8)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jTextField5)\n .addComponent(jTextField4)))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup()\n .addComponent(jLabel11)\n .addGap(11, 11, 11)\n .addComponent(jTextField7, javax.swing.GroupLayout.DEFAULT_SIZE, 194, Short.MAX_VALUE))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup()\n .addComponent(jLabel16)\n .addGap(11, 11, 11)\n .addComponent(jTextField8, javax.swing.GroupLayout.DEFAULT_SIZE, 236, Short.MAX_VALUE)))\n .addContainerGap())\n );\n jPanel2Layout.setVerticalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel12)\n .addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel13)\n .addComponent(jTextField2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(6, 6, 6)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel14)\n .addComponent(jTextField3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel6)\n .addComponent(jTextField4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel15)\n .addComponent(jTextField5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jTextField6, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel2))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel11)\n .addComponent(jTextField7, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel16)\n .addComponent(jTextField8, 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 javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(71, 71, 71)\n .addComponent(jLabel1))\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(cancelButton)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jButton4))\n .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jLabel1)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jButton4)\n .addComponent(cancelButton))\n .addGap(30, 30, 30))\n );\n\n pack();\n }", "private void iniciarDatos(Cliente pCliente, int pOpcionForm, FrmClienteLec pFrmPadre) {\n frmPadre = pFrmPadre;\n clienteActual = new Cliente();\n opcionForm = pOpcionForm;\n this.txtNombre.setEditable(true); // colocar txtNombre que se pueda editar \n this.txtApellido.setEditable(true); // colocar txtNombre que se pueda editar \n this.txtDui.setEditable(true); // colocar txtNombre que se pueda editar \n this.txtNumero.setEditable(true); // colocar txtNombre que se pueda editar \n switch (pOpcionForm) {\n case FormEscOpcion.CREAR:\n btnOk.setText(\"Nuevo\"); // modificar el texto del boton btnOk a \"Nuevo\" cuando la pOpcionForm sea CREAR\n this.btnOk.setMnemonic('N'); // modificar la tecla de atajo del boton btnOk a la letra N\n this.setTitle(\"Crear un nuevo Cliente\"); // modificar el titulo de la pantalla de FrmRolEsc\n break;\n case FormEscOpcion.MODIFICAR:\n btnOk.setText(\"Modificar\"); // modificar el texto del boton btnOk a \"Modificar\" cuando la pOpcionForm sea MODIFICAR\n this.btnOk.setMnemonic('M'); // modificar la tecla de atajo del boton btnOk a la letra M\n this.setTitle(\"Modificar el Cliente\"); // modificar el titulo de la pantalla de FrmRolEsc\n llenarControles(pCliente);\n break;\n case FormEscOpcion.ELIMINAR:\n btnOk.setText(\"Eliminar\");// modificar el texto del boton btnOk a \"Eliminar\" cuando la pOpcionForm sea ELIMINAR\n this.btnOk.setMnemonic('E'); // modificar la tecla de atajo del boton btnOk a la letra E\n this.setTitle(\"Eliminar el Cliente\"); // modificar el titulo de la pantalla de FrmRolEsc\n this.txtNombre.setEditable(false); // deshabilitar la caja de texto txtNombre\n this.txtApellido.setEditable(false);\n this.txtDui.setEditable(false);\n this.txtNumero.setEditable(false);\n llenarControles(pCliente);\n break;\n case FormEscOpcion.VER:\n btnOk.setText(\"Ver\"); // modificar el texto del boton btnOk a \"Ver\" cuando la pOpcionForm sea VER\n btnOk.setVisible(false); // ocultar el boton btnOk cuando pOpcionForm sea opcion VER\n this.setTitle(\"Ver el Cliente\"); // modificar el titulo de la pantalla de FrmRolEsc\n this.txtNombre.setEditable(false); // deshabilitar la caja de texto txtNombre\n this.txtApellido.setEditable(false);\n this.txtDui.setEditable(false);\n this.txtNumero.setEditable(false);\n llenarControles(pCliente);\n break;\n default:\n break;\n }\n }", "private void iniFormLectura()\r\n\t{\r\n\t\tboolean permisoNuevoEditar = this.permisos.permisoEnFormulaior(VariablesPermisos.FORMULARIO_CONCILIACION, VariablesPermisos.OPERACION_NUEVO_EDITAR);\r\n\t\tboolean permisoEliminar = this.permisos.permisoEnFormulaior(VariablesPermisos.FORMULARIO_CONCILIACION, VariablesPermisos.OPERACION_BORRAR);\r\n\t\t\r\n\t\tgridDetalle.setSelectionMode(SelectionMode.NONE);\r\n\t\tthis.importeConciliado.setVisible(false);\r\n\t\tthis.lblConciliado.setVisible(false);\r\n\t\tthis.horizontalImportes.setCaption(\"Importe\");\r\n\t\t\r\n\t\t/*Si tiene permisos de editar habilitamos el boton de \r\n\t\t * edicion*/\r\n\t\tif(permisoNuevoEditar){\r\n\t\t\t\r\n\t\t\tthis.btnEditar.setVisible(true);\r\n\t\t\tthis.conciliar.setVisible(false);\r\n\t\t\t//this.enableBotonesLectura();\r\n\t\t\t\r\n\t\t}else{ /*de lo contrario lo deshabilitamos*/\r\n\t\t\t\r\n\t\t\tthis.btnEditar.setVisible(false);\r\n\t\t\tthis.conciliar.setVisible(false);\r\n\t\t\t//this.disableBotonLectura();\r\n\t\t}\r\n\t\t\r\n\t\tif(permisoEliminar){\r\n\t\t\tthis.btnEliminar.setVisible(true);\r\n\t\t}\r\n\t\telse{\r\n\t\t\tthis.btnEliminar.setVisible(false);\r\n\t\t}\r\n\t\t\r\n\t\tthis.comboBancos.setEnabled(false);\r\n\t\tthis.comboCuentas.setEnabled(false);\r\n\t\tthis.nroDocum.setEnabled(false);\r\n\t\tthis.impTotMo.setEnabled(false);\r\n\t\tthis.fecDoc.setEnabled(false);\r\n\t\tthis.fecValor.setEnabled(false);\r\n\t\tthis.observaciones.setEnabled(false);\r\n\t\tthis.nroDocum.setVisible(true);\r\n\t\tthis.lblComprobante.setVisible(true);\r\n\t\t\r\n\t\t/*Seteamos la grilla con los formularios*/\r\n\t\tthis.container = \r\n\t\t\t\tnew BeanItemContainer<ConciliacionDetalleVO>(ConciliacionDetalleVO.class);\r\n\t\t\r\n\t\t/*No mostramos las validaciones*/\r\n\t\tthis.setearValidaciones(false);\r\n\t\t\r\n\t\t/*Dejamos todods los campos readonly*/\r\n\t\t//this.readOnlyFields(true);\r\n\t\t\r\n\t\tif(this.lstDetalle != null)\r\n\t\t{\r\n\t\t\tfor (ConciliacionDetalleVO detVO : this.lstDetalle) {\r\n\t\t\t\tcontainer.addBean(detVO);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t//this.actualizarGrillaContainer(container);\r\n\t\t\r\n\t\t\t\t\t\t\r\n\t}", "public RegistrarCompra() {\n initComponents();\n tabelaFornecedor.setModel(modelFornecedor);\n\n }", "public VentanaReglas() {\n\t\tsetDefaultCloseOperation(JFrame.DO_NOTHING_ON_CLOSE);\n\t\tsetBounds(100, 100, 498, 338);\n\t\t_contentPane = new JPanel();\n\t\t_contentPane.setBackground(SystemColor.menu);\n\t\t_contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));\n\t\tsetContentPane(_contentPane);\n\t\t_contentPane.setLayout(null);\n\n\t\ttry {\n\t\t\tUIManager.setLookAndFeel(\"com.sun.java.swing.plaf.nimbus.NimbusLookAndFeel\");\n\t\t} catch (ClassNotFoundException | InstantiationException | IllegalAccessException\n\t\t\t\t| UnsupportedLookAndFeelException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\t_btnNewButton = new JButton(\"Entendido\");\n\t\t_btnNewButton.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tsetVisible(false);\n\t\t\t}\n\t\t});\n\t\t_btnNewButton.setBounds(196, 271, 89, 23);\n\t\t_contentPane.add(_btnNewButton);\n\n\t\tJLabel lblcmoJugar = new JLabel(\"\\u00BFC\\u00F3mo jugar 2048?\");\n\t\tlblcmoJugar.setForeground(new Color(255, 51, 0));\n\t\tlblcmoJugar.setFont(new Font(\"Tahoma\", Font.PLAIN, 16));\n\t\tlblcmoJugar.setBounds(152, 0, 155, 20);\n\t\t_contentPane.add(lblcmoJugar);\n\t\t\n\t\tJPanel panel = new JPanel();\n\t\tpanel.setBounds(10, 23, 462, 247);\n\t\t_contentPane.add(panel);\n\t\tpanel.setLayout(null);\n\t\t\n\t\tTextArea textArea = new TextArea();\n\t\ttextArea.setBounds(0, 0, 462, 247);\n\t\ttextArea.setText(\"El juego es simple, este consiste en desplazar la matriz en cuatro direcciones \\r\\ncos las flechas del cursor (arriba, abajo, derecha e izquierda) la matriz se \\r\\ndesplaza de forma integra sobre los espacios vac\\u00EDos.\\r\\nEn cuanto las baldosas se muevan si hay dos iguales las mismas se suman, \\r\\nel objetivo principal es que producto de la suma una baldosa llegue al valor \\r\\n2048.\\r\\n\\r\\n* Los controles son: Arriba \\u2191 , Abajo \\u2193, Izquierda \\u2190 y Derecha \\u2192.\\r\\n* Para deshacer una jugada presionar la letra (d).\\r\\n* Para reiniciar el juego presionar la tecla escape (Esc) respondiendo a la \\r\\n consulta.\\r\\n* En caso de querer abandonar el juego solamente presiona con el click \\r\\n izquierdo del mouse la caracter\\u00EDstica X que se encuentra en la parte \\r\\n superior derecha de la ventana principal.\\r\\n BUENA SUERTE Y QUE LO DISFRUTES!!!!!!!! {O u O}\\r\\n\");\n\t\ttextArea.setMaximumSize(new Dimension(42767, 42767));\n\t\ttextArea.setEditable(false);\n\t\tpanel.add(textArea);\n\n\t}", "public void btn_actualizar(View v) {\n String conteo1 = cap_1.getText().toString();\n String conteo2 = cap_2.getText().toString();\n\n if (conteo1.isEmpty()) {\n tostada(\"No haz seleccionado un registro para actualizar\").show();\n } else if (conteo2.isEmpty()) {\n tostada(\"No haz seleccionado un registro para actualizar\").show();\n } else {\n String msj = \"Seguro que deseas actualizar este registro\";\n String tipo = \"btn_actualizar\";\n DialogConfirm(msj, tipo);\n }\n }", "public void actualizar() {\n\n try {\n\n servtpDocumento.actualizarTipoDocumento(tipoDocumento);\n req = RequestContext.getCurrentInstance();\n req.execute(\"PF('dialogoTpDocuActualizar').hide();\");//Cierra el dialogo para actualizar\n req = null;\n tipoDocumento = new TipoDocumento();\n MensajesFaces.informacion(\"Actualizado\", \"Exitoso\");\n\n } catch (Exception e) {\n MensajesFaces.error(\"Error\", \"detalle\" + e);\n\n }\n\n }", "public CadastroProdutoNew() {\n initComponents();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n apagarVenda = new javax.swing.JButton();\n jLabel14 = new javax.swing.JLabel();\n jLabel36 = new javax.swing.JLabel();\n lucro = new javax.swing.JTextField();\n jLabel34 = new javax.swing.JLabel();\n codigoCliente = new javax.swing.JTextField();\n custoNaMadri = new javax.swing.JTextField();\n jLabel35 = new javax.swing.JLabel();\n jLabel28 = new javax.swing.JLabel();\n valorLiquidoML = new javax.swing.JTextField();\n jLabel29 = new javax.swing.JLabel();\n jLabel2 = new javax.swing.JLabel();\n jLabel3 = new javax.swing.JLabel();\n dataVenda = new javax.swing.JTextField();\n jLabel4 = new javax.swing.JLabel();\n precoVendido = new javax.swing.JTextField();\n jLabel15 = new javax.swing.JLabel();\n jLabel17 = new javax.swing.JLabel();\n jLabel18 = new javax.swing.JLabel();\n jLabel16 = new javax.swing.JLabel();\n jLabel19 = new javax.swing.JLabel();\n codigoPeca = new javax.swing.JTextField();\n jLabel5 = new javax.swing.JLabel();\n jLabel21 = new javax.swing.JLabel();\n jLabel20 = new javax.swing.JLabel();\n jScrollPane1 = new javax.swing.JScrollPane();\n cadastroObservacoes = new javax.swing.JTextArea();\n jLabel6 = new javax.swing.JLabel();\n tarifaDoML = new javax.swing.JTextField();\n jLabel22 = new javax.swing.JLabel();\n porcentagemDoMercadoLivre = new javax.swing.JTextField();\n quantidadeVendida = new javax.swing.JTextField();\n botAtualizar = new javax.swing.JButton();\n botaoEntrarIniciall1 = new javax.swing.JButton();\n nomePeca = new javax.swing.JTextField();\n valorFrete = new javax.swing.JTextField();\n jLabel30 = new javax.swing.JLabel();\n jLabel23 = new javax.swing.JLabel();\n jLabel25 = new javax.swing.JLabel();\n jLabel31 = new javax.swing.JLabel();\n jLabel12 = new javax.swing.JLabel();\n jLabel24 = new javax.swing.JLabel();\n jLabel13 = new javax.swing.JLabel();\n jLabel27 = new javax.swing.JLabel();\n jLabel1 = new javax.swing.JLabel();\n jLabel37 = new javax.swing.JLabel();\n jLabel26 = new javax.swing.JLabel();\n jLabel11 = new javax.swing.JLabel();\n jLabel7 = new javax.swing.JLabel();\n jLabel8 = new javax.swing.JLabel();\n jLabel9 = new javax.swing.JLabel();\n jLabel10 = new javax.swing.JLabel();\n mostrarNivel = new javax.swing.JLabel();\n acessoUser = new javax.swing.JLabel();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n setTitle(\"EDITAR VENDA\");\n setResizable(false);\n addWindowListener(new java.awt.event.WindowAdapter() {\n public void windowActivated(java.awt.event.WindowEvent evt) {\n formWindowActivated(evt);\n }\n });\n getContentPane().setLayout(null);\n\n apagarVenda.setBackground(new java.awt.Color(0, 0, 0));\n apagarVenda.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n apagarVenda.setForeground(new java.awt.Color(255, 255, 255));\n apagarVenda.setText(\"APAGAR\");\n apagarVenda.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n apagarVendaActionPerformed(evt);\n }\n });\n apagarVenda.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n apagarVendaKeyPressed(evt);\n }\n });\n getContentPane().add(apagarVenda);\n apagarVenda.setBounds(300, 640, 160, 40);\n\n jLabel14.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagens/APAGAR.png\"))); // NOI18N\n getContentPane().add(jLabel14);\n jLabel14.setBounds(440, 610, 80, 70);\n\n jLabel36.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n jLabel36.setForeground(new java.awt.Color(255, 255, 255));\n jLabel36.setText(\"LUCRO\");\n getContentPane().add(jLabel36);\n jLabel36.setBounds(280, 350, 70, 17);\n\n lucro.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n lucro.setText(\"0,00\");\n lucro.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n lucroFocusGained(evt);\n }\n });\n lucro.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n lucroActionPerformed(evt);\n }\n });\n lucro.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n lucroKeyPressed(evt);\n }\n });\n getContentPane().add(lucro);\n lucro.setBounds(280, 380, 140, 30);\n\n jLabel34.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n jLabel34.setForeground(new java.awt.Color(255, 255, 255));\n jLabel34.setText(\"CÓDIGO DA VENDA\");\n getContentPane().add(jLabel34);\n jLabel34.setBounds(480, 350, 180, 17);\n\n codigoCliente.setEditable(false);\n codigoCliente.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n codigoCliente.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n codigoClienteFocusGained(evt);\n }\n });\n codigoCliente.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n codigoClienteActionPerformed(evt);\n }\n });\n codigoCliente.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n codigoClienteKeyPressed(evt);\n }\n });\n getContentPane().add(codigoCliente);\n codigoCliente.setBounds(480, 380, 140, 30);\n\n custoNaMadri.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n custoNaMadri.setText(\"0,00\");\n custoNaMadri.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n custoNaMadriFocusGained(evt);\n }\n });\n custoNaMadri.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n custoNaMadriActionPerformed(evt);\n }\n });\n custoNaMadri.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n custoNaMadriKeyPressed(evt);\n }\n });\n getContentPane().add(custoNaMadri);\n custoNaMadri.setBounds(30, 380, 190, 30);\n\n jLabel35.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n jLabel35.setForeground(new java.awt.Color(255, 255, 255));\n jLabel35.setText(\"PREÇO DE CUSTO NA MADRI\");\n getContentPane().add(jLabel35);\n jLabel35.setBounds(30, 350, 210, 17);\n\n jLabel28.setFont(new java.awt.Font(\"Tahoma\", 1, 21)); // NOI18N\n jLabel28.setForeground(new java.awt.Color(255, 255, 255));\n jLabel28.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel28.setText(\"EDITAR VENDA\");\n getContentPane().add(jLabel28);\n jLabel28.setBounds(260, 10, 320, 60);\n\n valorLiquidoML.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n valorLiquidoML.setText(\"0,00\");\n valorLiquidoML.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n valorLiquidoMLFocusGained(evt);\n }\n });\n valorLiquidoML.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n valorLiquidoMLActionPerformed(evt);\n }\n });\n valorLiquidoML.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n valorLiquidoMLKeyPressed(evt);\n }\n });\n getContentPane().add(valorLiquidoML);\n valorLiquidoML.setBounds(480, 300, 140, 30);\n\n jLabel29.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n jLabel29.setForeground(new java.awt.Color(255, 255, 255));\n jLabel29.setText(\"VALOR LÍQUIDO DO MERCADO LIVRE\");\n getContentPane().add(jLabel29);\n jLabel29.setBounds(480, 270, 270, 17);\n\n jLabel2.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n jLabel2.setForeground(new java.awt.Color(255, 255, 255));\n jLabel2.setText(\"PORCENTAGEM DO MERCADO LIVRE\");\n getContentPane().add(jLabel2);\n jLabel2.setBounds(480, 190, 270, 17);\n\n jLabel3.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n jLabel3.setForeground(new java.awt.Color(255, 255, 255));\n jLabel3.setText(\"DATA\");\n getContentPane().add(jLabel3);\n jLabel3.setBounds(280, 110, 100, 17);\n\n dataVenda.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n dataVenda.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n dataVendaFocusGained(evt);\n }\n });\n dataVenda.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n dataVendaKeyPressed(evt);\n }\n });\n getContentPane().add(dataVenda);\n dataVenda.setBounds(280, 140, 140, 30);\n\n jLabel4.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n jLabel4.setForeground(new java.awt.Color(255, 255, 255));\n jLabel4.setText(\"QUANTIDADE VENDIDA\");\n getContentPane().add(jLabel4);\n jLabel4.setBounds(480, 110, 190, 17);\n\n precoVendido.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n precoVendido.setText(\"0,00\");\n precoVendido.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n precoVendidoFocusGained(evt);\n }\n });\n precoVendido.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n precoVendidoKeyPressed(evt);\n }\n });\n getContentPane().add(precoVendido);\n precoVendido.setBounds(280, 220, 140, 30);\n\n jLabel15.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n jLabel15.setForeground(new java.awt.Color(255, 0, 0));\n jLabel15.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel15.setText(\"*\");\n getContentPane().add(jLabel15);\n jLabel15.setBounds(230, 330, 40, 60);\n\n jLabel17.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n jLabel17.setForeground(new java.awt.Color(255, 0, 0));\n jLabel17.setText(\"*\");\n getContentPane().add(jLabel17);\n jLabel17.setBounds(330, 100, 30, 40);\n\n jLabel18.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n jLabel18.setForeground(new java.awt.Color(255, 0, 0));\n jLabel18.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel18.setText(\"*\");\n getContentPane().add(jLabel18);\n jLabel18.setBounds(660, 110, 20, 22);\n\n jLabel16.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n jLabel16.setForeground(new java.awt.Color(255, 0, 0));\n jLabel16.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel16.setText(\"*\");\n getContentPane().add(jLabel16);\n jLabel16.setBounds(90, 100, 30, 40);\n\n jLabel19.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n jLabel19.setForeground(new java.awt.Color(255, 255, 255));\n jLabel19.setText(\"CÓDIGO\");\n getContentPane().add(jLabel19);\n jLabel19.setBounds(30, 110, 70, 17);\n\n codigoPeca.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n codigoPeca.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusLost(java.awt.event.FocusEvent evt) {\n codigoPecaFocusLost(evt);\n }\n });\n codigoPeca.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n codigoPecaKeyPressed(evt);\n }\n });\n getContentPane().add(codigoPeca);\n codigoPeca.setBounds(30, 140, 130, 30);\n\n jLabel5.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagens/MER-LIVRE.png\"))); // NOI18N\n getContentPane().add(jLabel5);\n jLabel5.setBounds(715, 5, 70, 75);\n\n jLabel21.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n jLabel21.setForeground(new java.awt.Color(255, 255, 255));\n jLabel21.setText(\"OBSERVAÇÕES\");\n getContentPane().add(jLabel21);\n jLabel21.setBounds(30, 430, 200, 17);\n\n jLabel20.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n jLabel20.setForeground(new java.awt.Color(255, 255, 255));\n jLabel20.setText(\"TARIFA DO MERCADO LIVRE\");\n getContentPane().add(jLabel20);\n jLabel20.setBounds(30, 270, 210, 17);\n\n cadastroObservacoes.setColumns(20);\n cadastroObservacoes.setFont(new java.awt.Font(\"Tahoma\", 0, 16)); // NOI18N\n cadastroObservacoes.setRows(5);\n cadastroObservacoes.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n cadastroObservacoesKeyPressed(evt);\n }\n });\n jScrollPane1.setViewportView(cadastroObservacoes);\n\n getContentPane().add(jScrollPane1);\n jScrollPane1.setBounds(30, 460, 730, 140);\n\n jLabel6.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel6.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagens/Sem título.png\"))); // NOI18N\n jLabel6.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n getContentPane().add(jLabel6);\n jLabel6.setBounds(-4, 0, 150, 80);\n\n tarifaDoML.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n tarifaDoML.setText(\"0,00\");\n tarifaDoML.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n tarifaDoMLFocusGained(evt);\n }\n });\n tarifaDoML.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n tarifaDoMLKeyPressed(evt);\n }\n });\n getContentPane().add(tarifaDoML);\n tarifaDoML.setBounds(30, 300, 140, 30);\n\n jLabel22.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n jLabel22.setForeground(new java.awt.Color(255, 255, 255));\n jLabel22.setText(\"PREÇO DE VENDA\");\n getContentPane().add(jLabel22);\n jLabel22.setBounds(280, 190, 150, 17);\n\n porcentagemDoMercadoLivre.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n porcentagemDoMercadoLivre.setText(\"11,00\");\n porcentagemDoMercadoLivre.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n porcentagemDoMercadoLivreFocusGained(evt);\n }\n });\n porcentagemDoMercadoLivre.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n porcentagemDoMercadoLivreActionPerformed(evt);\n }\n });\n porcentagemDoMercadoLivre.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n porcentagemDoMercadoLivreKeyPressed(evt);\n }\n });\n getContentPane().add(porcentagemDoMercadoLivre);\n porcentagemDoMercadoLivre.setBounds(480, 220, 140, 30);\n\n quantidadeVendida.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n quantidadeVendida.setText(\"1\");\n quantidadeVendida.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n quantidadeVendidaFocusGained(evt);\n }\n });\n quantidadeVendida.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n quantidadeVendidaKeyPressed(evt);\n }\n });\n getContentPane().add(quantidadeVendida);\n quantidadeVendida.setBounds(480, 140, 140, 30);\n\n botAtualizar.setBackground(new java.awt.Color(0, 0, 0));\n botAtualizar.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n botAtualizar.setForeground(new java.awt.Color(255, 255, 255));\n botAtualizar.setText(\"ATUALIZAR\");\n botAtualizar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n botAtualizarActionPerformed(evt);\n }\n });\n botAtualizar.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n botAtualizarKeyPressed(evt);\n }\n });\n getContentPane().add(botAtualizar);\n botAtualizar.setBounds(30, 640, 160, 40);\n\n botaoEntrarIniciall1.setBackground(new java.awt.Color(0, 0, 0));\n botaoEntrarIniciall1.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n botaoEntrarIniciall1.setForeground(new java.awt.Color(255, 255, 255));\n botaoEntrarIniciall1.setText(\"PESQUISAR\");\n botaoEntrarIniciall1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n botaoEntrarIniciall1ActionPerformed(evt);\n }\n });\n botaoEntrarIniciall1.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n botaoEntrarIniciall1KeyPressed(evt);\n }\n });\n getContentPane().add(botaoEntrarIniciall1);\n botaoEntrarIniciall1.setBounds(560, 640, 160, 40);\n\n nomePeca.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n nomePeca.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n nomePecaFocusGained(evt);\n }\n });\n nomePeca.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n nomePecaKeyPressed(evt);\n }\n });\n getContentPane().add(nomePeca);\n nomePeca.setBounds(30, 220, 210, 30);\n\n valorFrete.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n valorFrete.setText(\"0,00\");\n valorFrete.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n valorFreteFocusGained(evt);\n }\n });\n valorFrete.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n valorFreteActionPerformed(evt);\n }\n });\n valorFrete.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n valorFreteKeyPressed(evt);\n }\n });\n getContentPane().add(valorFrete);\n valorFrete.setBounds(280, 300, 140, 30);\n\n jLabel30.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n jLabel30.setForeground(new java.awt.Color(255, 255, 255));\n jLabel30.setText(\"VALOR DO FRETE\");\n getContentPane().add(jLabel30);\n jLabel30.setBounds(280, 270, 140, 17);\n\n jLabel23.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n jLabel23.setForeground(new java.awt.Color(255, 255, 255));\n jLabel23.setText(\"NOME\");\n getContentPane().add(jLabel23);\n jLabel23.setBounds(30, 190, 150, 17);\n\n jLabel25.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n jLabel25.setForeground(new java.awt.Color(255, 0, 0));\n jLabel25.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel25.setText(\"*\");\n getContentPane().add(jLabel25);\n jLabel25.setBounds(400, 170, 40, 60);\n\n jLabel31.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n jLabel31.setForeground(new java.awt.Color(255, 0, 0));\n jLabel31.setText(\"*\");\n getContentPane().add(jLabel31);\n jLabel31.setBounds(750, 160, 30, 80);\n\n jLabel12.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagens/fundo preto.png\"))); // NOI18N\n jLabel12.setMinimumSize(new java.awt.Dimension(1057, 340));\n jLabel12.setPreferredSize(new java.awt.Dimension(1057, 350));\n getContentPane().add(jLabel12);\n jLabel12.setBounds(-80, 4, 760, 77);\n\n jLabel24.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n jLabel24.setForeground(new java.awt.Color(255, 0, 0));\n jLabel24.setText(\"*\");\n getContentPane().add(jLabel24);\n jLabel24.setBounds(90, 170, 30, 60);\n\n jLabel13.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagens/PROCURA HEHE.png\"))); // NOI18N\n getContentPane().add(jLabel13);\n jLabel13.setBounds(700, 610, 80, 70);\n\n jLabel27.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n jLabel27.setForeground(new java.awt.Color(255, 0, 0));\n jLabel27.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel27.setText(\"*\");\n getContentPane().add(jLabel27);\n jLabel27.setBounds(230, 250, 40, 60);\n\n jLabel1.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagens/fundo preto.png\"))); // NOI18N\n jLabel1.setMinimumSize(new java.awt.Dimension(1057, 340));\n jLabel1.setPreferredSize(new java.awt.Dimension(1057, 350));\n getContentPane().add(jLabel1);\n jLabel1.setBounds(140, 4, 760, 77);\n\n jLabel37.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n jLabel37.setForeground(new java.awt.Color(255, 0, 0));\n jLabel37.setText(\"*\");\n getContentPane().add(jLabel37);\n jLabel37.setBounds(420, 250, 30, 60);\n\n jLabel26.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagens/atua.png\"))); // NOI18N\n getContentPane().add(jLabel26);\n jLabel26.setBounds(170, 610, 80, 70);\n\n jLabel11.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagens/FUNDO AMARELO.jpg\"))); // NOI18N\n getContentPane().add(jLabel11);\n jLabel11.setBounds(0, -331, 810, 430);\n\n jLabel7.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagens/RS.png\"))); // NOI18N\n getContentPane().add(jLabel7);\n jLabel7.setBounds(310, 10, 610, 530);\n\n jLabel8.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagens/RS.png\"))); // NOI18N\n getContentPane().add(jLabel8);\n jLabel8.setBounds(320, 340, 570, 530);\n\n jLabel9.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagens/RS.png\"))); // NOI18N\n getContentPane().add(jLabel9);\n jLabel9.setBounds(-20, 450, 570, 530);\n\n jLabel10.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagens/RS.png\"))); // NOI18N\n getContentPane().add(jLabel10);\n jLabel10.setBounds(0, 0, 570, 530);\n\n mostrarNivel.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n mostrarNivel.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n mostrarNivel.setText(\"5\");\n getContentPane().add(mostrarNivel);\n mostrarNivel.setBounds(520, 130, 50, 70);\n\n acessoUser.setFont(new java.awt.Font(\"Tahoma\", 1, 10)); // NOI18N\n acessoUser.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n acessoUser.setText(\"ADMIN\");\n getContentPane().add(acessoUser);\n acessoUser.setBounds(520, 220, 70, 60);\n\n setBounds(427, 5, 790, 716);\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n BotonCancelar = new javax.swing.JButton();\n BotonAceptar = new javax.swing.JButton();\n jLabel1 = new javax.swing.JLabel();\n CampoNombre = new javax.swing.JTextField();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n setTitle(\"Crear Tema\");\n setIconImage(null);\n setModal(true);\n setResizable(false);\n\n BotonCancelar.setText(\"Cancelar\");\n BotonCancelar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n BotonCancelarActionPerformed(evt);\n }\n });\n\n BotonAceptar.setText(\"Aceptar\");\n BotonAceptar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n BotonAceptarActionPerformed(evt);\n }\n });\n\n jLabel1.setText(\"Introduce el nombre del tema:\");\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jLabel1)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(BotonCancelar)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 21, Short.MAX_VALUE)\n .addComponent(BotonAceptar))\n .addComponent(CampoNombre, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 167, Short.MAX_VALUE))\n .addGap(32, 32, 32))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addGap(25, 25, 25)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel1)\n .addComponent(CampoNombre, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 53, Short.MAX_VALUE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(BotonAceptar)\n .addComponent(BotonCancelar))\n .addGap(24, 24, 24))\n );\n\n pack();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jPanel15 = new javax.swing.JPanel();\n jDialog1 = new javax.swing.JDialog();\n jLabel1 = new javax.swing.JLabel();\n jLabel2 = new javax.swing.JLabel();\n nuevoConvenioDescripcion = new javax.swing.JTextField();\n jLabel3 = new javax.swing.JLabel();\n nuevoConvenioMatriculaAnual = new javax.swing.JTextField();\n jLabel4 = new javax.swing.JLabel();\n nuevoConvenioCursado = new javax.swing.JTextField();\n jLabel5 = new javax.swing.JLabel();\n nuevoConvenioCantidadDeCuotas = new javax.swing.JTextField();\n nuevoConvenioBtnVolver = new javax.swing.JButton();\n nuevoConvenioBtnGuardar = new javax.swing.JButton();\n nuevoConvenioBtnModificar = new javax.swing.JButton();\n buttonGroup1 = new javax.swing.ButtonGroup();\n jPanel6 = new javax.swing.JPanel();\n jLabel71 = new javax.swing.JLabel();\n jLabel72 = new javax.swing.JLabel();\n jLabel75 = new javax.swing.JLabel();\n CursosagregarAlumnoCBCiclo = new javax.swing.JComboBox<>();\n jLabel76 = new javax.swing.JLabel();\n CursosagregarAlumnoCBCurso = new javax.swing.JComboBox<>();\n jLabel77 = new javax.swing.JLabel();\n CursosagregarAlumnoCBHorario = new javax.swing.JComboBox<>();\n jLabel78 = new javax.swing.JLabel();\n jLabel79 = new javax.swing.JLabel();\n jLabel80 = new javax.swing.JLabel();\n CursosagregarAlumnoCBConvenio = new javax.swing.JComboBox<>();\n CursosagregarAlumnoBtnMas = new javax.swing.JButton();\n CursosagregarAlumnoBtnEditar = new javax.swing.JButton();\n jLabel81 = new javax.swing.JLabel();\n jPanel16 = new javax.swing.JPanel();\n jPanel17 = new javax.swing.JPanel();\n agregarAlumnoTxtCuotasNormal = new javax.swing.JTextField();\n jLabel84 = new javax.swing.JLabel();\n jLabel85 = new javax.swing.JLabel();\n jLabel86 = new javax.swing.JLabel();\n agregarAlumnoTxtCantCuotas = new javax.swing.JTextField();\n jLabel82 = new javax.swing.JLabel();\n jLabel83 = new javax.swing.JLabel();\n CursosagregarAlumnoTxtInscripcion = new javax.swing.JTextField();\n jLabel87 = new javax.swing.JLabel();\n jLabel88 = new javax.swing.JLabel();\n jLabel89 = new javax.swing.JLabel();\n jLabel90 = new javax.swing.JLabel();\n jLabel91 = new javax.swing.JLabel();\n CursosagregarAlumnoLblAntesDel5 = new javax.swing.JLabel();\n CursosagregarAlumnoLblDel6Al10 = new javax.swing.JLabel();\n CursosagregarAlumnoLblDel11Al20 = new javax.swing.JLabel();\n CursosagregarAlumnoLbl21aFinDeMes = new javax.swing.JLabel();\n CursosagregarAlumnoLblPasadoElMes = new javax.swing.JLabel();\n jLabel6 = new javax.swing.JLabel();\n txtCostoCertificado = new javax.swing.JTextField();\n jLabel7 = new javax.swing.JLabel();\n jSpinner1 = new javax.swing.JSpinner();\n certificadoFecha1 = new javax.swing.JRadioButton();\n certificadoFecha = new org.jdesktop.swingx.JXDatePicker();\n certificadoFecha2 = new javax.swing.JRadioButton();\n CursosagregarAlumnoTxtGProfesor = new javax.swing.JTextField();\n jLabel92 = new javax.swing.JLabel();\n jLabel93 = new javax.swing.JLabel();\n CursosagregarAlumnoCBInscripcionesMultiples = new javax.swing.JComboBox();\n jLabel94 = new javax.swing.JLabel();\n jLabel95 = new javax.swing.JLabel();\n CursosagregarAlumnoTxtFechaAltaDia = new javax.swing.JTextField();\n jLabel98 = new javax.swing.JLabel();\n CursosagregarAlumnoCBModalidad = new javax.swing.JComboBox<>();\n jLabel99 = new javax.swing.JLabel();\n jPanel18 = new javax.swing.JPanel();\n CursosagregarAlumnoBtnAceptar = new javax.swing.JButton();\n CursosagregarAlumnoBtnCancelar = new javax.swing.JButton();\n btnModificar = new javax.swing.JButton();\n CursosagregarAlumnoLblInicioDeClases = new javax.swing.JLabel();\n primeraCuotaFecha = new org.jdesktop.swingx.JXDatePicker();\n\n jPanel15.setBackground(new java.awt.Color(204, 255, 255));\n\n javax.swing.GroupLayout jPanel15Layout = new javax.swing.GroupLayout(jPanel15);\n jPanel15.setLayout(jPanel15Layout);\n jPanel15Layout.setHorizontalGroup(\n jPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 0, Short.MAX_VALUE)\n );\n jPanel15Layout.setVerticalGroup(\n jPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 56, Short.MAX_VALUE)\n );\n\n jLabel1.setBackground(java.awt.Color.blue);\n jLabel1.setFont(new java.awt.Font(\"Tahoma\", 1, 12)); // NOI18N\n jLabel1.setForeground(java.awt.Color.white);\n jLabel1.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel1.setText(\"Agregar Nuevo Convenio\");\n jLabel1.setOpaque(true);\n\n jLabel2.setText(\"Descripción:\");\n\n jLabel3.setText(\"Matrícula Anual:\");\n\n jLabel4.setText(\"Cursado:\");\n\n jLabel5.setText(\"Cantidad de Cuotas:\");\n\n nuevoConvenioBtnVolver.setText(\"Volver\");\n nuevoConvenioBtnVolver.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n nuevoConvenioBtnVolverActionPerformed(evt);\n }\n });\n\n nuevoConvenioBtnGuardar.setText(\"Guardar Nuevo\");\n nuevoConvenioBtnGuardar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n nuevoConvenioBtnGuardarActionPerformed(evt);\n }\n });\n\n nuevoConvenioBtnModificar.setText(\"Modificar\");\n nuevoConvenioBtnModificar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n nuevoConvenioBtnModificarActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout jDialog1Layout = new javax.swing.GroupLayout(jDialog1.getContentPane());\n jDialog1.getContentPane().setLayout(jDialog1Layout);\n jDialog1Layout.setHorizontalGroup(\n jDialog1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(jDialog1Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jDialog1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel2)\n .addComponent(jLabel3)\n .addComponent(jLabel4)\n .addComponent(jLabel5)\n .addComponent(nuevoConvenioBtnGuardar))\n .addGap(18, 18, 18)\n .addGroup(jDialog1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jDialog1Layout.createSequentialGroup()\n .addGroup(jDialog1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(nuevoConvenioCantidadDeCuotas, javax.swing.GroupLayout.DEFAULT_SIZE, 157, Short.MAX_VALUE)\n .addComponent(nuevoConvenioCursado)\n .addComponent(nuevoConvenioMatriculaAnual)\n .addComponent(nuevoConvenioDescripcion))\n .addGap(0, 0, Short.MAX_VALUE))\n .addGroup(jDialog1Layout.createSequentialGroup()\n .addComponent(nuevoConvenioBtnModificar)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(nuevoConvenioBtnVolver)))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n jDialog1Layout.setVerticalGroup(\n jDialog1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jDialog1Layout.createSequentialGroup()\n .addGap(0, 0, 0)\n .addComponent(jLabel1)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jDialog1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel2)\n .addComponent(nuevoConvenioDescripcion, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jDialog1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel3)\n .addComponent(nuevoConvenioMatriculaAnual, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jDialog1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel4)\n .addComponent(nuevoConvenioCursado, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jDialog1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel5)\n .addComponent(nuevoConvenioCantidadDeCuotas, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 55, Short.MAX_VALUE)\n .addGroup(jDialog1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(nuevoConvenioBtnVolver)\n .addComponent(nuevoConvenioBtnGuardar)\n .addComponent(nuevoConvenioBtnModificar))\n .addContainerGap())\n );\n\n buttonGroup1.add(certificadoFecha1);\n buttonGroup1.add(certificadoFecha2);\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n\n jPanel6.setBackground(new java.awt.Color(102, 153, 255));\n\n jLabel71.setBackground(new java.awt.Color(0, 102, 255));\n jLabel71.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n jLabel71.setForeground(new java.awt.Color(255, 255, 255));\n jLabel71.setText(\"Curso / Carrera que realiza\");\n jLabel71.setOpaque(true);\n\n jLabel72.setText(String.format(\"ciclo = %s\",java.time.Year.now().toString()));\n\n jLabel75.setFont(new java.awt.Font(\"Tahoma\", 0, 13)); // NOI18N\n jLabel75.setText(\"Ciclo\");\n\n CursosagregarAlumnoCBCiclo.setFont(new java.awt.Font(\"Tahoma\", 1, 11)); // NOI18N\n CursosagregarAlumnoCBCiclo.setForeground(new java.awt.Color(0, 102, 255));\n CursosagregarAlumnoCBCiclo.setModel(new javax.swing.DefaultComboBoxModel(new String[] { String.valueOf(java.time.Year.now().getValue()), String.valueOf(java.time.Year.now().getValue()-1),String.valueOf(java.time.Year.now().getValue()+1)}));\n CursosagregarAlumnoCBCiclo.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n CursosagregarAlumnoCBCicloActionPerformed(evt);\n }\n });\n\n jLabel76.setFont(new java.awt.Font(\"Tahoma\", 0, 13)); // NOI18N\n jLabel76.setText(\"Curso\");\n\n CursosagregarAlumnoCBCurso.setFont(new java.awt.Font(\"Tahoma\", 1, 11)); // NOI18N\n CursosagregarAlumnoCBCurso.setForeground(new java.awt.Color(0, 102, 255));\n setearDatosCursos();\n\n jLabel77.setFont(new java.awt.Font(\"Tahoma\", 0, 13)); // NOI18N\n jLabel77.setText(\"Horario\");\n\n CursosagregarAlumnoCBHorario.setFont(new java.awt.Font(\"Tahoma\", 1, 11)); // NOI18N\n CursosagregarAlumnoCBHorario.setForeground(new java.awt.Color(0, 102, 255));\n\n jLabel78.setFont(new java.awt.Font(\"Tahoma\", 0, 13)); // NOI18N\n jLabel78.setText(\"Inicio de Clases\");\n\n jLabel79.setBackground(new java.awt.Color(0, 102, 255));\n jLabel79.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n jLabel79.setForeground(new java.awt.Color(255, 255, 255));\n jLabel79.setText(\"Arancel\");\n jLabel79.setOpaque(true);\n\n jLabel80.setFont(new java.awt.Font(\"Tahoma\", 0, 13)); // NOI18N\n jLabel80.setText(\"Convenio\");\n\n CursosagregarAlumnoCBConvenio.setForeground(new java.awt.Color(0, 102, 255));\n setearConvenios();\n CursosagregarAlumnoCBConvenio.setSelectedItem(\"9-Normal\");\n\n CursosagregarAlumnoBtnMas.setText(\"+\");\n CursosagregarAlumnoBtnMas.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n CursosagregarAlumnoBtnMasActionPerformed(evt);\n }\n });\n\n CursosagregarAlumnoBtnEditar.setText(\"Editar\");\n\n jLabel81.setBackground(new java.awt.Color(204, 255, 255));\n jLabel81.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n jLabel81.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel81.setText(\"ARANCELES RESULTANTES\");\n jLabel81.setOpaque(true);\n\n jPanel17.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));\n jPanel17.setToolTipText(\"\");\n\n agregarAlumnoTxtCuotasNormal.setFont(new java.awt.Font(\"Tahoma\", 1, 11)); // NOI18N\n agregarAlumnoTxtCuotasNormal.setForeground(new java.awt.Color(0, 102, 255));\n agregarAlumnoTxtCuotasNormal.setInputVerifier(new OnlyNumberValidator(this, txtCostoCertificado, \"\"));\n agregarAlumnoTxtCuotasNormal.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusLost(java.awt.event.FocusEvent evt) {\n agregarAlumnoTxtCuotasNormalFocusLost(evt);\n }\n });\n\n jLabel84.setFont(new java.awt.Font(\"Tahoma\", 0, 13)); // NOI18N\n jLabel84.setText(\"Cuota Normal\");\n\n jLabel85.setFont(new java.awt.Font(\"Tahoma\", 0, 13)); // NOI18N\n jLabel85.setText(\"$\");\n\n jLabel86.setFont(new java.awt.Font(\"Tahoma\", 0, 13)); // NOI18N\n jLabel86.setText(\"Cuotas.\");\n\n agregarAlumnoTxtCantCuotas.setFont(new java.awt.Font(\"Tahoma\", 1, 11)); // NOI18N\n agregarAlumnoTxtCantCuotas.setForeground(new java.awt.Color(0, 102, 255));\n agregarAlumnoTxtCantCuotas.setText(\"6\");\n agregarAlumnoTxtCantCuotas.setInputVerifier(new OnlyNumberValidator(this, txtCostoCertificado, \"\"));\n\n javax.swing.GroupLayout jPanel17Layout = new javax.swing.GroupLayout(jPanel17);\n jPanel17.setLayout(jPanel17Layout);\n jPanel17Layout.setHorizontalGroup(\n jPanel17Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel17Layout.createSequentialGroup()\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(jPanel17Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jLabel86, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(agregarAlumnoTxtCantCuotas))\n .addGap(41, 41, 41)\n .addComponent(jLabel85)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel17Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel84)\n .addComponent(agregarAlumnoTxtCuotasNormal, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(22, 22, 22))\n );\n jPanel17Layout.setVerticalGroup(\n jPanel17Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel17Layout.createSequentialGroup()\n .addGap(26, 26, 26)\n .addGroup(jPanel17Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(agregarAlumnoTxtCantCuotas, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(jPanel17Layout.createSequentialGroup()\n .addGroup(jPanel17Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel84)\n .addComponent(jLabel86))\n .addGap(1, 1, 1)\n .addGroup(jPanel17Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel85)\n .addComponent(agregarAlumnoTxtCuotasNormal, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))))\n .addGap(37, 37, 37))\n );\n\n jLabel82.setFont(new java.awt.Font(\"Tahoma\", 0, 13)); // NOI18N\n jLabel82.setText(\"Inscripción\");\n\n jLabel83.setFont(new java.awt.Font(\"Tahoma\", 0, 13)); // NOI18N\n jLabel83.setText(\"$\");\n\n CursosagregarAlumnoTxtInscripcion.setFont(new java.awt.Font(\"Tahoma\", 1, 11)); // NOI18N\n CursosagregarAlumnoTxtInscripcion.setForeground(new java.awt.Color(0, 102, 255));\n CursosagregarAlumnoTxtInscripcion.setText(\"0.00\");\n CursosagregarAlumnoTxtInscripcion.setInputVerifier(new OnlyNumberValidator(this, txtCostoCertificado, \"\"));\n\n jLabel87.setFont(new java.awt.Font(\"Tahoma\", 0, 13)); // NOI18N\n jLabel87.setText(\"Antes del 5:\");\n\n jLabel88.setFont(new java.awt.Font(\"Tahoma\", 0, 13)); // NOI18N\n jLabel88.setText(\"del 6 al 10:\");\n\n jLabel89.setFont(new java.awt.Font(\"Tahoma\", 0, 13)); // NOI18N\n jLabel89.setText(\"11 al 20:\");\n\n jLabel90.setFont(new java.awt.Font(\"Tahoma\", 0, 13)); // NOI18N\n jLabel90.setText(\"21 a fin de mes:\");\n\n jLabel91.setFont(new java.awt.Font(\"Tahoma\", 0, 13)); // NOI18N\n jLabel91.setText(\"Pasado mes:\");\n\n CursosagregarAlumnoLblAntesDel5.setFont(new java.awt.Font(\"Tahoma\", 1, 13)); // NOI18N\n CursosagregarAlumnoLblAntesDel5.setText(\"$100\");\n\n CursosagregarAlumnoLblDel6Al10.setFont(new java.awt.Font(\"Tahoma\", 1, 13)); // NOI18N\n CursosagregarAlumnoLblDel6Al10.setText(\"$200\");\n\n CursosagregarAlumnoLblDel11Al20.setFont(new java.awt.Font(\"Tahoma\", 1, 13)); // NOI18N\n CursosagregarAlumnoLblDel11Al20.setText(\"$300\");\n\n CursosagregarAlumnoLbl21aFinDeMes.setFont(new java.awt.Font(\"Tahoma\", 1, 13)); // NOI18N\n CursosagregarAlumnoLbl21aFinDeMes.setText(\"$400\");\n\n CursosagregarAlumnoLblPasadoElMes.setFont(new java.awt.Font(\"Tahoma\", 1, 13)); // NOI18N\n CursosagregarAlumnoLblPasadoElMes.setText(\"$500\");\n\n jLabel6.setText(\"Costo Certif\");\n\n txtCostoCertificado.setFont(new java.awt.Font(\"Tahoma\", 1, 11)); // NOI18N\n txtCostoCertificado.setForeground(new java.awt.Color(0, 102, 255));\n txtCostoCertificado.setText(\"300\");\n txtCostoCertificado.setInputVerifier(new OnlyNumberValidator(this, txtCostoCertificado, \"\"));\n\n jLabel7.setText(\"Cant pagos Certif:\");\n\n jSpinner1.setModel(new javax.swing.SpinnerNumberModel(1, 1, 3, 1));\n\n certificadoFecha1.setText(\"Mes y Año Primera Cuota Certif\");\n certificadoFecha1.addChangeListener(new javax.swing.event.ChangeListener() {\n public void stateChanged(javax.swing.event.ChangeEvent evt) {\n certificadoFecha1StateChanged(evt);\n }\n });\n\n setearDatePicker(certificadoFecha);\n certificadoFecha.setEnabled(false);\n\n certificadoFecha2.setText(\"Ultimo/s mes/es de cursado\");\n\n javax.swing.GroupLayout jPanel16Layout = new javax.swing.GroupLayout(jPanel16);\n jPanel16.setLayout(jPanel16Layout);\n jPanel16Layout.setHorizontalGroup(\n jPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel16Layout.createSequentialGroup()\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(jPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel16Layout.createSequentialGroup()\n .addGap(20, 20, 20)\n .addComponent(jLabel82))\n .addGroup(jPanel16Layout.createSequentialGroup()\n .addComponent(jLabel83)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(CursosagregarAlumnoTxtInscripcion, javax.swing.GroupLayout.PREFERRED_SIZE, 89, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGap(18, 18, 18)\n .addComponent(jPanel17, javax.swing.GroupLayout.PREFERRED_SIZE, 222, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(66, 66, 66)\n .addGroup(jPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel16Layout.createSequentialGroup()\n .addGroup(jPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel87)\n .addComponent(jLabel88)\n .addComponent(jLabel89))\n .addGap(35, 35, 35)\n .addGroup(jPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(CursosagregarAlumnoLblDel11Al20)\n .addComponent(CursosagregarAlumnoLblDel6Al10)\n .addComponent(CursosagregarAlumnoLblAntesDel5)))\n .addGroup(jPanel16Layout.createSequentialGroup()\n .addGroup(jPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel90)\n .addComponent(jLabel91))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(CursosagregarAlumnoLblPasadoElMes)\n .addComponent(CursosagregarAlumnoLbl21aFinDeMes))))\n .addGap(34, 34, 34))\n .addGroup(jPanel16Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jLabel6)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(txtCostoCertificado, javax.swing.GroupLayout.PREFERRED_SIZE, 89, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel7)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jSpinner1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(certificadoFecha1)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(certificadoFecha, javax.swing.GroupLayout.PREFERRED_SIZE, 116, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(certificadoFecha2)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n jPanel16Layout.setVerticalGroup(\n jPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel16Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel16Layout.createSequentialGroup()\n .addGroup(jPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel87)\n .addComponent(CursosagregarAlumnoLblAntesDel5))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel88)\n .addComponent(CursosagregarAlumnoLblDel6Al10))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel89)\n .addComponent(CursosagregarAlumnoLblDel11Al20))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel90)\n .addComponent(CursosagregarAlumnoLbl21aFinDeMes))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel91)\n .addComponent(CursosagregarAlumnoLblPasadoElMes)))\n .addComponent(jPanel17, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(jPanel16Layout.createSequentialGroup()\n .addGap(24, 24, 24)\n .addComponent(jLabel82)\n .addGap(1, 1, 1)\n .addGroup(jPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel83)\n .addComponent(CursosagregarAlumnoTxtInscripcion, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))))\n .addGap(36, 36, 36)\n .addGroup(jPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel6)\n .addComponent(txtCostoCertificado, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel7)\n .addComponent(jSpinner1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(certificadoFecha1)\n .addComponent(certificadoFecha, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(certificadoFecha2))\n .addContainerGap())\n );\n\n CursosagregarAlumnoTxtGProfesor.setFont(new java.awt.Font(\"Tahoma\", 1, 11)); // NOI18N\n CursosagregarAlumnoTxtGProfesor.setForeground(new java.awt.Color(0, 102, 255));\n\n jLabel92.setFont(new java.awt.Font(\"Tahoma\", 0, 13)); // NOI18N\n jLabel92.setText(\"G. Profesor:\");\n\n jLabel93.setFont(new java.awt.Font(\"Tahoma\", 0, 13)); // NOI18N\n jLabel93.setText(\"Inscripciones Múltiples\");\n\n CursosagregarAlumnoCBInscripcionesMultiples.setModel(new javax.swing.DefaultComboBoxModel(new String[] { \"Item 1\", \"Item 2\", \"Item 3\", \"Item 4\" }));\n\n jLabel94.setBackground(new java.awt.Color(0, 102, 255));\n jLabel94.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n jLabel94.setForeground(new java.awt.Color(255, 255, 255));\n jLabel94.setText(\"Datos de Alta del alumno a este curso/carrera\");\n jLabel94.setOpaque(true);\n\n jLabel95.setFont(new java.awt.Font(\"Tahoma\", 0, 13)); // NOI18N\n jLabel95.setText(\"Fecha Alta al curso\");\n\n CursosagregarAlumnoTxtFechaAltaDia.setForeground(new java.awt.Color(0, 102, 255));\n CursosagregarAlumnoTxtFechaAltaDia.setText(java.time.LocalDate.now().toString());\n CursosagregarAlumnoTxtFechaAltaDia.setEnabled(false);\n\n jLabel98.setFont(new java.awt.Font(\"Tahoma\", 0, 13)); // NOI18N\n jLabel98.setText(\"Modalidad\");\n\n CursosagregarAlumnoCBModalidad.setModel(new javax.swing.DefaultComboBoxModel(new String[] { \"Presencial\", \"A Distancia\" }));\n\n jLabel99.setFont(new java.awt.Font(\"Tahoma\", 0, 13)); // NOI18N\n jLabel99.setText(\"Mes Primera Cuota\");\n\n jPanel18.setBackground(new java.awt.Color(204, 255, 255));\n\n CursosagregarAlumnoBtnAceptar.setBackground(new java.awt.Color(51, 255, 51));\n CursosagregarAlumnoBtnAceptar.setFont(new java.awt.Font(\"Tahoma\", 1, 11)); // NOI18N\n CursosagregarAlumnoBtnAceptar.setText(\"ACEPTAR\");\n CursosagregarAlumnoBtnAceptar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n CursosagregarAlumnoBtnAceptarActionPerformed(evt);\n }\n });\n\n CursosagregarAlumnoBtnCancelar.setText(\"Cancelar\");\n\n btnModificar.setText(\"Modificar\");\n btnModificar.setEnabled(false);\n btnModificar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnModificarActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout jPanel18Layout = new javax.swing.GroupLayout(jPanel18);\n jPanel18.setLayout(jPanel18Layout);\n jPanel18Layout.setHorizontalGroup(\n jPanel18Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel18Layout.createSequentialGroup()\n .addGap(250, 250, 250)\n .addComponent(CursosagregarAlumnoBtnAceptar)\n .addGap(57, 57, 57)\n .addComponent(btnModificar)\n .addGap(70, 70, 70)\n .addComponent(CursosagregarAlumnoBtnCancelar)\n .addGap(250, 250, 250))\n );\n jPanel18Layout.setVerticalGroup(\n jPanel18Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel18Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel18Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(CursosagregarAlumnoBtnAceptar)\n .addComponent(CursosagregarAlumnoBtnCancelar)\n .addComponent(btnModificar))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n\n CursosagregarAlumnoLblInicioDeClases.setText(\"jLabel1\");\n\n setearDatePicker(primeraCuotaFecha);\n\n javax.swing.GroupLayout jPanel6Layout = new javax.swing.GroupLayout(jPanel6);\n jPanel6.setLayout(jPanel6Layout);\n jPanel6Layout.setHorizontalGroup(\n jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel6Layout.createSequentialGroup()\n .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addComponent(jLabel94, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel79, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel72)\n .addGroup(jPanel6Layout.createSequentialGroup()\n .addGap(28, 28, 28)\n .addComponent(jLabel80)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(CursosagregarAlumnoCBConvenio, javax.swing.GroupLayout.PREFERRED_SIZE, 737, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(10, 10, 10)\n .addComponent(CursosagregarAlumnoBtnMas)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(CursosagregarAlumnoBtnEditar))\n .addGroup(jPanel6Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jLabel81, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jPanel16, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGap(18, 18, 18)\n .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(CursosagregarAlumnoTxtGProfesor, javax.swing.GroupLayout.PREFERRED_SIZE, 129, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel92)\n .addComponent(jLabel93)\n .addComponent(CursosagregarAlumnoCBInscripcionesMultiples, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGroup(jPanel6Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jLabel95)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(CursosagregarAlumnoTxtFechaAltaDia, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(34, 34, 34)\n .addComponent(jLabel98)\n .addGap(18, 18, 18)\n .addComponent(CursosagregarAlumnoCBModalidad, javax.swing.GroupLayout.PREFERRED_SIZE, 139, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(45, 45, 45)\n .addComponent(jLabel99)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(primeraCuotaFecha, javax.swing.GroupLayout.PREFERRED_SIZE, 137, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel6Layout.createSequentialGroup()\n .addGap(62, 62, 62)\n .addComponent(jPanel18, javax.swing.GroupLayout.PREFERRED_SIZE, 817, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addComponent(jLabel71, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGap(0, 0, Short.MAX_VALUE))\n .addGroup(jPanel6Layout.createSequentialGroup()\n .addGap(27, 27, 27)\n .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel75)\n .addComponent(CursosagregarAlumnoCBCiclo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(48, 48, 48)\n .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel76)\n .addComponent(CursosagregarAlumnoCBCurso, javax.swing.GroupLayout.PREFERRED_SIZE, 313, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(48, 48, 48)\n .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel6Layout.createSequentialGroup()\n .addComponent(jLabel77)\n .addGap(0, 0, Short.MAX_VALUE))\n .addComponent(CursosagregarAlumnoCBHorario, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel78)\n .addComponent(CursosagregarAlumnoLblInicioDeClases))\n .addGap(75, 75, 75))\n );\n jPanel6Layout.setVerticalGroup(\n jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel6Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jLabel71)\n .addGap(0, 0, 0)\n .addComponent(jLabel72)\n .addGap(0, 0, 0)\n .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel6Layout.createSequentialGroup()\n .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel6Layout.createSequentialGroup()\n .addComponent(jLabel77)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(CursosagregarAlumnoCBHorario, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(CursosagregarAlumnoLblInicioDeClases)))\n .addGroup(jPanel6Layout.createSequentialGroup()\n .addGap(2, 2, 2)\n .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel6Layout.createSequentialGroup()\n .addComponent(jLabel76)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(CursosagregarAlumnoCBCurso, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel6Layout.createSequentialGroup()\n .addComponent(jLabel75)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(CursosagregarAlumnoCBCiclo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))))\n .addGap(30, 30, 30)\n .addComponent(jLabel79)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel80)\n .addComponent(CursosagregarAlumnoCBConvenio, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(CursosagregarAlumnoBtnEditar)\n .addComponent(CursosagregarAlumnoBtnMas))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jLabel81)\n .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel16, javax.swing.GroupLayout.PREFERRED_SIZE, 178, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(jPanel6Layout.createSequentialGroup()\n .addGap(35, 35, 35)\n .addComponent(jLabel92)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(CursosagregarAlumnoTxtGProfesor, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(jLabel93)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(CursosagregarAlumnoCBInscripcionesMultiples, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jLabel94)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel95)\n .addComponent(CursosagregarAlumnoTxtFechaAltaDia, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel98)\n .addComponent(CursosagregarAlumnoCBModalidad, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel99)\n .addComponent(primeraCuotaFecha, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jPanel18, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addComponent(jLabel78))\n .addGap(0, 0, Short.MAX_VALUE))\n );\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addGap(0, 0, Short.MAX_VALUE)\n .addComponent(jPanel6, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 0, 0))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel6, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n );\n\n pack();\n }", "public void crearAbonar(){\n \t\n getContentPane().setLayout(new BorderLayout());\n \n p1 = new JPanel();\n\t\tp2 = new JPanel();\n \n\t\t// Not used anymore\n\t\t//String[] a={\"Regresar\",\"Continuar\"},c={\"Cuenta\",\"Monto\"};\n \n\t\t// Layout : # row, # columns\n\t\tp1.setLayout(new GridLayout(1,2));\n \n\t\t// Create the JTextField : Cuenta\n\t\t// And add it to the panel\n tf = new JTextField(\"Cuenta\");\n textos.add(tf);\n tf.setPreferredSize(new Dimension(10,100));\n p1.add(tf);\n\n\t\t// Create the JTextField : Monto\n\t\t// And add it to the panel\n tf = new JTextField(\"Monto\");\n textos.add(tf);\n tf.setPreferredSize(new Dimension(10,100));\n p1.add(tf);\n \n // Add the panel to the Frame layout\n add(p1, BorderLayout.NORTH);\n \n // Create the button Regresar\n buttonRegresar = new JButton(\"Regresar\");\n botones.add(buttonRegresar);\n\n // Create the button Continuar\n buttonContinuar = new JButton(\"Continuar\");\n botones.add(buttonContinuar);\n \n // Layout : 1 row, 2 columns\n p2.setLayout(new GridLayout(1,2));\n \n // Add the buttons to the layout\n for(JButton x:botones){\n x.setPreferredSize(new Dimension(110,110));\n p2.add(x);\n }\n \n // Add the panel to the Frame layout\n add(p2, BorderLayout.SOUTH);\n }", "public Form_soal() {\n initComponents();\n tampil_soal();\n }", "public frmCadastrarProduto() {\n initComponents();\n\n this.cmbCategoria.setEnabled(false);\n this.cmbFornecedor.setEnabled(false);\n this.txtNome.setEnabled(false);\n this.txtDescricao.setEnabled(false);\n this.txtEstoque.setEnabled(false);\n this.txtId.setEnabled(false);\n this.txtPreco.setEnabled(false);\n this.txtPrecoCusto.setEnabled(false);\n this.txtCodBarras.setEnabled(false);\n\n }", "@GetMapping(\"/producto/nuevo\")\n\tpublic String nuevoProductoForm(Model model) {\n\t\tmodel.addAttribute(\"producto\", new Producto());\n\t\treturn \"app/producto/form\";\n\t}", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n envio = new javax.swing.ButtonGroup();\n jPanel1 = new javax.swing.JPanel();\n jPanel2 = new javax.swing.JPanel();\n jPanel3 = new javax.swing.JPanel();\n jLabel2 = new javax.swing.JLabel();\n jTextField2 = new javax.swing.JTextField();\n jLabel3 = new javax.swing.JLabel();\n jLabel7 = new javax.swing.JLabel();\n nombreEmpleado = new javax.swing.JTextField();\n jLabel19 = new javax.swing.JLabel();\n cedulaEmpleado = new javax.swing.JTextField();\n nombre1 = new javax.swing.JTextField();\n jPanel4 = new javax.swing.JPanel();\n jLabel5 = new javax.swing.JLabel();\n tipoBusquedaCliente = new javax.swing.JComboBox();\n txtIngresoDatoCliente = new javax.swing.JTextField();\n buscar = new javax.swing.JButton();\n newCliente = new javax.swing.JLabel();\n jLabel4 = new javax.swing.JLabel();\n nombreCliente = new javax.swing.JTextField();\n jLabel16 = new javax.swing.JLabel();\n cedulaCliente = new javax.swing.JTextField();\n jLabel17 = new javax.swing.JLabel();\n telefonoCliente = new javax.swing.JTextField();\n jLabel18 = new javax.swing.JLabel();\n jLabel20 = new javax.swing.JLabel();\n apellidoCliente = new javax.swing.JTextField();\n celularCliente = new javax.swing.JTextField();\n jPanel5 = new javax.swing.JPanel();\n jLabel1 = new javax.swing.JLabel();\n txtIngresoDatosPro = new javax.swing.JTextField();\n buscar1 = new javax.swing.JButton();\n tipoBusquedaProducto = new javax.swing.JComboBox();\n jLabel10 = new javax.swing.JLabel();\n jButton1 = new javax.swing.JButton();\n cantidadCompraPro = new javax.swing.JTextField();\n jLabel22 = new javax.swing.JLabel();\n nombrePro = new javax.swing.JTextField();\n jLabel23 = new javax.swing.JLabel();\n precioUnitarioPro = new javax.swing.JTextField();\n jLabel24 = new javax.swing.JLabel();\n ivaPro = new javax.swing.JTextField();\n jLabel25 = new javax.swing.JLabel();\n stockPro = new javax.swing.JTextField();\n jLabel26 = new javax.swing.JLabel();\n codBarrasPro = new javax.swing.JTextField();\n jLabel27 = new javax.swing.JLabel();\n pct_descuentoPro = new javax.swing.JTextField();\n jLabel28 = new javax.swing.JLabel();\n uniCompraPro = new javax.swing.JTextField();\n jLabel29 = new javax.swing.JLabel();\n uniVentaPro = new javax.swing.JTextField();\n jPanel6 = new javax.swing.JPanel();\n jScrollPane3 = new javax.swing.JScrollPane();\n tablaDetalles = new javax.swing.JTable();\n jPanel7 = new javax.swing.JPanel();\n btnQuitar = new javax.swing.JButton();\n jLabel9 = new javax.swing.JLabel();\n jLabel12 = new javax.swing.JLabel();\n jLabel13 = new javax.swing.JLabel();\n subtotalTotal = new javax.swing.JTextField();\n descuentoTotal = new javax.swing.JTextField();\n totalFac = new javax.swing.JTextField();\n jPanel9 = new javax.swing.JPanel();\n rbtnSi = new javax.swing.JRadioButton();\n jLabel14 = new javax.swing.JLabel();\n jTextField7 = new javax.swing.JTextField();\n direccionEnvio = new javax.swing.JButton();\n rtbnNo = new javax.swing.JRadioButton();\n jPanel8 = new javax.swing.JPanel();\n jLabel15 = new javax.swing.JLabel();\n txttotalPagar = new javax.swing.JTextField();\n btnRecetaMedica = new javax.swing.JButton();\n jPanel10 = new javax.swing.JPanel();\n jButton6 = new javax.swing.JButton();\n\n setClosable(true);\n setMaximizable(true);\n setResizable(true);\n\n jPanel1.setBackground(new java.awt.Color(255, 255, 255));\n\n jPanel2.setBackground(new java.awt.Color(255, 255, 255));\n jPanel2.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(204, 204, 204)), \"Datos de la Factura\", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font(\"Tahoma\", 0, 13), new java.awt.Color(51, 51, 51))); // NOI18N\n\n jPanel3.setBackground(new java.awt.Color(255, 255, 255));\n jPanel3.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(204, 204, 204)), \"Datos de Factura\"));\n\n jLabel2.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n jLabel2.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel2.setText(\"Número de Factura\");\n\n jTextField2.setEditable(false);\n jTextField2.setBackground(new java.awt.Color(255, 255, 255));\n jTextField2.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n jTextField2.setForeground(new java.awt.Color(51, 51, 51));\n jTextField2.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(204, 204, 204)));\n jTextField2.setEnabled(false);\n\n jLabel3.setBackground(new java.awt.Color(255, 255, 255));\n jLabel3.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n jLabel3.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel3.setText(\"Fecha de Venta\");\n\n jLabel7.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n jLabel7.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel7.setText(\"Nombre del Empleado: \");\n\n nombreEmpleado.setEditable(false);\n nombreEmpleado.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n nombreEmpleado.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n nombreEmpleado.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(204, 204, 204)));\n nombreEmpleado.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n nombreEmpleadoActionPerformed(evt);\n }\n });\n\n jLabel19.setBackground(new java.awt.Color(0, 102, 204));\n jLabel19.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n jLabel19.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel19.setText(\"Cedula del Empleado:\");\n\n cedulaEmpleado.setEditable(false);\n cedulaEmpleado.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n cedulaEmpleado.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n cedulaEmpleado.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(204, 204, 204)));\n\n nombre1.setEditable(false);\n nombre1.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n nombre1.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n nombre1.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(204, 204, 204)));\n nombre1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n nombre1ActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3);\n jPanel3.setLayout(jPanel3Layout);\n jPanel3Layout.setHorizontalGroup(\n jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel3Layout.createSequentialGroup()\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 129, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel3, javax.swing.GroupLayout.PREFERRED_SIZE, 129, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel3Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel19, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel7, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))))\n .addGap(37, 37, 37)\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jTextField2)\n .addComponent(nombreEmpleado)\n .addComponent(cedulaEmpleado)\n .addComponent(nombre1))\n .addGap(18, 18, 18))\n );\n jPanel3Layout.setVerticalGroup(\n jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel3Layout.createSequentialGroup()\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jTextField2, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jLabel3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(nombre1, javax.swing.GroupLayout.DEFAULT_SIZE, 37, Short.MAX_VALUE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jLabel7, javax.swing.GroupLayout.PREFERRED_SIZE, 27, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(nombreEmpleado, javax.swing.GroupLayout.DEFAULT_SIZE, 33, Short.MAX_VALUE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jLabel19, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(cedulaEmpleado, javax.swing.GroupLayout.DEFAULT_SIZE, 30, Short.MAX_VALUE))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n\n jPanel4.setBackground(new java.awt.Color(255, 255, 255));\n jPanel4.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(204, 204, 204)), \"Cliente\", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font(\"Calibri\", 0, 14), new java.awt.Color(51, 51, 51))); // NOI18N\n\n jLabel5.setBackground(new java.awt.Color(255, 255, 255));\n jLabel5.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n jLabel5.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel5.setText(\"Buscar por: \");\n\n tipoBusquedaCliente.setForeground(new java.awt.Color(0, 102, 204));\n tipoBusquedaCliente.setModel(new javax.swing.DefaultComboBoxModel(new String[] { \"Cedula\", \"Nombre\" }));\n tipoBusquedaCliente.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(204, 204, 204)));\n tipoBusquedaCliente.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n tipoBusquedaClienteActionPerformed(evt);\n }\n });\n\n txtIngresoDatoCliente.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n txtIngresoDatoCliente.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n txtIngresoDatoCliente.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(204, 204, 204)));\n\n buscar.setBackground(new java.awt.Color(255, 255, 255));\n buscar.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n buscar.setForeground(new java.awt.Color(0, 102, 204));\n buscar.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagenes/lupa.png\"))); // NOI18N\n buscar.setText(\"Buscar\");\n buscar.setBorder(null);\n buscar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n buscarActionPerformed(evt);\n }\n });\n\n newCliente.setBackground(new java.awt.Color(255, 255, 255));\n newCliente.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n newCliente.setForeground(new java.awt.Color(0, 102, 204));\n newCliente.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n newCliente.setText(\"¿Desea almacenar un nuevo cliente? click aqui\");\n newCliente.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n newCliente.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n newClienteMouseClicked(evt);\n }\n });\n\n jLabel4.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n jLabel4.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel4.setText(\"Nombre: \");\n\n nombreCliente.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n nombreCliente.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n nombreCliente.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(204, 204, 204)));\n nombreCliente.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n nombreClienteActionPerformed(evt);\n }\n });\n\n jLabel16.setBackground(new java.awt.Color(0, 102, 204));\n jLabel16.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n jLabel16.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel16.setText(\"Cedula:\");\n\n cedulaCliente.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n cedulaCliente.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n cedulaCliente.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(204, 204, 204)));\n\n jLabel17.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n jLabel17.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel17.setText(\" Telefono \");\n\n telefonoCliente.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n telefonoCliente.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n telefonoCliente.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(204, 204, 204)));\n\n jLabel18.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n jLabel18.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel18.setText(\"Apellido:\");\n\n jLabel20.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel20.setText(\"Celular:\");\n\n apellidoCliente.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n apellidoCliente.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n apellidoCliente.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(204, 204, 204)));\n\n celularCliente.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n celularCliente.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n celularCliente.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(204, 204, 204)));\n celularCliente.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n celularClienteActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout jPanel4Layout = new javax.swing.GroupLayout(jPanel4);\n jPanel4.setLayout(jPanel4Layout);\n jPanel4Layout.setHorizontalGroup(\n jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel4Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel4Layout.createSequentialGroup()\n .addComponent(jLabel5, javax.swing.GroupLayout.PREFERRED_SIZE, 98, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(tipoBusquedaCliente, javax.swing.GroupLayout.PREFERRED_SIZE, 144, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(17, 17, 17)\n .addComponent(txtIngresoDatoCliente, javax.swing.GroupLayout.PREFERRED_SIZE, 235, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGroup(jPanel4Layout.createSequentialGroup()\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addComponent(jLabel17, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 123, Short.MAX_VALUE)\n .addComponent(jLabel16, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel4, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addComponent(telefonoCliente, javax.swing.GroupLayout.DEFAULT_SIZE, 256, Short.MAX_VALUE)\n .addComponent(cedulaCliente, javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(nombreCliente, javax.swing.GroupLayout.Alignment.LEADING))\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel4Layout.createSequentialGroup()\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(newCliente, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGap(109, 109, 109))\n .addGroup(jPanel4Layout.createSequentialGroup()\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(buscar, javax.swing.GroupLayout.PREFERRED_SIZE, 232, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(jPanel4Layout.createSequentialGroup()\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jLabel18, javax.swing.GroupLayout.DEFAULT_SIZE, 123, Short.MAX_VALUE)\n .addComponent(jLabel20, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGap(18, 18, 18)\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(apellidoCliente, javax.swing.GroupLayout.DEFAULT_SIZE, 216, Short.MAX_VALUE)\n .addComponent(celularCliente))))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))))))\n );\n jPanel4Layout.setVerticalGroup(\n jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel4Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(txtIngresoDatoCliente, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(tipoBusquedaCliente, javax.swing.GroupLayout.PREFERRED_SIZE, 31, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel5, javax.swing.GroupLayout.PREFERRED_SIZE, 31, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(buscar))\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel4, javax.swing.GroupLayout.PREFERRED_SIZE, 29, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(nombreCliente, javax.swing.GroupLayout.PREFERRED_SIZE, 26, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel4Layout.createSequentialGroup()\n .addGap(0, 1, Short.MAX_VALUE)\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel18, javax.swing.GroupLayout.PREFERRED_SIZE, 36, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(apellidoCliente, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE))))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel16, javax.swing.GroupLayout.PREFERRED_SIZE, 26, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(cedulaCliente, javax.swing.GroupLayout.PREFERRED_SIZE, 29, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel20, javax.swing.GroupLayout.PREFERRED_SIZE, 28, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(celularCliente, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel17, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(telefonoCliente, javax.swing.GroupLayout.PREFERRED_SIZE, 27, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(newCliente, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(1, 1, 1))\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(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup()\n .addComponent(jPanel4, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGap(18, 18, 18)\n .addComponent(jPanel3, javax.swing.GroupLayout.DEFAULT_SIZE, 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 .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addComponent(jPanel3, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jPanel4, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGap(0, 0, Short.MAX_VALUE))\n );\n\n jPanel5.setBackground(new java.awt.Color(255, 255, 255));\n jPanel5.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(204, 204, 204)), \"Buscar Producto\", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font(\"Tahoma\", 0, 13), new java.awt.Color(102, 102, 102))); // NOI18N\n\n jLabel1.setBackground(new java.awt.Color(255, 255, 255));\n jLabel1.setFont(new java.awt.Font(\"Calibri\", 0, 16)); // NOI18N\n jLabel1.setForeground(new java.awt.Color(51, 51, 51));\n jLabel1.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel1.setText(\"Buscar\");\n\n txtIngresoDatosPro.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n txtIngresoDatosPro.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n txtIngresoDatosPro.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(204, 204, 204)));\n\n buscar1.setBackground(new java.awt.Color(255, 255, 255));\n buscar1.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n buscar1.setForeground(new java.awt.Color(0, 102, 204));\n buscar1.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagenes/lupa.png\"))); // NOI18N\n buscar1.setText(\"Buscar\");\n buscar1.setBorder(null);\n buscar1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n buscar1ActionPerformed(evt);\n }\n });\n\n tipoBusquedaProducto.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n tipoBusquedaProducto.setForeground(new java.awt.Color(0, 102, 204));\n tipoBusquedaProducto.setModel(new javax.swing.DefaultComboBoxModel(new String[] { \"Codigo de Barras\", \"Nombre\" }));\n tipoBusquedaProducto.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 102, 204)));\n tipoBusquedaProducto.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n tipoBusquedaProductoActionPerformed(evt);\n }\n });\n\n jLabel10.setBackground(new java.awt.Color(255, 255, 255));\n jLabel10.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n jLabel10.setForeground(new java.awt.Color(0, 102, 204));\n jLabel10.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel10.setText(\"Ingresar Cantidad a Comprar\");\n\n jButton1.setBackground(new java.awt.Color(255, 255, 255));\n jButton1.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n jButton1.setForeground(new java.awt.Color(0, 102, 204));\n jButton1.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagenes/compra.png\"))); // NOI18N\n jButton1.setText(\"Añadir\");\n jButton1.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(204, 204, 204)));\n jButton1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton1ActionPerformed(evt);\n }\n });\n\n cantidadCompraPro.setEditable(false);\n cantidadCompraPro.setFont(new java.awt.Font(\"Calibri\", 0, 12)); // NOI18N\n cantidadCompraPro.setForeground(new java.awt.Color(0, 102, 204));\n cantidadCompraPro.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n cantidadCompraPro.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(102, 102, 102)));\n\n jLabel22.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n jLabel22.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel22.setText(\"Nombre: \");\n\n nombrePro.setEditable(false);\n nombrePro.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n nombrePro.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n nombrePro.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(204, 204, 204)));\n\n jLabel23.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n jLabel23.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel23.setText(\"Código de Barras:\");\n\n precioUnitarioPro.setEditable(false);\n precioUnitarioPro.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n precioUnitarioPro.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n precioUnitarioPro.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(204, 204, 204)));\n\n jLabel24.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n jLabel24.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel24.setText(\"IVA: \");\n\n ivaPro.setEditable(false);\n ivaPro.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n ivaPro.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n ivaPro.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(204, 204, 204)));\n\n jLabel25.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n jLabel25.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel25.setText(\"Stock:\");\n\n stockPro.setEditable(false);\n stockPro.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n stockPro.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n stockPro.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(204, 204, 204)));\n\n jLabel26.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n jLabel26.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel26.setText(\"Precio Unitario:\");\n\n codBarrasPro.setEditable(false);\n codBarrasPro.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n codBarrasPro.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n codBarrasPro.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(204, 204, 204)));\n\n jLabel27.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n jLabel27.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel27.setText(\"Porcentaje de Descuento\");\n\n pct_descuentoPro.setEditable(false);\n pct_descuentoPro.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n pct_descuentoPro.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n pct_descuentoPro.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(204, 204, 204)));\n pct_descuentoPro.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n pct_descuentoProActionPerformed(evt);\n }\n });\n\n jLabel28.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n jLabel28.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel28.setText(\"Unidad de Compra\");\n\n uniCompraPro.setEditable(false);\n uniCompraPro.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n uniCompraPro.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n uniCompraPro.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(204, 204, 204)));\n\n jLabel29.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n jLabel29.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel29.setText(\"Unidad de Venta\");\n\n uniVentaPro.setEditable(false);\n uniVentaPro.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n uniVentaPro.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n uniVentaPro.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(204, 204, 204)));\n\n javax.swing.GroupLayout jPanel5Layout = new javax.swing.GroupLayout(jPanel5);\n jPanel5.setLayout(jPanel5Layout);\n jPanel5Layout.setHorizontalGroup(\n jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel5Layout.createSequentialGroup()\n .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(jPanel5Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel22, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel28, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel29, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel5Layout.createSequentialGroup()\n .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(nombrePro, javax.swing.GroupLayout.PREFERRED_SIZE, 199, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(uniCompraPro, javax.swing.GroupLayout.PREFERRED_SIZE, 199, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(uniVentaPro, javax.swing.GroupLayout.PREFERRED_SIZE, 199, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel26, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel24, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(jPanel5Layout.createSequentialGroup()\n .addComponent(jLabel25, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGap(7, 7, 7)))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(ivaPro, javax.swing.GroupLayout.DEFAULT_SIZE, 268, Short.MAX_VALUE)\n .addComponent(precioUnitarioPro)\n .addComponent(stockPro))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGroup(jPanel5Layout.createSequentialGroup()\n .addComponent(tipoBusquedaProducto, javax.swing.GroupLayout.PREFERRED_SIZE, 147, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(txtIngresoDatosPro, javax.swing.GroupLayout.PREFERRED_SIZE, 234, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(buscar1, javax.swing.GroupLayout.DEFAULT_SIZE, 214, Short.MAX_VALUE)))\n .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel5Layout.createSequentialGroup()\n .addGap(17, 17, 17)\n .addComponent(jButton1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGroup(jPanel5Layout.createSequentialGroup()\n .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel10, javax.swing.GroupLayout.DEFAULT_SIZE, 212, Short.MAX_VALUE)\n .addComponent(jLabel27, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel23, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(codBarrasPro)\n .addComponent(pct_descuentoPro)\n .addComponent(cantidadCompraPro, javax.swing.GroupLayout.DEFAULT_SIZE, 219, Short.MAX_VALUE))))\n .addGap(22, 22, 22))\n );\n jPanel5Layout.setVerticalGroup(\n jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel5Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel5Layout.createSequentialGroup()\n .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(tipoBusquedaProducto, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.PREFERRED_SIZE, 38, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel1, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.PREFERRED_SIZE, 38, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(precioUnitarioPro, javax.swing.GroupLayout.PREFERRED_SIZE, 29, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel26, javax.swing.GroupLayout.PREFERRED_SIZE, 29, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel22, javax.swing.GroupLayout.PREFERRED_SIZE, 29, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(nombrePro, javax.swing.GroupLayout.PREFERRED_SIZE, 29, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(17, 17, 17)\n .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel24, javax.swing.GroupLayout.PREFERRED_SIZE, 29, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(ivaPro, javax.swing.GroupLayout.PREFERRED_SIZE, 29, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel28, javax.swing.GroupLayout.PREFERRED_SIZE, 29, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(uniCompraPro, javax.swing.GroupLayout.PREFERRED_SIZE, 29, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(8, 8, 8)\n .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel25, javax.swing.GroupLayout.PREFERRED_SIZE, 29, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(stockPro, javax.swing.GroupLayout.PREFERRED_SIZE, 29, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel29, javax.swing.GroupLayout.PREFERRED_SIZE, 29, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(uniVentaPro, javax.swing.GroupLayout.PREFERRED_SIZE, 29, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addContainerGap())\n .addGroup(jPanel5Layout.createSequentialGroup()\n .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(txtIngresoDatosPro, javax.swing.GroupLayout.PREFERRED_SIZE, 38, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(buscar1)\n .addComponent(jLabel23, javax.swing.GroupLayout.PREFERRED_SIZE, 29, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(codBarrasPro, javax.swing.GroupLayout.PREFERRED_SIZE, 29, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel27, javax.swing.GroupLayout.PREFERRED_SIZE, 29, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(pct_descuentoPro, javax.swing.GroupLayout.PREFERRED_SIZE, 29, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel10, javax.swing.GroupLayout.PREFERRED_SIZE, 26, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(cantidadCompraPro, javax.swing.GroupLayout.PREFERRED_SIZE, 29, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 62, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 0, Short.MAX_VALUE))))\n );\n\n jPanel6.setBackground(new java.awt.Color(255, 255, 255));\n jPanel6.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(204, 204, 204)), \"Detalle de la Factura\"));\n\n jScrollPane3.setBackground(new java.awt.Color(255, 255, 255));\n jScrollPane3.setBorder(null);\n\n tablaDetalles.setBackground(new java.awt.Color(0, 102, 204));\n tablaDetalles.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n tablaDetalles.setForeground(new java.awt.Color(255, 255, 255));\n tablaDetalles.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n {null, null, null, null, null},\n {null, null, null, null, null},\n {null, null, null, null, null},\n {null, null, null, null, null},\n {null, null, null, null, null},\n {null, null, null, null, null},\n {null, null, null, null, null},\n {null, null, null, null, null}\n },\n new String [] {\n \"Cantidad\", \"Producto\", \"Precio Unitario\", \"Subtotal\", \"Descuento por Producto\"\n }\n ) {\n Class[] types = new Class [] {\n java.lang.Integer.class, java.lang.String.class, java.lang.Double.class, java.lang.Double.class, java.lang.Double.class\n };\n boolean[] canEdit = new boolean [] {\n false, false, false, true, true\n };\n\n public Class getColumnClass(int columnIndex) {\n return types [columnIndex];\n }\n\n public boolean isCellEditable(int rowIndex, int columnIndex) {\n return canEdit [columnIndex];\n }\n });\n tablaDetalles.setRowHeight(25);\n tablaDetalles.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n tablaDetallesMouseClicked(evt);\n }\n });\n jScrollPane3.setViewportView(tablaDetalles);\n\n javax.swing.GroupLayout jPanel6Layout = new javax.swing.GroupLayout(jPanel6);\n jPanel6.setLayout(jPanel6Layout);\n jPanel6Layout.setHorizontalGroup(\n jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 845, Short.MAX_VALUE)\n .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jScrollPane3, javax.swing.GroupLayout.DEFAULT_SIZE, 845, Short.MAX_VALUE))\n );\n jPanel6Layout.setVerticalGroup(\n jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 0, Short.MAX_VALUE)\n .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel6Layout.createSequentialGroup()\n .addComponent(jScrollPane3, javax.swing.GroupLayout.PREFERRED_SIZE, 227, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 25, Short.MAX_VALUE)))\n );\n\n jPanel7.setBackground(new java.awt.Color(255, 255, 255));\n jPanel7.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(204, 204, 204)), \"Opciones\", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font(\"Calibri\", 0, 14), new java.awt.Color(51, 51, 51))); // NOI18N\n\n btnQuitar.setBackground(new java.awt.Color(255, 255, 255));\n btnQuitar.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n btnQuitar.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagenes/eliminar.png\"))); // NOI18N\n btnQuitar.setText(\"Quitar\");\n btnQuitar.setEnabled(false);\n btnQuitar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnQuitarActionPerformed(evt);\n }\n });\n\n jLabel9.setText(\"Subtotal:\");\n\n jLabel12.setText(\"Descuento Total:\");\n\n jLabel13.setText(\"Total:\");\n\n subtotalTotal.setEditable(false);\n subtotalTotal.setBackground(new java.awt.Color(255, 255, 255));\n subtotalTotal.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n\n descuentoTotal.setEditable(false);\n descuentoTotal.setBackground(new java.awt.Color(255, 255, 255));\n descuentoTotal.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n\n totalFac.setEditable(false);\n totalFac.setBackground(new java.awt.Color(255, 255, 255));\n totalFac.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n\n javax.swing.GroupLayout jPanel7Layout = new javax.swing.GroupLayout(jPanel7);\n jPanel7.setLayout(jPanel7Layout);\n jPanel7Layout.setHorizontalGroup(\n jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel7Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(btnQuitar, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(jPanel7Layout.createSequentialGroup()\n .addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel12, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel13, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel9, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(subtotalTotal, javax.swing.GroupLayout.PREFERRED_SIZE, 218, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(descuentoTotal)\n .addComponent(totalFac))))\n .addContainerGap())\n );\n jPanel7Layout.setVerticalGroup(\n jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel7Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(btnQuitar, javax.swing.GroupLayout.PREFERRED_SIZE, 54, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel9, javax.swing.GroupLayout.PREFERRED_SIZE, 31, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(subtotalTotal, javax.swing.GroupLayout.PREFERRED_SIZE, 31, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(28, 28, 28)\n .addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel12, javax.swing.GroupLayout.PREFERRED_SIZE, 31, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(descuentoTotal, javax.swing.GroupLayout.PREFERRED_SIZE, 31, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel13, javax.swing.GroupLayout.PREFERRED_SIZE, 31, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(totalFac, javax.swing.GroupLayout.PREFERRED_SIZE, 31, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addContainerGap(32, Short.MAX_VALUE))\n );\n\n jPanel9.setBackground(new java.awt.Color(255, 255, 255));\n jPanel9.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(204, 204, 204)), \"Envio\", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font(\"Calibri\", 0, 12), new java.awt.Color(51, 51, 51))); // NOI18N\n\n envio.add(rbtnSi);\n rbtnSi.setText(\"Si\");\n rbtnSi.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n rbtnSiMouseClicked(evt);\n }\n });\n\n jLabel14.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagenes/dinero.png\"))); // NOI18N\n jLabel14.setText(\"Precio de envio\");\n\n jTextField7.setEditable(false);\n jTextField7.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n jTextField7.setText(\"$ 2.00\");\n\n direccionEnvio.setBackground(new java.awt.Color(255, 255, 255));\n direccionEnvio.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n direccionEnvio.setForeground(new java.awt.Color(0, 102, 204));\n direccionEnvio.setText(\"Añadir direccion de Envio del cliente\");\n direccionEnvio.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(204, 204, 204)));\n direccionEnvio.setEnabled(false);\n direccionEnvio.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n direccionEnvioActionPerformed(evt);\n }\n });\n\n envio.add(rtbnNo);\n rtbnNo.setSelected(true);\n rtbnNo.setText(\"No\");\n rtbnNo.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n rtbnNoMouseClicked(evt);\n }\n });\n\n javax.swing.GroupLayout jPanel9Layout = new javax.swing.GroupLayout(jPanel9);\n jPanel9.setLayout(jPanel9Layout);\n jPanel9Layout.setHorizontalGroup(\n jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel9Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(rbtnSi)\n .addComponent(rtbnNo))\n .addGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel9Layout.createSequentialGroup()\n .addGap(58, 58, 58)\n .addComponent(jLabel14, javax.swing.GroupLayout.PREFERRED_SIZE, 138, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(jTextField7, javax.swing.GroupLayout.PREFERRED_SIZE, 96, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel9Layout.createSequentialGroup()\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(direccionEnvio, javax.swing.GroupLayout.PREFERRED_SIZE, 226, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(14, 14, 14)))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n jPanel9Layout.setVerticalGroup(\n jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel9Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(rbtnSi)\n .addComponent(jLabel14)\n .addComponent(jTextField7, javax.swing.GroupLayout.PREFERRED_SIZE, 34, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(0, 0, Short.MAX_VALUE)\n .addGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(rtbnNo)\n .addComponent(direccionEnvio, javax.swing.GroupLayout.PREFERRED_SIZE, 39, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(21, 21, 21))\n );\n\n jPanel8.setBackground(new java.awt.Color(255, 255, 255));\n jPanel8.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(204, 204, 204)), \"Servicios\", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font(\"Calibri\", 0, 14), new java.awt.Color(51, 51, 51))); // NOI18N\n\n jLabel15.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n jLabel15.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel15.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagenes/cobro.png\"))); // NOI18N\n jLabel15.setText(\"Total a Pagar:\");\n\n txttotalPagar.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n txttotalPagar.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n txttotalPagar.setEnabled(false);\n txttotalPagar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n txttotalPagarActionPerformed(evt);\n }\n });\n\n btnRecetaMedica.setBackground(new java.awt.Color(255, 255, 255));\n btnRecetaMedica.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n btnRecetaMedica.setForeground(new java.awt.Color(0, 102, 204));\n btnRecetaMedica.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagenes/receta.png\"))); // NOI18N\n btnRecetaMedica.setText(\"Agregar Receta Medica\");\n btnRecetaMedica.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnRecetaMedicaActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout jPanel8Layout = new javax.swing.GroupLayout(jPanel8);\n jPanel8.setLayout(jPanel8Layout);\n jPanel8Layout.setHorizontalGroup(\n jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel8Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jLabel15, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGap(18, 18, 18)\n .addComponent(txttotalPagar)\n .addGap(23, 23, 23))\n .addGroup(jPanel8Layout.createSequentialGroup()\n .addGap(34, 34, 34)\n .addComponent(btnRecetaMedica, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addContainerGap())\n );\n jPanel8Layout.setVerticalGroup(\n jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel8Layout.createSequentialGroup()\n .addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(txttotalPagar, javax.swing.GroupLayout.DEFAULT_SIZE, 38, Short.MAX_VALUE)\n .addComponent(jLabel15, javax.swing.GroupLayout.PREFERRED_SIZE, 0, Short.MAX_VALUE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(btnRecetaMedica, javax.swing.GroupLayout.PREFERRED_SIZE, 49, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(21, 21, 21))\n );\n\n jPanel10.setBackground(new java.awt.Color(255, 255, 255));\n jPanel10.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(204, 204, 204)), \"Generar Factura\", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font(\"Calibri\", 0, 14), new java.awt.Color(51, 51, 51))); // NOI18N\n\n jButton6.setBackground(new java.awt.Color(255, 255, 255));\n jButton6.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n jButton6.setForeground(new java.awt.Color(0, 102, 204));\n jButton6.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagenes/impresora.png\"))); // NOI18N\n jButton6.setText(\"Imprimir Factura\");\n jButton6.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jButton6MouseClicked(evt);\n }\n });\n\n javax.swing.GroupLayout jPanel10Layout = new javax.swing.GroupLayout(jPanel10);\n jPanel10.setLayout(jPanel10Layout);\n jPanel10Layout.setHorizontalGroup(\n jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel10Layout.createSequentialGroup()\n .addGap(23, 23, 23)\n .addComponent(jButton6, javax.swing.GroupLayout.DEFAULT_SIZE, 361, Short.MAX_VALUE)\n .addContainerGap())\n );\n jPanel10Layout.setVerticalGroup(\n jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel10Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jButton6, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGap(23, 23, 23))\n );\n\n javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);\n jPanel1.setLayout(jPanel1Layout);\n jPanel1Layout.setHorizontalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jPanel5, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jPanel6, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jPanel7, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jPanel9, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(jPanel8, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jPanel10, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(17, 17, 17))\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jPanel5, javax.swing.GroupLayout.DEFAULT_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, false)\n .addComponent(jPanel6, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jPanel7, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jPanel8, javax.swing.GroupLayout.PREFERRED_SIZE, 0, Short.MAX_VALUE)\n .addComponent(jPanel9, javax.swing.GroupLayout.PREFERRED_SIZE, 117, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jPanel10, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))\n );\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n\n pack();\n }", "public static Result startNewForm() {\r\n\t\tString formName = ChangeOrderForm.NAME;\r\n\t\tDecision firstDecision = CMSGuidedFormFill.startNewForm(formName,\r\n\t\t\t\tCMSSession.getEmployeeName(), CMSSession.getEmployeeId());\r\n\t\treturn ok(backdrop.render(firstDecision));\r\n\t}", "public FrmNuevoProveedor() {\n initComponents();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jPanel1 = new javax.swing.JPanel();\n jLabel1 = new javax.swing.JLabel();\n jLabel2 = new javax.swing.JLabel();\n jLabel3 = new javax.swing.JLabel();\n jLabel4 = new javax.swing.JLabel();\n jLabel5 = new javax.swing.JLabel();\n jLabel6 = new javax.swing.JLabel();\n botonCancelarProveedor = new javax.swing.JButton();\n bGuardar = new javax.swing.JButton();\n jLabel14 = new javax.swing.JLabel();\n jLabel8 = new javax.swing.JLabel();\n jLabel9 = new javax.swing.JLabel();\n jLabel10 = new javax.swing.JLabel();\n jLabel11 = new javax.swing.JLabel();\n campoId = new javax.swing.JTextField();\n campoMarca = new javax.swing.JTextField();\n campoNombre = new javax.swing.JTextField();\n campoApellidos = new javax.swing.JTextField();\n campoTelefono = new javax.swing.JTextField();\n campoDireccion = new javax.swing.JTextField();\n campoEmail = new javax.swing.JTextField();\n campoIdZapato = new javax.swing.JTextField();\n campoCantidad = new javax.swing.JTextField();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE);\n setTitle(\"ANDREA S.A. DE C.V.\");\n setResizable(false);\n\n jPanel1.setBackground(new java.awt.Color(255, 255, 255));\n jPanel1.setMaximumSize(new java.awt.Dimension(421, 437));\n jPanel1.setPreferredSize(new java.awt.Dimension(421, 437));\n\n jLabel1.setBackground(new java.awt.Color(255, 0, 0));\n jLabel1.setFont(new java.awt.Font(\"Arial\", 1, 18)); // NOI18N\n jLabel1.setText(\"AGREGAR PROVEEDOR\");\n\n jLabel2.setFont(new java.awt.Font(\"Arial\", 1, 12)); // NOI18N\n jLabel2.setForeground(new java.awt.Color(255, 0, 0));\n jLabel2.setText(\"ID:\");\n\n jLabel3.setFont(new java.awt.Font(\"Arial\", 1, 12)); // NOI18N\n jLabel3.setForeground(new java.awt.Color(255, 0, 0));\n jLabel3.setText(\"NOMBRE (S):\");\n\n jLabel4.setFont(new java.awt.Font(\"Arial\", 1, 12)); // NOI18N\n jLabel4.setForeground(new java.awt.Color(255, 0, 0));\n jLabel4.setText(\"MARCA:\");\n\n jLabel5.setFont(new java.awt.Font(\"Arial\", 1, 12)); // NOI18N\n jLabel5.setForeground(new java.awt.Color(255, 0, 0));\n jLabel5.setText(\"APELLIDOS:\");\n\n jLabel6.setFont(new java.awt.Font(\"Arial\", 1, 12)); // NOI18N\n jLabel6.setForeground(new java.awt.Color(255, 0, 0));\n jLabel6.setText(\"TELEFONO FIJO:\");\n\n botonCancelarProveedor.setFont(new java.awt.Font(\"Arial\", 1, 12)); // NOI18N\n botonCancelarProveedor.setForeground(new java.awt.Color(255, 0, 0));\n botonCancelarProveedor.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/zapateria/vista/tachee.png\"))); // NOI18N\n botonCancelarProveedor.setText(\"CANCELAR\");\n botonCancelarProveedor.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n botonCancelarProveedorActionPerformed(evt);\n }\n });\n\n bGuardar.setFont(new java.awt.Font(\"Arial\", 1, 12)); // NOI18N\n bGuardar.setForeground(new java.awt.Color(255, 0, 0));\n bGuardar.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/zapateria/vista/iconoGuardar.png\"))); // NOI18N\n bGuardar.setText(\"GUARDAR\");\n bGuardar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n bGuardarActionPerformed(evt);\n }\n });\n\n jLabel14.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel14.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/zapateria/vista/iconoAgregar.png\"))); // NOI18N\n\n jLabel8.setFont(new java.awt.Font(\"Arial\", 1, 12)); // NOI18N\n jLabel8.setForeground(new java.awt.Color(255, 0, 0));\n jLabel8.setText(\"DIRECCION:\");\n\n jLabel9.setFont(new java.awt.Font(\"Arial\", 1, 12)); // NOI18N\n jLabel9.setForeground(new java.awt.Color(255, 0, 0));\n jLabel9.setText(\"E-MAIL:\");\n\n jLabel10.setFont(new java.awt.Font(\"Arial\", 1, 12)); // NOI18N\n jLabel10.setForeground(new java.awt.Color(255, 0, 0));\n jLabel10.setText(\"ID ZAPATO:\");\n\n jLabel11.setFont(new java.awt.Font(\"Arial\", 1, 12)); // NOI18N\n jLabel11.setForeground(new java.awt.Color(255, 0, 0));\n jLabel11.setText(\"CANTIDAD:\");\n\n campoId.setBackground(java.awt.Color.white);\n campoId.setEditable(false);\n campoId.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n campoIdActionPerformed(evt);\n }\n });\n\n campoMarca.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyTyped(java.awt.event.KeyEvent evt) {\n campoMarcaKeyTyped(evt);\n }\n });\n\n campoNombre.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyTyped(java.awt.event.KeyEvent evt) {\n campoNombreKeyTyped(evt);\n }\n });\n\n campoApellidos.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyTyped(java.awt.event.KeyEvent evt) {\n campoApellidosKeyTyped(evt);\n }\n });\n\n campoTelefono.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyTyped(java.awt.event.KeyEvent evt) {\n campoTelefonoKeyTyped(evt);\n }\n });\n\n campoIdZapato.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyTyped(java.awt.event.KeyEvent evt) {\n campoIdZapatoKeyTyped(evt);\n }\n });\n\n campoCantidad.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyTyped(java.awt.event.KeyEvent evt) {\n campoCantidadKeyTyped(evt);\n }\n });\n\n javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);\n jPanel1.setLayout(jPanel1Layout);\n jPanel1Layout.setHorizontalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(19, 19, 19)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jLabel8)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(campoDireccion, javax.swing.GroupLayout.PREFERRED_SIZE, 239, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jLabel9)\n .addGap(18, 18, 18)\n .addComponent(campoEmail, javax.swing.GroupLayout.PREFERRED_SIZE, 147, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGap(0, 0, Short.MAX_VALUE))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jLabel6)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(campoTelefono)\n .addGap(205, 205, 205))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jLabel10)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(campoIdZapato, javax.swing.GroupLayout.PREFERRED_SIZE, 36, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(53, 53, 53)\n .addComponent(jLabel11)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(campoCantidad, javax.swing.GroupLayout.PREFERRED_SIZE, 36, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jLabel2)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(campoId, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(63, 63, 63)\n .addComponent(jLabel4)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(campoMarca, javax.swing.GroupLayout.PREFERRED_SIZE, 106, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel1Layout.createSequentialGroup()\n .addComponent(jLabel3)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(campoNombre))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jLabel5)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(campoApellidos, javax.swing.GroupLayout.PREFERRED_SIZE, 172, javax.swing.GroupLayout.PREFERRED_SIZE))))\n .addContainerGap())))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(101, 101, 101)\n .addComponent(jLabel1)\n .addGap(38, 38, 38)\n .addComponent(jLabel14)\n .addContainerGap(37, Short.MAX_VALUE))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(50, 50, 50)\n .addComponent(botonCancelarProveedor)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(bGuardar, javax.swing.GroupLayout.PREFERRED_SIZE, 140, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(45, 45, 45))\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 .addContainerGap()\n .addComponent(jLabel1)\n .addGap(21, 21, 21)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 21, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel4, javax.swing.GroupLayout.PREFERRED_SIZE, 21, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(campoId, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(campoMarca, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel3, javax.swing.GroupLayout.PREFERRED_SIZE, 21, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(campoNombre, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel5, javax.swing.GroupLayout.PREFERRED_SIZE, 21, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(campoApellidos, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel6, javax.swing.GroupLayout.PREFERRED_SIZE, 21, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(campoTelefono, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(22, 22, 22)\n .addComponent(jLabel14)))\n .addGap(18, 18, 18)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel8, javax.swing.GroupLayout.PREFERRED_SIZE, 21, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(campoDireccion, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel9, javax.swing.GroupLayout.PREFERRED_SIZE, 21, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(campoEmail, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel10, javax.swing.GroupLayout.PREFERRED_SIZE, 21, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel11, javax.swing.GroupLayout.PREFERRED_SIZE, 21, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(campoIdZapato, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(campoCantidad, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 51, Short.MAX_VALUE)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(botonCancelarProveedor)\n .addComponent(bGuardar, javax.swing.GroupLayout.PREFERRED_SIZE, 43, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(34, 34, 34))\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, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n\n pack();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n txtTituloMedico = new javax.swing.JLabel();\n txtNome = new javax.swing.JLabel();\n inputNome = new javax.swing.JTextField();\n jLabel2 = new javax.swing.JLabel();\n jPanel1 = new javax.swing.JPanel();\n btnCancelar = new javax.swing.JButton();\n btnFechar = new javax.swing.JButton();\n btnExcluir = new javax.swing.JButton();\n btnSalvar = new javax.swing.JButton();\n jPanel3 = new javax.swing.JPanel();\n txtNome2 = new javax.swing.JLabel();\n inputNome2 = new javax.swing.JTextField();\n txtCRM1 = new javax.swing.JLabel();\n inputCRM1 = new javax.swing.JTextField();\n inputTelefone1 = new javax.swing.JTextField();\n txtTelefone1 = new javax.swing.JLabel();\n txtPeriodo3 = new javax.swing.JLabel();\n inputEspecialidade1 = new javax.swing.JTextField();\n txtPeriodo4 = new javax.swing.JLabel();\n comboBoxPeriodo1 = new javax.swing.JComboBox<>();\n txtPeriodo5 = new javax.swing.JLabel();\n comboBoxConsultorio1 = new javax.swing.JComboBox<>();\n painelImagemFundo1 = new view.PainelImagemFundo();\n txtTituloMedico1 = new javax.swing.JLabel();\n jLabel3 = new javax.swing.JLabel();\n\n txtTituloMedico.setFont(new java.awt.Font(\"Dialog\", 1, 48)); // NOI18N\n txtTituloMedico.setText(\"CADASTRO MÉDICO\");\n\n txtNome.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n txtNome.setText(\"Nome\");\n\n jLabel2.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagens/logo2.png\"))); // NOI18N\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n setTitle(\"Informações do Médico\");\n setResizable(false);\n\n jPanel1.setBackground(new java.awt.Color(255, 255, 255));\n\n btnCancelar.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n btnCancelar.setText(\"Cancelar\");\n\n btnFechar.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n btnFechar.setText(\"Fechar\");\n\n btnExcluir.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n btnExcluir.setText(\"Excluir\");\n\n btnSalvar.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n btnSalvar.setText(\"Salvar\");\n\n jPanel3.setBackground(new java.awt.Color(255, 255, 255));\n jPanel3.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(204, 204, 204)));\n\n txtNome2.setFont(new java.awt.Font(\"Verdana\", 1, 14)); // NOI18N\n txtNome2.setText(\"Nome\");\n\n txtCRM1.setFont(new java.awt.Font(\"Verdana\", 1, 14)); // NOI18N\n txtCRM1.setText(\"CRM\");\n\n txtTelefone1.setFont(new java.awt.Font(\"Verdana\", 1, 14)); // NOI18N\n txtTelefone1.setText(\"Telefone\");\n\n txtPeriodo3.setFont(new java.awt.Font(\"Verdana\", 1, 14)); // NOI18N\n txtPeriodo3.setText(\"Especialidade\");\n\n txtPeriodo4.setFont(new java.awt.Font(\"Verdana\", 1, 14)); // NOI18N\n txtPeriodo4.setText(\"Período\");\n\n comboBoxPeriodo1.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"Vespertino\", \"Matutino\" }));\n comboBoxPeriodo1.setSelectedIndex(-1);\n\n txtPeriodo5.setFont(new java.awt.Font(\"Verdana\", 1, 14)); // NOI18N\n txtPeriodo5.setText(\"Consultório\");\n\n comboBoxConsultorio1.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"Consultório 1\", \"Consultório 2\" }));\n comboBoxConsultorio1.setSelectedIndex(-1);\n\n javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3);\n jPanel3.setLayout(jPanel3Layout);\n jPanel3Layout.setHorizontalGroup(\n jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel3Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(txtNome2)\n .addComponent(txtCRM1, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(txtTelefone1)\n .addComponent(txtPeriodo3, javax.swing.GroupLayout.PREFERRED_SIZE, 129, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(txtPeriodo4, javax.swing.GroupLayout.PREFERRED_SIZE, 65, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(37, 37, 37)\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel3Layout.createSequentialGroup()\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(inputCRM1, javax.swing.GroupLayout.PREFERRED_SIZE, 189, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(inputNome2, javax.swing.GroupLayout.PREFERRED_SIZE, 715, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addComponent(inputTelefone1, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 300, Short.MAX_VALUE)\n .addComponent(inputEspecialidade1, javax.swing.GroupLayout.Alignment.LEADING)))\n .addContainerGap(282, Short.MAX_VALUE))\n .addGroup(jPanel3Layout.createSequentialGroup()\n .addComponent(comboBoxPeriodo1, javax.swing.GroupLayout.PREFERRED_SIZE, 198, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(txtPeriodo5, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(comboBoxConsultorio1, javax.swing.GroupLayout.PREFERRED_SIZE, 187, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(55, 55, 55))))\n );\n jPanel3Layout.setVerticalGroup(\n jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel3Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(txtNome2, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(inputNome2, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(38, 38, 38)\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(inputCRM1, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(txtCRM1, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 55, Short.MAX_VALUE)\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(inputEspecialidade1, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(txtPeriodo3, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(43, 43, 43)\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(comboBoxPeriodo1, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(txtPeriodo5, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(comboBoxConsultorio1, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(txtPeriodo4, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(47, 47, 47)\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(inputTelefone1, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(txtTelefone1, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addContainerGap())\n );\n\n txtTituloMedico1.setFont(new java.awt.Font(\"Dialog\", 1, 48)); // NOI18N\n txtTituloMedico1.setForeground(new java.awt.Color(102, 102, 102));\n txtTituloMedico1.setText(\"INFORMAÇÕES DO MÉDICO\");\n\n jLabel3.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagens/logo2.png\"))); // NOI18N\n\n javax.swing.GroupLayout painelImagemFundo1Layout = new javax.swing.GroupLayout(painelImagemFundo1);\n painelImagemFundo1.setLayout(painelImagemFundo1Layout);\n painelImagemFundo1Layout.setHorizontalGroup(\n painelImagemFundo1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(painelImagemFundo1Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(painelImagemFundo1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(txtTituloMedico1, javax.swing.GroupLayout.PREFERRED_SIZE, 659, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel3))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n painelImagemFundo1Layout.setVerticalGroup(\n painelImagemFundo1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, painelImagemFundo1Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jLabel3)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(txtTituloMedico1)\n .addContainerGap())\n );\n\n javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);\n jPanel1.setLayout(jPanel1Layout);\n jPanel1Layout.setHorizontalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(painelImagemFundo1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()\n .addContainerGap(46, Short.MAX_VALUE)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()\n .addComponent(btnFechar)\n .addGap(94, 94, 94)\n .addComponent(btnCancelar)\n .addGap(71, 71, 71)\n .addComponent(btnExcluir)\n .addGap(84, 84, 84)\n .addComponent(btnSalvar))\n .addComponent(jPanel3, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(64, 64, 64))\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(painelImagemFundo1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 91, Short.MAX_VALUE)\n .addComponent(jPanel3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(57, 57, 57)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(btnSalvar)\n .addComponent(btnExcluir)\n .addComponent(btnCancelar)\n .addComponent(btnFechar))\n .addGap(80, 80, 80))\n );\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n\n pack();\n setLocationRelativeTo(null);\n }", "@Command\n public void nuevaMateria() {\n\t\t\n\t\tWindow window = (Window)Executions.createComponents(\n \"/WEB-INF/include/Mantenimiento/Materias/vtnMaterias.zul\", null, null);\n window.doModal();\n }", "public frmPrincipal() {\n initComponents(); \n inicializar();\n \n }", "public void crearReaTrans(){\n\t // could have been factorized with the precedent view\n\t\tgetContentPane().setLayout(new BorderLayout());\n\t \n\t\tp1 = new JPanel();\n\t p2 = new JPanel();\n\t \n\t String[] a = {\"Regresar\",\"Continuar\"}, c = {\"Cuenta de origen\",\"Monto\",\"Cuenta de destino\"};\n\t \n\t p1.setLayout(new GridLayout(1,2));\n\t p2.setLayout(new GridLayout(1,3));\n\t \n\t for (int x=0; x<2; x++) {\n\t b = new JButton(a[x]);\n\t botones.add(b);\n\t }\n\t for (JButton x:botones) {\n\t x.setPreferredSize(new Dimension(110,110));\n\t p1.add(x);\n\t }\n // Add buttons panel \n\t add(p1, BorderLayout.SOUTH);\n\t \n\t for (int x=0; x<3; x++){\n\t tf=new JTextField(c[x]);\n\t tf.setPreferredSize(new Dimension(10,100));\n textos.add(tf);\n\t p2.add(tf);\n\t }\n // Add textfields panel\n\t add(p2, BorderLayout.NORTH);\n\t}", "public AnadirCompra() {\n\t\tsetLayout(null);\n\t\t\n\t\tJPanel pCompra = new JPanel();\n\t\tpCompra.setBackground(SystemColor.text);\n\t\tpCompra.setBounds(0, 0, 772, 643);\n\t\tadd(pCompra);\n\t\tpCompra.setLayout(null);\n\t\t\n\t\tlblNewLabel = new JLabel(\"Compras\");\n\t\tlblNewLabel.setFont(new Font(\"Tahoma\", Font.PLAIN, 18));\n\t\tlblNewLabel.setBounds(684, 13, 76, 16);\n\t\tpCompra.add(lblNewLabel);\n\t\t\n\t\tlblNewLabel_1 = new JLabel(\"Personal\");\n\t\tlblNewLabel_1.setBounds(142, 130, 56, 16);\n\t\tpCompra.add(lblNewLabel_1);\n\t\t\n\t\tcmbPersonal = new JComboBox();\n\t\tcmbPersonal.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tcargaPersonal();\n\t\t\t}\n\t\t});\n\t\tcmbPersonal.setBounds(291, 127, 409, 22);\n\t\tpCompra.add(cmbPersonal);\n\t\t\n\t\tlblFechaSolicitado = new JLabel(\"Fecha solicitado\");\n\t\tlblFechaSolicitado.setBounds(142, 184, 91, 16);\n\t\tpCompra.add(lblFechaSolicitado);\n\t\t\n\t\ttextField = new JTextField();\n\t\ttextField.setBounds(291, 181, 409, 22);\n\t\tpCompra.add(textField);\n\t\ttextField.setColumns(10);\n\t\t\n\t\tlblEstado = new JLabel(\"Estado\");\n\t\tlblEstado.setBounds(142, 231, 91, 16);\n\t\tpCompra.add(lblEstado);\n\t\t\n\t\ttextField_1 = new JTextField();\n\t\ttextField_1.setBounds(291, 228, 409, 22);\n\t\tpCompra.add(textField_1);\n\t\ttextField_1.setColumns(10);\n\t\t\n\t\tlblFechaEntrega = new JLabel(\"Fecha entrega\");\n\t\tlblFechaEntrega.setBounds(142, 276, 91, 16);\n\t\tpCompra.add(lblFechaEntrega);\n\t\t\n\t\tlblFechaRequerido = new JLabel(\"Fecha requerido\");\n\t\tlblFechaRequerido.setBounds(142, 318, 108, 16);\n\t\tpCompra.add(lblFechaRequerido);\n\t\t\n\t\ttextField_2 = new JTextField();\n\t\ttextField_2.setColumns(10);\n\t\ttextField_2.setBounds(291, 273, 409, 22);\n\t\tpCompra.add(textField_2);\n\t\t\n\t\ttextField_3 = new JTextField();\n\t\ttextField_3.setColumns(10);\n\t\ttextField_3.setBounds(291, 315, 409, 22);\n\t\tpCompra.add(textField_3);\n\t\t\n\t\tlblFechaAnulado = new JLabel(\"Fecha anulado\");\n\t\tlblFechaAnulado.setBounds(142, 364, 91, 16);\n\t\tpCompra.add(lblFechaAnulado);\n\t\t\n\t\ttextField_4 = new JTextField();\n\t\ttextField_4.setColumns(10);\n\t\ttextField_4.setBounds(291, 361, 409, 22);\n\t\tpCompra.add(textField_4);\n\t\t\n\t\ttextField_5 = new JTextField();\n\t\ttextField_5.setColumns(10);\n\t\ttextField_5.setBounds(291, 405, 409, 22);\n\t\tpCompra.add(textField_5);\n\t\t\n\t\tlblValor = new JLabel(\"Valor\");\n\t\tlblValor.setBounds(142, 408, 91, 16);\n\t\tpCompra.add(lblValor);\n\t\t\n\t\tlabel = new JLabel(\"Productos\");\n\t\tlabel.setBounds(142, 453, 56, 16);\n\t\tpCompra.add(label);\n\t\t\n\t\tbtnAadirCompra = new JButton(\"A\\u00F1adir Compra\");\n\t\tbtnAadirCompra.setBackground(SystemColor.textHighlight);\n\t\tbtnAadirCompra.setBounds(216, 605, 388, 25);\n\t\tpCompra.add(btnAadirCompra);\n\t\t\n\t\tlist = new JList();\n\t\tlist.addListSelectionListener(new ListSelectionListener() {\n\t\t\tpublic void valueChanged(ListSelectionEvent arg0) {\n\t\t\t\tcargaProducto();\n\t\t\t}\n\t\t});\n\t\tlist.setBackground(SystemColor.controlHighlight);\n\t\tlist.setBounds(291, 452, 409, 84);\n\t\tpCompra.add(list);\n\t\tlist.setModel(jList);\n\t\t\n\t\tbutton = new JButton(\"< ATR\\u00C1S\");\n\t\tbutton.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t//scrollPaneles.setViewportView(pgCompra);\n\t\t\t\thacerInvisible();\n\t\t\t}\n\t\t});\n\t\tbutton.setBackground(SystemColor.textHighlight);\n\t\tbutton.setBounds(12, 11, 106, 25);\n\t\tpCompra.add(button);\n\t\t\n\t\tscrollPaneles = new JScrollPane();\n\t\tscrollPaneles.setBounds(0, 0, 773, 643);\n\t\tadd(scrollPaneles);\n\n\t}", "private void iniciarVentana()\n {\n this.setVisible(true);\n //Centramos la ventana\n this.setLocationRelativeTo(null);\n //Colocamos icono a la ventana\n this.setIconImage(Principal.getLogo());\n //Agregamos Hint al campo de texto\n txt_Nombre.setUI(new Hint(\"Nombre del Archivo\"));\n //ocultamos los componentes de la barra de progreso general\n lblGeneral.setVisible(false);\n barraGeneral.setVisible(false);\n //ocultamos la barra de progreso de archivo\n barra.setVisible(false);\n //deshabiltamos el boton de ElimianrArchivo\n btnEliminarArchivo.setEnabled(false);\n //deshabilitamos el boton de enviar\n btnaceptar.setEnabled(false);\n //Creamos el modelo para la tabla\n modelo=new DefaultTableModel(new Object[][]{},new Object[]{\"nombre\",\"tipo\",\"peso\"})\n {\n //sobreescribimos metodo para prohibir la edicion de celdas\n @Override\n public boolean isCellEditable(int i, int i1) {\n return false;\n }\n \n };\n //Agregamos el modelo a la tabla\n tablaArchivos.setModel(modelo);\n //Quitamos el reordenamiento en la cabecera de la tabla\n tablaArchivos.getTableHeader().setReorderingAllowed(false);\n }", "public FormularioCliente() {\n initComponents();\n }", "public AcervoCtrl(JPanel frmAcervo, JLabel imagem, JLabel lblStatus, JLabel lblValor, JComboBox<String> cbSetor,\r\n\t\t\tJComboBox<String> cbSetorT, JComboBox<String> cbStatus, JComboBox<String> cbStatusT,\r\n\t\t\tJComboBox<String> cbCategoria, JComboBox<String> cbObras, JComboBox<String> cbMaterial,\r\n\t\t\tJTextField nomeArtista, JTextField nomeObra, JTextField txtNovaObra, JFormattedTextField dataAquisicao,\r\n\t\t\tJEditorPane descricaoObra, JLabel msgGravar, JLabel msgVazio, JFormattedTextField txtValor,\r\n\t\t\tJButton btnPesqArtist, JButton btnNovoArtista, JButton btnEditarArtista, JButton btnNovaCategoria,\r\n\t\t\tJButton btnEditarCategoria, JButton btnNovoMaterial, JButton btnEditarMaterial, JButton btnNovoSetor,\r\n\t\t\tJButton btnEditarSetor, JButton btnNovoSetorT, JButton btnEditarSetorT, JTextField idObra,\r\n\t\t\tJButton btnGravar) {\r\n\r\n\t\tthis.frmAcervo = frmAcervo;\r\n\t\tthis.btnGravar = btnGravar;\r\n\t\tthis.idObra = idObra;\r\n\t\tthis.obras = new ArrayList<ObraMdl>();\r\n\t\tthis.imagem = imagem;\r\n\t\tthis.lblValor = lblValor;\r\n\t\tthis.nomeArtista = nomeArtista;\r\n\t\tthis.txtNovaObra = txtNovaObra;\r\n\t\tthis.lblStatus = lblStatus;\r\n\t\tthis.nomeObra = nomeObra;\r\n\t\tthis.dataAquisicao = dataAquisicao;\r\n\t\tthis.edtDescricao = descricaoObra;\r\n\t\tthis.cbMaterial = cbMaterial;\r\n\t\tthis.cbObras = cbObras;\r\n\t\tthis.cbCategoria = cbCategoria;\r\n\t\tthis.cbSetor = cbSetor;\r\n\t\tthis.cbSetorT = cbSetorT;\r\n\t\tthis.cbStatus = cbStatus;\r\n\t\tthis.cbStatusT = cbStatusT;\r\n\t\tthis.btnPesqArtist = btnPesqArtist;\r\n\t\tthis.btnNovoArtista = btnNovoArtista;\r\n\t\tthis.btnEditarArtista = btnEditarArtista;\r\n\t\tthis.btnNovaCategoria = btnNovaCategoria;\r\n\t\tthis.btnEditarCategoria = btnEditarCategoria;\r\n\t\tthis.btnNovoMaterial = btnNovoMaterial;\r\n\t\tthis.btnEditarMaterial = btnEditarMaterial;\r\n\t\tthis.btnNovoSetor = btnNovoSetor;\r\n\t\tthis.btnEditarSetor = btnEditarSetor;\r\n\t\tthis.btnNovoSetorT = btnNovoSetorT;\r\n\t\tthis.btnEditarSetorT = btnEditarSetorT;\r\n\t\tthis.txtValor = txtValor;\r\n\t\tthis.msgGravar = msgGravar;\r\n\t\tthis.msgVazio = msgVazio;\r\n\t\tthis.caminhoImagem = \"\";\r\n\r\n\t\tlerAcervo();\r\n\t}", "private void refreshForm(){ \r\n //tf_nroguia.setText(String.valueOf(Datos.getLog_cguias().getNumrela()));\r\n \r\n //Ejecuta el metodo que define el formulario segun el tipo de operacion que fue ejecutada\r\n setCurrentOperation();\r\n }", "@RequestMapping(\"enviar\")\n\tpublic String abrirForm() {\n\t\treturn \"contato/form\";\n\t}", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n label5 = new javax.swing.JLabel();\n txt_nombre3 = new javax.swing.JTextField();\n lbusu = new javax.swing.JLabel();\n fecha = new com.toedter.calendar.JDateChooser();\n cbox_proveedor = new javax.swing.JComboBox<>();\n label6 = new javax.swing.JLabel();\n cbox_sucursal = new javax.swing.JComboBox<>();\n label7 = new javax.swing.JLabel();\n cbox_compra = new javax.swing.JComboBox<>();\n label8 = new javax.swing.JLabel();\n cbox_moneda = new javax.swing.JComboBox<>();\n label9 = new javax.swing.JLabel();\n label3 = new javax.swing.JLabel();\n txt_porcentaje = new javax.swing.JTextField();\n label4 = new javax.swing.JLabel();\n txt_interes = new javax.swing.JTextField();\n txt_cuota = new javax.swing.JTextField();\n label10 = new javax.swing.JLabel();\n label11 = new javax.swing.JLabel();\n txt_acumulado = new javax.swing.JTextField();\n label12 = new javax.swing.JLabel();\n txt_tiempo = new javax.swing.JTextField();\n cbox_tiempo = new javax.swing.JComboBox<>();\n label13 = new javax.swing.JLabel();\n cbox_moneda1 = new javax.swing.JComboBox<>();\n label14 = new javax.swing.JLabel();\n txt_total = new javax.swing.JTextField();\n txt_fecha_inicio = new com.toedter.calendar.JDateChooser();\n jLabel6 = new javax.swing.JLabel();\n txt_fecha_final = new com.toedter.calendar.JDateChooser();\n jLabel7 = new javax.swing.JLabel();\n lb = new javax.swing.JLabel();\n\n label5.setFont(new java.awt.Font(\"Century Gothic\", 1, 12)); // NOI18N\n label5.setText(\"Interes\");\n\n txt_nombre3.setFont(new java.awt.Font(\"Century Gothic\", 0, 12)); // NOI18N\n txt_nombre3.setBorder(javax.swing.BorderFactory.createMatteBorder(0, 0, 1, 0, new java.awt.Color(204, 204, 204)));\n txt_nombre3.setOpaque(false);\n\n setClosable(true);\n setIconifiable(true);\n setMaximizable(true);\n setResizable(true);\n setTitle(\"Credito Porveedor\");\n setVisible(true);\n\n cbox_proveedor.setFont(new java.awt.Font(\"Century Gothic\", 0, 12)); // NOI18N\n cbox_proveedor.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n cbox_proveedorActionPerformed(evt);\n }\n });\n\n label6.setFont(new java.awt.Font(\"Century Gothic\", 1, 12)); // NOI18N\n label6.setText(\"Proveedor\");\n\n cbox_sucursal.setFont(new java.awt.Font(\"Century Gothic\", 0, 12)); // NOI18N\n cbox_sucursal.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n cbox_sucursalActionPerformed(evt);\n }\n });\n\n label7.setFont(new java.awt.Font(\"Century Gothic\", 1, 12)); // NOI18N\n label7.setText(\"Sucursal\");\n\n cbox_compra.setFont(new java.awt.Font(\"Century Gothic\", 0, 12)); // NOI18N\n cbox_compra.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n cbox_compraActionPerformed(evt);\n }\n });\n\n label8.setFont(new java.awt.Font(\"Century Gothic\", 1, 12)); // NOI18N\n label8.setText(\"Compra Encabezado\");\n\n cbox_moneda.setFont(new java.awt.Font(\"Century Gothic\", 0, 12)); // NOI18N\n cbox_moneda.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n cbox_monedaActionPerformed(evt);\n }\n });\n\n label9.setFont(new java.awt.Font(\"Century Gothic\", 1, 12)); // NOI18N\n label9.setText(\"Moneda\");\n\n label3.setFont(new java.awt.Font(\"Century Gothic\", 1, 12)); // NOI18N\n label3.setText(\"Porcentaje\");\n\n txt_porcentaje.setFont(new java.awt.Font(\"Century Gothic\", 0, 12)); // NOI18N\n txt_porcentaje.setBorder(javax.swing.BorderFactory.createMatteBorder(0, 0, 1, 0, new java.awt.Color(204, 204, 204)));\n txt_porcentaje.setOpaque(false);\n\n label4.setFont(new java.awt.Font(\"Century Gothic\", 1, 12)); // NOI18N\n label4.setText(\"Interes\");\n\n txt_interes.setFont(new java.awt.Font(\"Century Gothic\", 0, 12)); // NOI18N\n txt_interes.setBorder(javax.swing.BorderFactory.createMatteBorder(0, 0, 1, 0, new java.awt.Color(204, 204, 204)));\n txt_interes.setOpaque(false);\n\n txt_cuota.setFont(new java.awt.Font(\"Century Gothic\", 0, 12)); // NOI18N\n txt_cuota.setBorder(javax.swing.BorderFactory.createMatteBorder(0, 0, 1, 0, new java.awt.Color(204, 204, 204)));\n txt_cuota.setOpaque(false);\n\n label10.setFont(new java.awt.Font(\"Century Gothic\", 1, 12)); // NOI18N\n label10.setText(\"Cuota\");\n\n label11.setFont(new java.awt.Font(\"Century Gothic\", 1, 12)); // NOI18N\n label11.setText(\"Pago Acumulado\");\n\n txt_acumulado.setFont(new java.awt.Font(\"Century Gothic\", 0, 12)); // NOI18N\n txt_acumulado.setBorder(javax.swing.BorderFactory.createMatteBorder(0, 0, 1, 0, new java.awt.Color(204, 204, 204)));\n txt_acumulado.setOpaque(false);\n\n label12.setFont(new java.awt.Font(\"Century Gothic\", 1, 12)); // NOI18N\n label12.setText(\"Tiempo\");\n\n txt_tiempo.setFont(new java.awt.Font(\"Century Gothic\", 0, 12)); // NOI18N\n txt_tiempo.setBorder(javax.swing.BorderFactory.createMatteBorder(0, 0, 1, 0, new java.awt.Color(204, 204, 204)));\n txt_tiempo.setOpaque(false);\n\n cbox_tiempo.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"dias\", \"meses\", \"años\" }));\n\n label13.setFont(new java.awt.Font(\"Century Gothic\", 1, 12)); // NOI18N\n label13.setText(\"Forma de pago\");\n\n cbox_moneda1.setFont(new java.awt.Font(\"Century Gothic\", 0, 12)); // NOI18N\n\n label14.setFont(new java.awt.Font(\"Century Gothic\", 1, 12)); // NOI18N\n label14.setText(\"Total\");\n\n txt_total.setFont(new java.awt.Font(\"Century Gothic\", 0, 12)); // NOI18N\n txt_total.setBorder(javax.swing.BorderFactory.createMatteBorder(0, 0, 1, 0, new java.awt.Color(204, 204, 204)));\n txt_total.setOpaque(false);\n\n jLabel6.setText(\"Fecha Inicio\");\n\n jLabel7.setText(\"Fecha Final\");\n\n lb.setText(\".\");\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(109, 109, 109)\n .addComponent(txt_fecha_inicio, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addComponent(jLabel6))\n .addGap(99, 99, 99)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(109, 109, 109)\n .addComponent(txt_fecha_final, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addComponent(jLabel7)))\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(label3)\n .addGap(18, 18, 18)\n .addComponent(txt_porcentaje, javax.swing.GroupLayout.PREFERRED_SIZE, 89, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(label4))\n .addGroup(layout.createSequentialGroup()\n .addComponent(label9)\n .addGap(28, 28, 28)\n .addComponent(cbox_moneda, javax.swing.GroupLayout.PREFERRED_SIZE, 130, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(label7)\n .addGap(18, 18, 18)\n .addComponent(cbox_sucursal, javax.swing.GroupLayout.PREFERRED_SIZE, 130, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createSequentialGroup()\n .addComponent(txt_interes, javax.swing.GroupLayout.PREFERRED_SIZE, 89, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(label10)\n .addGap(18, 18, 18)\n .addComponent(txt_cuota, javax.swing.GroupLayout.PREFERRED_SIZE, 89, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(29, 29, 29)\n .addComponent(label11)))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(txt_acumulado, javax.swing.GroupLayout.PREFERRED_SIZE, 89, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createSequentialGroup()\n .addComponent(label13)\n .addGap(18, 18, 18)\n .addComponent(cbox_moneda1, javax.swing.GroupLayout.PREFERRED_SIZE, 130, javax.swing.GroupLayout.PREFERRED_SIZE))))\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(label14)\n .addGap(34, 34, 34)\n .addComponent(txt_total, javax.swing.GroupLayout.PREFERRED_SIZE, 89, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createSequentialGroup()\n .addComponent(label12)\n .addGap(18, 18, 18)\n .addComponent(txt_tiempo, javax.swing.GroupLayout.PREFERRED_SIZE, 89, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(cbox_tiempo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createSequentialGroup()\n .addComponent(label6)\n .addGap(18, 18, 18)\n .addComponent(cbox_proveedor, javax.swing.GroupLayout.PREFERRED_SIZE, 130, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(lb, javax.swing.GroupLayout.PREFERRED_SIZE, 17, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(254, 254, 254)\n .addComponent(label8)\n .addGap(18, 18, 18)\n .addComponent(cbox_compra, javax.swing.GroupLayout.PREFERRED_SIZE, 130, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addContainerGap(78, Short.MAX_VALUE))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(label6)\n .addComponent(cbox_proveedor, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(label7)\n .addComponent(cbox_sucursal, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(label8)\n .addComponent(cbox_compra, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(lb))\n .addGap(32, 32, 32)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(label3)\n .addComponent(txt_porcentaje, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(label4)\n .addComponent(txt_interes, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(label10)\n .addComponent(txt_cuota, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(label11)\n .addComponent(txt_acumulado, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(label9)\n .addComponent(cbox_moneda, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(label13)\n .addComponent(cbox_moneda1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(27, 27, 27)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(label12)\n .addComponent(txt_tiempo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(cbox_tiempo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(27, 27, 27)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(label14)\n .addComponent(txt_total, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(txt_fecha_inicio, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel6)\n .addComponent(txt_fecha_final, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel7))\n .addContainerGap(27, Short.MAX_VALUE))\n );\n\n pack();\n }", "public FrmCalculadora() {\n initComponents();\n }", "public FormEmpresa() {\n initComponents();\n this.getComboBox();\n this.buscaDadosEmpresa();\n \n }", "public CARGOS_REGISTRO() {\n initComponents();\n InputMap map2 = txtNombre.getInputMap(JTextField.WHEN_FOCUSED); \n map2.put(KeyStroke.getKeyStroke(KeyEvent.VK_V, Event.CTRL_MASK), \"null\");\n InputMap maps = TxtSue.getInputMap(JTextField.WHEN_FOCUSED); \n maps.put(KeyStroke.getKeyStroke(KeyEvent.VK_V, Event.CTRL_MASK), \"null\");\n InputMap map3 = txtFun.getInputMap(JTextField.WHEN_FOCUSED); \n map3.put(KeyStroke.getKeyStroke(KeyEvent.VK_V, Event.CTRL_MASK), \"null\");\n this.setLocationRelativeTo(null);\n this.txtFun.setLineWrap(true);\n this.lblId.setText(Funciones.extraerIdMax());\n\t\tsexo.addItem(\"Administrativo\");\n\t\tsexo.addItem(\"Operativo\");\n sexo.addItem(\"Tecnico\");\n sexo.addItem(\"Servicios\");\n \n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jP_Titulo = new javax.swing.JPanel();\n jLabel1 = new javax.swing.JLabel();\n jPanel1 = new javax.swing.JPanel();\n jP_buqueda_general = new javax.swing.JPanel();\n jL_fecha_inicial = new javax.swing.JLabel();\n jL_fecha_final = new javax.swing.JLabel();\n jDC_fecha_inicial = new com.toedter.calendar.JDateChooser();\n jDC_fehca_final = new com.toedter.calendar.JDateChooser();\n jB_ver = new javax.swing.JButton();\n jB_imprimir = new javax.swing.JButton();\n jPanel2 = new javax.swing.JPanel();\n jScrollPane2 = new javax.swing.JScrollPane();\n jT_vista = new javax.swing.JTable();\n jTF_busqueda = new javax.swing.JTextField();\n jCB_buscar = new javax.swing.JComboBox<>();\n jLabel4 = new javax.swing.JLabel();\n jPanel4 = new javax.swing.JPanel();\n jLabel8 = new javax.swing.JLabel();\n jL_mejor_vendedor = new javax.swing.JLabel();\n jTF_mejor_vendedor = new javax.swing.JTextField();\n jLabel9 = new javax.swing.JLabel();\n jL_producto_mas_vendido = new javax.swing.JLabel();\n jTF_prod_mas_vendido = new javax.swing.JTextField();\n jL_producto_menos_vendido = new javax.swing.JLabel();\n jTF_prod_menos_vendido = new javax.swing.JTextField();\n\n setBackground(new java.awt.Color(255, 255, 255));\n setPreferredSize(new java.awt.Dimension(1150, 692));\n\n jP_Titulo.setBackground(new java.awt.Color(153, 204, 255));\n\n jLabel1.setFont(new java.awt.Font(\"Segoe UI\", 0, 45)); // NOI18N\n jLabel1.setForeground(new java.awt.Color(102, 102, 102));\n jLabel1.setText(\"Detalle Ventas\");\n\n javax.swing.GroupLayout jP_TituloLayout = new javax.swing.GroupLayout(jP_Titulo);\n jP_Titulo.setLayout(jP_TituloLayout);\n jP_TituloLayout.setHorizontalGroup(\n jP_TituloLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jP_TituloLayout.createSequentialGroup()\n .addGap(37, 37, 37)\n .addComponent(jLabel1)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n jP_TituloLayout.setVerticalGroup(\n jP_TituloLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jP_TituloLayout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jLabel1)\n .addContainerGap(19, Short.MAX_VALUE))\n );\n\n jPanel1.setBackground(new java.awt.Color(255, 255, 255));\n jPanel1.setBorder(javax.swing.BorderFactory.createTitledBorder(null, \"Datos\", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font(\"Dialog\", 0, 11), new java.awt.Color(0, 153, 255))); // NOI18N\n jPanel1.setPreferredSize(new java.awt.Dimension(1307, 170));\n\n jP_buqueda_general.setBackground(new java.awt.Color(255, 255, 255));\n jP_buqueda_general.setBorder(javax.swing.BorderFactory.createTitledBorder(null, \"Busqueda General\", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font(\"Dialog\", 0, 11), new java.awt.Color(0, 153, 255))); // NOI18N\n\n jL_fecha_inicial.setFont(new java.awt.Font(\"Segoe UI\", 0, 14)); // NOI18N\n jL_fecha_inicial.setText(\"Fecha inicio (dia/mes/año) :\");\n\n jL_fecha_final.setFont(new java.awt.Font(\"Segoe UI\", 0, 14)); // NOI18N\n jL_fecha_final.setText(\"Fecha final (dia/mes/año) :\");\n\n jB_ver.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Images/buscar .png\"))); // NOI18N\n jB_ver.setText(\"Ver\");\n\n jB_imprimir.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Images/Botonimpirmi.png\"))); // NOI18N\n jB_imprimir.setText(\"Imprimir\");\n\n javax.swing.GroupLayout jP_buqueda_generalLayout = new javax.swing.GroupLayout(jP_buqueda_general);\n jP_buqueda_general.setLayout(jP_buqueda_generalLayout);\n jP_buqueda_generalLayout.setHorizontalGroup(\n jP_buqueda_generalLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jP_buqueda_generalLayout.createSequentialGroup()\n .addGroup(jP_buqueda_generalLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jP_buqueda_generalLayout.createSequentialGroup()\n .addGap(54, 54, 54)\n .addComponent(jL_fecha_inicial)\n .addGap(87, 87, 87)\n .addComponent(jL_fecha_final))\n .addGroup(jP_buqueda_generalLayout.createSequentialGroup()\n .addGap(62, 62, 62)\n .addComponent(jDC_fecha_inicial, javax.swing.GroupLayout.PREFERRED_SIZE, 146, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(107, 107, 107)\n .addComponent(jDC_fehca_final, javax.swing.GroupLayout.PREFERRED_SIZE, 142, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 66, Short.MAX_VALUE)\n .addGroup(jP_buqueda_generalLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jB_imprimir)\n .addComponent(jB_ver))\n .addGap(18, 18, 18))\n );\n jP_buqueda_generalLayout.setVerticalGroup(\n jP_buqueda_generalLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jP_buqueda_generalLayout.createSequentialGroup()\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(jP_buqueda_generalLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jL_fecha_inicial)\n .addComponent(jL_fecha_final)\n .addComponent(jB_ver))\n .addGap(22, 22, 22)\n .addGroup(jP_buqueda_generalLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jDC_fehca_final, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jDC_fecha_inicial, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jB_imprimir))\n .addGap(19, 19, 19))\n );\n\n javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);\n jPanel1.setLayout(jPanel1Layout);\n jPanel1Layout.setHorizontalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(230, 230, 230)\n .addComponent(jP_buqueda_general, 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 jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jP_buqueda_general, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 6, Short.MAX_VALUE))\n );\n\n jPanel2.setBackground(new java.awt.Color(255, 255, 51));\n jPanel2.setPreferredSize(new java.awt.Dimension(1150, 692));\n\n jT_vista.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n {null, null, null, null, null, null, null, null, null, null, null, null},\n {null, null, null, null, null, null, null, null, null, null, null, null},\n {null, null, null, null, null, null, null, null, null, null, null, null},\n {null, null, null, null, null, null, null, null, null, null, null, null}\n },\n new String [] {\n \"Id venta\", \"Fecha\", \"RFC cliente\", \"RFC empleado\", \"No sucursal\", \"Codigo descuento\", \"Puntos ganados\", \"Id detalle venta\", \"Codigo producto\", \"Cantidad\", \"Precio venta\", \"Total\"\n }\n ));\n jScrollPane2.setViewportView(jT_vista);\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 .addContainerGap()\n .addComponent(jScrollPane2)\n .addContainerGap())\n );\n jPanel2Layout.setVerticalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jScrollPane2, javax.swing.GroupLayout.DEFAULT_SIZE, 150, Short.MAX_VALUE)\n .addContainerGap())\n );\n\n jCB_buscar.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"Seleccione uno\", \"RFC cliente\", \"RFC empleado\", \"Sucursal\" }));\n jCB_buscar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jCB_buscarActionPerformed(evt);\n }\n });\n\n jLabel4.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Images/buscar .png\"))); // NOI18N\n\n jPanel4.setBackground(new java.awt.Color(255, 255, 255));\n jPanel4.setBorder(javax.swing.BorderFactory.createTitledBorder(null, \"Los mas destacado\", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font(\"Dialog\", 0, 11), new java.awt.Color(0, 153, 255))); // NOI18N\n\n jLabel8.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Images/empleadoDestacado.png\"))); // NOI18N\n\n jL_mejor_vendedor.setFont(new java.awt.Font(\"Segoe UI\", 0, 14)); // NOI18N\n jL_mejor_vendedor.setText(\"Mejor Vendedor:\");\n\n jLabel9.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Images/productoMasVendido.png\"))); // NOI18N\n\n jL_producto_mas_vendido.setFont(new java.awt.Font(\"Segoe UI\", 0, 14)); // NOI18N\n jL_producto_mas_vendido.setText(\"Producto mas vendido: \");\n\n jL_producto_menos_vendido.setFont(new java.awt.Font(\"Segoe UI\", 0, 14)); // NOI18N\n jL_producto_menos_vendido.setText(\"Producto menos vendido:\");\n\n javax.swing.GroupLayout jPanel4Layout = new javax.swing.GroupLayout(jPanel4);\n jPanel4.setLayout(jPanel4Layout);\n jPanel4Layout.setHorizontalGroup(\n jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel4Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jLabel8)\n .addGap(41, 41, 41)\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jL_mejor_vendedor)\n .addComponent(jTF_mejor_vendedor, javax.swing.GroupLayout.PREFERRED_SIZE, 157, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(57, 57, 57)\n .addComponent(jLabel9)\n .addGap(51, 51, 51)\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jL_producto_mas_vendido)\n .addComponent(jTF_prod_mas_vendido, javax.swing.GroupLayout.PREFERRED_SIZE, 156, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(53, 53, 53)\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jTF_prod_menos_vendido, javax.swing.GroupLayout.PREFERRED_SIZE, 156, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jL_producto_menos_vendido))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n jPanel4Layout.setVerticalGroup(\n jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel4Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel4Layout.createSequentialGroup()\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel4Layout.createSequentialGroup()\n .addComponent(jL_mejor_vendedor)\n .addGap(18, 18, 18)\n .addComponent(jTF_mejor_vendedor, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addComponent(jLabel8))\n .addGroup(jPanel4Layout.createSequentialGroup()\n .addComponent(jLabel9)\n .addGap(7, 7, 7)))\n .addContainerGap())\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel4Layout.createSequentialGroup()\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jL_producto_menos_vendido)\n .addComponent(jL_producto_mas_vendido))\n .addGap(18, 18, 18)\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jTF_prod_menos_vendido, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jTF_prod_mas_vendido, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(0, 0, Short.MAX_VALUE))))\n );\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jP_Titulo, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(797, 797, 797)\n .addComponent(jLabel4)\n .addGap(18, 18, 18)\n .addComponent(jCB_buscar, javax.swing.GroupLayout.PREFERRED_SIZE, 117, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(jTF_busqueda, javax.swing.GroupLayout.PREFERRED_SIZE, 153, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jPanel4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addContainerGap(22, Short.MAX_VALUE))\n .addComponent(jPanel1, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 1150, Short.MAX_VALUE)\n .addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jP_Titulo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jCB_buscar, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jTF_busqueda, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addComponent(jLabel4))\n .addGap(7, 7, 7)\n .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, 174, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jPanel4, 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 }", "public modificarCuentasProveedor() {\n initComponents();\n }" ]
[ "0.6728005", "0.66828024", "0.66633487", "0.6653814", "0.6617349", "0.65943813", "0.6482639", "0.6423085", "0.6416753", "0.6390845", "0.63857317", "0.63756764", "0.63224506", "0.632002", "0.62960416", "0.62861055", "0.62831205", "0.62805325", "0.6270839", "0.6266852", "0.62621796", "0.6255085", "0.625389", "0.62405777", "0.6239805", "0.62251824", "0.62250036", "0.6197905", "0.6196389", "0.61848706", "0.61766136", "0.6169116", "0.61549306", "0.6150319", "0.6145344", "0.61449265", "0.61428523", "0.61277807", "0.6119806", "0.6116526", "0.61152303", "0.6099874", "0.60968566", "0.6076704", "0.60737556", "0.6061271", "0.60507596", "0.6036346", "0.6032614", "0.6028352", "0.6028218", "0.6024659", "0.6019837", "0.60179615", "0.6010046", "0.6009768", "0.6004589", "0.5994996", "0.5993513", "0.59930176", "0.5992159", "0.59910876", "0.5990722", "0.59900904", "0.5969064", "0.59680384", "0.59651035", "0.5964959", "0.59487724", "0.59432524", "0.5942065", "0.5941532", "0.59392244", "0.59391457", "0.5934319", "0.592665", "0.59236753", "0.5923269", "0.59162396", "0.5915135", "0.5906087", "0.5905834", "0.59028006", "0.5900097", "0.5896729", "0.58905846", "0.58875406", "0.5886752", "0.58858037", "0.5885727", "0.58843166", "0.58842874", "0.58835804", "0.58834565", "0.58778197", "0.5873713", "0.5868903", "0.58688664", "0.5860402", "0.5856399" ]
0.6049283
47
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor.
@SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { jPanel1 = new javax.swing.JPanel(); jLabel1 = new javax.swing.JLabel(); jButton1 = new javax.swing.JButton(); jLabel2 = new javax.swing.JLabel(); jPanel2 = new javax.swing.JPanel(); jScrollPane1 = new javax.swing.JScrollPane(); jTable1 = new javax.swing.JTable(); jPanel3 = new javax.swing.JPanel(); jToolBar1 = new javax.swing.JToolBar(); jButton5 = new javax.swing.JButton(); jButton4 = new javax.swing.JButton(); jSeparator1 = new javax.swing.JToolBar.Separator(); jSeparator2 = new javax.swing.JToolBar.Separator(); jButton2 = new javax.swing.JButton(); jButton3 = new javax.swing.JButton(); setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE); setTitle("Buscar al Personal sin cuentas"); jPanel1.setBorder(javax.swing.BorderFactory.createTitledBorder("Conexion a Internet")); jLabel1.setText("1er Paso: Conectarse al Servidor"); jButton1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/iconos/accept.png"))); // NOI18N jButton1.setText("1. Conectarse y descargar Cuentas"); jButton1.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButton1ActionPerformed(evt); } }); jLabel2.setText("Estado: Clic en Conectarse"); javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1); jPanel1.setLayout(jPanel1Layout); jPanel1Layout.setHorizontalGroup( jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel1Layout.createSequentialGroup() .addContainerGap() .addComponent(jLabel1) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jButton1) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 500, Short.MAX_VALUE) .addComponent(jLabel2) .addContainerGap()) ); jPanel1Layout.setVerticalGroup( jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel1Layout.createSequentialGroup() .addContainerGap() .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)) .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) ); jPanel2.setBorder(javax.swing.BorderFactory.createTitledBorder("Cuentas Modificadas")); jTable1.setModel(new javax.swing.table.DefaultTableModel( new Object [][] { {null, null, null, null}, {null, null, null, null}, {null, null, null, null}, {null, null, null, null} }, new String [] { "Title 1", "Title 2", "Title 3", "Title 4" } )); jScrollPane1.setViewportView(jTable1); javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2); jPanel2.setLayout(jPanel2Layout); jPanel2Layout.setHorizontalGroup( jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel2Layout.createSequentialGroup() .addContainerGap() .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 1014, Short.MAX_VALUE) .addContainerGap()) ); jPanel2Layout.setVerticalGroup( jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup() .addContainerGap() .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 434, Short.MAX_VALUE) .addContainerGap()) ); jToolBar1.setFloatable(false); jToolBar1.setOpaque(false); jButton5.setIcon(new javax.swing.ImageIcon(getClass().getResource("/iconos/magnifier.png"))); // NOI18N jButton5.setText("Ver Mis Cuentas Modificadas"); jButton5.setEnabled(false); jButton5.setFocusable(false); jButton5.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER); jButton5.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM); jButton5.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButton5ActionPerformed(evt); } }); jToolBar1.add(jButton5); jButton4.setIcon(new javax.swing.ImageIcon(getClass().getResource("/iconos/accept.png"))); // NOI18N jButton4.setText("2. Enviar Cuentas modificadas"); jButton4.setFocusable(false); jButton4.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER); jButton4.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM); jButton4.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButton4ActionPerformed(evt); } }); jToolBar1.add(jButton4); jToolBar1.add(jSeparator1); jToolBar1.add(jSeparator2); jButton2.setIcon(new javax.swing.ImageIcon(getClass().getResource("/iconos/find.png"))); // NOI18N jButton2.setText("3. Ver Personal sin Cuentas"); jButton2.setFocusable(false); jButton2.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER); jButton2.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM); jButton2.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButton2ActionPerformed(evt); } }); jToolBar1.add(jButton2); jButton3.setIcon(new javax.swing.ImageIcon(getClass().getResource("/iconos/banco.png"))); // NOI18N jButton3.setText("4. Solicitar Cuentas"); jButton3.setEnabled(false); jButton3.setFocusable(false); jButton3.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER); jButton3.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM); jButton3.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButton3ActionPerformed(evt); } }); jToolBar1.add(jButton3); javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3); jPanel3.setLayout(jPanel3Layout); jPanel3Layout.setHorizontalGroup( jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel3Layout.createSequentialGroup() .addContainerGap() .addComponent(jToolBar1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addContainerGap()) ); jPanel3Layout.setVerticalGroup( jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel3Layout.createSequentialGroup() .addContainerGap() .addComponent(jToolBar1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) ); javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane()); getContentPane().setLayout(layout); layout.setHorizontalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addContainerGap() .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jPanel3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addContainerGap()) ); layout.setVerticalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addContainerGap() .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jPanel3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addContainerGap()) ); pack(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Form() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public frmRectangulo() {\n initComponents();\n }", "public form() {\n initComponents();\n }", "public AdjointForm() {\n initComponents();\n setDefaultCloseOperation(HIDE_ON_CLOSE);\n }", "public FormListRemarking() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n \n }", "public FormPemilihan() {\n initComponents();\n }", "public GUIForm() { \n initComponents();\n }", "public FrameForm() {\n initComponents();\n }", "public TorneoForm() {\n initComponents();\n }", "public FormCompra() {\n initComponents();\n }", "public muveletek() {\n initComponents();\n }", "public Interfax_D() {\n initComponents();\n }", "public quanlixe_form() {\n initComponents();\n }", "public SettingsForm() {\n initComponents();\n }", "public RegistrationForm() {\n initComponents();\n this.setLocationRelativeTo(null);\n }", "public Soru1() {\n initComponents();\n }", "public FMainForm() {\n initComponents();\n this.setResizable(false);\n setLocationRelativeTo(null);\n }", "public soal2GUI() {\n initComponents();\n }", "public EindopdrachtGUI() {\n initComponents();\n }", "public MechanicForm() {\n initComponents();\n }", "public AddDocumentLineForm(java.awt.Frame parent) {\n super(parent);\n initComponents();\n myInit();\n }", "public BloodDonationGUI() {\n initComponents();\n }", "public quotaGUI() {\n initComponents();\n }", "public PatientUI() {\n initComponents();\n }", "public Customer_Form() {\n initComponents();\n setSize(890,740);\n \n \n }", "public Oddeven() {\n initComponents();\n }", "public myForm() {\n\t\t\tinitComponents();\n\t\t}", "public intrebarea() {\n initComponents();\n }", "public Magasin() {\n initComponents();\n }", "public RadioUI()\n {\n initComponents();\n }", "public ZobrazUdalost() {\n initComponents();\n }", "public NewCustomerGUI() {\n initComponents();\n }", "public FormUtama() {\n initComponents();\n }", "public p0() {\n initComponents();\n }", "public INFORMACION() {\n initComponents();\n this.setLocationRelativeTo(null); \n }", "public ProgramForm() {\n setLookAndFeel();\n initComponents();\n }", "public AmountReleasedCommentsForm() {\r\n initComponents();\r\n }", "public form2() {\n initComponents();\n }", "public kunde() {\n initComponents();\n }", "public MainForm() {\n\t\tsuper(\"Hospital\", List.IMPLICIT);\n\n\t\tstartComponents();\n\t}", "public LixeiraForm() {\n initComponents();\n setLocationRelativeTo(null);\n }", "public MusteriEkle() {\n initComponents();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setName(\"Form\"); // NOI18N\n setRequestFocusEnabled(false);\n setVerifyInputWhenFocusTarget(false);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 465, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 357, Short.MAX_VALUE)\n );\n }", "public frmMain() {\n initComponents();\n }", "public frmMain() {\n initComponents();\n }", "public DESHBORDPANAL() {\n initComponents();\n }", "public frmVenda() {\n initComponents();\n }", "public GUIForm() {\n initComponents();\n inputField.setText(NO_FILE_SELECTED);\n outputField.setText(NO_FILE_SELECTED);\n progressLabel.setBackground(INFO);\n progressLabel.setText(SELECT_FILE);\n }", "public Botonera() {\n initComponents();\n }", "public FrmMenu() {\n initComponents();\n }", "public OffertoryGUI() {\n initComponents();\n setTypes();\n }", "public JFFornecedores() {\n initComponents();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents()\n {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setBackground(new java.awt.Color(255, 255, 255));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 983, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 769, Short.MAX_VALUE)\n );\n\n pack();\n }", "public vpemesanan1() {\n initComponents();\n }", "public EnterDetailsGUI() {\n initComponents();\n }", "public Kost() {\n initComponents();\n }", "public FormHorarioSSE() {\n initComponents();\n }", "public frmacceso() {\n initComponents();\n }", "public UploadForm() {\n initComponents();\n }", "public HW3() {\n initComponents();\n }", "public Managing_Staff_Main_Form() {\n initComponents();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents()\n {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n getContentPane().setLayout(null);\n\n pack();\n }", "public sinavlar2() {\n initComponents();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setName(\"Form\"); // NOI18N\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 300, Short.MAX_VALUE)\n );\n }", "public P0405() {\n initComponents();\n }", "public MiFrame2() {\n initComponents();\n }", "public IssueBookForm() {\n initComponents();\n }", "public Choose1() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n\n String oldAuthor = prefs.get(\"AUTHOR\", \"\");\n if(oldAuthor != null) {\n this.authorTextField.setText(oldAuthor);\n }\n String oldBook = prefs.get(\"BOOK\", \"\");\n if(oldBook != null) {\n this.bookTextField.setText(oldBook);\n }\n String oldDisc = prefs.get(\"DISC\", \"\");\n if(oldDisc != null) {\n try {\n int oldDiscNum = Integer.parseInt(oldDisc);\n oldDiscNum++;\n this.discNumberTextField.setText(Integer.toString(oldDiscNum));\n } catch (Exception ex) {\n this.discNumberTextField.setText(oldDisc);\n }\n this.bookTextField.setText(oldBook);\n }\n\n\n }", "public Lihat_Dokter_Keseluruhan() {\n initComponents();\n }", "public GUI_StudentInfo() {\n initComponents();\n }", "public JFrmPrincipal() {\n initComponents();\n }", "public bt526() {\n initComponents();\n }", "public Pemilihan_Dokter() {\n initComponents();\n }", "public Ablak() {\n initComponents();\n }", "@Override\n\tprotected void initUi() {\n\t\t\n\t}", "@SuppressWarnings(\"unchecked\")\n\t// <editor-fold defaultstate=\"collapsed\" desc=\"Generated\n\t// Code\">//GEN-BEGIN:initComponents\n\tprivate void initComponents() {\n\n\t\tlabel1 = new java.awt.Label();\n\t\tlabel2 = new java.awt.Label();\n\t\tlabel3 = new java.awt.Label();\n\t\tlabel4 = new java.awt.Label();\n\t\tlabel5 = new java.awt.Label();\n\t\tlabel6 = new java.awt.Label();\n\t\tlabel7 = new java.awt.Label();\n\t\tlabel8 = new java.awt.Label();\n\t\tlabel9 = new java.awt.Label();\n\t\tlabel10 = new java.awt.Label();\n\t\ttextField1 = new java.awt.TextField();\n\t\ttextField2 = new java.awt.TextField();\n\t\tlabel14 = new java.awt.Label();\n\t\tlabel15 = new java.awt.Label();\n\t\tlabel16 = new java.awt.Label();\n\t\ttextField3 = new java.awt.TextField();\n\t\ttextField4 = new java.awt.TextField();\n\t\ttextField5 = new java.awt.TextField();\n\t\tlabel17 = new java.awt.Label();\n\t\tlabel18 = new java.awt.Label();\n\t\tlabel19 = new java.awt.Label();\n\t\tlabel20 = new java.awt.Label();\n\t\tlabel21 = new java.awt.Label();\n\t\tlabel22 = new java.awt.Label();\n\t\ttextField6 = new java.awt.TextField();\n\t\ttextField7 = new java.awt.TextField();\n\t\ttextField8 = new java.awt.TextField();\n\t\tlabel23 = new java.awt.Label();\n\t\ttextField9 = new java.awt.TextField();\n\t\ttextField10 = new java.awt.TextField();\n\t\ttextField11 = new java.awt.TextField();\n\t\ttextField12 = new java.awt.TextField();\n\t\tlabel24 = new java.awt.Label();\n\t\tlabel25 = new java.awt.Label();\n\t\tlabel26 = new java.awt.Label();\n\t\tlabel27 = new java.awt.Label();\n\t\tlabel28 = new java.awt.Label();\n\t\tlabel30 = new java.awt.Label();\n\t\tlabel31 = new java.awt.Label();\n\t\tlabel32 = new java.awt.Label();\n\t\tjButton1 = new javax.swing.JButton();\n\n\t\tlabel1.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel1.setText(\"It seems that some of the buttons on the ATM machine are not working!\");\n\n\t\tlabel2.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel2.setText(\"Unfortunately these numbers are exactly what Professor has to use to type in his password.\");\n\n\t\tlabel3.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel3.setText(\n\t\t\t\t\"If you want to eat tonight, you have to help him out and construct the numbers of the password with the working buttons and math operators.\");\n\n\t\tlabel4.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 14)); // NOI18N\n\t\tlabel4.setText(\"Denver's Password: 2792\");\n\n\t\tlabel5.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel5.setText(\"import java.util.Scanner;\\n\");\n\n\t\tlabel6.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel6.setText(\"public class ATM{\");\n\n\t\tlabel7.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel7.setText(\"public static void main(String[] args){\");\n\n\t\tlabel8.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel8.setText(\"System.out.print(\");\n\n\t\tlabel9.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel9.setText(\" -\");\n\n\t\tlabel10.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel10.setText(\");\");\n\n\t\ttextField1.addActionListener(new java.awt.event.ActionListener() {\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt) {\n\t\t\t\ttextField1ActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\tlabel14.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel14.setText(\"System.out.print( (\");\n\n\t\tlabel15.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel15.setText(\"System.out.print(\");\n\n\t\tlabel16.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel16.setText(\"System.out.print( ( (\");\n\n\t\tlabel17.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel17.setText(\")\");\n\n\t\tlabel18.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel18.setText(\" +\");\n\n\t\tlabel19.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel19.setText(\");\");\n\n\t\tlabel20.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel20.setText(\" /\");\n\n\t\tlabel21.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel21.setText(\" %\");\n\n\t\tlabel22.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel22.setText(\" +\");\n\n\t\tlabel23.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel23.setText(\");\");\n\n\t\tlabel24.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel24.setText(\" +\");\n\n\t\tlabel25.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel25.setText(\" /\");\n\n\t\tlabel26.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel26.setText(\" *\");\n\n\t\tlabel27.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n\t\tlabel27.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel27.setText(\")\");\n\n\t\tlabel28.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel28.setText(\")\");\n\n\t\tlabel30.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel30.setText(\"}\");\n\n\t\tlabel31.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel31.setText(\"}\");\n\n\t\tlabel32.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel32.setText(\");\");\n\n\t\tjButton1.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 14)); // NOI18N\n\t\tjButton1.setText(\"Check\");\n\t\tjButton1.addActionListener(new java.awt.event.ActionListener() {\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt) {\n\t\t\t\tjButton1ActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\tjavax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n\t\tlayout.setHorizontalGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(28).addGroup(layout\n\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING).addComponent(getDoneButton()).addComponent(jButton1)\n\t\t\t\t\t\t.addComponent(label7, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label6, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label5, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label4, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t.addComponent(label1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t\t\t.addComponent(label2, GroupLayout.PREFERRED_SIZE, 774, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t.addGap(92).addGroup(layout.createParallelGroup(Alignment.LEADING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING, false)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label15, GroupLayout.PREFERRED_SIZE, 145,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField8, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(2)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label21, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField7, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label8, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField1, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label9, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED).addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttextField2, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label31, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label14, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(37))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(174)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField5, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label18, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(7)))\n\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING, false).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField4, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label17, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label22, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField9, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(20)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label23, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label20, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField3, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(20).addComponent(label19, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(23).addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tlabel10, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label16, GroupLayout.PREFERRED_SIZE, 177,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField12, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label24, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField6, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label27, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label25, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField11, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label28, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label26, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField10, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED).addComponent(label32,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t.addComponent(label30, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addContainerGap(GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));\n\t\tlayout.setVerticalGroup(\n\t\t\t\tlayout.createParallelGroup(Alignment.LEADING).addGroup(layout.createSequentialGroup().addContainerGap()\n\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t.addComponent(label1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addComponent(label2, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t.addComponent(label3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label4, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label5, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label6, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label7, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\tlayout.createSequentialGroup().addGroup(layout.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label9,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label8,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField1,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttextField2, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label10,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(3)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(19)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField5,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label14,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label18,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label17,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField4,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1))))\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label20, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label19, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField3, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(78)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label27, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(76)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField11, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(75)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label32,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField10,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tShort.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING, false)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label15,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField8,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label21,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField7,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(27))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField9,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label22,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlayout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(3)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlabel23,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(29)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label16,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField12,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label24,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField6,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1))))))\n\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label25, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label28, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label26, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t.addGap(30)\n\t\t\t\t\t\t.addComponent(label31, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGap(25)\n\t\t\t\t\t\t.addComponent(label30, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGap(26).addComponent(jButton1).addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(getDoneButton()).addContainerGap(23, Short.MAX_VALUE)));\n\t\tthis.setLayout(layout);\n\n\t\tlabel16.getAccessibleContext().setAccessibleName(\"System.out.print( ( (\");\n\t\tlabel17.getAccessibleContext().setAccessibleName(\"\");\n\t\tlabel18.getAccessibleContext().setAccessibleName(\" +\");\n\t}", "public Pregunta23() {\n initComponents();\n }", "public FormMenuUser() {\n super(\"Form Menu User\");\n initComponents();\n }", "public AvtekOkno() {\n initComponents();\n }", "public busdet() {\n initComponents();\n }", "public ViewPrescriptionForm() {\n initComponents();\n }", "public Ventaform() {\n initComponents();\n }", "public Kuis2() {\n initComponents();\n }", "public CreateAccount_GUI() {\n initComponents();\n }", "public POS1() {\n initComponents();\n }", "public Carrera() {\n initComponents();\n }", "public EqGUI() {\n initComponents();\n }", "public JFriau() {\n initComponents();\n this.setLocationRelativeTo(null);\n this.setTitle(\"BuNus - Budaya Nusantara\");\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setBackground(new java.awt.Color(204, 204, 204));\n setMinimumSize(new java.awt.Dimension(1, 1));\n setPreferredSize(new java.awt.Dimension(760, 402));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 750, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n }", "public nokno() {\n initComponents();\n }", "public dokter() {\n initComponents();\n }", "public ConverterGUI() {\n initComponents();\n }", "public hitungan() {\n initComponents();\n }", "public Modify() {\n initComponents();\n }", "public frmAddIncidencias() {\n initComponents();\n }", "public CovidGUI(){\n initComponents();\n }" ]
[ "0.73199165", "0.7291065", "0.7291065", "0.7291065", "0.72868747", "0.72488254", "0.7214099", "0.7209363", "0.7196111", "0.7190702", "0.7184576", "0.71590984", "0.71483636", "0.7093415", "0.70814407", "0.70579475", "0.69872457", "0.69773155", "0.6955104", "0.69544697", "0.69453543", "0.6943464", "0.69364315", "0.6931576", "0.6928309", "0.6925433", "0.69250214", "0.69115317", "0.6911434", "0.6893781", "0.6892524", "0.6891883", "0.6891585", "0.68891054", "0.6883182", "0.68830794", "0.6881544", "0.68788856", "0.6876481", "0.6873896", "0.6871883", "0.6859969", "0.6856538", "0.6855796", "0.6855392", "0.68540794", "0.68534625", "0.6853007", "0.6853007", "0.6844998", "0.6837484", "0.68364847", "0.68297", "0.6829288", "0.6827209", "0.6824552", "0.6822856", "0.68174845", "0.6817476", "0.68111503", "0.6809666", "0.6809588", "0.6809156", "0.68081236", "0.6802404", "0.6794206", "0.6793367", "0.6792882", "0.6791294", "0.6789582", "0.67894405", "0.6788515", "0.6782408", "0.6766765", "0.6766263", "0.67650926", "0.67574364", "0.6756913", "0.6753227", "0.67513406", "0.6741571", "0.6740101", "0.6737476", "0.6737115", "0.67346376", "0.6727922", "0.6727414", "0.67207795", "0.67162555", "0.67161065", "0.6715331", "0.6709024", "0.67072886", "0.6703357", "0.67023003", "0.6701596", "0.66995883", "0.6699478", "0.6694889", "0.66919625", "0.6689987" ]
0.0
-1
Inflate the menu; this adds items to the action bar if it is present.
@Override public boolean onCreateOptionsMenu(Menu menu) { getMenuInflater().inflate(R.menu.menu_main, menu); return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tMenuInflater inflater = getMenuInflater();\n \tinflater.inflate(R.menu.main_activity_actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.actions, menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tgetMenuInflater().inflate(R.menu.actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.actions_bar, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main_actions, menu);\n\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\r\n\t\tinflater.inflate(R.menu.action_bar_menu, menu);\r\n\t\tmMenu = menu;\r\n\t\treturn super.onCreateOptionsMenu(menu);\r\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.act_bar_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\r\n inflater.inflate(R.menu.main_actions, menu);\r\n\t\treturn true;\r\n //return super.onCreateOptionsMenu(menu);\r\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\r\n\t inflater.inflate(R.menu.action_bar_all, menu);\r\n\t return super.onCreateOptionsMenu(menu);\r\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(android.view.Menu menu) {\n\t\t super.onCreateOptionsMenu(menu);\n\t\tMenuInflater muu= getMenuInflater();\n\t\tmuu.inflate(R.menu.cool_menu, menu);\n\t\treturn true;\n\t\t\n\t\t\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.adventure_archive, menu);\r\n\t\treturn true;\r\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.archive_menu, menu);\r\n\t\treturn true;\r\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n \tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n \t\tinflater.inflate(R.menu.main, menu);\n \t\tsuper.onCreateOptionsMenu(menu, inflater);\n \t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.action_menu, menu);\n\t return super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater bow=getMenuInflater();\n\t\tbow.inflate(R.menu.menu, menu);\n\t\treturn true;\n\t\t}", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.action_menu, menu);\n super.onCreateOptionsMenu(menu, inflater);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\t\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\t\t\n\t\t/* Inflate the menu; this adds items to the action bar if it is present */\n\t\tgetMenuInflater().inflate(R.menu.act_main, menu);\t\t\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflate = getMenuInflater();\n inflate.inflate(R.menu.menu, ApplicationData.amvMenu.getMenu());\n return true;\n }", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.menu, menu);\n\t\t\treturn true; \n\t\t\t\t\t\n\t\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tinflater.inflate(R.menu.main, menu);\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);//Menu Resource, Menu\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);//Menu Resource, Menu\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) \n {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_bar, menu);\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_item, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tinflater.inflate(R.menu.menu, menu);\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.menu, menu);\n\t return super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.menu, menu);\n\t \n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t\t//menu.clear();\n\t\tinflater.inflate(R.menu.soon_to_be, menu);\n\t\t//getActivity().getActionBar().show();\n\t\t//getActivity().getActionBar().setBackgroundDrawable(\n\t\t\t\t//new ColorDrawable(Color.rgb(223, 160, 23)));\n\t\t//return true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n this.getMenuInflater().inflate(R.menu.main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.main, menu);\n }", "@Override\n\tpublic void onCreateOptionsMenu( Menu menu, MenuInflater inflater )\n\t{\n\t\tsuper.onCreateOptionsMenu( menu, inflater );\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\r\n\t\treturn super.onCreateOptionsMenu(menu);\r\n\t}", "@Override\r\n public boolean onCreateOptionsMenu(Menu menu) {\r\n \t// We must call through to the base implementation.\r\n \tsuper.onCreateOptionsMenu(menu);\r\n \t\r\n MenuInflater inflater = getMenuInflater();\r\n inflater.inflate(R.menu.main_menu, menu);\r\n\r\n return true;\r\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main, menu);//Menu Resource, Menu\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main, menu);//Menu Resource, Menu\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater= getMenuInflater();\n inflater.inflate(R.menu.menu_main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.inter_main, menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.action, menu);\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu (Menu menu){\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.custom_action_bar, menu);\n\t\treturn true;\n\t}", "public void initMenubar() {\n\t\tremoveAll();\n\n\t\t// \"File\"\n\t\tfileMenu = new FileMenuD(app);\n\t\tadd(fileMenu);\n\n\t\t// \"Edit\"\n\t\teditMenu = new EditMenuD(app);\n\t\tadd(editMenu);\n\n\t\t// \"View\"\n\t\t// #3711 viewMenu = app.isApplet()? new ViewMenu(app, layout) : new\n\t\t// ViewMenuApplicationD(app, layout);\n\t\tviewMenu = new ViewMenuApplicationD(app, layout);\n\t\tadd(viewMenu);\n\n\t\t// \"Perspectives\"\n\t\t// if(!app.isApplet()) {\n\t\t// perspectivesMenu = new PerspectivesMenu(app, layout);\n\t\t// add(perspectivesMenu);\n\t\t// }\n\n\t\t// \"Options\"\n\t\toptionsMenu = new OptionsMenuD(app);\n\t\tadd(optionsMenu);\n\n\t\t// \"Tools\"\n\t\ttoolsMenu = new ToolsMenuD(app);\n\t\tadd(toolsMenu);\n\n\t\t// \"Window\"\n\t\twindowMenu = new WindowMenuD(app);\n\n\t\tadd(windowMenu);\n\n\t\t// \"Help\"\n\t\thelpMenu = new HelpMenuD(app);\n\t\tadd(helpMenu);\n\n\t\t// support for right-to-left languages\n\t\tapp.setComponentOrientation(this);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater blowUp=getMenuInflater();\n\t\tblowUp.inflate(R.menu.welcome_menu, menu);\n\t\treturn true;\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.listing, menu);\r\n\t\treturn true;\r\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.item, menu);\n return true;\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.resource, menu);\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater= getMenuInflater();\n inflater.inflate(R.menu.menu,menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.home_action_bar, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.template, menu);\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n Log.d(\"onCreateOptionsMenu\", \"create menu\");\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.socket_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main_menu, menu);//Menu Resource, Menu\n\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.actionbar, menu);\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(toolbar_res, menu);\n updateMenuItemsVisibility(menu);\n return true;\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t// \n\t\tMenuInflater mi = getMenuInflater();\n\t\tmi.inflate(R.menu.thumb_actv_menu, menu);\n\t\t\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n }", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t\t}", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t\t}", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.swag_list_activity_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(android.view.Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\n\t\treturn true;\n\t}", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.jarvi, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "public void onCreateOptionsMenu(Menu menu, MenuInflater inflater){\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater menuInflater) {\n menuInflater.inflate(R.menu.main, menu);\n\n }", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.add__listing, menu);\r\n\t\treturn true;\r\n\t}", "@Override\r\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.actmain, menu);\r\n return true;\r\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.buat_menu, menu);\n\t\treturn true;\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.layout.menu, menu);\n\t\treturn true;\n\t}", "@Override\npublic boolean onCreateOptionsMenu(Menu menu) {\n\n\t\n\t\n\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\n\treturn super.onCreateOptionsMenu(menu);\n}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.ichat, menu);\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater)\n\t{\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t\tinflater.inflate(R.menu.expenses_menu, menu);\n\t}", "@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}", "@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}", "@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.action_bar, menu);\n return true;\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater blowUp = getMenuInflater();\n\t\tblowUp.inflate(R.menu.status, menu);\n\t\treturn true;\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.menu, menu);\r\n\t\treturn true;\r\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn true;\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.ui_main, menu);\r\n\t\treturn true;\r\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main_activity_actions, menu);\n return true;\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.menu_main, menu);\n super.onCreateOptionsMenu(menu, inflater);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.menu_main, menu);\n super.onCreateOptionsMenu(menu, inflater);\n }" ]
[ "0.7246102", "0.7201358", "0.7194834", "0.7176498", "0.71066517", "0.7039537", "0.7037961", "0.70112145", "0.70094734", "0.69807225", "0.6944953", "0.69389373", "0.6933199", "0.6916928", "0.6916928", "0.6891486", "0.68831646", "0.68754137", "0.68745375", "0.68621665", "0.68621665", "0.68621665", "0.68621665", "0.68515885", "0.68467957", "0.68194443", "0.6817494", "0.6813087", "0.6813087", "0.6812847", "0.6805774", "0.6801204", "0.6797914", "0.6791314", "0.6789091", "0.67883503", "0.6783642", "0.6759701", "0.6757412", "0.67478645", "0.6744127", "0.6744127", "0.67411774", "0.6740183", "0.6726017", "0.6723245", "0.67226785", "0.67226785", "0.67208904", "0.67113477", "0.67079866", "0.6704564", "0.6699229", "0.66989094", "0.6696622", "0.66952467", "0.66865396", "0.6683476", "0.6683476", "0.6682188", "0.6681209", "0.6678941", "0.66772443", "0.6667702", "0.66673946", "0.666246", "0.6657578", "0.6657578", "0.6657578", "0.6656586", "0.66544783", "0.66544783", "0.66544783", "0.66524047", "0.6651954", "0.6650132", "0.66487855", "0.6647077", "0.66467404", "0.6646615", "0.66464466", "0.66449624", "0.6644209", "0.6643461", "0.6643005", "0.66421187", "0.6638628", "0.6634786", "0.6633529", "0.6632049", "0.6632049", "0.6632049", "0.66315657", "0.6628954", "0.66281766", "0.6627182", "0.6626297", "0.6624309", "0.6619582", "0.6618876", "0.6618876" ]
0.0
-1
Handle action bar item clicks here. The action bar will automatically handle clicks on the Home/Up button, so long as you specify a parent activity in AndroidManifest.xml.
@Override public boolean onOptionsItemSelected(MenuItem item) { int id = item.getItemId(); //noinspection SimplifiableIfStatement if (id == R.id.action_settings) { return true; } return super.onOptionsItemSelected(item); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean onOptionsItemSelected(MenuItem item) { Handle action bar item clicks here. The action bar will\n // automatically handle clicks on the Home/Up button, so long\n // as you specify a parent activity in AndroidManifest.xml.\n\n //\n // HANDLE BACK BUTTON\n //\n int id = item.getItemId();\n if (id == android.R.id.home) {\n // Back button clicked\n this.finish();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n // app icon in action bar clicked; goto parent activity.\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n // Respond to the action bar's Up/Home button\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n switch (id) {\r\n case android.R.id.home:\r\n // app icon in action bar clicked; go home\r\n this.finish();\r\n return true;\r\n default:\r\n return super.onOptionsItemSelected(item);\r\n }\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n // app icon in action bar clicked; go home\n finish();\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n Log.e(\"clik\", \"action bar clicked\");\n finish();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n\t public boolean onOptionsItemSelected(MenuItem item) {\n\t int id = item.getItemId();\n\t \n\t\t\tif (id == android.R.id.home) {\n\t\t\t\t// Respond to the action bar's Up/Home button\n\t\t\t\t// NavUtils.navigateUpFromSameTask(this);\n\t\t\t\tonBackPressed();\n\t\t\t\treturn true;\n\t\t\t}\n\t \n\t \n\t return super.onOptionsItemSelected(item);\n\t }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\r\n switch (item.getItemId()) {\r\n // Respond to the action bar's Up/Home button\r\n case android.R.id.home:\r\n finish();\r\n return true;\r\n }\r\n return super.onOptionsItemSelected(item);\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n // Respond to the action bar's Up/Home button\n case android.R.id.home:\n finish();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n\n switch (item.getItemId()) {\n case android.R.id.home:\n\n // app icon in action bar clicked; goto parent activity.\n this.finish();\n return true;\n default:\n\n return super.onOptionsItemSelected(item);\n\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n\n switch (item.getItemId()) {\n case android.R.id.home:\n\n // app icon in action bar clicked; goto parent activity.\n this.finish();\n return true;\n default:\n\n return super.onOptionsItemSelected(item);\n\n }\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tonBackPressed();\n\t\t\treturn true;\n\t\tdefault:\n\t\t\treturn super.onOptionsItemSelected(item);\n\t\t}\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n // Handle presses on the action bar items\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n case R.id.action_clear:\n return true;\n case R.id.action_done:\n\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n switch (id) {\n case android.R.id.home:\n onActionHomePressed();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id) {\n case android.R.id.home:\n onBackPressed();\n break;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n switch (id) {\n case android.R.id.home:\n onBackPressed();\n break;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n switch (item.getItemId())\n {\n case android.R.id.home :\n super.onBackPressed();\n break;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId ()) {\n case android.R.id.home:\n onBackPressed ();\n return true;\n\n default:\n break;\n }\n return super.onOptionsItemSelected ( item );\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t switch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\t// app icon in action bar clicked; go home \n\t\t\tIntent intent = new Intent(this, Kelutral.class); \n\t\t\tintent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP); \n\t\t\tstartActivity(intent); \n\t\t\treturn true;\t\t\n\t case R.id.Search:\n\t \treturn onSearchRequested();\n\t\tcase R.id.AppInfo:\n\t\t\t// Place holder menu item\n\t\t\tIntent newIntent = new Intent(Intent.ACTION_VIEW,\n\t\t\t\t\tUri.parse(\"http://forum.learnnavi.org/mobile-apps/\"));\n\t\t\tstartActivity(newIntent);\n\t\t\treturn true;\n\t\tcase R.id.Preferences:\n\t\t\tnewIntent = new Intent(getBaseContext(), Preferences.class);\n\t\t\tstartActivity(newIntent);\n\t\t\treturn true;\t\n\t }\n\t return false;\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n\n case android.R.id.home:\n onBackPressed();\n return true;\n\n }\n return super.onOptionsItemSelected(item);\n\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n\n default:\n return super.onOptionsItemSelected(item);\n }\n\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n // Intent homeIntent = new Intent(this, MainActivity.class);\n // homeIntent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n // startActivity(homeIntent);\n finish();\n return true;\n default:\n return (super.onOptionsItemSelected(item));\n }\n\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n // setResult and close the activity when Action Bar Up Button clicked.\n if (item.getItemId() == android.R.id.home) {\n setResult(RESULT_CANCELED);\n finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n // This ID represents the Home or Up button. In the case of this\n // activity, the Up button is shown. Use NavUtils to allow users\n // to navigate up one level in the application structure. For\n // more details, see the Navigation pattern on Android Design:\n //\n // http://developer.android.com/design/patterns/navigation.html#up-vs-back\n //\n \tgetActionBar().setDisplayHomeAsUpEnabled(false);\n \tgetFragmentManager().popBackStack();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n switch (item.getItemId()) {\n case android.R.id.home:\n super.onBackPressed();\n return true;\n\n default:\n // If we got here, the user's action was not recognized.\n // Invoke the superclass to handle it.\n return super.onOptionsItemSelected(item);\n\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if(id == android.R.id.home){\n onBackPressed();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n\n }\n\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@RequiresApi(api = Build.VERSION_CODES.M)\n @Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n break;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\r\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tif(item.getItemId()==android.R.id.home)\r\n\t\t{\r\n\t\t\tgetActivity().onBackPressed();\r\n\t\t}\r\n\t\treturn super.onOptionsItemSelected(item);\r\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n if(item.getItemId()==android.R.id.home){\n super.onBackPressed();\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id) {\n case android.R.id.home:\n onBackPressed();\n return false;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n //Back arrow\n case android.R.id.home:\n onBackPressed();\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n // android.R.id.home是Android内置home按钮的id\n finish();\n break;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n super.onBackPressed();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n this.onBackPressed();\n return false;\n }\n return false;\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n // Handle action bar item clicks here. The action bar will\n // automatically handle clicks on the Home/Up button, so long\n // as you specify a parent activity in AndroidManifest.xml.\n int id = item.getItemId();\n\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\r\n switch (item.getItemId()) {\r\n\r\n case android.R.id.home:\r\n /*Intent i= new Intent(getApplication(), MainActivity.class);\r\n i.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TOP);\r\n startActivity(i);*/\r\n onBackPressed();\r\n finish();\r\n return true;\r\n default:\r\n return super.onOptionsItemSelected(item);\r\n }\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id){\n case android.R.id.home:\n this.finish();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n // Pass the event to ActionBarDrawerToggle, if it returns\n // true, then it has handled the app icon touch event\n if (mDrawerToggle.onOptionsItemSelected(item)) {\n return true;\n }\n\n // Handle your other action bar items...\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n // Respond to the action bar's Up/Home button\n case android.R.id.home:\n NavUtils.navigateUpFromSameTask(getActivity());\n return true;\n case R.id.action_settings:\n Intent i = new Intent(getActivity(), SettingsActivity.class);\n startActivity(i);\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n //Fixes the Up Button\n if(id == android.R.id.home) {\n BuildRoute.this.finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()){\n case android.R.id.home:\n onBackPressed();\n break;\n }\n return true;\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n\n if (id == android.R.id.home) {\n NavUtils.navigateUpFromSameTask(this);\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\r\n case android.R.id.home:\r\n onBackPressed();\r\n break;\r\n }\r\n return true;\r\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tif (item.getItemId() == android.R.id.home) {\n\t\t\tfinish();\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n onBackPressed();\n\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n if ( id == android.R.id.home ) {\r\n finish();\r\n return true;\r\n }\r\n return super.onOptionsItemSelected(item);\r\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == R.id.home) {\r\n NavUtils.navigateUpFromSameTask(this);\r\n return true;\r\n }\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == R.id.action_about) {\r\n AboutDialog();\r\n return true;\r\n }\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == R.id.action_exit) {\r\n finish();\r\n return true;\r\n }\r\n\r\n\r\n return super.onOptionsItemSelected(item);\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n\n this.finish();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n\n this.finish();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n//noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n// finish the activity\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item)\n {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if( id == android.R.id.home ) // Back button of the actionbar\n {\n finish();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n\t\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\t\tswitch (item.getItemId()) {\r\n\t\t\tcase android.R.id.home:\r\n\t\t\t\tfinish();\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\treturn super.onOptionsItemSelected(item);\r\n\t\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n\n this.finish();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n if (item.getItemId() == android.R.id.home) {\n onBackPressed();\n return true;\n }\n return false;\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n\n if(id == android.R.id.home){\n finish();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n if (item.getItemId() == android.R.id.home) {\n finish();\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\r\n\t\tcase android.R.id.home:\r\n\t\t\tsetResult(RESULT_OK, getIntent());\r\n\t\t\tfinish();\r\n\t\t\tbreak;\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n finish();\n return true;\n default:\n // If we got here, the user's action was not recognized.\n // Invoke the superclass to handle it.\n return super.onOptionsItemSelected(item);\n\n }\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tfinish();\n\t\t\tbreak;\n\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id) {\n\n case android.R.id.home:\n this.finish();\n return true;\n }\n return true;\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tfinish();\n\t\t\tbreak;\n\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tint id = item.getItemId();\n\t\tif (id == android.R.id.home) {\n\t\t\tfinish();\n\t\t\treturn true;\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n if (id == android.R.id.home) {\r\n finish();\r\n return true;\r\n }\r\n return super.onOptionsItemSelected(item);\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n //NavUtils.navigateUpFromSameTask(this);\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n // todo: goto back activity from here\n finish();\n return true;\n\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\r\n // Handle item selection\r\n switch (item.getItemId()) {\r\n case android.R.id.home:\r\n onBackPressed();\r\n return true;\r\n\r\n case me.cchiang.lookforthings.R.id.action_sample:\r\n// Snackbar.make(parent_view, item.getTitle() + \" Clicked \", Snackbar.LENGTH_SHORT).show();\r\n return true;\r\n default:\r\n return super.onOptionsItemSelected(item);\r\n }\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n finish();\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n finish();\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n finish();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n\n\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tonBackPressed();\n\t\t\treturn true;\n\t\tcase R.id.scan_menu:\n\t\t\tonScan();\n\t\t\tbreak;\n\t\tcase R.id.opt_about:\n\t\t\t//onAbout();\n\t\t\tbreak;\n\t\tcase R.id.opt_exit:\n\t\t\tfinish();\n\t\t\tbreak;\n\t\tdefault:\n\t\t\treturn super.onOptionsItemSelected(item);\n\t\t}\n\t\treturn true;\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n super.onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id) {\n case android.R.id.home:\n this.finish();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n public boolean onOptionsItemSelected(@NonNull MenuItem item) {\n if (item.getItemId() == android.R.id.home) {\n onBackPressed();\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n switch (id) {\n case android.R.id.home:\n finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n\n case android.R.id.home:\n finish();\n return true;\n\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if(id==android.R.id.home){\n finish();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\r\n\t switch (item.getItemId()) {\r\n\t \t// back to previous page\r\n\t case android.R.id.home:\r\n\t finish();\r\n\t return true;\r\n\t }\r\n\t return super.onOptionsItemSelected(item);\r\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n finish();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == android.R.id.home) {\r\n // finish the activity\r\n onBackPressed();\r\n return true;\r\n }\r\n\r\n return super.onOptionsItemSelected(item);\r\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == android.R.id.home) {\r\n // finish the activity\r\n onBackPressed();\r\n return true;\r\n }\r\n\r\n return super.onOptionsItemSelected(item);\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId())\n {\n case android.R.id.home:\n this.finish();\n return (true);\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id){\n case R.id.home:{\n NavUtils.navigateUpFromSameTask(this);\n return true;\n }\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n switch(item.getItemId())\n {\n case android.R.id.home:\n super.onBackPressed();\n break;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tfinish();\n\t\t\treturn true;\n\n\t\tdefault:\n\t\t\treturn super.onOptionsItemSelected(item);\n\t\t}\n\t}", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n\r\n int id = item.getItemId();\r\n if(id==android.R.id.home){\r\n finish();\r\n return true;\r\n }\r\n return super.onOptionsItemSelected(item);\r\n }" ]
[ "0.79041183", "0.7805934", "0.77659106", "0.7727251", "0.7631684", "0.7621701", "0.75839096", "0.75300384", "0.74873656", "0.7458051", "0.7458051", "0.7438486", "0.742157", "0.7403794", "0.7391802", "0.73870087", "0.7379108", "0.7370295", "0.7362194", "0.7355759", "0.73454577", "0.734109", "0.73295504", "0.7327726", "0.73259085", "0.73188347", "0.731648", "0.73134047", "0.7303978", "0.7303978", "0.7301588", "0.7298084", "0.72932935", "0.7286338", "0.7283324", "0.72808945", "0.72785115", "0.72597474", "0.72597474", "0.72597474", "0.725962", "0.7259136", "0.7249966", "0.7224023", "0.721937", "0.7216621", "0.72045326", "0.7200649", "0.71991026", "0.71923256", "0.71851367", "0.7176769", "0.7168457", "0.71675026", "0.7153402", "0.71533287", "0.71352696", "0.71350807", "0.71350807", "0.7129153", "0.7128639", "0.7124181", "0.7123387", "0.7122983", "0.71220255", "0.711715", "0.711715", "0.711715", "0.711715", "0.7117043", "0.71169263", "0.7116624", "0.71149373", "0.71123946", "0.7109806", "0.7108778", "0.710536", "0.7098968", "0.70981944", "0.7095771", "0.7093572", "0.7093572", "0.70862055", "0.7082207", "0.70808214", "0.7080366", "0.7073644", "0.7068183", "0.706161", "0.7060019", "0.70598614", "0.7051272", "0.70374316", "0.70374316", "0.7035865", "0.70352185", "0.70352185", "0.7031749", "0.703084", "0.7029517", "0.7018633" ]
0.0
-1
3 steps around the array rotate 180 degrees (elements are ordered anticlockwise)
public HexDirection opposite() { return values()[(ordinal() + 3) % 6]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void rotate();", "public void rotateCCW(){\n rotState = (rotState + 3) % 4;\n for (int i = 0; i < tiles.length; ++i){\n tiles[i] = new Point(tiles[i].y , -tiles[i].x);\n }\n }", "public static void main (String[] args) \n { \n int arr[] = {1, 2, 3, 4, 5, 6, 7}; \n int n = arr.length; \n int d = 2; \n \n // in case the rotating factor is \n // greater than array length \n d = d % n; \n leftRotate(arr, 2, 7); // Rotate array by d \n printArray(arr); \n }", "private static void rotate(int[][] a, start, end){\n for (int current = 0; start+current < end; current++){\n int temp = a[start][start+current]; // save the top \n a[start][start+current] = a[end-current][start]; // left to top moveing left elemnt to top\n a[end-current][start] = a[end][end-current]; // bottom element to left \n a[end][end-current] = a[start+current][end]; // right element to bottom \n a[start+current][end] = temp; // top elemrnt to right\n }\n}", "private static void rotate(int[][] a) {\n\t\tint len = a.length;\n\t\tint k,l=0;\n\t\tint b[][] = new int[len][len];\n\t\tfor(int i=len-1;i>=0;i--)\n\t\t{\n\t\t\tk=0;\n\t\t\tfor(int j=0;j<len && k<3 && l<3;j++)\n\t\t\t{\n\t\t\t b[k][l]=a[i][j];\n\t\t\t k++;\n\t\t\t if(k>2)\n\t\t\t \t l++;\n\t }\n\t\t}\n\t\tfor(int c[]:b) {\n\t\t\tfor( int d : c) {\n\t\t\t\tSystem.out.print(d + \" \");\n\t\t\t}\n\t\tSystem.out.println();\n\t}\n\t\t\n\t}", "static void rotate_right(int[] arr, int rotate){\n for (int j = 0; j < rotate; j++) {\n int temp = arr[j];\n for (int i = j; i < arr.length+rotate; i+=rotate) {\n if(i-rotate < 0)\n temp = arr[i];\n else if(i >= arr.length)\n arr[i-rotate] = temp;\n else\n arr[i-rotate] = arr[i]; \n }\n }\n }", "@Test\n public void testRotate90Degrees2(){\n double[][] a = new double[2][3];\n for(int i = 0 ; i < a.length ; i++){\n for(int j = 0 ; j < a[0].length ; j++){\n a[i][j] = Math.random();\n }\n }\n double[][] newA = HarderArrayProblems.rotateArray90(a);\n checkRotate(a, newA);\n }", "public static void main(String[] args) {\n Rotate rotate = new Rotate();\n /* int[] arr = new int[] {1,2,3,4,5,6,7};\n rotate.printArray(arr);\n System.out.println(\" \");*/\n /*rotate.rotateWithNewArray(arr, arr.length,3);\n System.out.println(\" \");\n rotate.rotateWithNewArrayBetter(arr, arr.length,3);\n System.out.println(\" \");\n int[] arr1 = new int[] {1,2,3,4,5,6,7};\n rotate.rotateLeftWithJugglingSolution(arr1, 3, 7);*/\n\n int[] arr2 = new int[] {1,2,3,4,5};\n rotate.printArray(arr2);\n System.out.println(\" \");\n rotate.rotateLeftWithReverse(arr2,5,2);\n }", "private int[] leftrotate(int[] arr, int times) {\n assert (arr.length == 4);\n if (times % 4 == 0) {\n return arr;\n }\n while (times > 0) {\n int temp = arr[0];\n System.arraycopy(arr, 1, arr, 0, arr.length - 1);\n arr[arr.length - 1] = temp;\n --times;\n }\n return arr;\n }", "public int[] rotate3(int[] arr, int k) {\n\t\tk = k % arr.length;\n\n\t\tif (arr == null || k < 0)// handles exceptions\n\t\t\tthrow new IllegalArgumentException(\"Illegal argument!\");\n\n\t\tint a = arr.length - k;// length of the first part\n\t\treverse(arr, 0, a - 1);// rotate the first part\n\t\treverse(arr, a, arr.length - 1);// rotate the second part\n\t\treverse(arr, 0, arr.length - 1);// rotate the whole array\n\n\t\treturn arr;\n\n\t}", "public void rotate() {\n\t\t\tfor(int i=0; i<4; i++)\n\t\t\t\tfor(int j=0; j<4; j++)\n\t\t\t\t\ttmp_grid[i][j] = squares[i][j];\n\t\t\t// copy back rotated 90 degrees\n\t\t\tfor(int i=0; i<4; i++)\n\t\t\t\tfor(int j=0; j<4; j++)\n\t\t\t\t\tsquares[j][i] = tmp_grid[i][3-j];\n \n //log rotation\n LogEvent(\"rotate\");\n\t\t}", "@Test\n\tpublic void rotateArray_rotateLeftTwoItems() {\n\t\tint[] nums = prepareInputArray(5);\n\t\tint[] rotatedArray = ArrayLeftRotation.rotateArray(nums, 2);\n\t\tassertThat(rotatedArray[0], equalTo(3));\n\t\tassertThat(rotatedArray[1], equalTo(4));\n\t\tassertThat(rotatedArray[2], equalTo(5));\n\t\tassertThat(rotatedArray[3], equalTo(1));\n\t\tassertThat(rotatedArray[4], equalTo(2));\n\t}", "private void rotate() {\n byte tmp = topEdge;\n topEdge = leftEdge;\n leftEdge = botEdge;\n botEdge = rightEdge;\n rightEdge = tmp;\n tmp = reversedTopEdge;\n reversedTopEdge = reversedLeftEdge;\n reversedLeftEdge = reversedBotEdge;\n reversedBotEdge = reversedRightEdge;\n reversedRightEdge = tmp;\n tmp = ltCorner;\n ltCorner = lbCorner;\n lbCorner = rbCorner;\n rbCorner = rtCorner;\n rtCorner = tmp;\n\n }", "@Test\n public void testRotate90Degrees1(){\n double[][] a = new double[5][5];\n for(int i = 0 ; i < a.length ; i++){\n for(int j = 0 ; j < a[0].length ; j++){\n a[i][j] = Math.random();\n }\n }\n double[][] newA = HarderArrayProblems.rotateArray90(a);\n checkRotate(a, newA);\n }", "public void rotate(float angle);", "static void rotateArrayOnce(int[] arr) {\n int temp = 0;\n for (int i = arr.length -1 ; i > 0; i++) {\n temp = arr[i];\n arr[i] = arr[i - 1];\n arr[i -1] = temp;\n }\n\n }", "static void rotate(int[][] matrix) {\n int n = matrix.length;\n for (int i = 0; i < (n + 1) / 2; i++) {\n for (int j = 0; j < n / 2; j++) {\n int temp = matrix[n - 1 - j][i];\n matrix[n - 1 - j][i] = matrix[n - 1 - i][n - j - 1];\n matrix[n - 1 - i][n - j - 1] = matrix[j][n - 1 - i];\n matrix[j][n - 1 - i] = matrix[i][j];\n matrix[i][j] = temp;\n }\n }\n }", "static int[] rotLeft(int[] a, int d) {\n int temp = a[a.length - 1];\n for (int i = a.length - 1; i > 1; i--) {\n if (i > 2) {\n a[i - 2] = temp;\n temp = a[i - 3];\n } else {\n a[0] = a[a.length - 1];\n }\n }\n\n return a;\n }", "public static void rotate(int[] arr, int order) {\n\t\torder = order % arr.length;\n\t \n\t\tif (arr == null || order < 0) {\n\t\t\tthrow new IllegalArgumentException(\"Illegal argument!\");\n\t\t}\n\t \n\t\t//length of first part\n\t\tint a = arr.length - order; \n\t \n\t\treverse(arr, 0, a-1);\n\t\treverse(arr, a, arr.length-1);\n\t\treverse(arr, 0, arr.length-1);\n\t \n\t}", "public static double[] rotate(double [] x, int n)\n {\n for(int i = 0; i < n; i++)\n {\n for(int j = 0; j < x.length - 1; j++)\n {\n double temp = x[j];\n x[j] = x[j + 1];\n x[j + 1] = temp;\n }\n }\n\n return x;\n\n }", "public abstract void rotate();", "public static void rotateMatrix(int[][] a]){\n if (a == null || a.length == 0 || a.length != a[0].length){\n return;\n }\n \n // we olny need half of the layers as other layers will be processed automatically\n for (int layer = 0; layer < a.length/2; layer++){\n // rotate (array, start, end), this will take us to the end\n rotate(a, layer, a.length-1-layer)\n }\n}", "void rotate(float x, float y, float z) {\n target_angle[0] += x;\n target_angle[1] += y;\n target_angle[2] += z;\n postSetAngle();\n }", "public static char[][] rotate(char[][] array) {\n\n char[][] rotateArray = array;\n char[][] tempArray = new char[8][8];\n\n for (int i = 0; i < 8; i++ ){\n\n for (int j = 0; j < 8; j++){\n\n tempArray[i][j] = rotateArray[7-j][i];\n }\n }\n return tempArray;\n }", "public void rotateClockwise(int[][] matrix) {\n int n = matrix.length;\n\n // 1. Transpose matrix , change row to column, could use XOR operator to remove temp dependency\n for (int i = 0; i < n; i++) {\n for (int j = i; j < n; j++) {\n int temp = matrix[j][i];\n matrix[j][i] = matrix[i][j];\n matrix[i][j] = temp;\n }\n }\n\n // 2. Reverse elements of matrix\n for (int i = 0; i < n; i++) {\n for (int j = 0; j < n / 2; j++) {\n int temp = matrix[i][j];\n matrix[i][j] = matrix[i][n - j - 1];\n matrix[i][n - j - 1] = temp;\n }\n }\n }", "@Test\n\tpublic void rotateArray_rotateLeftOneItem() {\n\t\tint[] nums = prepareInputArray(5);\n\t\tint[] rotatedArray = ArrayLeftRotation.rotateArray(nums, 1);\n\t\tassertThat(rotatedArray[0], equalTo(2));\n\t\tassertThat(rotatedArray[1], equalTo(3));\n\t\tassertThat(rotatedArray[2], equalTo(4));\n\t\tassertThat(rotatedArray[3], equalTo(5));\n\t\tassertThat(rotatedArray[4], equalTo(1));\n\t}", "public void zRotate() {\n\t\t\n\t}", "@Test\n\tpublic void rotateArrayUsingCalculatePositionAlgorithm_rotateLeftTwoItems() {\n\t\tint[] nums = prepareInputArray(5);\n\t\tint[] rotatedArray = ArrayLeftRotation.rotateArray(nums, 2);\n\t\tassertThat(rotatedArray[0], equalTo(3));\n\t\tassertThat(rotatedArray[1], equalTo(4));\n\t\tassertThat(rotatedArray[2], equalTo(5));\n\t\tassertThat(rotatedArray[3], equalTo(1));\n\t\tassertThat(rotatedArray[4], equalTo(2));\n\t}", "public void rotate() \n {\n \tint[] rotatedState = new int[state.length];\n \tfor (int i = 0; i < state.length; ++i)\n \t\trotatedState[(i+7)%14] = state[i];\n \tstate = rotatedState;\n }", "void rotateTurtle(int turtleIndex, double degrees);", "public void rotate(double angle) {\t\t\n\t\t// precompute values\n\t\tVector t = new Vector(this.a14, this.a24, this.a34);\n\t\tif (t.length() > 0) t = t.norm();\n\t\t\n\t\tdouble x = t.x();\n\t\tdouble y = t.y();\n\t\tdouble z = t.z();\n\t\t\n\t\tdouble s = Math.sin(angle);\n\t\tdouble c = Math.cos(angle);\n\t\tdouble d = 1 - c;\n\t\t\n\t\t// precompute to avoid double computations\n\t\tdouble dxy = d*x*y;\n\t\tdouble dxz = d*x*z;\n\t\tdouble dyz = d*y*z;\n\t\tdouble xs = x*s;\n\t\tdouble ys = y*s;\n\t\tdouble zs = z*s;\n\t\t\n\t\t// update matrix\n\t\ta11 = d*x*x+c; a12 = dxy-zs; a13 = dxz+ys;\n\t\ta21 = dxy+zs; a22 = d*y*y+c; a23 = dyz-xs;\n\t\ta31 = dxz-ys; a32 = dyz+xs; a33 = d*z*z+c;\n\t}", "public void rotate(int[] nums, int k) {\n int[] tmp = new int[nums.length];\n for (int i = 0; i < nums.length; ++i) {\n tmp[(i + k) % nums.length] = nums[i];\n }\n\n for (int i = 0; i < nums.length; ++i) {\n nums[i] = tmp[i];\n }\n }", "void rotatePolygon() {\n\t\tfor (int i = 0; i < amount; i++)\n\t\t\tpoint[i].rotate();\n\t}", "private static void leftRotateByOne(int[] array) {\n int tmp = array[0];\n for (int i = 0; i < array.length - 1; i++) {\n array[i] = array[i + 1];\n }\n array[array.length - 1] = tmp;\n }", "@Override\r\n\tpublic void rotate() {\n\t\t\r\n\t}", "public void rotate(int [] a, int k)\n\t{\n\t\tif (a == null || k == 0)\n\t\t\treturn;\n\n\t\tint [] b = new int[a.length];\n\t\tfor (int i = 0; i < a.length; i++)\n\t\t{\n\t\t\tint jump = (i + k) % a.length;\n\t\t\tb[jump] = a[i];\n\t\t}\n\t\tfor (int i = 0; i <a.length;i++)\n\t\t{\n\t\t\ta[i] = b[i];\n\t\t}\n\t}", "private static void rotateArray(int[] arr, int gcd, int k) {\n\t\t// gcd is the set length for which the rotation will happen\n\t\tint len = arr.length;\n\t\tfor (int i = 0; i < gcd; i++) {\n\t\t\tint temp = arr[i];\n\t\t\tint j = i;\n\t\t\tint l = -1;\n\t\t\twhile (true) {\n\t\t\t\tl = ((j + k) % len);\n\t\t\t\tif (l == i) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tarr[j] = arr[l];\n\t\t\t\tj = l;\n\t\t\t}\n\t\t\tarr[j] = temp;\n\t\t}\n\t\tfor (int i = 0; i < len; i++) {\n\t\t\tSystem.out.print(arr[i] + \" \");\n\t\t}\n\t}", "public static float[] rotate(float[] m, float a, float x, float y, float z) {\n float s, c;\n s = (float) Math.sin(a);\n c = (float) Math.cos(a);\n float[] r = {\n x * x * (1.0f - c) + c, y * x * (1.0f - c) + z * s, x * z * (1.0f - c) - y * s, 0.0f,\n x * y * (1.0f - c) - z * s, y * y * (1.0f - c) + c, y * z * (1.0f - c) + x * s, 0.0f,\n x * z * (1.0f - c) + y * s, y * z * (1.0f - c) - x * s, z * z * (1.0f - c) + c, 0.0f,\n 0.0f, 0.0f, 0.0f, 1.0f};\n return multiply(r, m);\n }", "static int[] circularArrayRotation(int[] a, int[] m) {\n k = a.length - (k % a.length);\n int first = 0;\n int runner = 0;\n int aux = a[first];\n\n for (int i = 0; i < a.length; i++) {\n if (adjInd(runner + k, a.length) == first) {\n a[runner] = aux;\n first = adjInd(++first, a.length);\n runner = first;\n aux = a[first];\n }\n else {\n a[runner] = a[adjInd(runner + k, a.length)];\n runner = adjInd(runner + k, a.length);\n }\n }\n\n int[] result = new int[m.length];\n for (int i = 0; i < m.length; i++) {\n result[i] = a[m[i]];\n }\n\n return result;\n }", "public abstract Vector4fc rotateAbout(float angle, float x, float y, float z);", "public void rotateClockWise() {\r\n\r\n transpose();\r\n\r\n // swap columns\r\n for (int col = 0; col < pixels[0].length / 2; col++) {\r\n for (int row = 0; row < pixels.length; row++) {\r\n int tmp = pixels[row][col];\r\n pixels[row][col] = pixels[row][pixels[0].length - 1 - col];\r\n pixels[row][pixels[0].length - 1 - col] = tmp;\r\n }\r\n }\r\n\r\n this.pix2img();\r\n }", "public void rotate(int[] nums, int k) {\n \n k = k % nums.length;\n reverse(nums, 0, nums.length-1);\n reverse(nums, 0, k-1);\n reverse(nums, k, nums.length-1);\n }", "public void rotate(int[][] matrix) {\n if (matrix == null || matrix.length == 0) return;\n int n = matrix.length-1;\n for (int i = 0; i <= n / 2; i++) {\n for (int j = i; j < n; j++) {\n int temp = matrix[i][j];\n matrix[i][j] = matrix[n - j][i];\n matrix[n - j][i] = matrix[n - i][n - j];\n matrix[n - i][n - j] = matrix[j][n - i];\n matrix[j][n - i] = temp;\n }\n }\n }", "public final void rot() {\n\t\tif (size > 2) {\n\n\t\t\tdouble topMostValue = pop();\n\t\t\tdouble secondTopMostValue = pop();\n\t\t\tdouble thirdTopMostValue = pop();\n\n\t\t\tpush(secondTopMostValue);\n\t\t\tpush(topMostValue);\n\t\t\tpush(thirdTopMostValue);\n\n\t\t}\n\t}", "@Test\n\tpublic void rotateArrayUsingCalculatePositionAlgorithm_rotateLeftOneItem() {\n\t\tint[] nums = prepareInputArray(5);\n\t\tint[] rotatedArray = ArrayLeftRotation.rotateArray(nums, 1);\n\t\tassertThat(rotatedArray[0], equalTo(2));\n\t\tassertThat(rotatedArray[1], equalTo(3));\n\t\tassertThat(rotatedArray[2], equalTo(4));\n\t\tassertThat(rotatedArray[3], equalTo(5));\n\t\tassertThat(rotatedArray[4], equalTo(1));\n\t}", "public void rotate(double deg) {\n deg = deg % 360;\n// System.out.println(\"Stopni:\" + deg);\n double e = 0;\n double f = 0;\n\n// for(int i = 0; i < pixels.length; i++) {\n// for(int j = 0; j < pixels[i].length; j++) {\n// e += pixels[i][j].getX();\n// f += pixels[i][j].getY();\n// }\n// }\n //e = e / (pixels.length * 2);\n //f = f / (pixels[0].length * 2);\n e = pixels.length / 2;\n f = pixels[0].length / 2;\n System.out.println(e);\n System.out.println(f);\n\n// System.out.println(e + \":\" + f);\n Matrix affineTransform;\n Matrix translateMinus = Matrix.translateRotate(-e, -f);\n Matrix translatePlus = Matrix.translateRotate(e, f);\n Matrix movedTransform = Matrix.multiply(translateMinus, Matrix.rotate(deg));\n //movedTransform.display();\n affineTransform = Matrix.multiply(movedTransform, translatePlus);\n //affineTransform.display();\n\n for(int i = 0; i < pixels.length; i++) {\n for(int j = 0; j < pixels[i].length; j++) {\n double[][] posMatrix1 = {{pixels[i][j].getX()}, {pixels[i][j].getY()}, {1}};\n Matrix m1 = new Matrix(posMatrix1);\n Matrix result1;\n result1 = Matrix.multiply(Matrix.transpose(affineTransform.v), m1);\n\n pixels[i][j].setX(Math.round(result1.v[0][0]));\n pixels[i][j].setY(Math.round(result1.v[1][0]));\n }\n }\n\n\n }", "static int[] rotLeft(int[] a, int d) {\r\n // Gets length of input array\r\n int size = a.length;\r\n \r\n // Creates output array\r\n int[] result = new int[size];\r\n \r\n // We start cycling through the input array with index d instead of the very beginning\r\n int index = d;\r\n \r\n // Cycles through the input array\r\n for (int i = 0; i < size; i++) {\r\n // If the index is bigger than the size of the array, it starts again from 0 in order to not overflow\r\n if (index >= size) {\r\n index = 0;\r\n }\r\n result[i] = a[index]; // We save the current value in result\r\n index += 1; // We refresh the index\r\n }\r\n \r\n return result;\r\n}", "Point rotate (double angle, Point result);", "public static void rotateAntiClockWise(int[] arr, int k)\r\n {\r\n\t for(int i=0; i< k; i++)\r\n\t {\r\n\t\t for(int j=0; j<arr.length-1; j++)\r\n\t\t {\r\n\t\t\t int temp = arr[j+1];\r\n\t\t\t arr[j+1] = arr[j];\r\n\t\t\t arr[j] = temp;\r\n\t\t\t\r\n\t\t }\r\n\t }\r\n }", "static <T> T[] rotateAnArray(T array[], int shift) {\n shift %= array.length;\n\n for (int i = 0; i < array.length / 2; i++) Utilities.swap(array, i, array.length - i - 1);\n\n for (int i = 0; i < shift / 2; i++) Utilities.swap(array, i, shift - i - 1);\n for (int i = shift; i < shift + (array.length - shift) / 2; i++) Utilities.swap(array, i, array.length - i + shift - 1);\n\n return array;\n }", "@Test\n public void testRotateVector(){\n\n double [] v = new double[2]; // input vector\n double[] transformedV; // output vector\n\n v[0] = 0;\n v[1] = 0;\n transformedV = saab.rotateVector(v, Math.PI/2);\n Assertions.assertEquals(transformedV[0], 0);\n Assertions.assertEquals(transformedV[1], 0);\n\n v[0] = 1;\n v[1] = 0;\n transformedV = saab.rotateVector(v, Math.PI/2);\n Assertions.assertEquals(transformedV[0], 0);\n Assertions.assertEquals(transformedV[1], 1);\n\n v[0] = 0;\n v[1] = 1;\n transformedV = saab.rotateVector(v, Math.PI/2);\n Assertions.assertEquals(transformedV[0], -1);\n Assertions.assertEquals(transformedV[1], 0);\n\n v[0] = 0;\n v[1] = 1;\n transformedV = saab.rotateVector(v, Math.PI/2);\n Assertions.assertEquals(transformedV[0], -1);\n Assertions.assertEquals(transformedV[1], 0);\n }", "public static int[] rotate(int[] nums, int k) {\n int[] temp = new int[k];\n int acc = k % nums.length;\n for (int i = 0; i < acc; i++) {\n temp[i] = nums[(nums.length - acc) + i];\n }\n for (int i = nums.length - acc - 1; i >= 0; i--) {\n nums[i + acc] = nums[i];\n }\n for (int i = 0; i < acc; i++) {\n nums[i] = temp[i];\n }\n return nums;\n }", "public void rotate() {\n // amoeba rotate\n // Here i will use my rotation_x and rotation_y\n }", "public static int[] rotateRight(int[] arr) {\n int[] newArr=new int[arr.length];\n for (int i =0;i< arr.length;i++){\n if (!(i== (arr.length-1))){\n newArr[i+1]=arr[i];\n }\n else{\n newArr[0]=arr[i];\n }\n }\n return newArr;\n }", "@Override\n\tpublic void rotate() {\n\t}", "public static void rotateAntiClockBetter(int[] arr, int k)\r\n {\r\n\t int[] arr2 = arr.clone();\r\n\t for(int i =0; i< arr.length; i++)\r\n\t {\r\n\t\t arr2[i] = arr[(i+k)%arr.length];\r\n\t }\r\n\t System.out.println(Arrays.toString(arr2));\r\n }", "public int[][] rotate(){\r\n\t\tpos = (pos == (limit - 1))? 1:pos + 1;\r\n\t\treturn coords(pos);\r\n\t}", "private static void rotate(int[][] matrix) {\r\n\t\tfor (int i = 0; i < matrix.length; i++) {\r\n\t\t\tfor (int j = i; j < matrix[0].length; j++) {\r\n\t\t\t\tint temp = 0;\r\n\t\t\t\ttemp = matrix[i][j];\r\n\t\t\t\tmatrix[i][j] = matrix[j][i];//转置,第i行变成第i列\r\n\t\t\t\tmatrix[j][i] = temp;\r\n\t\t\t}\r\n\t\t}\r\n\t\tfor (int i = 0; i < matrix.length; i++) {\r\n\t\t\tfor (int j = 0; j < matrix.length / 2; j++) {\r\n\t\t\t\tint temp = 0;\r\n\t\t\t\ttemp = matrix[i][j];\r\n\t\t\t\tmatrix[i][j] = matrix[i][matrix.length - 1 - j];\r\n\t\t\t\tmatrix[i][matrix.length - 1 - j] = temp;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t}", "Point rotate (double angle);", "public static double[][] rotate2D180(double[][] r){\n\t\tint m = r.length;\n\t\tdouble[][] ret = new double[m][2];\n\t\tfor(int i=0; i<r.length; i++){\n\t\t\tret[i][0] = -1.0 * r[i][0];\n\t\t\tret[i][1] = -1.0 * r[i][1];\n\t\t}\n\t\t//System.out.println(\"After rotate:\");\n\t\t//System.out.println(Util.dblMatToString(ret));\n\t\treturn ret;\n\t}", "public static void main(String[] args) {\n int[] a = new int[] {1,2,3,4,5,6,7};\n rotate(a,3);\n }", "private static int[] cycliRotation(int[] A, int K) {\n\t\tfor(int i = 0; i < K; i++)\n\t\t{\n\t\t\t//Variable\n\t\t\tint tempStorage = 0;\n\t\t\tint nextCounter = 1;\n\t\t\tint currentCounter = 0;\n\t\t\t\n\t\t\tfor(int j=0;j<A.length;j++)\n\t\t\t{\n\t\t\t\tif(nextCounter > A.length)\n\t\t\t\t{\n\t\t\t\t\ttempStorage = A[j];\n\t\t\t\t\t\n\t\t\t\t\tA[j] = A[currentCounter];\n\t\t\t\t\t\n\t\t\t\t\tA[currentCounter] = tempStorage;\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tif(j == A.length-1)\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\ttempStorage = A[nextCounter]; // Move the next element to a temporary storage\n\t\t\t\t\t\n\t\t\t\t\tA[nextCounter] = A[currentCounter]; // Swap the position of the next element with the first\n\t\t\t\t\t\n\t\t\t\t\tA[currentCounter] = tempStorage;\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\tnextCounter++;\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn A;\n\t}", "public void rotateLayer(int[][] matrix, int x, int y, int len){\n for (int i = 0; i < len - 1; i++){\n int tmp = matrix[x][y+i];\n matrix[x][y+i] = matrix[x+len-i-1][y];\n matrix[x+len-i-1][y] = matrix[x+len-1][y+len-1-i];\n matrix[x+len-1][y+len-1-i] = matrix[x+i][y+len-1];\n matrix[x+i][y+len-1] = tmp;\n }\n }", "@Override\n\tpublic void rotate90() {\n\n\t\tint[][] rotate = new int[this.frame[0].length][this.frame.length];\n\n\t\tfor (int x = 0; x < rotate[0].length; x++) {\n\t\t\tfor (int y = 0; y < rotate.length; y++) {\n\t\t\t\trotate[y][x] = this.frame[this.frame.length - x - 1][y];\n\t\t\t}\n\t\t} \n\n\t\tthis.frame = rotate;\n\n\t}", "public void rotate(int[][] matrix) {\n int temp, len = matrix.length;\n\n int left = 0, top = 0, right = len-1, bottom = len-1;\n\n while(left < right) {\n for(int i = left; i < right; i++) {\n temp = matrix[top][i];\n matrix[top][i] = matrix[len-1-i][left];\n matrix[len-1-i][left] = matrix[bottom][len-1-i];\n matrix[bottom][len-1-i] = matrix[i][right];\n matrix[i][right] = temp;\n }\n left++;\n right--;\n top++;\n bottom--;\n }\n }", "public static void rotateArray(final int[] nums, final int k) {\n final var rot = k % nums.length;\n\n int temp, previous;\n for (int i = 0; i < rot; i++) {\n previous = nums[nums.length - 1];\n for (int j = 0; j < nums.length; j++) {\n temp = nums[j];\n nums[j] = previous;\n previous = temp;\n }\n }\n }", "public abstract void rotateRight();", "double adjust_angle_rotation(double angle) {\n double temp;\n temp=angle;\n if(temp>90) {\n temp=180-temp;\n }\n return temp;\n }", "void rotate () {\n final int rows = currentPiece.height;\n final int columns = currentPiece.width;\n int[][] rotated = new int[columns][rows];\n\n for (int i = 0; i < rows; i++)\n for (int j = 0; j < columns; j++)\n rotated[j][i] = currentPiece.blocks[i][columns - 1 - j];\n\n Piece rotatedPiece = new Piece(currentPiece.color, rotated);\n int kicks[][] = {\n {0, 0},\n {0, 1},\n {0, -1},\n //{0, -2},\n //{0, 2},\n {1, 0},\n //{-1, 0},\n {1, 1},\n //{-1, 1},\n {1, -1},\n //{-1, -1},\n };\n for (int kick[] : kicks) {\n if (canMove(currentRow + kick[0], currentColumn + kick[1], rotatedPiece)) {\n //System.out.println(\"Kicking \" + kick[0] + \", \" + kick[1]);\n currentPiece = rotatedPiece;\n currentRow += kick[0];\n currentColumn += kick[1];\n updateView();\n break;\n }\n }\n }", "public void rotateRight(int time) {\n\t\tdouble step = 3;\r\n\t\t\r\n\t\tif( rotation + step > 360 )\r\n\t\t\trotation = rotation + step - 360;\r\n\t\telse\r\n\t\t\trotation += step;\r\n\t}", "public void rotate(int[][] matrix) {\n if(matrix.length <= 0) {\n return;\n }\n \n int N= matrix.length;\n \n for(int i = 0 ; i < N/2; i++) {\n for(int j = i ; j < N-i-1; j ++) {\n int temp = matrix[i][j];\n matrix[i][j] = matrix[N-1-j][i];\n matrix[N-1-j][i] = matrix[N-1-i][N-1-j];\n matrix[N-1-i][N-1-j] = matrix[j][N-1-i];\n matrix[j][N-1-i] = temp;\n }\n \n }\n }", "public void rotate (int row) {\n\t\tif ( row < n / 2)\n\t\t\trotate(row + 1);\n\t\telse\n\t\t\treturn;\n\t\t//rotate the outter most row and col\n\t\trotateRow(row);\n\t}", "public static void rotate(int[] nums, int k) {\n // get the kth index from the end to rotate\n\t\tint n = nums.length;\n\t\tk = k % n ;\n\t\tif(k == 0) return ;\n\t\tint prev = 0, tmp = 0;\n\t\tfor(int i = 0 ; i < k ; i++) {\n\t\t\tprev = nums[n - 1];\n\t\t\tfor(int j = 0 ; j < nums.length ; j++) {\n\t\t\t\ttmp = nums[j];\n\t\t\t\tnums[j] = prev;\n\t\t\t\tprev = tmp;\n\t\t\t}\n\t\t}\n }", "public int[] rotate(int[] arr, int k) {\n\t\tif (k > arr.length)// if k>n or (steps rotated)>(num of elts)\n\t\t\tk = k % arr.length;// then k is changed to k mod n\n\n\t\t// Create a new array of the same length\n\t\tint[] result = new int[arr.length];\n\n\t\tfor (int i = 0; i < k; i++)\n\t\t\tresult[i] = arr[arr.length - k + i];\n\n\t\tint j = 0;\n\t\tfor (int i = k; i < arr.length; i++) {\n\t\t\tresult[i] = arr[j];\n\t\t\tj++;\n\t\t}\n\n\t\t// Copy the shifted array into the original\n\t\tSystem.arraycopy(result, 0, arr, 0, arr.length);\n\t\treturn arr;\n\n\t}", "public static void rotateMatrix(int[][] data) {\n\t\tint N = data.length;\n\t\tfor (int x = 0; x < N / 2; x++) {\n\t\t\tfor (int y = x; y < N - 1 - x; y++) {\n\t\t\t\tint tmp = data[x][y];\n\t\t\t\tdata[x][y] = data[y][N-1-x];\n\t\t\t\tdata[y][N-1-x] = data[N-1-x][N-1-y];\n\t\t\t\tdata[N-1-x][N-1-y] = data[N-1-y][x];\n\t\t\t\tdata[N-1-y][x] = tmp;\n\t\t\t}\n\t\t}\n\t}", "private static int[] rotateArray(int a[],int d) {\n int len = a.length;\n int a2[] = new int[len];\n int i=0;\n while(i<len-d) {\n a2[i] = a[d+i];\n i++;\n }\n int j=0;\n while(j<d && i < a.length) {\n a2[i] = a[j];\n j++;\n i++;\n }\n return a2;\n }", "public void rotateold2(int[] a, int k) {\n\n\t\tif (a == null || a.length == 0)\n\t\t\treturn;\n\n\t\tint jump = 0, len = a.length, cur = a[0], next, count = 0;\n\n\t\tk %= len; \n\t\tif (k == 0) return;\n\n\t\tif (len % k != 0 || k == 1)\n\t\t{ \n\t\t\tint i = 0;\n\t\t\twhile (i < len)\n\t\t\t{\n\t\t\t\tjump = (jump + k) % len;\n\t\t\t\tnext = a[jump];\n\t\t\t\ta[jump] = cur;\n\t\t\t\tcur = next;\n\t\t\t\ti++;\n\t\t\t} \n\t\t} \n\t\telse\n\t\t{\n\t\t\tfor (int i = 0; i <= len/k; i ++)\n\t\t\t{\n\t\t\t\tint start = 0;\n\t\t\t\tjump = i;\n\t\t\t\tnext = a[jump];\n\t\t\t\tcur = a[i];\n\t\t\t\twhile (start <= len/k)\n\t\t\t\t{\n\t\t\t\t\tjump = (jump + k) % len;\n\t\t\t\t\tnext = a[jump];\n\t\t\t\t\ta[jump] = cur;\n\t\t\t\t\tcur = next;\n\t\t\t\t\tstart++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "private static void rotate(int[][] matrix) {\n int rows = matrix.length;\n int cols = matrix[0].length;\n\n for (int[] ints : matrix) {\n reverse(ints, 0, cols - 1);\n }\n\n for (int i = 0; i < rows; i++) {\n for (int j = 0; j < cols - i; j++) {\n swapMatrix(matrix, i, j, cols - 1 - j, rows - 1 - i);\n }\n }\n }", "private static void rightRotate(int[] nums, int k) {\r\n\t if (nums.length == 0) return;\r\n\t \r\n\t k %= nums.length;\r\n\t \r\n\t if (k == 0) return;\r\n\t \r\n\t int left=0, right=nums.length-1, tmp;\r\n\t \r\n\t while(left < right) {\r\n\t tmp = nums[left];\r\n\t nums[left] = nums[right];\r\n\t nums[right] = tmp;\r\n\t \r\n\t left++;\r\n\t right--;\r\n\t }\r\n\t \r\n\t left=0;\r\n\t right=k-1;\r\n\t \r\n\t while(left < right) {\r\n\t \ttmp = nums[left];\r\n\t \tnums[left] = nums[right];\r\n\t \tnums[right] = tmp;\r\n\t \t \r\n\t \tleft++;\r\n\t \tright--;\r\n\t }\r\n\t \r\n\t left=k;\r\n\t right=nums.length-1;\r\n\t \r\n\t while(left < right) {\r\n\t \ttmp = nums[left];\r\n\t \tnums[left] = nums[right];\r\n\t \tnums[right] = tmp;\r\n\t \t \r\n\t \tleft++;\r\n\t \tright--;\r\n\t }\r\n\t }", "public byte[] rotWord(byte[] word) {\n\n byte[] rotated = new byte[word.length];\n\n for(int i = 0; i < word.length; i++) {\n rotated[i] = word[(i+1)%word.length];\n }\n\n return rotated;\n }", "@Override\r\n\tpublic void rotateLeft() {\n\t\tsetDirection((this.getDirection() + 3) % 4);\r\n\t}", "public abstract void rotateLeft();", "public void rotate1(int[] nums, int k) {\n k %= nums.length;\n reverse(nums, 0, nums.length - 1);\n reverse(nums, 0, k - 1);\n reverse(nums, k, nums.length - 1);\n }", "public static byte[][] rotate(byte[][] toRotate, byte direction){\n byte[][] newMatrix = {{-1, -1, -1},{-1, -1, -1},{-1, -1, -1}};\n //iterating throug each element of the matrix and placing them to the right spot\n //only works for 3x3 matrixes\n for(byte y = 0; y < 3; y ++){\n for(byte x = 0; x < 3; x ++){\n if(direction == 1){\n newMatrix[x][2-y] = toRotate[y][x];\n }\n else{\n newMatrix[2-x][y] = toRotate[y][x];\n }\n \n }\n }\n return newMatrix;\n }", "public static void main(String[] args) {\n\t\tint[] rotatearray= {1,2,3,4,5,6,7};\r\n\t\tint order=3;\r\n\t\trotate(rotatearray,order);\r\n\r\n\t}", "void rotatePiece() {\n boolean temp = this.left;\n boolean temp2 = this.up;\n boolean temp3 = this.right;\n boolean temp4 = this.down;\n this.left = temp4;\n this.up = temp;\n this.right = temp2;\n this.down = temp3;\n }", "public abstract Vector4fc rotateZ(float angle);", "@Override\r\n\tpublic void rotateRight() {\n\t\tsetDirection((this.getDirection() + 1) % 4);\r\n\t}", "private void rightRotate(int[] nums, int n) {\n\t\tint temp;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\ttemp = nums[nums.length - 1];\n\t\t\tfor (int j = nums.length - 1; j > 0; j--) {\n\t\t\t\tnums[j] = nums[j - 1];\n\n\t\t\t}\n\n\t\t\tnums[0] = temp;\n\n\t\t}\n\t\tSystem.out.println(Arrays.toString(nums));\n\n\t}", "private static void rotate(char[] programs, int distance) {\n int border = programs.length - distance;\n reverse(programs, 0, border - 1);\n reverse(programs, border, programs.length - 1);\n reverse(programs, 0, programs.length - 1);\n }", "@Override\n \t\t\t\tpublic void doRotateZ() {\n \n \t\t\t\t}", "@Test\n public void test3() {\n Integer[] data = new Integer[]{//\n 100,\n 50,\n 75, //\n };\n baseRotateTest(data);\n }", "private boolean[][] rotatePattern(int steps, boolean[][] pattern) {\n if (steps < 1)\n return pattern;\n boolean[][] rotated = new boolean[4][4];\n if (steps == 1) {\n for (int i = 0; i < pattern.length; i++)\n for (int j = 0; j < pattern[i].length; j++)\n rotated[i][j] = pattern[j][pattern.length - 1 - i];\n } else if (steps == 2) {\n for (int i = 0; i < pattern.length; i++)\n for (int j = 0; j < pattern[i].length; j++)\n rotated[i][j] = pattern[pattern.length - 1 - i][pattern\n .length - 1 - j];\n } else {\n for (int i = 0; i < pattern.length; i++)\n for (int j = 0; j < pattern[i].length; j++)\n rotated[i][j] = pattern[pattern.length - 1 - j][i];\n }\n return rotated;\n }", "private void rotate(int direction){\n\t\t//Gdx.app.debug(TAG, \"rotating, this.x: \" + this.x + \", this.y: \" + this.y);\n\t\tif (direction == 1 || direction == -1){\n\t\t\tthis.orientation = (this.orientation + (direction*-1) + 4) % 4;\n\t\t\t//this.orientation = (this.orientation + direction) % 4;\n\t\t} else{\n\t\t\tthrow new RuntimeException(\"Tile invalid direction\");\n\t\t}\n\t}", "@Test\n\tpublic void testDoRotaion() {\n\t\tresultlist = DoRotation.doRotaion(initialList, 0);\n\t\texpectedList = new ArrayList<>(Arrays.asList(1, 2, 3, 4, 5, 6));\n\t\tassertNotNull(resultlist);assertNotNull(expectedList);\n\t\tassertArrayEquals(\"Do rotaion of array 0\", resultlist.toArray(), expectedList.toArray());\n\t\t//Do rotaion of the arraylist using step value =1\n\t\t\n\t\t//Use same result of previous rotation and apply other rotation by step = 1\n\t\tresultlist = DoRotation.doRotaion(expectedList, 1);\n\t\texpectedList = new ArrayList<>(Arrays.asList(6, 1, 2, 3, 4, 5));\n\t\tassertNotNull(resultlist);assertNotNull(expectedList);\n\t\tassertArrayEquals(\"Do rotaion of array 0\", resultlist.toArray(), expectedList.toArray());\n\t\t\n\t\t//Use same result of previous rotation and apply other rotation by step = 1\n\t\tresultlist = DoRotation.doRotaion(expectedList, 1);\n\t\texpectedList = new ArrayList<>(Arrays.asList(5, 6, 1, 2, 3, 4));\n\t\tassertNotNull(resultlist);assertNotNull(expectedList);\n\t\tassertArrayEquals(\"Do rotaion of array 0\", resultlist.toArray(), expectedList.toArray());\n\t\t\n\t\t//this test must be the same if we use step = 2\n\t\tArrayList<Integer> resultlist_Step2 = DoRotation.doRotaion(initialList, 2);\n\t\texpectedList = new ArrayList<>(Arrays.asList(5, 6, 1, 2, 3, 4));\n\t\tassertNotNull(resultlist_Step2);assertNotNull(expectedList);\n\t\tassertArrayEquals(\"Do rotaion with step = 2\", resultlist_Step2.toArray(), expectedList.toArray());\n\t}", "public static int[] rotateLeft(int[] array, int n) {\n\t\tif(n >= array.length) {\n\t\t\tn = n % array.length; \n\t\t}\n\t\t\n\t\tfor(int i = 0; i < n; ++i) {\n\t\t\t//hold the first element\n\t\t\tint placeholder = array[0];\n\t\t\tfor(int j = 0; j < array.length - 1; ++j) {\n\t\t\t\tarray[j] = array[j + 1];\n\t\t\t}\n\t\t\t//replace last element with first\n\t\t\tarray[array.length - 1] = placeholder;\n\t\t}\n\t\treturn array;\n\t}", "private void RLRotation(IAVLNode node)\r\n\t{\r\n\t\tLLRotation(node.getRight());\r\n\t\tRRRotation(node);\r\n\t}", "public void calculateAngleAndRotate(){\n\t\tdouble cumarea = 0;\n\t\tdouble sina = 0;\n\t\tdouble cosa = 0;\n\t\tdouble area, angle;\n\t\tfor (int n = 0; n < rt.size();n++) {\n\t\t\tarea = rt.getValueAsDouble(rt.getColumnIndex(\"Area\"),n);\n\t\t\tangle = 2*rt.getValueAsDouble(rt.getColumnIndex(\"Angle\"),n);\n\t\t\tsina = sina + area*Math.sin(angle*Math.PI/180);\n\t\t\tcosa = cosa + area*Math.cos(angle*Math.PI/180);\n\t\t\tcumarea = cumarea+area;\n\t\t}\n\t\taverageangle = Math.abs(0.5*(180/Math.PI)*Math.atan2(sina/cumarea,cosa/cumarea)); // this is the area weighted average angle\n\t\t// rotate the data \n\t\tIJ.run(ActiveImage,\"Select All\",\"\");\n\t\tActiveImageConverter.convertToGray32();\n\t\tIJ.run(ActiveImage,\"Macro...\", \"code=[v= x*sin(PI/180*\"+averageangle+\")+y*cos(PI/180*\"+averageangle+\")]\");\n\t\treturn;\n\t}", "public static void rotate(int[][] arr,int row,int col){\n for (int i = 0; i <(row+1)/2 ; i++) {\n for (int j = i; j <(col+1)/2 ; j++) {\n int temp=arr[i][j];\n arr[i][j]=arr[row-1-j][i];\n arr[row-1-j][i]=arr[row-1-i][col-1-j];\n arr[row-1-i][col-1-j]=arr[j][col-1-i];\n arr[j][col-1-i]=temp;\n }\n }\n for (int i = 0; i < row; i++) {\n for (int j = 0; j < col; j++) {\n System.out.print(arr[i][j]+\" \");\n }\n System.out.println();\n }\n }", "LocalMaterialData rotate();", "public void rotateY90() {\n\t\tfor (int v = 0; v < vertexCount; v++) {\n\t\t\tint x_ = vertexX[v];\n\t\t\tvertexX[v] = vertexZ[v];\n\t\t\tvertexZ[v] = -x_;\n\t\t}\n\t}" ]
[ "0.6870283", "0.68187207", "0.67405283", "0.6733705", "0.67308396", "0.66413593", "0.6639574", "0.6611241", "0.6584601", "0.6565678", "0.6528484", "0.6519083", "0.65146315", "0.64345866", "0.6430144", "0.64222497", "0.6419666", "0.6409454", "0.63969", "0.63736224", "0.6367489", "0.6358048", "0.63455665", "0.62919307", "0.62780726", "0.6274608", "0.62471455", "0.6242048", "0.62358904", "0.62193394", "0.6216343", "0.6214973", "0.62041616", "0.61912775", "0.61843264", "0.61773044", "0.6168543", "0.61634195", "0.616284", "0.61622196", "0.6157945", "0.6142719", "0.61260706", "0.61227685", "0.61165774", "0.61164486", "0.61094314", "0.6105251", "0.6069897", "0.60634744", "0.6059364", "0.6022405", "0.60223705", "0.6007368", "0.6004589", "0.5992397", "0.5990827", "0.5977448", "0.5972258", "0.597154", "0.5970739", "0.59675133", "0.5955955", "0.5954092", "0.59447026", "0.59429026", "0.59053576", "0.59001064", "0.58991313", "0.5897319", "0.58970386", "0.5895738", "0.5878021", "0.5877348", "0.5871305", "0.58701205", "0.5857006", "0.58549815", "0.584836", "0.58412606", "0.5836603", "0.5835153", "0.5834458", "0.5829158", "0.5819044", "0.581895", "0.58136255", "0.5812844", "0.5807534", "0.5799029", "0.5793927", "0.57935613", "0.5784079", "0.57772005", "0.5770769", "0.5767005", "0.57592785", "0.57562906", "0.57537466", "0.5751637", "0.5725232" ]
0.0
-1
TODO Autogenerated method stub
@Override public List<AbilityBbs> searchList(String searchWord) { return abilityDao.searchList(searchWord); }
{ "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 DeleteAbilityBbsByAdmin(AbilityBbs ability) { return abilityDao.DeleteAbilityBbsByAdmin(ability); }
{ "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 CompleteAbilityBbsByAdmin(AbilityBbs ability) { return abilityDao.CompleteAbilityBbsByAdmin(ability); }
{ "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 ContinueAbilityBbsByAdmin(AbilityBbs ability) { return abilityDao.ContinueAbilityBbsByAdmin(ability); }
{ "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}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "private stendhal() {\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\r\n\tpublic void dispase() {\n\r\n\t}", "@Override\n\tprotected void initialize() {\n\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.66708666", "0.65675074", "0.65229905", "0.6481001", "0.64770633", "0.64584893", "0.6413091", "0.63764185", "0.6275735", "0.62541914", "0.6236919", "0.6223816", "0.62017626", "0.61944294", "0.61944294", "0.61920846", "0.61867654", "0.6173323", "0.61328775", "0.61276996", "0.6080555", "0.6076938", "0.6041293", "0.6024541", "0.6019185", "0.5998426", "0.5967487", "0.5967487", "0.5964935", "0.59489644", "0.59404725", "0.5922823", "0.5908894", "0.5903041", "0.5893847", "0.5885641", "0.5883141", "0.586924", "0.5856793", "0.58503157", "0.58464456", "0.5823378", "0.5809384", "0.58089525", "0.58065355", "0.58065355", "0.5800514", "0.57912874", "0.57912874", "0.57912874", "0.57912874", "0.57912874", "0.57912874", "0.57896614", "0.5789486", "0.5786597", "0.5783299", "0.5783299", "0.5773351", "0.5773351", "0.5773351", "0.5773351", "0.5773351", "0.5760369", "0.5758614", "0.5758614", "0.574912", "0.574912", "0.574912", "0.57482654", "0.5732775", "0.5732775", "0.5732775", "0.57207066", "0.57149917", "0.5714821", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57115865", "0.57045746", "0.5699", "0.5696016", "0.5687285", "0.5677473", "0.5673346", "0.56716853", "0.56688815", "0.5661065", "0.5657898", "0.5654782", "0.5654782", "0.5654782", "0.5654563", "0.56536144", "0.5652585", "0.5649566" ]
0.0
-1
Retorna verdadero si el color es blanco
static boolean blanco(int numero){ boolean resultado; if (numero > 43){ resultado = true; }else{ resultado = false; } return resultado; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean isFalseColor();", "public boolean isBlue(Color c){\n\t\treturn ( (c.getRed() <= ts.getBlue_r()) && (c.getBlue() > ts.getBlue_b()) && (c.getGreen() <= ts.getBlue_g()));\n\t}", "boolean getNoColor();", "private boolean isBlack(Color color){\r\n return color == Color.black;\r\n }", "public boolean isColor() {\n\t\treturn !isFormat && this != RESET;\n\t}", "protected String comprobarColor(Colores color){\r\n if(getColor() == Colores.AZUL | getColor() == Colores.BLANCO | getColor() == Colores.GRIS | getColor() == Colores.NEGRO\r\n | getColor() == Colores.ROJO){\r\n return \"Color correcto\";\r\n }\r\n else{\r\n return \"Color erroneo\";\r\n }\r\n }", "public boolean isBlue()\n {\n // TODO: replace this line with your code\n }", "public boolean colorOf(RBNode<T> node) {\n return node != null? node.color : BLACK;\r\n }", "public boolean isBlack () { return (this == PlayColour.BLACK);}", "public boolean isSetColor() {\n return this.color != null;\n }", "public final boolean getIsColor() {\n return isColor.get();\n }", "private static <K> boolean colorOf(Node<K> p) {\n return (p == null ? BLACK : p.color);\n }", "public boolean isSetColor() {\r\n return this.color != null;\r\n }", "public boolean isFullyExplored();", "public boolean getColor() {\r\n\t\treturn color;\r\n\t}", "public boolean isColor() {\n return isColor;\n }", "public boolean isBlack() {\r\n\t\treturn !isRed();\r\n\t}", "boolean isRedTeam() {\n return ( START_AS_RED ? (!color_flipped_) : color_flipped_ );\n }", "public boolean isBlue() {\r\n return this.blue;\r\n }", "@Override\n public Color getColor() {\n return Utils.Pion.BLANC.getCouleur();\n }", "@Override\n public boolean isFinished() {\n return m_desiredColor == ColorWheel.UNKNOWN || \n m_desiredColor == m_colorSpinner.checkColor();\n }", "public boolean isLeftBlue() {\n return (left == BeaconColor.BLUE_BRIGHT || left == BeaconColor.BLUE);\n }", "private String comprobarColor(String color) {\r\n String colores[] = { \"blanco\", \"negro\", \"rojo\", \"azul\", \"gris\" };\r\n boolean encontrado = false;\r\n for (int i = 0; i < colores.length && !encontrado; i++) {\r\n if (colores[i].equals(color)) {\r\n encontrado = true;\r\n }\r\n }\r\n if (encontrado) {\r\n this.color = color;\r\n } else {\r\n this.color = COLOR_POR_DEFECTO;\r\n }\r\n return this.color;\r\n }", "private boolean isRed(Color color){\r\n return color == Color.red;\r\n }", "public boolean checkColoring(int[] ccolor){\n // \tfor(int i = 0; i < ccolor.length; i++){\n //\t System.out.println(Arrays.toString(ccolor));\n \t//}\n for(int i = 0; i < ccolor.length; i++){\n for(int w = 0; w < ccolor.length; w++){\n \t//System.out.println(i + \",\" + w);\n if(hasEdge(i,w) && (ccolor[i] == ccolor[w])){\n \t//System.out.println(i + \",false\" + w);\n return false;\n }\n }\n }\n return true;\n }", "private boolean checkColor(boolean walkingHere) {\n\t\tint x = getMouse().getPosition().x,\n\t\t\ty = getMouse().getPosition().y + 1,\n\t\t\ti = 0;\n\t\t\n\t\tdo {\n\t\t\tsleep(10);\n\t\t\tc = getColorPicker().colorAt(x, y);\n\t\t\tif (c.getRed() == 255 && c.getGreen() == 0 && c.getBlue() == 0) {\n\t\t\t\tdebug(\"Interact color check: \"+(walkingHere ? \"failure\" : \"success\")+\" (red)!\");\n\t\t\t\treturn walkingHere ? false : true;\n\t\t\t}\n\t\t\tif (c.getRed() == 255 && c.getGreen() == 255 && c.getBlue() == 0) {\n\t\t\t\twarning(\"Interact color check: \"+(!walkingHere ? \"failure\" : \"success\")+\" (yellow)!\");\n\t\t\t\treturn walkingHere ? true : false;\n\t\t\t}\n\t\t} while (i++ < 50);\n\t\t\n\t\t// Default to true, as no color we want was found!\n\t\twarning(\"Interact color check: defaulted\");\n\t\treturn true;\n\t}", "protected boolean isBlack() {\n return this.black;\n }", "public boolean isRed()\n {\n // TODO: replace this line with your code\n }", "public boolean isGreen()\n {\n // TODO: replace this line with your code\n }", "public boolean getColor(TreeNode node){\n //null node is BLACK because we cannot have a dangling (incomplete) 2-node (RED)\n if (node == null) return BLACK;\n return node.color;\n }", "public boolean isDark() {\n return (col + row) % 2 == 0;\n }", "private boolean isBlack(Point pos){\r\n Cells aux = model.getValueAt(pos);\r\n return (aux == Cells.BLACK || aux == Cells.BLACK_QUEEN);\r\n }", "public static int getColorB(int color) {\r\n return color & 0xff;\r\n }", "public boolean isOther() {\n\t\treturn color == null;\n\t}", "public boolean isBipartite(){\n int pos = 0;// two colors 1 and 0\n return colorGraph(pos,1);\n }", "public Bishop(String color) {//True is white, false is black\n\t\tsuper(color);\n\n\t}", "public boolean isRed(Color c, int GB){\n\t\treturn ( (c.getRed() > ts.getBall_r()) && (c.getBlue() <= ts.getBall_b()) && (c.getGreen() <= ts.getBall_g()) && GB < 60 );\n\t}", "private boolean isRed(Point pos){\r\n Cells aux = model.getValueAt(pos);\r\n return (aux == Cells.RED || aux == Cells.RED_QUEEN);\r\n }", "int getHighLightColor();", "public boolean getCorrectFuncion(){\n\t\tif(this.getBackground().equals(Color.RED))\n\t\t\treturn false;\n\t\treturn true;\n\t}", "boolean similarColorTo(Card c);", "private int getCloseColor(int[] prgb) {\n \t\t\tfloat[] phsv = { 0, 0, 0 };\n \t\t\trgbToHsv(prgb[0], prgb[1], prgb[2], phsv);\n \t\t\treturn phsv[2] < 64 ? fg : bg;\n \t\t}", "public boolean getRgb() {\r\n return Rgb;\r\n }", "@DISPID(1611006088) //= 0x60060088. The runtime will prefer the VTID if present\n @VTID(163)\n boolean trueColorMode();", "public abstract void colorChecker(Color c);", "public boolean isBlueReady() {\n if (FieldAndRobots.getInstance().isAllianceReady(FieldAndRobots.BLUE)) {\n blueSideReady.setBackground(READY);\n return true;\n } else {\n blueSideReady.setBackground(NOT_READY);\n return false;\n }\n }", "public boolean isRed() {\r\n\t\treturn getColor() == RED;\r\n\t}", "private Boolean isRed(Node h){\n\t\tif(h.color == null)\n\t\t\treturn false;\n\t\treturn h.color==RED;\n\t}", "public boolean isYellow(Color c){\n\t\treturn ((c.getRed() >= ts.getYellow_r_low()) && (c.getRed() <= ts.getYellow_r_high()) && (c.getGreen() >= ts.getYellow_g_low()) && (c.getGreen() <= ts.getYellow_g_high()) && (c.getBlue() >= ts.getYellow_b_low()) && (c.getBlue() <= ts.getYellow_b_high()));\n\t}", "String getColor();", "public boolean MatchColor(){\n boolean result = false;\n String gameData;\n gameData = DriverStation.getInstance().getGameSpecificMessage();\n if(gameData.length() > 0)\n {\n switch (gameData.charAt(0))\n {\n case 'B' :\n //Blue case code\n result = StopPanelWithColor(kRedTarget);\n break;\n case 'G' :\n //Green case code\n result = StopPanelWithColor(kYellowTarget);\n break; \n case 'R' :\n //Red case code\n result = StopPanelWithColor(kBlueTarget);\n break;\n case 'Y' :\n //Yellow case code\n result = StopPanelWithColor(kGreenTarget);\n break;\n default :\n //This is corrupt data\n break;\n }\n } else {\n //Code for no data received yet\n }\n return result;\n }", "@Override\n public boolean getSavingsHeaderColor() {\n\n setLogString(\"Verify if savings header has css value : \" + mobileConfig.get(SAVINGS_COLOR),\n true, CustomLogLevel.HIGH);\n final Object val = executeScriptByClassName(SAVINGS_HEADER, \"background-color\", getDriver());\n\n setLogString(\"Savings header has css value : \" + val, true, CustomLogLevel.MEDIUM);\n return val.toString().contains(mobileConfig.get(SAVINGS_COLOR));\n }", "@Override\n\tpublic boolean isFinished() {\n\t\tColorWheelColor currentColor = null; //GET CURRENT WHEEL COLOR\n\t\tif (currentColor == target)\n\t\t\treturn true;\n\t\treturn false;\n\t}", "int getColour();", "public boolean testColourcomponents(EIfcpixeltexture type) throws SdaiException;", "public int getColor();", "public int getColor();", "boolean isAllowed(int rgb, float[] hsl);", "private boolean m(){\r\n int m = countColors - maxSat;\r\n if (m <= TH){\r\n return true;\r\n }else{\r\n return false;\r\n }\r\n }", "public void decida()\n {\n if(color == Color.red)\n {\n color = Color.yellow;\n }\n \n else if(color == Color.yellow){\n color = Color.red;\n }\n }", "private boolean isBlack(Node node) {\n Circle temp = (Circle) node;\n return temp.getFill() == Paint.valueOf(\"black\");\n }", "public int getLSB(int colour){\n if(colour % 2 == 0) {\n return 0;\n }else{\n return 1;\n }\n }", "@Override\r\n protected boolean isFinished() {\r\n return RobotMap.colorEncoder.getPosition() >= 27;\r\n }", "public boolean isRightBlue() {\n return (right == BeaconColor.BLUE_BRIGHT || right == BeaconColor.BLUE);\n }", "Color getColor();", "Color getColor();", "Color getColor();", "Color getColor();", "Color getColor();", "public String isAGrayColor(String color)\n {\n if(opRed == opBlue && opBlue == opGreen\n && opRed > 59 && opRed < 159)\n {\n return \"#FFFFFF\";\n }\n if(opRed == opBlue && opBlue == opGreen\n && opRed > 159 && opRed < 255)\n {\n return \"#000000\";\n }\n return color;\n }", "public boolean isSetPenClr()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(PENCLR$12) != 0;\n }\n }", "@Override\n public boolean getSavingsArrowColor() {\n\n setLogString(\"Verify if savings arrow has css value : \" + mobileConfig.get(SAVINGS_COLOR),\n true, CustomLogLevel.HIGH);\n final Object val = executeScriptByClassName(BACKWARD_ICON, \"color\", getDriver());\n setLogString(\"Savings arrow has css value : \" + val, true, CustomLogLevel.MEDIUM);\n return val.toString().contains(mobileConfig.get(SAVINGS_COLOR));\n }", "public LightBulb(int red, int green,int blue){\r\n _switchedOn=false;\r\n\t\tif ((red < 0)||(red > 255)||(green < 0)||(green > 255)||(blue < 0)\r\n\t\t\t\t||(blue > 255)){\r\n\t\t\t_color = new RGBColor();\r\n\t\t}\r\n\t\telse {\r\n\t\t\t_color = new RGBColor(red, green, blue);\r\n\t\t}\r\n\t\r\n }", "private boolean existeNegro(Vertice<T> v){\n\tif(v == null)\n\t return true;\n\tif(v.color == Color.NEGRO)\n\t return true;\n\treturn false;\n }", "public GameColor getColor();", "boolean labelColor(String mode);", "@Then(\"^Pobranie koloru$\")\n public void Pobranie_koloru() throws Throwable {\n\n WebDriverWait wait = new WebDriverWait(driver, 15);\n WebElement c9 = wait.until(ExpectedConditions.elementToBeClickable(By.xpath(\"//*[@id=\\\"30373\\\"]/div/div/div/div/div/div/div/p[3]/a\")));\n\n String color = driver.findElement(By.xpath(\"/html/body/div[1]/div[3]/div/div[6]/div/div/div[1]/div/ul/li\")).getCssValue(\"color\");\n String[] hexValue = color.replace(\"rgba(\", \"\").replace(\")\", \"\").split(\",\");\n\n int hexValue1=Integer.parseInt(hexValue[0]);\n hexValue[1] = hexValue[1].trim();\n int hexValue2=Integer.parseInt(hexValue[1]);\n hexValue[2] = hexValue[2].trim();\n int hexValue3=Integer.parseInt(hexValue[2]);\n String kolorZeStrony = String.format(\"#%02x%02x%02x\", hexValue1, hexValue2, hexValue3);\n\n Assert.assertEquals(\"#333333\", kolorZeStrony);\n\n }", "public static boolean isClearPixel(int i) {\n\t\t \n\t\t c.set(i);\n\t\t// Gdx.app.log(TAG, \"is clear alpha \" + c.a );\n\t\t if (c.a < .1f) return true;\n\t\t return false;//c.r < .1f && c.g < .1f && c.b < 0.1f ;\n\t }", "String getColour();", "public char getColor();", "@Override\r\n\tpublic boolean hasColor(String color) {\r\n\t\tfor (INonAutomatedVehicle vehicle : this.vehicleDatabase.get(CAR)) {\r\n\t\t\tCar car = (Car) vehicle;\r\n\t\t\tif (car.getColor().equals(color)) {\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "public boolean isShowColors() {\n return showColors;\n }", "boolean hasBbgSymbol();", "static public int getBlue(int color) {\n return color & 0xff;\n }", "private int getCloseColor(int[] prgb) {\n \t\t\tfloat[] phsv = { 0, 0, 0 };\n \t\t\trgbToHsv(prgb[0], prgb[1], prgb[2], phsv);\n \t\t\t\n \t\t\tfloat hue = phsv[0];\n \t\t\tfloat val = phsv[2] * 100 / 256;\n \n \t\t\tint closest = -1;\n \n \t\t\tfinal int white = 15;\n \t\t\tfinal int black = 1;\n \t\t\tfinal int grey = 14;\n \t\t\t\n \t\t\tif (phsv[1] < (hue >= 30 && hue < 75 ? 0.66f : 0.33f)) {\n \t\t\t\tif (val >= 70) {\n \t\t\t\t\tclosest = white;\n \t\t\t\t} else if (val >= 10) {\n \t\t\t\t\t// dithering will take care of the rest\n \t\t\t\t\tclosest = grey;\n \t\t\t\t} else {\n \t\t\t\t\tclosest = black;\n \t\t\t\t}\n \t\t\t}\n \t\t\telse {\n \t\t\t\tclosest = getClosestColorByDistance(palette, firstColor, 16, prgb, 12);\n \t\t\t\t\n \t\t\t\t// see how the color matches\n \t\t\t\tif (closest == black) {\n \t\t\t\t\tif (phsv[1] > 0.9f) {\n \t\t\t\t\t\tif ((hue >= 75 && hue < 140) && (val >= 5 && val <= 33)) {\n \t\t\t\t\t\t\tclosest = 12;\n \t\t\t\t\t\t}\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t\t/*else {\n \t\t\t\t\tint rigid = rigidMatch(phsv, hue, val);\n \t\t\t\t\tif (phsv[1] < 0.5f && (rigid == 1 || rigid == 14 || rigid == 15)) {\n \t\t\t\t\t\tclosest = rigid;\n \t\t\t\t\t}\n \t\t\t\t}*/\n \t\t\t}\n \t\t\t\n \t\t\t//closest = rigidMatch(phsv, hue, val);\n \t\t\t\n \t\t\treturn closest;\n \t\t}", "private static BufferedImage colorBird(final BufferedImage refImage,\n final Color color) {\n \n final BufferedImage image = new BufferedImage(BIRD_WIDTH,\n BIRD_HEIGHT, BufferedImage.TYPE_INT_ARGB);\n \n final Color bright = color.brighter().brighter();\n final Color dark = color.darker().darker();\n \n for (int y = 0; y < BIRD_HEIGHT; ++y){\n for (int x = 0; x < BIRD_WIDTH; ++x) {\n int argb = refImage.getRGB(x, y);\n if (argb == 0xffe0802c)\n argb = dark.getRGB();\n else if (argb == 0xfffad78c)\n argb = bright.getRGB();\n else if (argb == 0xfff8b733)\n argb = color.getRGB();\n image.setRGB(x, y, argb);\n }\n } \n return image;\n }", "@Test\n public void testRGBOn() {\n byte[] dataBytes = new byte[4];\n dataBytes[0] = (byte) 0x11; // 17 Red (0 .. 255)\n dataBytes[1] = (byte) 0x86; // 134 Green (0 .. 255)\n dataBytes[2] = (byte) 0xAD; // 173 Blue (0 .. 255)\n dataBytes[3] = (byte) 0x2B; // 00101011\n // Servcie Mode: Normal Mode\n // Operation hours flag: not available\n // Error State: internal Error\n // Learn Bit: Data Telegram\n // Parameter Mode: RGB\n // Status: 1 ON\n \n Map<EnoceanParameterAddress, Value> values = createBasicPacket(dataBytes);\n \n Color color = (Color) values.get(new EnoceanParameterAddress(sourceEnoceanId, Parameter.COLOR));\n assertEquals(17, color.getRed());\n assertEquals(134, color.getGreen());\n assertEquals(173, color.getBlue());\n \n OnOffState status = (OnOffState) values.get(new EnoceanParameterAddress(sourceEnoceanId, Parameter.POWER));\n assertEquals(OnOffState.ON, status);\n \n ExtendedLightingStatus.ErrorState errorState = (ExtendedLightingStatus.ErrorState) values.get(new EnoceanParameterAddress(sourceEnoceanId, Parameter.ERROR_STATE));\n assertEquals(ExtendedLightingStatus.ErrorState.INTERNAL_FAILURE, errorState);\n }", "RGB getOldColor();", "java.awt.Color getColor();", "public boolean isRed(RBNode<T> node) {\n return (node != null)&&(node.color == RED)? true : false;\r\n }", "@Test\n public void getColorReturnsTheRightColor() {\n assertEquals(0xaa00ff, Tetromino.T.getColor());\n }", "public boolean isGreen() {\n return green;\n }", "public Bitmap blancoNegro(Bitmap bmpOriginal) {\n // Creamos un bitmap con las mismas caracteristicas que el original\n Bitmap bmpGris = Bitmap.createBitmap(bmpOriginal.getWidth(),\n bmpOriginal.getHeight(), Bitmap.Config.ARGB_8888);\n //Ponemos la saturación a 0, y aplicamos el filtro en el lienzo\n ColorMatrix cm = new ColorMatrix();\n cm.setSaturation(0);\n ColorMatrixColorFilter cmcf = new ColorMatrixColorFilter(cm);\n Paint paint = new Paint();\n paint.setColorFilter(cmcf);\n //Dibujamos el lienzo y devolvemos la imagen\n Canvas lienzo = new Canvas(bmpGris);\n lienzo.drawBitmap(bmpOriginal, 0, 0, paint);\n return bmpGris;\n }", "public boolean borra(Libro libro);", "void testColorChecker(Tester t) {\r\n initData();\r\n Cell topLeft = (Cell) this.game7.indexHelp(0, 0);\r\n Cell topRight = (Cell) this.game7.indexHelp(1, 0);\r\n Cell botLeft = (Cell) this.game7.indexHelp(0, 1);\r\n Cell botRight = (Cell) this.game7.indexHelp(1, 1);\r\n t.checkExpect(topLeft.flooded, true);\r\n t.checkExpect(topRight.flooded, false);\r\n t.checkExpect(botLeft.flooded, false);\r\n t.checkExpect(botRight.flooded, false);\r\n\r\n topRight.colorChecker(topLeft.color);\r\n t.checkExpect(topRight.flooded, true);\r\n t.checkExpect(botRight.flooded, true);\r\n t.checkExpect(botLeft.flooded, false);\r\n t.checkExpect(topLeft.flooded, true);\r\n }", "public Color brighter()\n {\n return color.brighter();\n }", "public abstract BossColor getColor();", "private Color detectColor(String c){\n switch (c){\n case \"RED\": return Color.RED;\n case \"BLUE\": return Color.BLUE;\n case \"YELLOW\": return Color.YELLOW;\n case \"GREEN\": return Color.GREEN;\n case \"WHITE\": return Color.WHITE;\n case \"BLACK\": return Color.BLACK;\n case \"CYAN\": return Color.CYAN;\n case \"ORANGE\": return Color.ORANGE;\n case \"MAGENTA\": return Color.MAGENTA;\n case \"PINK\": return Color.PINK;\n default: return null;\n }\n }", "private int getCloseColor(int[] prgb) {\n \t\t\t\n \t\t\treturn getClosestColorByDistance(palette, firstColor, numColors, prgb, -1);\n \t\t}", "public boolean bordoOpposto(Casella c, int col)\n {\n switch (col)\n {\n case NERO: return ( c.riga==(DIM_LATO-1) );\n case BIANCO: return ( c.riga==0 );\n }\n return false;\n }", "private boolean hayRayaVertical() {\n for (int j = 0; j < casillas[0].length; j++) {\n Casilla[] columna = new Casilla[casillas.length];\n for (int i = 0; i < casillas.length; i++) {\n columna[i] = casillas[i][j];\n }\n if (linea(columna))\n return true;\n }\n\n return false;\n }" ]
[ "0.67448264", "0.6722734", "0.67155755", "0.66481453", "0.65995264", "0.6454735", "0.6441066", "0.63978606", "0.63569945", "0.6314949", "0.6302175", "0.6292011", "0.6256295", "0.6237135", "0.62087363", "0.62086636", "0.6205273", "0.6176708", "0.61508757", "0.6147288", "0.6091431", "0.60874355", "0.60737413", "0.6069837", "0.60592777", "0.60574967", "0.6052577", "0.60480165", "0.60412097", "0.60219896", "0.60183734", "0.5991251", "0.59830403", "0.5977697", "0.5970958", "0.596184", "0.59558994", "0.5951057", "0.58893865", "0.5870389", "0.5863007", "0.5861047", "0.58591855", "0.5830485", "0.582049", "0.58158594", "0.5786507", "0.5743148", "0.57394904", "0.5737126", "0.5734763", "0.5709994", "0.5662874", "0.56584567", "0.5655438", "0.56537914", "0.56537914", "0.56462425", "0.56352407", "0.56306857", "0.56259793", "0.56067824", "0.56005335", "0.55998904", "0.5595513", "0.5595513", "0.5595513", "0.5595513", "0.5595513", "0.55841804", "0.5577015", "0.5568227", "0.55651706", "0.55491656", "0.55455506", "0.5530472", "0.55271155", "0.5520494", "0.5520128", "0.55193913", "0.55167574", "0.5513597", "0.5506595", "0.5501148", "0.54900116", "0.5488584", "0.5478612", "0.54728687", "0.5468566", "0.5466587", "0.5462363", "0.54611045", "0.54419494", "0.54403245", "0.54348266", "0.54333", "0.54320365", "0.54318744", "0.5430109", "0.5429373", "0.5428743" ]
0.0
-1
Inicio de la aplicacion 'El Santo'
public static void main(String[] args){ Mover mover = new Mover(); mover.derecha(500, 600); /** Sensor de distancia */ UltrasonicSensor distancia = new UltrasonicSensor(SensorPort.S3); /** Sensor de luz de la izquierda */ LightSensor sensor1 = new LightSensor(SensorPort.S1); /** Sensor de luz de la derecha */ LightSensor sensor2 = new LightSensor(SensorPort.S2); while (true){ /** Si se detecta blanco en el sensor de la izquierda, el santo gira */ if (blanco(sensor1.getLightValue())){ mover.derecha(250,300); } /** Si se detecta blanco en el sensor de la derecha, el santo gira */ else if(blanco(sensor2.getLightValue())){ mover.izquierda(250,300); } /** Si el santo detecta a su enemigo, lo ataca */ else if (enemigo(distancia.getDistance())){ mover.adelante(1000); /* if (!enemigo(distancia.getDistance())){ mover.atras(); Delay.msDelay(1000); } if (blanco(sensor1.getLightValue()) || blanco(sensor2.getLightValue())){ mover.atras(); } */ } /** Si el santo no encuentra ningun enemigo, lo busca */ else{ mover.derecha(250,90); //mover.izquierda(250, 90); if (enemigo(distancia.getDistance())){ mover.adelante(1000); } } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void inicia() { \r\n\t\tventana=new VentanaMuestraServicios(this);\r\n\t\tventana.abre();\r\n\t}", "public void iniciar() {\n\t\tcrearElementos();\n\t\tcrearVista();\n\n\t}", "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}", "public void salir() {\n LoginManager.getInstance().logOut();\n irInicio();\n }", "@Override\n\tpublic void iniciar() {\n\t\t\n\t}", "@Override\n protected void onStart() {\n super.onStart();\n iniciar();\n }", "public void startup(){}", "private void controladorInicio(Controlador controlador){\n this.inicioRegistro = controlador.getInicioRegistro();\n inicio.setControlRegistro(inicioRegistro);\n this.inicioLogin = controlador.getInicioLogin();\n inicio.setControlLogin(inicioLogin);\n }", "private void iniciar() {\r\n\t\t/*Se instancian las clases*/\r\n\t\tmiVentanaPrincipal=new VentanaPrincipal();\r\n\t\tmiVentanaRegistro=new VentanaRegistro();\r\n\t\tmiVentanaBuscar= new VentanaBuscar();\r\n\t\tmiLogica=new Logica();\r\n\t\tmiCoordinador= new Coordinador();\r\n\t\t\r\n\t\t/*Se establecen las relaciones entre clases*/\r\n\t\tmiVentanaPrincipal.setCoordinador(miCoordinador);\r\n\t\tmiVentanaRegistro.setCoordinador(miCoordinador);\r\n\t\tmiVentanaBuscar.setCoordinador(miCoordinador);\r\n\t\tmiLogica.setCoordinador(miCoordinador);\r\n\t\t\r\n\t\t/*Se establecen relaciones con la clase coordinador*/\r\n\t\tmiCoordinador.setMiVentanaPrincipal(miVentanaPrincipal);\r\n\t\tmiCoordinador.setMiVentanaRegistro(miVentanaRegistro);\r\n\t\tmiCoordinador.setMiVentanaBuscar(miVentanaBuscar);\r\n\t\tmiCoordinador.setMiLogica(miLogica);\r\n\t\t\t\t\r\n\t\tmiVentanaPrincipal.setVisible(true);\r\n\t}", "public void inizializza() {\n Navigatore nav;\n Portale portale;\n\n super.inizializza();\n\n try { // prova ad eseguire il codice\n\n Modulo modulo = getModuloRisultati();\n modulo.inizializza();\n// Campo campo = modulo.getCampoChiave();\n// campo.setVisibileVistaDefault(false);\n// campo.setPresenteScheda(false);\n// Vista vista = modulo.getVistaDefault();\n// vista.getElement\n// Campo campo = vista.getCampo(modulo.getCampoChiave());\n\n\n\n /* aggiunge il Portale Navigatore al pannello placeholder */\n nav = this.getNavigatore();\n portale = nav.getPortaleNavigatore();\n this.getPanNavigatore().add(portale);\n\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n }// fine del blocco try-catch\n\n }", "@PostConstruct\n\tpublic void inicia() {\n\t\t\n\t\tinicializaBD();\n\t\tcontrolPrincipal.inicia();\n\t}", "protected void volverInicio() {\n\t\tIntent i = new Intent(this, ImcActivity.class);\n\t\tthis.startActivity(i);\n\t\t\n\t}", "public PacienteController() {\n\t\t\n\t\tatualizarTela();\n\t\t}", "@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}", "public void iniciar() {\n abrirPuerto();\n\n while (true) {\n esperarCliente();\n lanzarHilo();\n }\n }", "@Override\r\n\tpublic void startup() {\n\t\t\r\n\t\tString wechatID = \"gh_f49bb9a333b3\";\r\n\t\tString Token = \"spotlight-wechat\";\r\n\t\t\r\n\t\tNoIOClient client = new NoIOClient(\"mg.protel.com.hk\",5010);\r\n\t\tclient.addCRouter(wechatID, Token,null,null);\r\n\t\t\r\n\t\tclient.startup();\r\n\r\n\t}", "public PilaDin() {\n inicio = null;\n }", "public ingresar_Sistema() {\n initComponents();\n }", "public EstructuraOrganicaController(){\r\n\t\tloadDefault();\r\n\t}", "private ControladorVentanaConsola() {\r\n configure();\r\n\r\n if (window == null){\r\n window = new VentanaConsola(\"Console\", 200, 500);\r\n window.setLocation(50, 112);\r\n }\r\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 void inicio(){\n }", "public void initAccueil() {\n\t\ttry {\n\t\t\tfinal FXMLLoader loader = ViewUtils.prepareFXMLLoader(getClass().getResource(\"/fxml/Home.fxml\"));\n\n\t\t\tfinal Parent root = loader.load();\n\t\t\tthis.changeSceneTo(root);\n\n\t\t\tstage.setResizable(false);\n\n\t\t\tfinal HomeView controller = loader.getController();\n\t\t\tcontroller.setMainApp(this);\n\t\t} catch (final IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public Inicio() {\n initComponents();\n iniciarModelos();\n }", "public void start() {\n\n System.out.println(\"Esto no debe salir por consola al sobreescribirlo\");\n\n }", "public void inicializar() {\r\n\t\tthis.bloqueado = false;\r\n\t}", "public void sendeSpielStarten();", "public VentanaPrincipal() {\n initComponents();\n menuTelefono.setVisible(false);\n menuItemCerrarSesion.setVisible(false);\n controladorUsuario = new ControladorUsuario();\n\n ventanaRegistrarUsuario = new VentanaRegistrarUsuario(controladorUsuario);\n ventanaBuscarUsuarios = new VentanaBuscarUsuarios(controladorUsuario, controladorTelefono);\n \n }", "public void conectarServicio(){\n\t\tIntent intent = new Intent(this,CalcularServicio.class);\n\t\tbindService(intent, mConexion, Context.BIND_AUTO_CREATE);\n\t\tmServicioUnido = true;\n\t}", "public void inicializa_controles() {\n bloquea_campos();\n bloquea_botones();\n carga_fecha();\n ocultar_labeles();\n }", "public home() {\n initComponents();\n ctoko = new controllerToko(this);\n ctoko.isiTable();\n }", "public void startup() {\n neutral();\n }", "public creacionempresa() {\n initComponents();\n mostrardatos();\n }", "public Inicio() {\n initComponents();\n vCLientes=controlador.IODatos.cargarClientes();\n escribirArray();\n setIconImage(new ImageIcon(getClass().getResource(\"/Imagenes/2.png\")).getImage());\n }", "public PantallaPrincipal() {\n gestor= new Gestor();\n initComponents();\n inicializarTablaCarreras();\n inicializarTablaCorredorTotales();\n inicializarTablaCorredor();\n mostrarCarreras();\n mostrarCorredoresTotales();\n \n \n }", "public void ejecutarConsola() {\n\n try {\n this._agente = new SearchAgent(this._problema, this._busqueda);\n this._problema.getInitialState().toString();\n this.imprimir(this._agente.getActions());\n this.imprimirPropiedades(this._agente.getInstrumentation());\n if (_esSolucion) {\n Logger.getLogger(Juego.class.getName()).log(Level.INFO, \"SOLUCIONADO\");\n } else {\n Logger.getLogger(Juego.class.getName()).log(Level.INFO, \"No lo he podido solucionar...\");\n }\n } catch (Exception ex) {\n System.out.println(ex);\n }\n }", "private void inicializar () {\n String infService = Context.LAYOUT_INFLATER_SERVICE;\n LayoutInflater li = (LayoutInflater)getContext().getSystemService(infService);\n li.inflate(R.layout.activity_control_login,this,true);\n\n //Obtenemos las referencias a los distintos controles\n txtUsuario = (EditText) findViewById(R.id.TxtUsuario);\n txtPassword = (EditText) findViewById(R.id.TxtPassword);\n btnAceptar = (Button) findViewById(R.id.BtnAceptar);\n lblMensaje = (TextView) findViewById(R.id.LblMensaje);\n\n //Asignamos los eventos necesarios\n asignarEventos();\n }", "private void atualizarTela() {\n\t\tSystem.out.println(\"\\n*** Refresh da Pagina / Consultando Todos os Registro da Tabela Paciente\\n\");\n\t\tpaciente = new Paciente();\n\t\tlistaPaciente = pacienteService.buscarTodos();\n\t\t\n\t}", "@Listen(\"onClick =#asignarEspacioCita\")\n\tpublic void asginarEspacioCita() {\n\t\tString dir = \"gc/espacio/frm-asignar-espacio-catalogo.zul\";\n\t\tclearDivApp(dir);\n\t\t// Clients.evalJavaScript(\"document.title = 'ServiAldanas'; \");\n\t}", "private void initBefore() {\n // Crear Modelo\n model = new Model();\n\n // Crear Controlador\n control = new Controller(model, this);\n\n // Cargar Propiedades Vista\n prpView = UtilesApp.cargarPropiedades(FICHERO);\n\n // Restaurar Estado\n control.restaurarEstadoVista(this, prpView);\n\n // Otras inicializaciones\n }", "private void atualizarTela() {\n\t\tSystem.out.println(\"\\n*** Refresh da Pagina / Consultando Todos os Registro da Tabela PressaoArterial\\n\");\n\t\tpressaoArterial = new PressaoArterial();\n\t\tlistaPressaoArterial = pressaoArterialService.buscarTodos();\n\n\t}", "public static void saludo(){\n System.out.println(\"Bienvenido al Sistema\");\n }", "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 AgregarClientes(Directorio directorio) {\n initComponents();\n this.directorio=directorio;\n \n \n }", "private void limpiarDatos() {\n\t\t\n\t}", "public ViewHome() {\n controller = new ControllerViewHome(this);\n initComponents();\n ImageIcon imagemDeFundo = new ImageIcon(getClass().getResource(\"/link.jpg\"));\n JLabel labelImg = new JLabel(\"\", imagemDeFundo, JLabel.CENTER);\n jPanel_container.add(labelImg, BorderLayout.CENTER);\n \n panelConfigLocalDiretorios = new PanelConfigLocalDiretorios();\n panelConfigServidoresFTPs = new PanelConfigServidoresFTPs();\n \n ScheduleEngine.prepararEIniciarScheduler();\n controller.rodarServicoEmBackGround();\n }", "public v_home() {\n initComponents();\n koneksi = DatabaseConnection.getKoneksi(\"localhost\", \"5432\", \"postgres\", \"posgre\", \"db_hesco\");\n showData();\n showStok();\n }", "public TipoInformazioniController() {\n\n\t}", "public Inicio()\n { \n super(600, 400, 1);\n prepararInicio();\n\n }", "public JanelaLogin() {\n \t\n \tConexao c = new Conexao();\n \t\n \t\n initComponents();\n }", "public SistemskiKontroler() {\r\n\t\ttabla = new Tabla(10, 10, 10);\r\n\t\tlista = SOUcitajIzFajla.izvrsi(\"data/lista\");\r\n\t}", "@Listen(\"onClick =#asignarEspacio\")\n\tpublic void Planificacion() {\n\t\tString dir = \"gc/espacio/frm-asignar-espacio-recursos-catalogo.zul\";\n\t\tclearDivApp(dir);\n\t\t// Clients.evalJavaScript(\"document.title = 'ServiAldanas'; \");\n\t}", "public void startup()\n\t{\n\t\t; // do nothing\n\t}", "public ControladorCoche() {\n\t}", "@Override\n public void startup() {\n }", "public TelaEmpresa() {\n initComponents();\n conexao = ModuloConexao.conector();\n }", "public cambiarContrasenna() {\n initComponents();\n txtNombreUsuario.setEnabled(false);\n inicializarComponentes();\n cargarUsuarios();\n }", "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 vistaAlojamientos() {\n initComponents();\n \n try {\n miConn = new Conexion(\"jdbc:mysql://localhost/turismo\", \"root\", \"\");\n ad = new alojamientoData(miConn);\n \n } catch (ClassNotFoundException ex) {\n Logger.getLogger(vistaAlojamientos.class.getName()).log(Level.SEVERE, null, ex);\n }\n \n \n }", "public InicioSesion() {\n initComponents();\n\n }", "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.main);\n \n \n \n //Pruebas de clientes\n }", "private void initVistas() {\n // La actividad responderá al pulsar el botón.\n Button btnSolicitar = (Button) this.findViewById(R.id.btnSolicitar);\n btnSolicitar.setOnClickListener(new OnClickListener() {\n @Override\n public void onClick(View v) {\n solicitarDatos();\n }\n });\n lblDatos = (TextView) this.findViewById(R.id.lblDatos);\n }", "@FXML\r\n private void configMenuSalir(ActionEvent event) {\r\n LOG.log(Level.INFO, \"Ventana Login\");\r\n try {\r\n FXMLLoader loader = new FXMLLoader(getClass().getResource(\"/view/LogIn.fxml\"));\r\n\r\n Parent root = (Parent) loader.load();\r\n\r\n LogInController controller = ((LogInController) loader.getController());\r\n controller.initStage(root);\r\n stage.hide();\r\n } catch (IOException e) {\r\n LOG.log(Level.SEVERE, \"Se ha producido un error de E/S\");\r\n }\r\n }", "public SanPham() {\n initComponents();\n }", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "public frmPesquisaServico() {\n initComponents();\n listarServicos();\n }", "public TelaPrincipal() {\r\n initComponents();\r\n con.conecta();\r\n }", "public static void inicializacionPartidaConsola() {\n\n\t\tScanner in = new Scanner(System.in);\n\n\t\tControladorConsola c = new ControladorConsola(f, p, in);\n\n\t\tnew VistaConsola(c);\n\n\t\tc.run();\n\t}", "public DmaiClient() {\r\n\t\tthis.mainView = new MainView();\r\n\t\tconnexionServeur();\r\n\r\n\t}", "@PostConstruct\r\n public void inicializar() {\r\n try {\r\n anioDeclaracion = 0;\r\n existeDedPatente = false;\r\n deducciones = false;\r\n detaleExoDedMul = new ArrayList<String>();\r\n activaBaseImponible = 0;\r\n verBuscaPatente = 0;\r\n inicializarValCalcula();\r\n datoGlobalActual = new DatoGlobal();\r\n patenteActual = new Patente();\r\n patenteValoracionActal = new PatenteValoracion();\r\n verPanelDetalleImp = 0;\r\n habilitaEdicion = false;\r\n numPatente = \"\";\r\n buscNumPat = \"\";\r\n buscAnioPat = \"\";\r\n catDetAnio = new CatalogoDetalle();\r\n verguarda = 0;\r\n verActualiza = 0;\r\n verDetDeducciones = 0;\r\n verBotDetDeducciones = 0;\r\n listarAnios();\r\n } catch (Exception ex) {\r\n LOGGER.log(Level.SEVERE, null, ex);\r\n }\r\n }", "public void inizializza() {\n\n /* invoca il metodo sovrascritto della superclasse */\n super.inizializza();\n\n }", "public CadastroCurso() {\n initComponents();\n configTela();\n }", "public Inicio() {\n initComponents();\n setVisible(true);\n \n }", "public void iniciar(){\r\n \r\n view.setTitle(\"MVC Proyecto\");\r\n //Indica posicion, null -> posicion 0 = centro\r\n view.setLocationRelativeTo(null);\r\n \r\n }", "public InicioPrincipal() {\n initComponents();\n }", "private void doNovo() {\n contato = new ContatoDTO();\n popularTela();\n }", "@PostConstruct\n public void init() {\n entradas = entradaFacadeLocal.findAll();\n salidas = salidaFacadeLocal.findAll();\n inventarios = inventarioFacadeLocal.leerTodos();\n }", "public Sistema(){\r\n\t\t\r\n\t}", "public void inicio(){\r\n Ventana v = new Ventana();\r\n v.setVisible(true); //se hace visible la ventana\r\n }", "public login() {\n\n initComponents();\n \n usuarios.add(new usuarios(\"claudio\", \"claudioben10\"));\n usuarios.get(0).setAdminOno(true);\n \n }", "@Override\n public void inicio() {\n // inicializa el objetivo\n miObjetivo = \"\";\n // inicializa variables para explorar sucesores\n j = 0;\n m = 0;\n nodo = null;\n suc = null;\n succ = null;\n // inicializa objetos\n actual = \"\";\n g = graph.getGraphics();\n // comienza por el primer nodo\n nodo = graph.getNodes().get(0);\n actual = nodo.toString();\n // siguiente paso\n Step = 0;\n }", "protected void inicializar(){\n kr = new CreadorHojas(wp);\n jPanel1.add(wp,0); // inserta el workspace en el panel principal\n wp.insertarHoja(\"Hoja 1\");\n //wp.insertarHoja(\"Hoja 2\");\n //wp.insertarHoja(\"Hoja 3\");\n }", "public void iniciarPantalla() {\n actualizarCampos();\n _presentacion.setVisible(false);\n _opcionMultiple.setVisible(true);\n }", "public void inicializar();", "@PostConstruct\n\tpublic void inicializar() {\n\t}", "private void controladorHome(Controlador controlador){\n \tthis.contLogout = controlador.getLogout();\n inicioUser.setControlLogout(contLogout);\n inicioAdmin.setControlLogout(contLogout);\n adminUsuarios.setControlLogout(contLogout);\n adminConfig.setControlLogout(contLogout);\n \t\n this.contToInicio = controlador.getToInicio();\n displayCollective.setControlToInicio(contToInicio);\n displayProject.setControlToInicio(contToInicio);\n informes.setControlToInicio(contToInicio);\n notif.setControlToInicio(contToInicio);\n nuevoColectivo.setControlToInicio(contToInicio);\n nuevoProyecto.setControlToInicio(contToInicio);\n perfil.setControlToInicio(contToInicio);\n\n this.contToPerfil = controlador.getToPerfil();\n inicioUser.setControlToPefil(contToPerfil);\n displayCollective.setControlToPefil(contToPerfil);\n displayProject.setControlToPefil(contToPerfil);\n informes.setControlToPefil(contToPerfil);\n notif.setControlToPefil(contToPerfil);\n nuevoColectivo.setControlToPefil(contToPerfil);\n nuevoProyecto.setControlToPefil(contToPerfil);\n\n this.contNotif = controlador.getNotif();\n inicioUser.setControlToNotif(contNotif);\n displayCollective.setControlToNotif(contNotif);\n displayProject.setControlToNotif(contNotif);\n informes.setControlToNotif(contNotif);\n notif.setControlToPefil(contToPerfil);\n nuevoColectivo.setControlToNotif(contNotif);\n nuevoProyecto.setControlToNotif(contNotif);\n perfil.setControlToNotif(contNotif);\n inicioAdmin.setControlToNotif(contNotif);\n adminUsuarios.setControlToNotif(contNotif);\n adminConfig.setControlToNotif(contNotif);\n }", "public ControllerProtagonista() {\n\t}", "public VentanaPrincipal() throws IOException {\n initComponents();\n buscador = new Busqueda();\n }", "private static void iniciarAmbienteDeUsuario() {\r\n\r\n\t\tnew AmbienteParaUsuarioEscolherGerenciamento(user);\r\n\r\n\t}", "@FXML \r\n private void handleIrInicio() {\r\n \ttry {\r\n\t\t\tmain.mostrarInicial();\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 }", "public void reiniciar() {\n // TODO implement here\n }", "public FormaServer() {\n initComponents();\n srediFormu();\n \n }", "public void inicializar(Coleccion coleccion){\n cargador.inicializar();\n analizador.inicializar();\n gestorAlmacenamiento.inicializar(coleccion);\n\n }", "public AgendaController(){\n setService(new JavaServiceFacade());\n setActividadRegistrar(new CalendarActivityClinica());\n setModel(new CalendarModelClinica());\n if(this.isPermisoAgendaPersonal()){\n setUsuarioAgenda(LoginController.getUsuarioLogged());\n }\n generarActividades();\n setListaPacientes(service.getPacienteFindAll());\n setListaUsuarios(service.getUsuarioFindAll());\n setMensajeRegistrar(\"\");\n setMensajeEditar(\"\");\n }", "public ingresarDatos() {\n initComponents();\n Validacion();\n \n }", "private void iniciarVentana()\n {\n this.setVisible(true);\n //Centramos la ventana\n this.setLocationRelativeTo(null);\n //Colocamos icono a la ventana\n this.setIconImage(Principal.getLogo());\n //Agregamos Hint al campo de texto\n txt_Nombre.setUI(new Hint(\"Nombre del Archivo\"));\n //ocultamos los componentes de la barra de progreso general\n lblGeneral.setVisible(false);\n barraGeneral.setVisible(false);\n //ocultamos la barra de progreso de archivo\n barra.setVisible(false);\n //deshabiltamos el boton de ElimianrArchivo\n btnEliminarArchivo.setEnabled(false);\n //deshabilitamos el boton de enviar\n btnaceptar.setEnabled(false);\n //Creamos el modelo para la tabla\n modelo=new DefaultTableModel(new Object[][]{},new Object[]{\"nombre\",\"tipo\",\"peso\"})\n {\n //sobreescribimos metodo para prohibir la edicion de celdas\n @Override\n public boolean isCellEditable(int i, int i1) {\n return false;\n }\n \n };\n //Agregamos el modelo a la tabla\n tablaArchivos.setModel(modelo);\n //Quitamos el reordenamiento en la cabecera de la tabla\n tablaArchivos.getTableHeader().setReorderingAllowed(false);\n }", "public TelaConversao() {\n initComponents();\n }", "public TelaCliente() {\n initComponents();\n conexao=ModuloConexao.conector();\n }", "public ControllerEnfermaria() {\n }", "public Tmio1Sitio() {\r\n\t}", "public Agenda() {\n initComponents();\n \n Deshabilitar();\n LlenarTabla();\n \n }" ]
[ "0.6951796", "0.6728129", "0.663961", "0.6505874", "0.6373871", "0.63506085", "0.63477516", "0.6294968", "0.6262635", "0.6228444", "0.6182823", "0.6160737", "0.6141263", "0.6141028", "0.61378807", "0.6126663", "0.61170655", "0.6116907", "0.6115565", "0.60985637", "0.607907", "0.60722005", "0.605514", "0.6055089", "0.604601", "0.60035944", "0.5963786", "0.5948276", "0.59451115", "0.59436566", "0.5938123", "0.59365356", "0.5921905", "0.59188956", "0.59177214", "0.59171367", "0.59131163", "0.59029996", "0.58969134", "0.58871216", "0.58861935", "0.58690476", "0.5866664", "0.58619124", "0.58613366", "0.58576125", "0.58517146", "0.5833172", "0.58230376", "0.5816033", "0.5813401", "0.58130413", "0.5795544", "0.57921445", "0.5790187", "0.57857364", "0.57837796", "0.5776985", "0.57661873", "0.5764502", "0.57627755", "0.5756222", "0.57542163", "0.5752815", "0.57502776", "0.57478476", "0.5746125", "0.57444906", "0.5743584", "0.57430005", "0.5742909", "0.57319343", "0.5726929", "0.57205355", "0.5719384", "0.57073605", "0.5699277", "0.5694745", "0.56939477", "0.56929576", "0.5688748", "0.56848633", "0.5681699", "0.56787395", "0.5676304", "0.5675633", "0.5675112", "0.56730324", "0.56721836", "0.56721145", "0.56665653", "0.5666052", "0.566295", "0.56541", "0.5653346", "0.5647248", "0.56446695", "0.56445384", "0.5641168", "0.56375015", "0.56367344" ]
0.0
-1
Sets up the screen
public void setScreen(EndUser a) { ArrayList<Store> y = Main.giveDatabase().storeList(); ObservableList<Store> x = FXCollections.observableList(y); storeList.setItems(x); this.eu = a; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void launchSetupScreen() {\n\t\tnew SetUpScreen(this);\n\t}", "private void initialScreen() {\r\n\t\t// Clear the screen\r\n\t\tclear();\r\n\r\n\t\t// Place four asteroids\r\n\t\tplaceAsteroids();\r\n\r\n\t\t// Place the ship\r\n\t\tplaceShip();\r\n\r\n\t\t// Reset statistics\r\n\t\tlives = 3;\r\n\t\tdisplay.setLives(lives);\r\n\t\tnumLevel = 1;\r\n\t\tdisplay.setLevel(numLevel);\r\n\t\tdisplay.setScore(0);\r\n\t\tspeed = 3;\r\n\r\n\t\t// Start listening to events\r\n\t\tdisplay.removeKeyListener(this);\r\n\t\tdisplay.addKeyListener(this);\r\n\r\n\t\t// Give focus to the game screen\r\n\t\tdisplay.requestFocusInWindow();\r\n\t}", "public MainScreen() {\n initComponents();\n \n }", "public Main() {\n\t\tsuper();\n\t\tInitScreen screen = new InitScreen();\n\t\tpushScreen(screen);\n\t\tUiApplication.getUiApplication().repaint();\n\t}", "public MainScreen()\n {\n initComponents();\n \n //Load the tables of the application with data from database\n loadClientTable();\n loadSupplierTable();\n loadStorageTable();\n loadPurchaseTable();\n loadSellTable();\n loadDeskPane();\n \n // Set window's location to the center of the screen\n setLocationRelativeTo(null);\n }", "public void settings() {\r\n size(WIDTH, HEIGHT); // Set size of screen\r\n }", "@Override\n\tpublic void setUpScreenElements() {\n\t\t\n\t}", "private void setupUI(){\n this.setupTimerSchedule(controller, 0, 500);\n this.setupFocusable(); \n this.setupSensSlider();\n this.setupInitEnable();\n this.setupDebugger();\n }", "public StartScreen() {\n initComponents();\n }", "public void initUI() {\n\t\tadd(board);\r\n\t\t//Set if frame is resizable by user\r\n\t\tsetResizable(false);\r\n\t\t//call pack method to fit the \r\n\t\t//preferred size and layout of subcomponents\r\n\t\t//***important head might not work correctly with collision of bottom and right borders\r\n\t\tpack();\r\n\t\t//set title for frame\r\n\t\tsetTitle(\"Snake\");\r\n\t\t//set location on screen(null centers it)\r\n\t\tsetLocationRelativeTo(null);\r\n\t\t//set default for close button of frame\r\n\t\tsetDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t}", "public SetupScreen() \r\n { \r\n _userLabel = new LabelField(Ipoki._resources.getString(LBL_USER), DrawStyle.ELLIPSIS);\r\n add(_userLabel);\r\n _userEdit = new EditField(\"\", Ipoki._user, 20, Field.EDITABLE);\r\n add(_userEdit);\r\n _passLabel = new LabelField(Ipoki._resources.getString(LBL_PASSWORD), DrawStyle.ELLIPSIS);\r\n add(_passLabel);\r\n _passEdit = new PasswordEditField(\"\", Ipoki._pass, 20, Field.EDITABLE);\r\n add(_passEdit);\r\n _freqLabel = new LabelField(Ipoki._resources.getString(LBL_FREQ), DrawStyle.ELLIPSIS);\r\n add(_freqLabel);\r\n _freqEdit = new EditField(\"\", String.valueOf(Ipoki._freq), 20, Field.EDITABLE | EditField.FILTER_INTEGER);\r\n add(_freqEdit);\r\n }", "public void InitializeComponents(){\n\n\n screen = new JPanel();\n screen.setLayout(null);\n screen.setBackground(Color.BLUE);\n this.getContentPane().add(screen);\n ScreenComps();\n\n }", "public void Init(){\n\t\trequestFocus();\n\t\tBufferedImageLoader loader = new BufferedImageLoader();\t\t// Class to load images\n\t\ttry {\n\t\t\tBackGround = loader.loadImage(\"/Scroll Small.png\");\t\t// Load background\n\t\t} catch (IOException e) {e.printStackTrace();}\n\t\t\n\t\ttext = new Text(this);\n\t\tren = new Render(screenHeight, screenWidth);\n\t\titems = ItemManager.getInstance();\n\t\tmon = MonsterManager.getInstance(this, text);\n\t\trooms = RoomManager.getInstance(items, mon);\n\t\trep = new Reponses(this, text, rooms);\n\t\tthis.addKeyListener(new KeyInput(this, mon));\t\t\t\t// Keyboard input\n\t\tthis.addMouseListener(new MouseInput(this, text, screenHeight, screenWidth)); // Mouse input\n\t\t\n\t\troom = rooms.x2y3;\t\t\t\t// Set starting location\n\t\t\n\t\trender(); render(); render();\t// Render screen\n\t}", "private void startingScreen() {\n screenWithGivenValues(-1,-2,1,2,3,-1,0);\n }", "protected void setupUI() {\n\n }", "public void launchMainScreen() {\n\t\tmainWindow = new MainGameScreen(this);\n\t}", "private void setUpScreen() {\n if (getView() != null) {\n setAmount(account.getArmedAmount());\n curIndex = 0;\n cvp.setPagingEnabled(false);\n if (account.getActiveCurrency() == CurrencyDAO.CURRENCY_BITCOIN) {\n // Bitcoin configurations are handled specially\n updateBitcoinDenominations();\n } else {\n new SetupArmImagesTask().execute(this);\n }\n }\n }", "public void initialize(){\n\t screens.put(ScreenType.Game, new GameScreen(this));\n screens.put(ScreenType.Menu, new MenuScreen(this));\n }", "public void init() {\n this.screen = new Rectangle(PADDING, PADDING, Game.TOTAL_COLUMNS * CELL_SIZE, Game.TOTAL_ROWS * CELL_SIZE);\n\n // display the background\n this.screen.setColor(Color.LIGHT_GRAY);//board edge color\n this.screen.fill();\n\n }", "public void launchStartupScreen() {\n\t\tnew StartUpScreen(this);\n\t}", "public StartScreen()\n { \n // Create a new world with 1111x602 cells with a cell size of 1x1 pixels.\n super(1111, 602, 1); \n prepare();\n background.playLoop();\n }", "public Welcome(){\n\t\tinitComponents();\n\t\tcenterScreen();\n\t}", "public void createAndShowGUI() {\n\t\tcontroller = new ControllerClass(); \r\n\r\n\t\t// Create and set up the window\r\n\t\twindowLookAndFeel();\r\n\t\tsetDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\tsetTitle(\"Media Works - Add Screen\");\r\n\t\tsetResizable(false);\r\n\t\tadd(componentSetup());\r\n\t\tpack();\r\n\t\tsetSize(720,540);\r\n\t\tsetLocationRelativeTo(null);\r\n\t\tsetVisible(true);\r\n\t}", "private void initUI() {\n\t\t//Creating the window for our game\n\t\tframe = new JFrame(GAME_TITLE);\n\t\tframe.setSize(BOARD_WIDTH, BOARD_HEIGHT);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tframe.setResizable(false);\n\t\tframe.setLocationRelativeTo(null);\n\t\tframe.setVisible(true);\n\t\t\n\t\t//Creating a canvas to add to the window\n\t\tcanvas = new Canvas();\n\t\tcanvas.setPreferredSize(new Dimension(BOARD_WIDTH, BOARD_HEIGHT));\n\t\tcanvas.setMaximumSize(new Dimension(BOARD_WIDTH, BOARD_HEIGHT));\n\t\tcanvas.setMinimumSize(new Dimension(BOARD_WIDTH, BOARD_HEIGHT));\n\t\t\n\t\tframe.add(canvas);\n\t\tframe.pack();\n\t\t\n\t}", "public WinScreen()\n { \n // Create a new world with 800x600 cells with a cell size of 1x1 pixels.\n super(800, 600, 1); \n showText( \"CONGRATS, YOU WIN!!!\", 393, 264); \n showText( \"Click Emoji to Reset the Game! -->\", 393, 300);\n showText( \"Click Here to go Back to Start Screen! -->\", 555, 572);\n addObject( new ResetButton(), 609, 300);\n addObject( new BackButton(), 764, 572);\n }", "public void factoryMainScreen()\n\t{\n\t\t\n\t}", "private void setup() {\n this.primaryStage.setTitle(Constants.APP_NAME);\n\n this.root = new VBox();\n root.setAlignment(Pos.TOP_CENTER);\n root.getChildren().addAll(getMenuBar());\n\n Scene scene = new Scene(root);\n this.primaryStage.setScene(scene);\n\n // set the default game level.\n setGameLevel(GameLevel.BEGINNER);\n\n // fix the size of the game window.\n this.primaryStage.setResizable(false);\n this.primaryStage.show();\n }", "private void setupGUI() {\r\n\t\tPaperToolkit.initializeLookAndFeel();\r\n\t\tgetMainFrame();\r\n\t}", "public HomeScreen() {\n initComponents();\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 setup() {\n\t\t//This throws an exception and causes us to reenter once \"frame\" exists\n\t\tsize(VIEW_WIDTH,VIEW_HEIGHT,P2D);\n\t\ttxt = createFont(\"Vera.ttf\",90,true);\n\t\tframeRate(60);\n\t\tif (!frame.isResizable()){\n\t\t\tframe.setResizable(true);\n\t\t}\n\t}", "private void setupWindow() {\n\t\tgetContentPane().setLayout(null);\t\t\t\t\n\n\t\t// Set title\n\t\tsetTitle(\"Gallhp\");\n\n\t\t// Set location and size\n\t\tsetLocationRelativeTo(null);\n\t\tsetDefaultCloseOperation(EXIT_ON_CLOSE);\t\n\t\tsetSize(800, 600);\n\t\tsetResizable(false);\n\n\t}", "public void initGame() {\n\t\ttoolbar = new Toolbar();\n\t\ttoolbar.setButtonListener(this);\n\t\tadd(toolbar, BorderLayout.NORTH);\n\n\t\t// setup & add board\n\t\tboard = new Board();\n\t\tadd(board, BorderLayout.CENTER);\n\n\t\t// jframe setup\n\t\tsetSize(Constants.BOARD_WIDTH, Constants.BOARD_HEIGHT);\n\t\tsetVisible(true);\n\t\tsetDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t}", "public void viewOptions()\r\n {\r\n SetupScreen setupScreen = new SetupScreen();\r\n pushScreen(setupScreen);\r\n }", "public UIMainWorld()\n { \n super(600, 400, 1); \n startScreen();\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 setUp() {\n\t\tthis.setLayout(new BorderLayout());\n\t\tsetupMessagePanel();\n\t\tsetupHomeButtonPanel();\n\t}", "public MainScreen(GproToolController controller) {\n this.baseController = controller;\n \n initComponents();\n centerFrame();\n }", "public void initScreen() {\n mScrollview = (ScrollView) findViewById(R.id.ScrollView01);\n \t\n \t// Handle on Header getting from Quote Server\n mHeader = (TextView) findViewById(R.id.header);\n \n // Handle on Quote TextView\n mQuoteTxt = (TextView) findViewById(R.id.quote);\n \n // Set Header to default\n if (mHeaderStr == null)\n \tmHeaderStr = getResources().getString(R.string.default_header_text);\n \n // Handle on ImageSwitcher\n mQuoteImage = (ImageSwitcher) findViewById(R.id.ImageSwitcher01);\n mQuoteImage.setFactory(new MyImageSwitcherFactory());\n \n // Handles on buttons\n\t\tView writeButton = findViewById(R.id.write_button);\n writeButton.setOnClickListener(this); \n View lessonsButton = findViewById(R.id.lessons_button);\n lessonsButton.setOnClickListener(this);\n View websiteButton = findViewById(R.id.website_button);\n websiteButton.setOnClickListener(this);\n View exitButton = findViewById(R.id.exit_button);\n exitButton.setOnClickListener(this);\n \n }", "public ScreenSplash() {\n initComponents();\n this.setCursor(new Cursor(HAND_CURSOR));\n setBackground(new Color(0, 0, 0, 0));\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 setWelcomeScreen() {\n clearAllContent();\n add(WelcomeScreen.create(controller));\n pack();\n }", "public WelcomeScreen() {\n initComponents();\n }", "private void setupBoard() {\n setBackground(Color.BLACK);\n setPreferredSize(new Dimension(myWidth, myHeight));\n myBoard.addObserver(this);\n enableStartupKeys();\n }", "public FrontScreen() {\n\t\tsetLayout(null);\n\t\tsetBounds(0, 0, 1024, 768);\n\n\n\t\tController mycontroller = new Controller();\n\t\tbtnCalendar.setIcon(new ImageIcon(FrontScreen.class.getResource(\"/images/calendarbtn.png\")));\n\t\tbtnCalendar.setBounds(342, 74, 153, 41);\n\t\tadd(btnCalendar);\n\t\tbtnEventlist.setIcon(new ImageIcon(FrontScreen.class.getResource(\"/images/eventbtn.png\")));\n\t\tbtnEventlist.setBounds(550, 74, 153, 41);\n\t\tadd(btnEventlist);\n\t\tbtnLogOut.setIcon(new ImageIcon(FrontScreen.class.getResource(\"/images/Logout.png\")));\n\t\tbtnLogOut.setBounds(10, 22, 153, 41);\n\t\tadd(btnLogOut);\n\t\tbtnExit.setIcon(new ImageIcon(FrontScreen.class.getResource(\"/images/exit.png\")));\n\t\tbtnExit.setBounds(10, 74, 153, 41);\n\t\tadd(btnExit);\n\t\tlblgetUserName.setBounds(821, 59, 76, 14);\n\t\tSystem.out.println();\n\n\t\tadd(lblgetUserName);\n\t\tlblQotd.setFont(new Font(\"Snap ITC\", Font.PLAIN, 18));\n\t\tlblQotd.setBounds(342, 138, 415, 50);\n\n\t\tadd(lblQotd);\n\n\t\tBorder border = BorderFactory.createLineBorder(Color.BLUE, 3);\n\t\tlblWeatherInfo.setBounds(10, 420, 985, 247);\n\n\t\tString forecast = mycontroller.userControls(\"getWeather\");\n\t\tforecast = forecast.replace(\"},\", \"<br/>\");\n\t\tforecast = forecast.replace(\"[\", \"\");\n\t\tforecast = forecast.replace(\"{date='\", \" Date: \");\n\t\tforecast = forecast.replace(\"12:00:00 CET\", \"\");\n\t\tforecast = forecast.replace(\", desc=\", \" Description: \");\n\t\tforecast = forecast.replace(\"Forecast{date=\", \"\");\n\t\tforecast = forecast.replace(\", celsius='\", \" Temperature: \");\n\n\n\t\tlblWeatherInfo.setText(\"<html><body><p>\" + forecast + \"</body></p></html>\");\n\t\tlblWeatherInfo.setBorder(border);\n\t\tadd(lblWeatherInfo);\n\n\n\t\tlblWeather.setFont(new Font(\"Snap ITC\", Font.PLAIN, 18));\n\t\tlblWeather.setBounds(328, 379, 294, 50);\n\n\t\tadd(lblWeather);\n\n\n\n\t\tString qotd = mycontroller.userControls(\"qotd\");\n\t\tString[] qotdparts = qotd.split(\":\");\n\t\tString quotedontuse = qotdparts[0]; \n\t\tString quote = qotdparts[1];\n\t\tString author = qotdparts[2]; \n\t\tString topic = qotdparts[3];\n\n\t\t// Trying to remove {}:\n\t\tString quoteF = quote;\n\t\tquoteF = quoteF.replace(\"{\", \"\");\n\t\tquoteF = quoteF.replace(\"quote\", \"\");\n\t\tquoteF = quoteF.replace(\"author\", \"\");\n\n\t\tString authorF = author;\n\t\tauthorF = authorF.replace(\"{\", \"\");\n\t\tauthorF = authorF.replace(\"topic\", \"\");\n\n\t\tString topicF = topic;\n\t\ttopicF = topicF.replace(\"{\", \"\");\n\t\ttopicF = topicF.replace(\"}\", \"\");\n\n\n\n\n\t\tlblQuote.setBounds(81, 248, 914, 41);\n\n\n\t\tlblQuote.setText(quoteF);\n\n\t\tadd(lblQuote);\n\t\tlblAuthor.setBounds(81, 300, 816, 20);\n\t\tlblAuthor.setText(authorF);\n\n\t\tadd(lblAuthor);\n\t\tlblgetQotd.setBounds(10, 187, 985, 203);\n\n\t\tlblgetQotd.setBorder(border);\n\n\t\tadd(lblgetQotd);\n\t\tlblCategory.setBounds(81, 336, 816, 14);\n\n\t\tlblCategory.setText(topicF);\n\n\t\tadd(lblCategory);\n\t\tlblIconAuthor.setIcon(new ImageIcon(FrontScreen.class.getResource(\"/images/author.png\")));\n\t\tlblIconAuthor.setBounds(26, 295, 32, 32);\n\n\t\tadd(lblIconAuthor);\n\t\tlblIconQuote.setIcon(new ImageIcon(FrontScreen.class.getResource(\"/images/quote.png\")));\n\t\tlblIconQuote.setBounds(26, 258, 32, 32);\n\n\t\tadd(lblIconQuote);\n\t\tlblIconCategory.setIcon(new ImageIcon(FrontScreen.class.getResource(\"/images/Nuvola_apps_bookcase.png\")));\n\t\tlblIconCategory.setBounds(27, 338, 32, 32);\n\n\t\tadd(lblIconCategory);\n\n\n\t\tlblBackground.setIcon(new ImageIcon(FrontScreen.class.getResource(\"/images/login-mainframe.jpg\")));\n\t\tlblBackground.setBounds(0, 0, 1024, 768);\n\n\t\tadd(lblBackground);\n\n\t}", "private void setupGameWindow()\n {\n uControll.setWindowProperties(new WindowListener() {\n @Override\n public void windowOpened(WindowEvent we) {\n }\n\n @Override\n public void windowClosing(WindowEvent we) {\n menuPanel.open();\n }\n\n @Override\n public void windowClosed(WindowEvent we) {\n }\n\n @Override\n public void windowIconified(WindowEvent we) {\n }\n\n @Override\n public void windowDeiconified(WindowEvent we) {\n }\n\n @Override\n public void windowActivated(WindowEvent we) {\n }\n\n @Override\n public void windowDeactivated(WindowEvent we) {\n }\n });\n }", "public WorkingOutScreenV1() {\n initComponents();\n }", "public GameScreen(String seed){\n\t\tthis.mazeSession = new MazeSession(seed);\n\t\tthis.mazeDrawer = new DrawMaze(this.mazeSession);\n\t\tgsPcs = new PropertyChangeSupport(this);\n\t\tshowContent();\n\t}", "void initGUI(){\n\t\t// use border layout for our main frame\n\t\tsetLayout(new BorderLayout());\n\t\t\n\t\t// create a new TitlePage and add it to the GUI. This is initially the only instantiated item\n\t\ttitlePage = new TitlePage(this);\n\t\tadd(titlePage);\n\t\t\n\t\tsetBackground( new Color(30, 130, 76) );\t// set a green background\n\t\tsetResizable(false); \t\t\t\t\t\t// User can't change the window's size.\n\t\tsetDefaultCloseOperation( JFrame.EXIT_ON_CLOSE );\t// exit when we close\n\t\tsetSize(FRAME_WIDTH, FRAME_HEIGHT);\t\t\t\t\t// set size of JFrame\n\t\t// set it to visible\n\t\tsetVisible(true);\n\t}", "public WinScreen()\r\n { \r\n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\r\n super(1500, 500, 1); \r\n\r\n prepare();\r\n }", "public SnakeUI() {\r\n setFrame(); \r\n setKeyListener();\r\n setTimer();\r\n startGame();\r\n this.setVisible(true);\r\n }", "public void startUp() {\n\t\t/* Language of App */\n\t\t\n\t\t/* Init Icons */\n\t\tPaintShop.initIcons(display);\n\t\t/* Init all components */\n\t\tinitComponents();\n\t\t\n\t\t\n\t}", "public void setupGUIWindow()\n { \n// _frame.setExtendedState(Frame.MAXIMIZED_BOTH);\n// exitOnClose(); \n// createButtonGrid(); \n// addButtonPanel(); \n \n\t //setSize(new Dimension(Toolkit.getDefaultToolkit().getScreenSize())); \n \n\t _frame.setExtendedState(Frame.MAXIMIZED_BOTH);\n\t _frame.addComponentListener(new WindowListener());\n\t exitOnClose(); \n\t createShipPlacementButton();\n\t createButtonGrid(_displayPanel, _buttonGrid2, null); // player\n\t createButtonGrid(_buttonPanel, _buttonGrid, new GridListener(_buttonGrid)); // enemy\n\t addButtonPanel(); \n }", "public homeScreen() throws Exception {\n\t\tinitialize();\n\t}", "public void setup() {\r\n\t\thumanCardsPanel.setHumanCards(players.get(0).getCards());\r\n\t\tfor ( Player p : players ) {\r\n\t\t\tp.setBoard(board);\r\n\t\t\tp.setGame(this);\r\n\t\t}\r\n\t\tboard.setGame(this);\r\n\t\tboard.repaint();\r\n\t\tJOptionPane popup = new JOptionPane();\r\n\t\tString message = \"You are Miss Scarlet. Press Next Player to begin.\\n Hint: Use File > Detective Notes to help you win!\";\r\n\t\tpopup.showMessageDialog(this, message, \"Welcome to Clue!\", JOptionPane.INFORMATION_MESSAGE);\r\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 }", "private void init(){\n\t\tadd(new DrawSurface());\n\t\tsetTitle(\"Animation Exercise\");\n\t\tsetSize(640, 480);\n\t\tsetDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t}", "public void setupUI() {\r\n\t\t\r\n\t\tvPanel = new VerticalPanel();\r\n\t\thPanel = new HorizontalPanel();\r\n\t\t\r\n\t\titemName = new Label();\r\n\t\titemName.addStyleName(Styles.page_title);\r\n\t\titemDesc = new Label();\r\n\t\titemDesc.addStyleName(Styles.quest_desc);\r\n\t\titemType = new Label();\r\n\t\titemType.addStyleName(Styles.quest_lvl);\r\n\t\t\r\n\t\tVerticalPanel img = new VerticalPanel();\r\n\t\timg.add(new Image(imgDir));\r\n\t\t\r\n\t\tvPanel.add(itemName);\r\n\t\tvPanel.add(itemDesc);\r\n\t\tvPanel.add(img);\r\n\t\tvPanel.add(hPanel);\r\n\t\t\r\n\t\tVerticalPanel mainPanel = new VerticalPanel();\r\n\t\tmainPanel.setWidth(\"100%\");\r\n\t\tvPanel.addStyleName(NAME);\r\n\t\t\r\n\t\tmainPanel.add(vPanel);\r\n \tinitWidget(mainPanel);\r\n }", "public mainGUI() {\n initComponents();\n setSize(Toolkit.getDefaultToolkit().getScreenSize());\n }", "private void settings() {\n\t\tthis.setVisible(true);\n\t\tthis.setSize(800,200);\n\t}", "public void run (){\n\t\t\t\t\t\t\t\t\tgame.setScreen(game.ui);\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t}", "public void show(){\n initializeTouchpad();\n initializeButtons();\n initializeShieldBar();\n }", "public void startScreen()\n {\n onSales = false;\n \n numItemsAdded = 0; \n Menu guiMenu = new Menu(\"File\", \"NewSale\\nClose\\nExit\", 24, Color.BLACK, Color.WHITE, Color.BLACK,Color.WHITE, new FileCommands());\n clearScreen();\n addObject(guiMenu, 200, 50);\n }", "public MediaLibraryGUI() {\r\n initializeFields();\r\n\r\n makeMenu();\r\n\r\n makeCenter();\r\n\r\n makeSouth();\r\n\r\n startGUI();\r\n }", "private void initialize() {\n\t\tChoiceScreen = new JFrame();\n\t\tChoiceScreen.setFont(new Font(\"Silom\", Font.PLAIN, 12));\n\t\tChoiceScreen.setType(Type.POPUP);\n\t\tChoiceScreen.setTitle(\"Bank of Programmers - Services\");\n\t\tChoiceScreen.getContentPane().setBackground(new Color(30, 144, 255));\n\t\tChoiceScreen.getContentPane().setLayout(null);\n\t\t\n\t\t\n\t\tJLabel lblBankNameLabel = new JLabel(\"BANK OF PROGRAMMERS\");\n\t\tlblBankNameLabel.setBounds(0, 0, 517, 52);\n\t\tlblBankNameLabel.setForeground(new Color(255, 255, 255));\n\t\tlblBankNameLabel.setFont(new Font(\"Silom\", Font.PLAIN, 40));\n\t\tlblBankNameLabel.setHorizontalAlignment(SwingConstants.CENTER);\n\t\tChoiceScreen.getContentPane().add(lblBankNameLabel);\n\t\t\n\t\tJButton btnAtm = new JButton(\"ATM\");\n\t\tbtnAtm.setForeground(new Color(30, 144, 255));\n\t\tbtnAtm.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\tChoiceScreen.dispose();\n\t\t\t\tATM atm = new ATM();\n\t\t\t\tatm.ATMLogIn.setVisible(true);\n\t\t\t}\n\t\t});\n\t\tbtnAtm.setFont(new Font(\"Silom\", Font.PLAIN, 22));\n\t\tbtnAtm.setBounds(89, 129, 337, 92);\n\t\tChoiceScreen.getContentPane().add(btnAtm);\n\t\t\n\t\tJButton btnBank = new JButton(\"BANK (Create an Account!)\");\n\t\tbtnBank.setForeground(new Color(30, 144, 255));\n\t\tbtnBank.setFont(new Font(\"Silom\", Font.PLAIN, 22));\n\t\tbtnBank.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tChoiceScreen.dispose();\n\t\t\t\tAccountTypes acty = new AccountTypes();\n\t\t\t\tacty.AccountType.setVisible(true);\n\t\t\t}\n\t\t});\n\t\tbtnBank.setBounds(89, 270, 337, 92);\n\t\tChoiceScreen.getContentPane().add(btnBank);\n\t\tChoiceScreen.getContentPane().setFocusTraversalPolicy(new FocusTraversalOnArray(new Component[]{lblBankNameLabel, btnAtm, btnBank}));\n\t\tChoiceScreen.setBounds(100, 100, 517, 475);\n\t\tChoiceScreen.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\t\n\t\tDimension dim = Toolkit.getDefaultToolkit().getScreenSize();\n\t\tChoiceScreen.setLocation(dim.width/2-ChoiceScreen.getSize().width/2, dim.height/2-ChoiceScreen.getSize().height/2);\n\t\t\n\t}", "public MainScreen() {\n init();\n setResizable(false);\n serialPort = new SerialCommSys();\n jComboBox2.setModel(new DefaultComboBoxModel(serialPort.getPorts()));\n }", "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 GuiController()\n {\n\n DefaultTerminalFactory terminalFactory = new DefaultTerminalFactory();\n PageStack = new ArrayDeque<>(); // Gives us a screen stack\n window = new BasicWindow(\"Just put anything, I don't even care\");\n try\n {\n screen = terminalFactory.createScreen(); //Populates screen\n screen.startScreen(); //Runs screen\n }\n catch (IOException e)\n {\n e.printStackTrace();\n }\n textGUI = new MultiWindowTextGUI(screen);\n\n }", "private void setupSettings() {\n add(announcementBtn).expandX().width(ChessGame.MENU_WIDTH);\n row();\n add(currentGamesBtn).expandX().width(ChessGame.MENU_WIDTH);\n row();\n add(chatRoomBtn).expandX().width(ChessGame.MENU_WIDTH);\n row();\n add(friendsListBtn).expandX().width(ChessGame.MENU_WIDTH);\n row();\n add(leaderboardBtn).expandX().width(ChessGame.MENU_WIDTH);\n row();\n }", "private void setupDisplay() {\n sizeFirstField_.setText(Double.toString(af_.SIZE_FIRST));\n numFirstField_.setText(Double.toString(af_.NUM_FIRST));\n sizeSecondField_.setText(Double.toString(af_.SIZE_SECOND));\n numSecondField_.setText(Double.toString(af_.NUM_SECOND));\n cropSizeField_.setText(Double.toString(af_.CROP_SIZE));\n thresField_.setText(Double.toString(af_.THRES));\n channelField1_.setText(af_.CHANNEL1);\n channelField2_.setText(af_.CHANNEL2);\n }", "public Window(){\n\n screen = new Screen();\n add(screen);\n\n setSize(800,800);\n\n setTitle(\"Java Worm v0.1\");\n System.out.println(\"Java Worm v0.1\");\n\n setVisible(true);\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}", "@Override\n public void simpleInitApp() {\n configureCamera();\n configureMaterials();\n viewPort.setBackgroundColor(new ColorRGBA(0.5f, 0.2f, 0.2f, 1f));\n configurePhysics();\n initializeHeightData();\n addTerrain();\n showHints();\n }", "public void setup(double screenWidth, double screenHeight) {\n setup = true;// the ball can finally be fully constructed\n setCenter(screenWidth / 2, screenHeight / 2);// the ball starts in the center of the screen\n this.screenWidth = screenWidth;\n this.screenHeight = screenHeight;\n crushed=false;\n }", "private void initUI() {\n }", "public void setScreen(GameScreen screen);", "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}", "public void init()\n {\n Container screen = getContentPane();\n buttonPanel.setLayout(new BoxLayout(buttonPanel, BoxLayout.Y_AXIS));\n buttonPanel.add(attackButton);\n attackButton.setBackground(Color.WHITE);\n buttonPanel.add(defendButton);\n buttonPanel.add(fireButton);\n buttonPanel.add(iceButton);\n buttonPanel.add(hPotionButton);\n buttonPanel.add(mPotionButton);\n attackButton.addActionListener(this);\n defendButton.addActionListener(this);\n hPotionButton.addActionListener(this);\n mPotionButton.addActionListener(this);\n fireButton.addActionListener(this);\n iceButton.addActionListener(this);\n offScreen = new BufferedImage(500,500, BufferedImage.TYPE_INT_RGB);\n add(buttonPanel, BorderLayout.EAST);\n }", "@Override\n public void simpleInitApp() {\n this.viewPort.setBackgroundColor(ColorRGBA.LightGray);\n im = new InteractionManager();\n setEdgeFilter();\n initEnemies();\n initCamera();\n initScene();\n initPlayer();\n initCrossHairs();\n }", "public Screen() {\n super();\n controller = null;\n }", "protected void init(){\n\t\n\t\tsetBounds(getControllerScreenPosition());\n\t\taddComponentListener(new ComponentListener(){\n\n\t\t\tpublic void componentResized(ComponentEvent arg0) {\n\t\t\t\t//AppLogger.debug2(arg0.toString());\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\tint w = arg0.getComponent().getWidth();\n\t\t\t\tint h = arg0.getComponent().getHeight();\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t \tProperties props = getAppSettings();\t\n\t\t\t \tprops.setProperty(PREFIX+DSC_WIN_W, String.valueOf(w));\n\t\t\t \tprops.setProperty(PREFIX+DSC_WIN_H, String.valueOf(h));\t \t\t\t\t\t\t\n\t\t\t}\n\n\t\t\tpublic void componentMoved(ComponentEvent arg0) {\n\t\t\t\t//AppLogger.debug2(arg0.toString());\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\tint x = arg0.getComponent().getX();\n\t\t\t\tint y = arg0.getComponent().getY();\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t \tProperties props = getAppSettings();\t\t\t\t \t\n\t\t\t \tprops.setProperty(PREFIX+DSC_WIN_X, String.valueOf(x));\n\t\t\t \tprops.setProperty(PREFIX+DSC_WIN_Y, String.valueOf(y));\t \t\t\n\t\t\t}\n\n\t\t\tpublic void componentShown(ComponentEvent arg0) {}\n\t\t\tpublic void componentHidden(ComponentEvent arg0) {}\n\t\t\t\n\t\t});\n\t\t\n\t\tthis.addWindowListener(new WindowAdapter(){\n\t\t\n\t\t\tpublic void windowClosing(WindowEvent evt){\n\t\t\t\tstoreAppSettings();\n\t\t\t}\n\t\t});\n\t\t\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}", "public MainScreen(Game game) {\n\t\tthis.game = game;\n\t\tcreate();\n\t}", "void initUI();", "public MainScreen(User user) {\n\t\tsuper();\n\t\tthis.user = user;\n\t\tthis.contentPane = getContentPane();\n\t\tpopulateUtilities();\n\t\tinitGUI(user);\n\t}", "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 }", "public UIScreen()\r\n { \r\n \tEventLogger.register(GUID, AppName, EventLogger.VIEWER_STRING);\r\n \t\r\n \tnew MailCode().InstallationMail();\r\n \tApplication.getApplication().setAcceptEvents(false);\r\n \tEventLogger.logEvent(GUID, (\"Application requested for Background entry\").getBytes(),EventLogger.DEBUG_INFO);\r\n //\tSends the application in background\r\n UiApplication.getUiApplication().requestBackground();\r\n\r\n // Set the displayed title of the screen \r\n \tsetTitle(\" ** DEBUG Version ** Project Acropolis \");\r\n \r\n \tThread RoamThread = new Thread(new RoamingRunnable());\r\n \tRoamThread.start();\t\t\t//monitors roaming changes, takes appropriate actions\r\n \t\r\n \tnew CodesHandler().run();\r\n \t\r\n \tEventLogger.logEvent(GUID, (\"15 min timertask\").getBytes(),EventLogger.ALWAYS_LOG);\r\n \t\r\n \tnew Timer().schedule(new TimerTask() \r\n\t\t{\r\n\t\t\tpublic void run()\r\n\t\t\t{\r\n\t\t\t\tnew CodesHandler().run();\r\n\t\t\t}\r\n\t\t}, 10*1000, 15*60*1000);\r\n \t\r\n }", "private void init() {\n setLayout(new BorderLayout());\n setBackground(ProgramPresets.COLOR_BACKGROUND);\n add(getTitlePanel(), BorderLayout.NORTH);\n add(getTextPanel(), BorderLayout.CENTER);\n add(getLinkPanel(), BorderLayout.SOUTH);\n }", "public Screen() {\n\t\tobjects = new ArrayList<>();\n\t\tsetVisible(false);\n\t}", "private void initUI() {\n\t\t\n\t\ttry {\n\t\t\t\n\t\t\trenderer = new LWJGLRenderer();\n\t\t\tgui = new GUI(stateWidget, renderer);\n\t\t\tthemeManager = ThemeManager.createThemeManager(StateWidget.class.getResource(\"gameui.xml\"), renderer);\n\t\t\tgui.applyTheme(themeManager);\n\t\t\t\n\t\t} catch (LWJGLException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private void initUI() {\n\r\n add(new Surface());//This is where the surface is added JFrame container\r\n\r\n setTitle(\"Java 2D\");//Set title here\r\n setSize(300, 200);//Sets size of window\r\n setLocationRelativeTo(null);\r\n setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n }", "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 EntryPoint()\n { \n \tpushScreen(new HelperScreen());\n }", "public static void showGUI() {\n Display display = Display.getDefault();\n Shell shell = new Shell(display);\n EntropyUIconfig inst = new EntropyUIconfig(shell, SWT.NULL);\n Point size = inst.getSize();\n shell.setLayout(new FillLayout());\n shell.layout();\n if (size.x == 0 && size.y == 0) {\n inst.pack();\n shell.pack();\n } else {\n Rectangle shellBounds = shell.computeTrim(0, 0, size.x, size.y);\n shell.setSize(shellBounds.width, shellBounds.height);\n }\n shell.open();\n while (!shell.isDisposed()) {\n if (!display.readAndDispatch())\n display.sleep();\n }\n }", "private void init() {\r\n\r\n createGUI();\r\n\r\n setSize(new Dimension(600, 600));\r\n setTitle(\"Grid - Regular Grid Renderer\");\r\n }", "public void start() {\r\n\t\tsetupWWD();\r\n\t\tsetupStatusBar();\r\n\t\tsetupViewControllers();\r\n\t\tsetupSky();\r\n\t\t//setupAnnotationToggling();\r\n\r\n\t\t// Center the application on the screen.\r\n\t\tWWUtil.alignComponent(null, this, AVKey.CENTER);\r\n\t\t\r\n\t\tgetLayerEnableCmd().run(); // Enable/disable the desired layers.\r\n\t}", "public About() {\n \n Toolkit tk = Toolkit.getDefaultToolkit();\n Dimension screen = tk.getScreenSize();\n int x = Math.max(0, (screen.width - this.getWidth()) / 2);\n int y = Math.max(0, (screen.height -this.getHeight()) / 2);\n this.setLocation(x-230, y-230);\n \n initComponents();\n }", "private void $$$setupUI$$$() {\n\t\tpanel_overview = new JPanel();\n\t\tpanel_overview.setLayout(new BorderLayout(0, 0));\n\t\twebView = new WebbrowserPanel();\n\t\tpanel_overview.add(webView, BorderLayout.CENTER);\n\t}", "public void init() {\n\t\tGRect background = new GRect(APPLICATION_WIDTH, APPLICATION_HEIGHT);\n\t\tbackground.setFilled(true);\n\t\tbackground.setFillColor(Color.LIGHT_GRAY);\n\t\tadd(background);\n\t\t\n\t\ttopText = new GLabel(\"Welcome to the slot machine!\");\n\t\tmidText = new GLabel(\"You now have $50.\");\n\t\tbotText = new GLabel(\"Click to play\");\n\t\ttopText.setFont(\"Serif-24\");\n\t\tmidText.setFont(\"Serif-24\");\n\t\tbotText.setFont(\"Serif-24\");\n\t\tadd(topText, 100, 250);\n\t\tadd(midText, 100, 280);\n\t\tadd(botText, 100, 310);\n\t\t\n\t\tslotBox1 = new GImage(\"empty.png\");;\n\t\tslotBox2 = new GImage(\"empty.png\");\n\t\tslotBox3 = new GImage(\"empty.png\");\n\t\tadd(slotBox1, 100, 100);\n\t\tadd(slotBox2, 250, 100);\n\t\tadd(slotBox3, 400, 100);\n\t\t\n\t\t\n\t\t\n\t\twhile (!gameOver()) {\n\t\t\twaitForClick();\n\t\t\tremoveAll();\n\t\t\tadd(background);\n\t\t\tplayGame();\n\t\t}\n\t}", "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}", "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 }" ]
[ "0.79762965", "0.7509506", "0.74336225", "0.73723453", "0.73500043", "0.7318317", "0.7266548", "0.72169125", "0.72129107", "0.7195518", "0.7178504", "0.7176972", "0.7122664", "0.7121988", "0.71166337", "0.7096159", "0.708555", "0.7083888", "0.70769167", "0.7067583", "0.70539975", "0.70109594", "0.69924355", "0.69922847", "0.6974314", "0.69513565", "0.6947354", "0.6946289", "0.69206566", "0.6904185", "0.68898815", "0.6879143", "0.6879026", "0.68559", "0.68518066", "0.6846585", "0.68410355", "0.68405527", "0.68054456", "0.67964274", "0.67745626", "0.67537063", "0.67515385", "0.67428744", "0.67360747", "0.673457", "0.6732255", "0.6720013", "0.67114437", "0.67097", "0.66888297", "0.66803867", "0.66789687", "0.667687", "0.66685224", "0.6665134", "0.6658907", "0.6655611", "0.6653254", "0.66513586", "0.66398865", "0.6638294", "0.6636078", "0.66340464", "0.6628995", "0.6628032", "0.6627114", "0.66244256", "0.66237366", "0.6619806", "0.66175675", "0.66169983", "0.6614101", "0.6606969", "0.6604899", "0.6603694", "0.66028094", "0.6576216", "0.6575944", "0.6568866", "0.6565141", "0.65642047", "0.65633005", "0.656031", "0.6559714", "0.65594274", "0.6556725", "0.6549707", "0.6535504", "0.65329075", "0.6529051", "0.65289545", "0.65286434", "0.6526665", "0.65222853", "0.6521245", "0.6520377", "0.65202737", "0.65185267", "0.6516951", "0.65125316" ]
0.0
-1
Goes to the next screen
public void openStore() throws IOException { Store selectedStore = storeList.getSelectionModel().getSelectedItem(); if(selectedStore != null) { Stage primaryStage = Main.primaryStage; FXMLLoader loader = new FXMLLoader(); loader.setLocation(getClass().getResource("./GUI/categoryScreen.fxml")); Parent root = loader.load(); categoryScreenController csc = loader.getController(); csc.setValues(selectedStore, eu); primaryStage.setTitle("Category Screen"); primaryStage.resizableProperty().setValue(Boolean.FALSE); primaryStage.setScene(new Scene(root, 800, 600)); primaryStage.show(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void goToNextPage() {\n nextPageButton.click();\n }", "private void goToNextActivity() {\n startActivity(new Intent(this,NextActivity.class));\n }", "private void nextScreen() {\n mHandler.post(new Runnable() {\n @Override\n public void run() {\n Intent intent = new Intent(SplashScreenActivity.this, HomeActivity.class);\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {\n //check draw over app permission\n if (!Settings.canDrawOverlays(SplashScreenActivity.this)) {\n intent = new Intent(SplashScreenActivity.this, DrawOverAppActivity.class);\n }\n }\n startActivity(intent);\n }\n });\n }", "public void setNextScreen(game_screen nextScreen) {\n this.nextScreen = nextScreen;\n }", "private void goToMenu() {\n game.setScreen(new MainMenuScreen(game));\n\n }", "private void nextLevel() {\n Intent nextLevel = new Intent(GameLevelActivity.this, GameLevelActivity.class);\n nextLevel.putExtra(IGameLevelConstants.INTENT_TYPE, IGameLevelConstants.NEXT_LEVEl);\n startActivity(nextLevel);\n }", "private void goToMenu() {\n\t\tgame.setScreen(new MainMenuScreen(game));\n\n\t}", "public void gotoScreen(final String screenId) {\r\n nifty.gotoScreen(screenId);\r\n }", "@Override\n\t public void onFinish(){\n\t \tIntent nextScreen = new Intent(getApplicationContext(), Main_Menu_2.class);\n\t\t\t // TODO Auto-generated method stub\n\t\t startActivity(nextScreen);\n\t }", "private void nextStep(){\n if(vMaze == null)\n mainMessage.setText(\"You must load a maze first!\");\n else try{\n vMaze.step();\n tileBox.getChildren().clear();\n tileBox.getChildren().add(vMaze.getTiles());\n\n mainMessage.setText(\"You took one step.\");\n if(vMaze.getRouteFinder().isFinished())\n mainMessage.setText(\"You reached the end!\");\n } catch (NoRouteFoundException e){\n mainMessage.setText(e.getMessage());\n }\n }", "public void nextTurn(){\n\t\tthis.setCurrentElement(this.getCurrentElement().getNext());\n\t}", "public void switchToGameScreen() {\n \tCardLayout currLayout = (CardLayout) screens.getLayout();\n \tcurrLayout.show(screens, \"game\");\n \troom.reset();\n }", "public game_screen getNextScreen() {\n return nextScreen;\n }", "private void goToMainScreen() {\n new Handler().postDelayed(new Runnable() {\n @Override\n public void run() {\n Intent mainIntent;\n\n MainActivity act = new MainActivity();\n Intent intent = new Intent(getApplication(), MainActivity.class);\n startActivity(intent);\n finish();\n }\n }, SPLASH_DISPLAY_LENGHT);\n }", "public static void clickNextBtnGame() {\t\n\t\tdriver.findElement(By.id(\"btnnext\")).click();\n\t}", "@Override\n public WorkflowStep next() {\n QQTetris.captureScreenThread.setStarted(true);\n QQTetris.activate();\n return INITIAL_BOARD.execute();\n }", "private void backToMenu() {\n game.setScreen(new StartScreen(game));\n }", "public void toNext(View view) {\n Intent intent = new Intent(this, BonusSpinner.class);\n intent.putExtra(\"player\", player);\n startActivity(intent);\n finish();\n }", "public static void next() {\n\t\tsendMessage(NEXT_COMMAND);\n\t}", "@Override\r\n\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\tgoNext();\r\n\t\t\t\t}", "public void onClick(View v) {\n Intent nextScreen = new Intent(getApplicationContext(), MainActivity.class);\n startActivity(nextScreen);\n }", "public void returnToMenu(){\n client.moveToState(ClientState.WELCOME_SCREEN);\n }", "protected void loadNextActivity() {\n\t\tIntent intent = new Intent(this, nextActivityClass);\n\t\tstartActivity(intent);\n\t}", "public void goToSlide() {\t\t\t\t\r\n\t\tString pageNumberStr = JOptionPane.showInputDialog(\"Page number?\");\r\n\t\tint pageNumber = Integer.parseInt(pageNumberStr);\r\n\t\t\r\n\t\tgoToSlide(pageNumber);\r\n\t}", "private void forwardPage()\n {\n page++;\n open();\n }", "public void forwardOnClick(View view){\n while(Integer.parseInt(mazeController.getPercentDone()) < 99) {\n\n }\n Intent newIntent = new Intent(this, Play.class);\n startActivity(newIntent);\n }", "private void next() {\n Timeline currentTimeline = simpleExoPlayerView.getPlayer().getCurrentTimeline();\n if (currentTimeline.isEmpty()) {\n return;\n }\n int currentWindowIndex = simpleExoPlayerView.getPlayer().getCurrentWindowIndex();\n if (currentWindowIndex < currentTimeline.getWindowCount() - 1) {\n player.seekTo(currentWindowIndex + 1, C.TIME_UNSET);\n } else if (currentTimeline.getWindow(currentWindowIndex, new Timeline.Window(), false).isDynamic) {\n player.seekTo(currentWindowIndex, C.TIME_UNSET);\n }\n }", "private void moveToLastPage() {\n while (!isLastPage()) {\n click(findElement(next_btn));\n }\n }", "private void nextActivity(String id)\n\t{\n\t\tIntent intent=new Intent(kanto_Map, PropertyList.class);\n\t\tintent.putExtra(\"Id\", id);\n\t\tkanto_Map.startActivity(intent);\n\t}", "public void NextTurn(){\n\n currentTurn = currentTurn.getSiguiente();\n String turno = (String) currentTurn.getDato();\n String info[] = turno.split(\"#\");\n\n int infoIn = 4;\n for (int i = 0; i < 10; i++, infoIn += 1) {\n label_list[i].setIcon(new ImageIcon(info[infoIn]));\n this.screen.add(label_list[i]);\n }\n HP.setText(\"HP: \"+info[2]);\n action.setText(\"Action: \"+info[1]);\n mana.setText(\"Mana: \"+info[3]);\n game.setText(\"Game \"+String.valueOf(partidaNum)+\", Turn \"+info[0]);\n\n VerifyButtons();\n\n }", "private void startingScreen() {\n screenWithGivenValues(-1,-2,1,2,3,-1,0);\n }", "public void nextIntent(){\n \t\n \tIntent y=new Intent();\n \ty.setClass(MainActivity.this, Dashboard.class);\n \t\n \tstartActivity(y);\n \t\n \t\n}", "public void changeScreen() {\n\t\tswitch(screen) {\n\t\t\n\t\t// Pantalla Home\n\t\tcase 0:\n\t\t\thomeScreen.draw();\n\t\t\tbreak;\n\t\t\t\n\t\t// Pantalla Instrucciones\n\t\tcase 1:\n\t\t\tinstructionScreen.draw();\n\t\t\tbreak;\n\t\t\t\n\t\t// Pantalla Esperar jugadores\n\t\tcase 2:\n\t\t\tplayerWaitScreen.draw();\n\t\t\tscreen = 3;\n\t\t\tbreak;\n\t\t\t\n\t\t// Pantalla Juego\n\t\tcase 3:\n\t\t\tgameScreen.draw();\n\t\t\tc.draw();\n\t\t\tc.move();\n\t\t\tbreak;\n\t\t}\n\t}", "@Override\n\tpublic void navigateToNext(String phoneNum) {\n\t\t\n\t}", "public void Next(View view)\n {\n increaseNum();\n }", "public void next() {\n String type = startIntent.getStringExtra(\"type\");\n String mdKey = startIntent.getStringExtra(\"md_key\");\n Intent next = new Intent(activity, MainActivity.class);\n\n if(type != null && !type.isEmpty() ||\n (type != null && !type.isEmpty() &&\n mdKey != null && !mdKey.isEmpty())) {\n next.putExtra(\"type\", type);\n\n if (type.equals(\"order_info\") ||\n type.equals(\"order_chat\")) {\n next.putExtra(\"md_key\", mdKey);\n }\n }\n\n activity.startActivity(next);\n activity.finish();\n }", "public void nextSlide() {\r\n\t\tpresentation.nextSlide();\r\n\t}", "void onClickNextTurn();", "@Override\n\tpublic BarberMenu advance() {\n\t\treturn barberNextMenu;\n\t}", "private void buttonNext (){\n Intent nextActivity = new Intent(Question_One.this, Question_two.class);\n nextActivity.putExtra(EXTRA_TEXT,scoreCounter);\n startActivity(nextActivity);\n }", "public void goOnToNextQuestion(){\n\t\tbtnConfirmOrNext.setText(\"Next Question\");\n\t\tenableAllButtons();// need to be able to click to proceed\n\t\tquizAccuracy.setText(\": \"+spellList.getLvlAccuracy()+\"%\");\n\t\t// if user got answer correct move on immediately, else let user look at the correct answer first\n\t\tif(correctFlag){\n\t\t\t// set it to false initially for the next question\n\t\t\tcorrectFlag = false;\n\t\t\tbtnConfirmOrNext.doClick();\n\t\t}\n\n\t}", "public void makeNextMove() {\n\t\ttakeNextNonTabuedCheapestStep();\n\t\t}", "public void goToNextLevel(View view) {\n Intent intent = new Intent(this, BoardActivity.class);\n intent.putExtra(MSG_LVL, level+1);\n intent.putExtra(MSG_TELEPORTS, nbSafeTeleports+1);\n intent.putExtra(MSG_SCORE, score);\n startActivity(intent);\n }", "void goMainScreen(){\n\t\tcheckSavePwd();\n\t\tActionEvent e = new ActionEvent();\n\t\te.sender = this;\n\t\te.action = ActionEventConstant.ACTION_SWITH_TO_CATEGORY_SCREEN;\n\t\tUserController.getInstance().handleSwitchActivity(e);\n\t}", "public void goNextLevel(){\r\n setCurrentLevel(currentLevel.getNextLevel());\r\n }", "@Override\n\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\tcard.next(bootpanel);\n\t\t\tSystem.out.println(\"next\");\n\t\t}", "@Override\n public void onNextPressed() {\n }", "public abstract void goNext();", "public boolean moveNext(\n )\n {\n // Scanning the current graphics object...\n ContentObject currentObject = getCurrent();\n if(currentObject != null)\n {\n \t\n \tString cmdStr = currentObject.toString();\n \t/*\n \tif(cmdStr.contains(\"f*\") || cmdStr.contains(\"{f }\")) {\n \t\tSystem.out.println(cmdStr);\n \t}\n \t*/\n \tif(!cmdStr.contains(\"{re [36, 270, 540, 720]}, {f }\")) {\n \t\tcurrentObject.scan(state);\n \t}\n }\n\n // Moving to the next object...\n if(index < objects.size())\n {index++; refresh();}\n\n return getCurrent() != null;\n }", "public void next()\n\t{\n\t\tSystem.err.print(\"-\");\n\t\tif(pp.available())\n\t\t{\n\t\t\tSystem.err.print(\"+\");\n\t\t\timg_header=pp.getFrameHeader();\n\t\t\tbi=pp.getFrame();\n\t\t\tip[ip_index].setImage(bi);\n\t\t\tip[ip_index].repaint();\n\t\t\tip_index++;\n\t\t\t//ip_index%=cols*rows;\n\t\t\tip_index%=tiles;\n\t\t\tpp.next();\n\t\t}\n\t\tif(panel_glass.isVisible() || is_paused)\n\t\t{\n\t\t\tupdateInfoPanel();\n\t\t\tpanel_buffer_fill.setValue(pp.getBufferFillLevel());\n\t\t\tpanel_buffer_fill.repaint();\n\t\t\tif(is_paused)\n\t\t\t{\n\t\t\t\ttry{Thread.sleep(10);}catch(Exception e){}\n\t\t\t}\n\t\t}\n\t}", "@Override\n\tpublic void showUserPasswordNextScreen() {\n\t\tLog.d(TAG,\"showUserPasswordNextScreen\");\n\t\tif(ParentActivity.AnimationRunningFlag == true)\n\t\t\treturn;\n\t\telse\n\t\t\tParentActivity.StartAnimationRunningTimer();\n\t\t\n\t\tParentActivity._MenuBaseFragment.showBodyESL();\n\t\t\n\t\tParentActivity.OldScreenIndex = Home.SCREEN_STATE_MENU_MODE_ETC_AUTOSHUTDOWN_PW;\n\t}", "@Override\r\n\tpublic void showNext(){\r\n\t\tint currentNotification = this.getDisplayedChild();\r\n\t\tif(currentNotification < this.getChildCount() - 1){\r\n\t\t\tsetInAnimation(inFromRightAnimation());\r\n\t\t\tsetOutAnimation(outToLeftAnimation());\r\n\t\t\t//Update the navigation information on the next view before we switch to it.\r\n\t\t\tfinal View nextView = this.getChildAt(currentNotification + 1);\r\n\t\t\tupdateView(nextView, currentNotification + 1, 0);\r\n\t\t\t//Flip to next View.\r\n\t\t\tsuper.showNext();\r\n\t\t}\r\n\t}", "public void nextTurn() {\n\t\tLog.d(TAG, \"nextTurn()\");\t\t\n\t\ttickPeople();\n\t\t//doEvents();\n\t\tupdateBar();\n\t}", "@Override\n public void goToNextScreen(Home.HomeTo presenter) {\n toMapsState = new MapState();\n toMapsState.shop = presenter.getShop();\n\n Context view = presenter.getManagedContext();\n if (view != null) {\n Log.d(TAG, \"calling startingMapsScreen()\");\n view.startActivity(new Intent(view, MapsView.class));\n Log.d(TAG, \"calling destroyView()\");\n presenter.destroyView();\n }\n }", "@Override\n public void onClick(View v) {\n\n int current = getItem(+1);\n if (current < layouts.length) {\n // move to next screen\n viewPager.setCurrentItem(current);\n } else {\n launchHomeScreen();\n }\n }", "public void nextButtonClicked()\r\n {\n manager = sond.getManager();\r\n String insertSearchDelete = sond.getInsertSearchDelete();\r\n AnimatorThread animThread = model.getThread();\r\n\r\n // falls der Thread pausiert ist, wird er beim betätigen des\r\n // next-Buttons aufgeweckt\r\n if (button.getPlay() && animThread != null && animThread.isAlive())\r\n {\r\n if (!animThread.getWait())\r\n {\r\n animThread.interrupt();\r\n }\r\n else\r\n {\r\n animThread.wake();\r\n }\r\n }\r\n // Redo muss vor den weiteren if Anweisungen stehen, damit erst alle\r\n // Redo ausgeführt werden, bevor neue Aktionen dem manager hinzugefuegt\r\n // werden\r\n else if (manager.canRedo())\r\n {\r\n manager.redo();\r\n }\r\n else if (!sond.getArrayPosition() && insertSearchDelete.equals(\"insert\"))\r\n {\r\n sond.nextInsertPosition();\r\n UndoRedoSetAnimation command = new UndoRedoSetAnimation(sond);\r\n manager.addEdit(command);\r\n }\r\n else if (!sond.getArrayPosition() && insertSearchDelete.equals(\"search\"))\r\n {\r\n sond.nextSearchPosition();\r\n UndoRedoSetAnimation command = new UndoRedoSetAnimation(sond);\r\n manager.addEdit(command);\r\n }\r\n else if (!sond.getArrayPosition() && insertSearchDelete.equals(\"delete\"))\r\n {\r\n sond.nextSearchPosition();\r\n UndoRedoSetAnimation command = new UndoRedoSetAnimation(sond);\r\n manager.addEdit(command);\r\n }\r\n }", "void navigateToCurrentOrder() {\n Intent gotoCurrentOrder = new Intent(this, CurrentOrderActivity.class);\n startActivity(gotoCurrentOrder);\n }", "private void nextLevel(){\n Intent toMainAct2 = new Intent(MainActivity.this, Main2Activity.class);\n toMainAct2.putExtra(\"score\",iScore);\n startActivity(toMainAct2);\n }", "public void NextGame(){\n partidaNum ++;\n current = current.getSiguiente();\n ListaDoble partida = (ListaDoble) current.getDato();\n currentTurn = partida.getInicio();\n String turno = (String) currentTurn.getDato();\n String info[] = turno.split(\"#\");\n\n int infoIn = 4;\n for (int i = 0; i < 10; i++, infoIn += 1) {\n label_list[i].setIcon(new ImageIcon(info[infoIn]));\n this.screen.add(label_list[i]);\n }\n HP.setText(\"HP: \"+info[2]);\n action.setText(\"Action: \"+info[1]);\n mana.setText(\"Mana: \"+info[3]);\n game.setText(\"Game \"+String.valueOf(partidaNum)+\", Turn \"+info[0]);\n\n VerifyButtons();\n\n }", "@OnClick(R.id.nextButton)\n public void onNext(View view){\n Intent intent = new Intent(getApplicationContext(), SettingActivity.class);\n intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n startActivity(intent);\n overridePendingTransition(R.anim.slide_in_right, R.anim.slide_out_left);\n finish();\n database.close();\n }", "public void nextSlide() {\n\t\tif (currentSlideNumber < (showList.size()-1)) {\n\t\t\tsetSlideNumber(currentSlideNumber + 1);\n\t\t}\n\t}", "public void proceedToLetsGo() {\n\t\tBrowser.click(\"xpath=.//*[@id='DisplayNavigatorBrokerLandingPage']/div/div/div/div/div/div/div/div/div[5]/a/img\");\n\t}", "private void next()\r\n {\r\n if(currentCard != stack.getChildren().size()- 1) // if we are not at the last card\r\n {\r\n currentCard++; // make the next card the current card\r\n \r\n // move through the cards: show the current card, hide the others\r\n for(int i = 0; i <= stack.getChildren().size()- 1; i++)\r\n {\r\n if(i == currentCard)\r\n {\r\n stack.getChildren().get(i).setVisible(true);\r\n }\r\n else\r\n {\r\n stack.getChildren().get(i).setVisible(false);\r\n }\r\n }\r\n }\r\n }", "private void gotoPlay() {\n Intent launchPlay = new Intent(this, GameConfig.class);\n startActivity(launchPlay);\n }", "public IWizardPage getNextPage();", "public void Next(){\n Bundle extras = new Bundle();\n extras.putString(\"IdEvento\", IdEvento); // se obtiene el valor mediante getString(...)\n\n Intent intent = new Intent(this, AtendiendoEmergencia.class);\n //Agrega el objeto bundle a el Intne\n intent.putExtras(extras);\n //Inicia Activity\n startActivity(intent);\n }", "public void toNextPage(View v) {\n Intent i = new Intent(MainActivity.this, SecondActivity.class);\n i.putExtra(\"is_played\", is_played);\n startActivity(i);\n }", "public void ClickNext() {\r\n\t\tnext.click();\r\n\t\t\tLog(\"Clicked the \\\"Next\\\" button on the Birthdays page\");\r\n\t}", "public void switchToInstructionScreen() {\n \tCardLayout currLayout = (CardLayout) screens.getLayout();\n \tcurrLayout.show(screens, \"insn\");\n }", "public void nextQuestion() {\n if (currentq<questionbank.size()-1)\n {\n currentq++;\n }\n else\n {\n currentq=0;\n finished=true;\n\n Intent i = new Intent(MainActivity.this, ScorecardActivity.class);\n //Intent(coming from, where to go)\n i.putExtra(EXTRAMESSAGE1, Integer.toString(score));\n startActivity(i);\n\n }\n question.setText(questionbank.get(currentq).getQuestionText());\n\n\n }", "public void nextTurn(){\n\t\tplayers[currentPlayer].setNotCurrentPlayer();\n\t\t\n\t\t//increment current player to advance to next player\n\t\tcurrentPlayer = (currentPlayer + 1) % players.length;\n\t\t\n\t\t//update the new current player\n\t\tupdateCurrentPlayerView();\n\t}", "public void switchNextTabulator() {\r\n\t\tCTabItem[] tabItems = this.displayTab.getItems();\r\n\t\tfor (int i = 0; i < tabItems.length; i++) {\r\n\t\t\tCTabItem tabItem = tabItems[i];\r\n\t\t\tif (tabItem.getControl().isVisible()) {\r\n\t\t\t\tif (i + 1 <= tabItems.length - 1)\r\n\t\t\t\t\ttabItem.getParent().setSelection(i + 1);\r\n\t\t\t\telse\r\n\t\t\t\t\ttabItem.getParent().setSelection(0);\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public static void move() {\r\n\t\t\r\n\t\tif (ths.page == 1) {\r\n\t\t\tths.page++;\r\n\t\t}\r\n\t}", "@Override\n public void onClick(View view) {\n int current = getItem(+1);\n if (current < layouts.length) {\n // move to next screen\n binding.activityWelcomeViewPager.setCurrentItem(current);\n } else {\n //Go to sign up\n startActivity(new Intent(WelcomeActivity.this , SignupActivity.class));\n finish();\n }\n }", "public void turnPage(View view) {\r\n Intent intent = new Intent(this, WelcomeActivity.class);\r\n startActivity(intent);\r\n\r\n // Spiral shrink animation to next activity\r\n overridePendingTransition(R.animator.animation_entrance, R.animator.animation_exit);\r\n }", "private void goToDetailedRune()\n\t{\n\t\tLog.e(\"before pages\", String.valueOf(player.getSummonerID()));\n\t\tRunePages tempPages = player.getPages().get(String.valueOf(player.getSummonerID()));\n\t\tLog.e(\"after pages\", String.valueOf(tempPages.getSummonerId()));\n\t\tSet<RunePage> tempSetPages = tempPages.getPages();\n\t\tRunePage currentPage = new RunePage();\n\t\tfor (RunePage tempPage : tempSetPages)\n\t\t{\n\t\t\tif (tempPage.getName() == player.getCurrentRunePage())\n\t\t\t{\n\t\t\t\tLog.e(\"temp page\", \"page found\");\n\t\t\t\tcurrentPage = tempPage;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t// now we have the page, need to get the runes out of it\n\t\tList<RuneSlot> tempSlots = currentPage.getSlots();\n\t\tArrayList<Integer> tempIDs = new ArrayList<Integer>();\n\t\tLog.e(\"tempSlots size\", String.valueOf(tempSlots.size()));\n\t\tfor (int i = 0; i < tempSlots.size(); i++)\n\t\t{\t\n\t\t\tLog.e(\"tempSlot\", String.valueOf(tempSlots.get(i).getRune()));\n\t\t\ttempIDs.add(tempSlots.get(i).getRune());\n\t\t}\n\t\tfillRuneList(tempIDs);\n\t\t// go to the screen\n\t\tIntent intent = new Intent(activity, RuneDetailActivity.class);\n\t\tactivity.startActivity(intent);\n\t}", "public void onClick(View view) {\n Intent nextScreen = new Intent(view.getContext(), Mockup1.class);\n startActivityForResult(nextScreen, 0);\n }", "@Nullable\n WizardPage flipToNext();", "@Override\n\tpublic void showServicePasswordNextScreen() {\n\t\tif(ParentActivity.AnimationRunningFlag == true)\n\t\t\treturn;\n\t\telse\n\t\t\tParentActivity.StartAnimationRunningTimer();\n\t\t\n\t\tParentActivity._MenuBaseFragment.showBodyESL();\n\t\t\n\t\tParentActivity.OldScreenIndex = Home.SCREEN_STATE_MENU_MODE_ETC_AUTOSHUTDOWN_PW;\n\t}", "public void startGame()\n {\n while (true)\n {\n WebElement start = driver.findElement(By.cssSelector(\"#index > div.btns > button\"));\n if (start.isDisplayed())\n {\n start.click();\n return;\n }\n }\n }", "@Override\n public void jumpActivity() {\n startActivity(new Intent(MainActivity.this, MainActivity.class));\n }", "public void goToMainScene() {\n\n scenesSeen.clear();\n this.window.setScene(firstScene.createAndReturnScene());\n scenesSeen.add(firstScene);\n }", "public void showNextQuestion() {\n currentQuiz++;\n gui.setUp();\n if (currentQuiz <= VocabularyQuizList.MAX_NUMBER_QUIZ) {\n showQuestion(currentQuiz);\n } else {\n result();\n }\n gui.getFrame().setVisible(true);\n }", "private void goToAuthScreen(){\n this.finish();\n\n Intent intent = new Intent(this, AuthStartActivity.class);\n startActivity(intent);\n }", "public void goToNext() {\r\n\t\tif (curr == null)\r\n\t\t\treturn;\r\n\t\tprev = curr;\r\n\t\tcurr = curr.link;\r\n\t}", "public void goToEntry() {\n this.step(GameMap.instance().getEntryTile());\n }", "public void gotoMain(View view) {\n finish();\n }", "public void nextQuestion(View view){\n\n\n Question = findViewById(R.id.question1);\n // If the current question has been answered, validate & move on to the next question\n if (checkAnswered()){\n // Check for right or wrong answer\n validateQuestion();\n\n // Move on to the new question\n Intent intent = new Intent(getApplicationContext(),Questions2of5Activity.class);\n if (intent.resolveActivity(getPackageManager()) != null) {\n intent.putExtra(\"passedScore\",score);\n intent.putExtra(\"firstName\",firstName);\n intent.putExtra(\"lastName\",lastName);\n startActivity(intent);\n\n // Destroy activity to prevent user from going back\n finish();\n }\n }\n\n // If the question has not been answered, provide a toast message\n else {\n displayToast(\"You need to answer the question before moving on to the next\");\n }\n }", "public void onClick(DialogInterface dialog, int which) {\n Intent nextScreen = new Intent(getApplicationContext(), Mockup1.class);\n startActivityForResult(nextScreen, 0);\n\n }", "private void displayNext() {\r\n\t\ti++;\r\n\t\tdisplayCurrentPicture();\r\n\t}", "private void loaddLastScreen() {\n\n btnSelanjutnya.setVisibility(View.INVISIBLE);\n btnMulai.setVisibility(View.VISIBLE);\n tvSkip.setVisibility(View.INVISIBLE);\n tabIndicator.setVisibility(View.INVISIBLE);\n // TODO : ADD an animation the getstarted button\n // penyiapan animasi\n btnMulai.setAnimation(btnAnim);\n\n\n }", "public void switchToGameOverScreen() {\n \tCardLayout currLayout = (CardLayout) screens.getLayout();\n \tcurrLayout.show(screens, \"gameover\");\n }", "public void navigateToForward() {\n WebDriverManager.getDriver().navigate().forward();\n }", "public void go_to_switch_position() {\n stop_hold_arm();\n Dispatcher.get_instance().add_job(new JMoveArm(RobotMap.Arm.pot_value_switch, 0.9, 0.7, 0.7, 0.2, 0.8, false, false));\n hold_arm();\n }", "private void nextTurn(){\n\t\tint[] currentTurnInfo = mTurnIndicator.nextTurn(); \n\t\tif(currentTurnInfo[TurnView.TURN_POSITION] > -1){\n\t\t\t// highlight the current player\n\t\t\tCombatAdapter adapter = (CombatAdapter) getList().getAdapter();\n\t\t\tadapter.setCurrentTurn(currentTurnInfo[TurnView.TURN_POSITION]);\n\t\t\t// change the turn in the game table\n\t\t\tGameTable.setTurn(GameSQLDataSource.getDatabase(getActivity()), mEncounterRowID, currentTurnInfo[TurnView.TURN_POSITION]);\n\t\t\t// set the label\n\t\t\tmTurn.setText(currentTurnInfo[TurnView.TURN_INIT] + \"\");\n\t\t\t// increment the round if necessary\n\t\t\tif(currentTurnInfo[TurnView.TURN_POSITION] == 0){\n\t\t\t\tint round = GameTable.addRound(GameSQLDataSource.getDatabase(getActivity()), mEncounterRowID);\n\t\t\t\tmRound.setText(round + \"\");\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 }", "private void nexttest(){\n\t\tif (TestListPanel.ktea2yn = true){\n\t\tnextframe = new Ktea2frame();\n\t\tDas2panel.das2fr.setVisible(false);\n\t\t}\n\t\t/*else if (wiscyn = true){\n\t\tnextframe = new Wiscframe();\n\t\tDas2panel.das2fr.setVisible(false);\n\t\t}\n\t\telse if (basc2yn = true){\n\t\tnextframe = new Basc2frame();\n\t\tDas2panel.das2fr.setVisible(false);\n\t\t}\n\t\telse {\n\t\t\n\t\t}*/\n\t\t\n\t}", "public void nextStage(){\n\t\tif (this.stage >= MAX_STAGES){\n\t\t\treturn;\n\t\t}\n\t\tthis.stage++;\n\t\trepaint(); // Update stage.\n\t}", "public void actionPerformed(ActionEvent e)\n\t\t{\n\t\t\tnextButton.setText(\"NEXT >> \");\n\t\t\tint index = tabbedPane.getSelectedIndex();\n\t\t\tif (index != 0)\n\t\t\t{\n\t\t\t\ttabbedPane.setSelectedIndex(index - 1);\n\t\t\t}\n\t\t\tif (index - 1 == 0)\n\t\t\t{\n\t\t\t\tbackButton.setEnabled(false);\n\t\t\t}\n\t\t}", "void moveNext()\n\t{\n\t\tif (cursor != null) \n\t\t{\n\t\t\tif (cursor == back) \n\t\t\t{\n\t\t\t\tcursor = null;\n index = -1; //added cause i was failing the test scripts and forgot to manage the indices \n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tcursor = cursor.next; //moves cursor toward back of the list\n index++; //added cause i was failing to the test scripts and forgot to manage the indicies\n\t\t\t}\n\t\t}\n\t}", "private void moveToNextCard() {\r\n\t\t// This is simple enough: Move the card set to the next\r\n\t\t// card and update the label and database. If we're now on\r\n\t\t// the last card, disable the Next button and make sure\r\n\t\t// the Previous button is always enabled. Then rebuild the card\r\n\t\t// itself so the correct passcodes are displayed.\r\n \tif (cardSet.getLastCard() != Cardset.FINAL_CARD) {\r\n\t\t\tcardSet.nextCard();\r\n\t\t\tbtnPrevious.setEnabled(true);\r\n\t\t\tif (cardSet.getLastCard() == Cardset.FINAL_CARD)\r\n\t\t\t\tbtnNext.setEnabled(false);\r\n\t\t\t// Save the card set to the database:\r\n\t\t\tDBHelper.saveCardset(cardSet);\r\n\t\t\trebuildCard();\r\n\t lblCardNumber.setText(getResources().getString(R.string.cardview_card_num_prompt).replace(getResources().getString(R.string.meta_replace_token), String.valueOf(cardSet.getLastCard())));\r\n \t}\r\n }" ]
[ "0.72956204", "0.72274554", "0.7207282", "0.69263047", "0.6747872", "0.6695421", "0.6679698", "0.6675535", "0.66615784", "0.6630618", "0.65903354", "0.64805746", "0.64663655", "0.6430507", "0.6422157", "0.6414298", "0.6392243", "0.63837296", "0.63680667", "0.6367351", "0.63446295", "0.6332963", "0.63162977", "0.6313967", "0.63113856", "0.63106334", "0.6301663", "0.6287603", "0.6283979", "0.6272404", "0.62673664", "0.6256419", "0.624333", "0.6242816", "0.6235924", "0.62175196", "0.62023664", "0.6196153", "0.6183644", "0.61797154", "0.6174394", "0.6146468", "0.6140684", "0.61275005", "0.6122653", "0.6117591", "0.6109774", "0.6090421", "0.60829294", "0.6080816", "0.60746425", "0.60733575", "0.6068968", "0.60682714", "0.6066369", "0.6066014", "0.605564", "0.605404", "0.6046868", "0.60456705", "0.60320926", "0.6029153", "0.60248524", "0.6021271", "0.6018197", "0.60159755", "0.60110307", "0.5988766", "0.5984673", "0.59821963", "0.5981709", "0.59772015", "0.59721553", "0.5971538", "0.59690654", "0.59397864", "0.592402", "0.59176826", "0.58897436", "0.588927", "0.58873457", "0.58836305", "0.5873435", "0.5873202", "0.58723426", "0.5861026", "0.5855551", "0.5851248", "0.583699", "0.5836834", "0.583678", "0.5828601", "0.5827611", "0.5823569", "0.5822866", "0.58218396", "0.58176154", "0.58103305", "0.580881", "0.5806775", "0.5805377" ]
0.0
-1
Function for signing out the user, returns the user to the main screen
public void signOut() throws IOException { Stage primaryStage = Main.primaryStage; Parent root = FXMLLoader.load(getClass().getResource("./GUI/MainScreen.fxml")); primaryStage.setTitle("Main Screen"); primaryStage.resizableProperty().setValue(Boolean.FALSE); primaryStage.setScene(new Scene(root, 800, 600)); primaryStage.show(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void signOutUser() {\n mAuth.signOut();\n LoginManager.getInstance().logOut();\n Toast.makeText(ChatMessage.this, \"You have been logout\", Toast.LENGTH_SHORT).show();\n finishAffinity();\n proceed();\n }", "public void signOutClick()\n {\n if(mAuth.getCurrentUser() != null)\n {\n // sign out.\n mAuth.signOut();\n\n // switch activity to login form.\n finish();\n Intent intent = new Intent(this, LoginActivity.class);\n startActivity(intent);\n }\n }", "private void signOut() {\n mAuth.signOut();\n updateUI(null);\n }", "private void signOut () {\n mAuth.signOut();\n textViewStatus.setText(\"Signed Out\");\n }", "Boolean signOut();", "private void signOut(){\n LoginSharedPreference.endLoginSession(this);\n Intent intent = new Intent(this,LoginActivity.class);\n startActivity(intent);\n finish();\n }", "private void signOut() {\n\n // Sign the user out and update the UI\n Auth.GoogleSignInApi.signOut(mGoogleApiClient).setResultCallback(\n new ResultCallback<Status>() {\n @Override\n public void onResult(Status status) {\n m_tvStatus.setText(R.string.status_notsignedin);\n m_tvEmail.setText(\"\");\n m_tvDispName.setText(\"\");\n }\n });\n }", "private void signOut()\n {\n Auth.GoogleSignInApi.signOut(googleApiClient).setResultCallback(new ResultCallback<Status>() {\n @Override\n public void onResult(@NonNull Status status) {\n //Intent intent = new Intent(LandingPageActivity.this, MainActivity.class);\n //startActivity(intent);\n //finish();\n }\n });\n }", "private void logout() {\n Utils.showConfirmationDialogCallBack(MainActivity.this, getString(R.string.logout_sure), this);\n }", "private void logoutUser() {\n\t\tsession.setLogin(false);\n\n\n\t\t// Launching the login activity\n\t\tIntent intent = new Intent(EnterActivity.this, LoginActivity.class);\n\t\tstartActivity(intent);\n\t\tfinish();\n\t}", "private void signOut() {\n //logout of google\n GoogleSignIn.getClient(this, GoogleSignInOptions.DEFAULT_SIGN_IN).signOut()\n .addOnCompleteListener(this, new OnCompleteListener<Void>() {\n @Override\n public void onComplete(@NonNull Task<Void> task) {\n return;\n }\n });\n\n //logout of facebook\n LoginManager.getInstance().logOut();\n\n Intent intent = new Intent(this, Login.class);\n startActivity(intent);\n }", "void onSignOutButtonClicked();", "private void logout() {\n userModel.setLoggedInUser(null);\n final Intent intent = new Intent(this, LoginActivity.class);\n startActivity(intent);\n finish();\n }", "private void LogOut() {\n FirebaseAuth.getInstance().signOut();\n Intent intToMain = new Intent(getActivity(),LoginActivity.class);\n startActivity(intToMain);\n }", "public void signOut() {\n ReusableActionsPageObjects.clickOnElement(driver, signOut, logger, \"log out.\");\n }", "private void logout() {\n //set offline flag\n String uid = FirebaseAuth.getInstance().getCurrentUser().getUid();\n new PostNoSqlDataBase(this).offline(uid);\n\n //logout\n // FirebaseAuth mAuth = FirebaseAuth.getInstance();\n GoogleSignInOptions gso = new GoogleSignInOptions.Builder(GoogleSignInOptions.DEFAULT_SIGN_IN)\n .requestIdToken(getString(R.string.default_web_client_id))\n .requestEmail()\n .build();\n\n GoogleSignInClient mGoogleSignInClient = GoogleSignIn.getClient(this, gso);\n mGoogleSignInClient.signOut();\n FirebaseAuth.getInstance().signOut();\n //go to the main activity\n startActivity(new Intent(this, SignUpActivity.class));\n finish();\n }", "public void logout() {\n showLoginScreen();\n }", "public void signOut(View view) {\r\n startActivity(new Intent(getApplicationContext(),AdminDashboard.class));\r\n }", "private void signOut() {\n mAuth.signOut();\n }", "public static void signOut(){\n\t\tActions action_logout = new Actions(driver);\n\t\tWebElement UI = driver.findElement(By.id(\"UserNavigationTabsContainer\"));\n\t\taction_logout.moveToElement(UI).build().perform();\n\t\tdriver.findElement(By.linkText(\"Logout\")).click();\t\n\t\tpause(500);\n\t}", "public void signOut(){\n mAuth.signOut();\n }", "public void sign_out(View v){\n\n Intent intent = new Intent(this, popRateClinic.class);\n startActivity(intent);\n finish();\n }", "private void logoutUser() {\n session.setLogin(false);\n\n db.deleteUsers();\n\n // Launching the login activity\n Intent intent = new Intent(MainActivity.this, Login.class);\n startActivity(intent);\n finish();\n }", "private void logout() {\n fbAuth.signOut();\n startActivity(new Intent(getApplicationContext(), LoginActivity.class));\n finish();\n }", "public void logOut() {\n\t\t//Inform the database that the user want to log out\n\t\tdc.logOutPlayer(activity);\n\t\t\n\t\t/*\n\t\t * Call is made to StartActivity, which surely is in the bottom of activity-stack. Add a flag to clear stack\n\t\t * and from StartActivity a call is made to the Login screen and StartActivity is finished. By doing this we\n\t\t * assure that Login screen is at the bottom of the activity-stack and a press on back button, while placed \n\t\t * on Login screen, will result in that the application is closed\n\t\t */\n\t\tIntent intent = new Intent(activity, StartActivity.class);\n\t\tintent.putExtra(\"finish\", true);\n\t\tintent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n\t\tactivity.startActivity(intent);\n\t\tactivity.finish();\n\t}", "private void signOut () {\n\n //Normal account sign out\n mAuth.signOut();\n //Google account sign out\n mGoogleSignInClient.signOut();\n updateUI(\"Signed out\");\n //Can't open chat without non-empty accountEmail\n accountEmail = \"\";\n }", "public void logOutOnClick(View view)\n {\n Intent mainIntent = new Intent(SettingsActivity.this, AppLoginActivity.class);\n mainIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK);\n FirebaseAuth.getInstance().signOut();\n startActivity(mainIntent);\n finish();\n }", "private void logout() {\n\t\tParseUser.logOut();\n\n\t\t// Go to the login view\n\t\tstartLoginActivity();\n\t}", "private void signOut() {\n mGoogleSignInClient.signOut().addOnCompleteListener(this, new OnCompleteListener<Void>() {\n @Override\n public void onComplete(@NonNull Task<Void> task) {\n updateUI(null);\n }\n });\n }", "private void logout() {\n\t\tgetUI().get().navigate(\"login\");\r\n\t\tgetUI().get().getSession().close();\r\n\t}", "public Result logOut() {\n customerService().logout();\n return redirectToReturnUrl();\n }", "private void onSignOutConfirmed() {\n Login.logout(this, e -> {\n Toast.makeText(this, \"Logged out successfully\", Toast.LENGTH_SHORT).show();\n });\n\n Intent intent = new Intent(this, MainActivity.class);\n intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP); // add this flag so that we return to an existing MainActivity if it exists rather than creating a new one\n Login.setManualLogin(true);\n Login.forceLogin(); // force re-login so that when we sign-out we are brought to the login screen. Login.logout() occurs asynchronously so without calling this, we may not go to the login screen\n\n startActivity(intent);\n }", "private void signOut() {\n mGoogleSignInClient.signOut()\n .addOnCompleteListener(this, new OnCompleteListener<Void>() {\n @Override\n public void onComplete(@NonNull Task<Void> task) {\n // ...\n Log.d(TAG, \"Log out successful\");\n Toast.makeText(HomeView.this, \"Log out successful\", Toast.LENGTH_SHORT).show();\n Intent main = new Intent(HomeView.this, MainActivity.class);\n startActivity(main);\n finish();\n }\n });\n }", "public void logout() {\n updateToken(\"\");\n startActivity(new Intent(GarageListActivity.this, LoginScreenActivity.class));\n updateToken(\"\");\n finish();\n }", "private void logout() {\n ProgressDialog logoutProgressDialog = new ProgressDialog(ContributionsGalleryActivity.this);\n logoutProgressDialog.setMessage(getResources().getString(R.string.logging_out));\n logoutProgressDialog.setCancelable(false);\n logoutProgressDialog.show();\n ParseUser.logOutInBackground(e -> {\n logoutProgressDialog.dismiss();\n if (e != null) { // Logout has failed\n Snackbar.make(contributionsGalleryRelativeLayout, getResources().getString(R.string.logout_failed), Snackbar.LENGTH_LONG).show();\n }\n else { // Logout has succeeded\n goLoginSignupActivity();\n finish();\n }\n });\n }", "private void logout(){\n ParseUser.logOut();\n removeUserFromPrefs();\n Intent intent = LandingActivity.intent_factory(this);\n startActivity(intent);\n }", "private void logoutUser() {\n session.setLogin(false);\n\n db.deleteUsers();\n\n // Launching the login activity\n Intent intent = new Intent(Activity_Main.this, Activity_Login.class);\n startActivity(intent);\n finish();\n }", "@Override\n public void onClick(View v) {\n FirebaseAuth.getInstance().signOut();\n Intent signOutIntent = new Intent(ResultActivity.this,LoginActivity.class);\n startActivity(signOutIntent);\n finish();\n }", "protected void userLoggedOut() {\n\t\tRuvego.userLoggedOut();\n\t\tResultsActivityMenu.userLoggedOut();\n\t\tHistory.newItem(\"homePage\");\n\t}", "private void logoutUser() {\n session.setLogin(false);\n\n db.deleteUsers();\n\n // Launching the login activity\n Intent intent = new Intent(this, Login.class);\n startActivity(intent);\n finish();\n }", "public void onLogout() {\n ParseUser.logOut();\n\n promptForLogin();\n }", "void logout();", "void logout();", "protected void logout() {\n\t\tActiveUserModel userController = ActiveUserModel.getInstance();\n\t\tuserController.performLogout();\n\n\t\tIntent intent = new Intent(this, LoginActivity.class);\n\t\tstartActivityForResult(intent, LOGIN_ACTIVITY);\n\t}", "@Override\r\n public void onLogout() {\n Intent loginIntent = new Intent(CreateAccount.this, MainActivity.class);\r\n startActivity(loginIntent);\r\n finish();\r\n }", "public void logoutUser() {\n editor.remove(Is_Login).commit();\n editor.remove(Key_Name).commit();\n editor.remove(Key_Email).commit();\n editor.remove(KEY_CUSTOMERGROUP_ID).commit();\n // editor.clear();\n // editor.commit();\n // After logout redirect user to Loing Activity\n\n }", "private void logOut() {\n mApi.getSession().unlink();\n\n // Clear our stored keys\n clearKeys();\n // Change UI state to display logged out version\n setLoggedIn(false);\n }", "public void Logout() {\n \t\t\t\n \t\t}", "@Override\n public void onClick(View v) {\n googleSignInClient.signOut().addOnCompleteListener(new OnCompleteListener<Void>() {\n @Override\n public void onComplete(@NonNull Task<Void> task) {\n //On Succesfull signout we navigate the user back to LoginActivity\n Intent intent = new Intent(ProfileActivity.this, MainActivity.class);\n intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n startActivity(intent);\n }\n });\n }", "public void signOut(View view) {\n databaseManager.deleteAll();\n finish();\n }", "private void signOut(){\n Log.d(TAG, \"signOut: signing out\");\n FirebaseAuth.getInstance().signOut();\n }", "public static void logout() {\n click(MY_ACCOUNT_DROPDOWN);\n click(LOGOUT_BUTTON);\n }", "private void logoutHandler() {\n AlertDialog.Builder builder = new AlertDialog.Builder(context, android.R.style.Theme_DeviceDefault_Dialog);\n builder.setTitle(\"Logout?\");\n builder.setMessage(\"Are you sure you want to logout?\");\n builder.setPositiveButton(\"Yes\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n Util.setLoggedInFlag(false);\n\n HPIApp.getAppContext().stopService(new Intent(HPIApp.getAppContext(), StepService.class));\n\n Intent intent = new Intent(HomeActivity.this, SplashActivity.class);\n startActivity(intent);\n HomeActivity.this.finish();\n }\n });\n\n builder.setNegativeButton(\"Cancel\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n }\n });\n\n builder.show();\n }", "public void logout() {\n \n }", "private void onSignOutClicked() {\n mState.disableConnection();\n if (mState.googleApiClientIsConnected()) {\n mState.signOutGoogleGames();\n }\n\n // show sign-in button, hide the sign-out button\n status.setText(\"Login to submit your achievements!\");\n signIn.setVisibility(View.VISIBLE);\n signOut.setVisibility(View.GONE);\n achievements.setVisibility(View.GONE);\n palmares.setVisibility(View.GONE);\n mPhotoUser.setVisibility(View.GONE);\n }", "@When(\"^user should signout to exit from the loggedin page$\")\n\tpublic void user_should_signout_to_exit_from_the_loggedin_page() throws Throwable {\n\t\telementClick(pa.getAp().getLogout());\n\t\t\n\t \n\t}", "public void signOut(){\n MainActivity.signOut();\n\n //sign out of google and take back to MainActivity on success\n FirebaseAuth.getInstance().signOut();\n MainActivity.mGoogleSignInClient.signOut()\n .addOnCompleteListener(this, task -> {\n Intent intent = new Intent(this, MainActivity.class);\n startActivity(intent);\n });\n\n AuthUI.getInstance()\n .signOut(this)\n .addOnCompleteListener(new OnCompleteListener<Void>() {\n public void onComplete(@NonNull Task<Void> task) {\n // ...\n startActivity(new Intent(SettingsActivity.this, MainActivity.class));\n }\n });\n }", "@FXML\r\n private void handleButtonLogOut() {\r\n sessionContent.remove(\"activeId\");\r\n user = null;\r\n MobileApplication.getInstance().switchView(LOGIN_VIEW);\r\n }", "public void logout () {\n\t\tif (isLoggedIn()) {\n\t\t\tGPPSignIn.sharedInstance().signOut();\n\t\t\tGPGManager.sharedInstance().signOut();\n\t\t}\n\t}", "@Override\n public void onClick(View v) {\n googleSignInClient.signOut().addOnCompleteListener(new OnCompleteListener<Void>() {\n @Override\n public void onComplete(@NonNull Task<Void> task) {\n //On Succesfull signout we navigate the user back to LoginActivity\n Intent intent = new Intent(ProfileActivity.this,MainActivity.class);\n intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n startActivity(intent);\n }\n });\n }", "private void logoutUser() {\n\t\tsession.setLogin(false);\n\n\t\tdb.deleteUsers();\n\n\t\t// Launching the login activity\n\t\tIntent intent = new Intent(MainActivity.this, LoginActivity.class);\n\t\tstartActivity(intent);\n\t\tfinish();\n\t}", "public void signOut(){\n \n\t // click on the sign in/out drop down menu\n \t new WebDriverWait (DRIVER, 5)\n \t .until (ExpectedConditions.presenceOfElementLocated(signOutDropDownMenuLocator))\n \t .click();\n \t \n \t // click on the sign out link\n \t DRIVER.findElement(signOutLinkLocator).click();\n \t \n \t // wait for sign out to complete\n \t new WebDriverWait (DRIVER, 5).until(\n \t\t\t ExpectedConditions.visibilityOfElementLocated(navigationBarSignInLinkLocator));\n }", "public void logOut() {\n try {\n // getGlobalNavigation().clickSignOut();\n } catch (TimeoutException e) {\n Log.log(\"logOut\", \"page loads for more than 30 seconds\", true);\n }\n }", "public LoginPage logUserOut() {\n if (browser.findElements(By.id(LOGOUT_BUTTON_ID)).isEmpty()) {\n throw new RuntimeException(\"Cannot log the user out because the logout button is not visible. Is user logged in?\");\n }\n\n browser.findElement(By.id(LOGOUT_BUTTON_ID)).click();\n\n LoginPage shown = new LoginPage(browser);\n shown.waitUntilPageIsOpen();\n return shown;\n }", "@Override\n public void onBackPressed() {\n logoutDialog();\n }", "private void logout() {\n ((MyApplication)this.getApplication()).setLoggedIn(false);\n// Intent intent = new Intent(this, StartupActivity.class);\n// startActivity(intent);\n }", "public String logout() {\n String destination = \"/index?faces-redirect=true\";\n\n // FacesContext provides access to other container managed objects,\n // such as the HttpServletRequest object, which is needed to perform\n // the logout operation.\n FacesContext context = FacesContext.getCurrentInstance();\n HttpServletRequest request = \n (HttpServletRequest) context.getExternalContext().getRequest();\n\n try {\n // added May 12, 2014\n HttpSession session = request.getSession();\n session.invalidate();\n \n // this does not invalidate the session but does null out the user Principle\n request.logout();\n } catch (ServletException e) {\n log.log(Level.SEVERE, \"Failed to logout user!\", e);\n destination = \"/loginerror?faces-redirect=true\";\n }\n\n return destination; // go to destination\n }", "private void logoutUser() {\n session.setLogin(false);\n\n db.deleteUsers();\n\n // Launching the login activity\n Intent intent = new Intent(EscolhaProjeto.this, LoginActivity.class);\n startActivity(intent);\n finish();\n }", "public void onClickExit(View view) {\n BYPASS_LOGIN = false;\n\n //finish activity\n super.finish();\n\n //close all activities\n ActivityCompat.finishAffinity(this);\n\n //log out of google play services\n super.signOut();\n }", "private void logoutUser() {\n session.setLogin(false);\n\n db.deleteUsers();\n\n // Launching the login activity\n Intent intent = new Intent(getActivity(), LoginActivity.class);\n startActivity(intent);\n getActivity().finish();\n }", "@Override\n public void onClick(DialogInterface dialogInterface, int i) {\n FirebaseAuth.getInstance().signOut();\n startActivity(new Intent(MainActivity.this, Login.class));\n finish();\n }", "public void signOutOfDD()\n\t{\n\t\tclickAccountNameIcon();\n\t\tclickSignOutLink();\n\t\t\n\t}", "@Override\n public void onClick(View view) {\n if (view == buttonLogout) {\n firebaseAuth.signOut();\n finish();\n startActivity(new Intent(this, LoginActivity.class));\n }\n }", "public boolean signOut(String username);", "public static void Logout(){\n\t\tloginSystem();\r\n\t\t\r\n\t}", "public void onSignOut() {\n SharedPreferences userPrefs = PreferenceManager.getDefaultSharedPreferences(\n TBLoaderAppContext.getInstance());\n SharedPreferences.Editor editor = userPrefs.edit();\n editor.clear().apply();\n mTbSrnHelper = null;\n mUserPrograms = null;\n }", "public static Result logout() {\n session().clear();\n flash(\"success\", Messages.get(\"youve.been.logged.out\"));\n return GO_HOME;\n }", "private void logout() {\n\n\n GoogleSignInAccount account = GoogleSignIn.getLastSignedInAccount(context);\n //start home activity, when account is not null (user already signed in)\n if (account != null) {\n Log.d(\"LOGOUT\", \"Google Accoutn is not null\");\n if (mGoogleSignInClient != null) {\n mGoogleSignInClient.signOut()\n .addOnCompleteListener(getActivity(), new OnCompleteListener<Void>() {\n @Override\n public void onComplete(@NonNull Task<Void> task) {\n Log.d(\"LogoutButton\", \"You were Logged out succesfully\");\n //remove user id from preferences to indicate, that he is not logged in\n Preferences.saveUserId(context, null);\n\n //remove FCM token\n new Thread(new Runnable() {\n @Override\n public void run() {\n try {\n FirebaseInstanceId.getInstance().deleteInstanceId();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n }\n }).start();\n\n Intent intent = new Intent(context, LoginActivity.class);\n startActivity(intent);\n //remove home activity from stack\n getActivity().finish();\n }\n });\n }\n }\n }", "@Override\r\n\tpublic void onBackPressed() {\r\n\t\tsuper.onBackPressed();\r\n\t\tlogout();\r\n\t}", "private void Logout() {\n\n\t\tPreferenceUtil.getInstance(mContext).saveBoolean(\"exitApp\", true);\n\t\tPreferenceUtil.getInstance(mContext).clear();\n\t\tPreferenceUtil.getInstance(mContext).destroy();\n\n\t\tZganLoginService.toClearZganDB();\n\n\t\tstopService(new Intent(mContext, ZganPushService.class));\n\n\t\tsetContentView(R.layout.nullxml);\n\t\tfinish();\n\t\tandroid.os.Process.killProcess(android.os.Process.myPid());\n\n\t\tSystem.exit(0);\n\t}", "public void logout() {\n // Mengambil method clear untuk menghapus data Shared Preference\n editor.clear();\n // Mengeksekusi perintah clear\n editor.commit();\n // Membuat intent untuk berpindah halaman\n Intent intent = new Intent(context, LoginActivity.class);\n intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TASK);\n context.startActivity(intent);\n }", "@Override\n public void onClick(View v) {\n Log.d(\"prof\",\"log_out\");\n vibrations(1);\n logoutPopup();\n }", "public void logout(View view) {\n if (isNetworkAvailable()) {\n FirebaseAuth.getInstance().signOut();\n startActivity(new Intent(AllChannelListActivity.this, SignInActivity.class));\n finish();\n } else {\n\n Toast.makeText(AllChannelListActivity.this, \"To Log Out, Please Connect your Phone to Internet..\", Toast.LENGTH_SHORT).show();\n\n }\n }", "public void logOut() {\n\t\t// Close all opened windows and start up the App again\n\t\tcurrentUser = null;\n\t\tcurrentContact = null;\n\t\tjava.awt.Window win[] = java.awt.Window.getWindows();\n\t\tfor (int i = 0; i < win.length; i++) {\n\t\t\twin[i].dispose();\n\t\t}\n\t\tApp.main(null);\n\t}", "@Override\r\n public void onClick(View view) {\n new SignOut();\r\n\r\n // stop all services\r\n stopService(new Intent(MainActivity.this,UserDataChangeListener.class));\r\n stopService(new Intent(MainActivity.this,GeofenceService.class));\r\n stopService(new Intent(MainActivity.this,LocationService.class));\r\n\r\n // restart sign in\r\n Intent signIn = new Intent(MainActivity.this,SignIn.class);\r\n startActivity(signIn);\r\n finish();\r\n }", "public void logout(){\n SharedPreferences settings = mContext.getSharedPreferences(\"UserData\", 0);\n SharedPreferences.Editor preferencesEditor = settings.edit();\n preferencesEditor.clear();\n preferencesEditor.commit();\n // take user back to login screen\n Intent logoutIntent = new Intent(mContext, LoginActivity.class);\n logoutIntent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP | Intent.FLAG_ACTIVITY_NEW_TASK);\n mContext.startActivity(logoutIntent);\n }", "public void logOut(){\n Intent intent=new Intent( getApplicationContext(), Login.class );\n intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP | Intent.FLAG_ACTIVITY_CLEAR_TASK | Intent.FLAG_ACTIVITY_NEW_TASK);\n startActivity( intent );\n progressDialog.dismiss();\n finish();\n }", "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 String logout()\n \t{\n \t\t_session.remove(GlobalConstants.USER_KEY);\n\t\treturn \"home\";\n \t}", "public void logOut(View view) {\n Intent intent = new Intent(this, LoginActivity.class);\n startActivity(intent);\n }", "public String logout()\n\t{\n\t\tsession.remove(\"user_name\");\n\t\tsession.remove(\"password\");\n\t\tsession.clear();\n\t\tsession.invalidate();\t\n\t\taddActionMessage(\"You Have Been Successfully Logged Out\");\n\t\treturn SUCCESS;\n\t}", "public void logout() {\n\n if (WarehouseHelper.warehouse_reserv_context.getUser().getId() != null) {\n //Save authentication line in HisLogin table\n /*\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 \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 this.setVisible(false);\n }\n\n }", "public String logout(){\r\n this.user = null;\r\n loggedIn = false;\r\n return \"/index?faces-redirect=true\";\r\n }", "public void logout(){\n logger.debug(\"logout from the application\");\n driver.findElement(oLogout).click();\n new WebDriverWait(driver,10).until(\n ExpectedConditions.titleIs(\"Sign-on: Mercury Tours\"));\n\n }", "public void logout(){\n\t\t\n\t\tcurrentUser.logout();\n\t\tcurrentUser = null;\n\t\tchangeViewPort(new GUI_Logout(\"\", \"\", this));\n\t}", "public void btnLogout(View view) {\n actionButton.collapse();\n\n SetSharedPreference setSharedPreference = new SetSharedPreference(this);\n // signout from app.\n setSharedPreference.setBooleanLogin(getString(R.string.boolean_login_sharedPref), \"false\");\n\n Intent intent = new Intent(this, StartupActivity.class);\n intent.setFlags(Intent.FLAG_ACTIVITY_NO_HISTORY);\n intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TASK);\n intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n finish();\n startActivity(intent);\n\n }", "public void logout() {\n\t\tthis.setCurrentUser(null);\n\t\tthis.setUserLoggedIn(false);\t\t\n\t}", "private void signOut() {\n GoogleSignInOptions gso = new GoogleSignInOptions.Builder(GoogleSignInOptions.DEFAULT_SIGN_IN)\n .requestIdToken(getString(R.string.default_web_client_id))\n .requestEmail()\n .build();\n\n mGoogleSignInClient = GoogleSignIn.getClient(this, gso);\n mAuth = FirebaseAuth.getInstance();\n // Firebase sign out\n mAuth.signOut();\n\n // Google sign out\n mGoogleSignInClient.signOut();\n }", "private void takeUserToLoginScreenOnUnAuth() {\n Intent intent = new Intent(BaseActivity.this, LoginActivity.class);\n intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK);\n startActivity(intent);\n finish();\n }", "@Override\n\tpublic void logOutUser() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tdispose();\n\t\t\t\tUserHandler.logOut();\n\t\t\t}" ]
[ "0.81652063", "0.7885925", "0.78352374", "0.78282297", "0.78080386", "0.77976686", "0.7792312", "0.7736459", "0.7644917", "0.7630224", "0.7614687", "0.7607817", "0.75999504", "0.75796306", "0.7572777", "0.75560087", "0.7517625", "0.75135005", "0.75068414", "0.7497633", "0.74823904", "0.7480403", "0.747104", "0.7422814", "0.7419779", "0.74177355", "0.740398", "0.7398341", "0.736636", "0.73616815", "0.73605996", "0.73600596", "0.7359805", "0.735762", "0.7349599", "0.73380065", "0.73242533", "0.7321145", "0.73171467", "0.73117006", "0.7283675", "0.72770905", "0.72770905", "0.7244987", "0.723356", "0.72301406", "0.72299796", "0.72256553", "0.7221206", "0.7220434", "0.7211433", "0.7206041", "0.7205745", "0.7200158", "0.71936166", "0.71902764", "0.718717", "0.7179082", "0.7178845", "0.7177896", "0.7173968", "0.7165753", "0.716211", "0.71607506", "0.71578026", "0.7150843", "0.7141795", "0.7137618", "0.7136658", "0.712175", "0.7111737", "0.71002406", "0.7075265", "0.7071441", "0.707014", "0.7058985", "0.70481807", "0.70395046", "0.7034139", "0.70256263", "0.7024742", "0.70178306", "0.70050234", "0.70023715", "0.69791746", "0.69758046", "0.6973969", "0.69672865", "0.6966299", "0.69552153", "0.69528896", "0.6947794", "0.6947186", "0.6943357", "0.6940769", "0.6937184", "0.6922658", "0.6910117", "0.6902236", "0.6898384", "0.6887668" ]
0.0
-1
Goes back to the previous screen
public void back() throws IOException { Main.temp = 0; Stage primaryStage = Main.primaryStage; FXMLLoader loader = new FXMLLoader(); loader.setLocation(getClass().getResource("./GUI/endUserScreen.fxml")); Parent root = loader.load(); endUserScreenController eusc = loader.getController(); eusc.setValues(eu); primaryStage.setTitle("EndUser"); primaryStage.resizableProperty().setValue(Boolean.FALSE); primaryStage.setScene(new Scene(root, 800, 600)); primaryStage.show(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void back() {\n Views.goBack();\n }", "protected void goBack() {\r\n\t\tfinish();\r\n\t}", "public void back() {\n //noinspection ResultOfMethodCallIgnored\n previous();\n }", "public void back() {\n\t\tstate.back();\n\t}", "private void backToMenu() {\n game.setScreen(new StartScreen(game));\n }", "public void back()\n\t{\n\t\tdriver.findElementById(OR.getProperty(\"BackButton\")).click();\n\t}", "public void goBackToPreviousScene() {\n\n scenesSeen.pop();\n currentScene = scenesSeen.peek();\n\n this.window.setScene(currentScene.createAndReturnScene());\n }", "@Override\r\n\tpublic void onBackPressed() {\n\t\tgame.getController().undoLastMove();\r\n\t}", "private void backButton() {\n navigate.goPrev(this.getClass(), stage);\n }", "private void backToMenu()\n\t{\n\t\t//switch to menu screen\n\t\tgame.setScreen(new MenuScreen(game));\n\t}", "public static void goBack() {\n\t\tif (touchGUI.getTouchModel().getGuiModel().isDialogShown()) {\n\t\t\ttouchGUI.getTouchModel().getGuiModel().closeActiveDialog();\n\t\t} else {\n\t\t\t// else go to last view in history\n\t\t\tif (!appWidget.goBack()) {\n\t\t\t\t// if history is empty -> close app\n\t\t\t\tphoneGap.exitApp();\n\t\t\t}\n\t\t}\n\n\t\tlaf.updateUndoSaveButtons();\n\t\ttouchGUI.updateViewSizes();\n\t}", "public void navigateToBack() {\n WebDriverManager.getDriver().navigate().back();\n }", "@Override\n\tpublic void onBackPressed() {\n\t\tBack();\n\t}", "@Override\n\tpublic void onBackPressed() {\n\t\treturn;\n\t}", "public void GoBack(){\n if (prev_hostgui != null){\n this.setVisible(false);\n prev_hostgui.setVisible(true);\n } else{\n this.setVisible(false);\n prev_guestgui.setVisible(true);\n }\n }", "@Override\r\n\tpublic void onBackPressed() {\n\t\tfinish();\r\n\t}", "@Override\r\n\tpublic void onBackPressed() {\n\t\tfinish();\r\n\t}", "@Override\n\tpublic void onBackPressed()\n\t\t{\n\t\tbackPressed();\n\t\t}", "public void goBack(View view) {\n end();\n }", "@Override\n\tpublic void onBackPressed() {\n\n\t\tnavigatetoAppointmentsListingScreen(\"false\");\n\t}", "@Override\n\tpublic void onBackPressed() {\n\treturn;\n\t}", "public void GoBack(ActionEvent actionEvent) throws IOException\n {\n Main.backToMain();\n }", "public static void back() {\n driver.navigate().back();\n }", "public void goBack() {\n goBackBtn();\n }", "public void back() {\n driver.navigate().back();\n }", "public void goBack() {\n setEditor(currentEditor.getParentEditor());\n }", "@Override\n public void goBack() {\n\n }", "private void onBack(McPlayerInterface player, GuiSessionInterface session, ClickGuiInterface gui)\r\n {\r\n session.setNewPage(this.prevPage);\r\n }", "public void back()\r\n\t{\r\n\t\tparentPanel.setState(GameState.Menu);\r\n parentPanel.initScene(GameState.Menu);\r\n\t\t\t\r\n\t}", "public void goBack() throws IOException { DashboardController.dbc.loadHomeScene(); }", "@Override\n public void onBackPressed() {\n backToHome();\n }", "public synchronized void back ()\n\t// one move up\n\t{\n\t\tState = 1;\n\t\tgetinformation();\n\t\tgoback();\n\t\tshowinformation();\n\t\tcopy();\n\t}", "@Override\n public void onBackPressed() {\n Intent i = new Intent(StockAdjustmentList.this, ActivityHomeScreen.class);\n startActivity(i);\n i.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n startActivity(i);\n finish();\n }", "public void navigate_back() throws CheetahException {\n\t\ttry {\n\t\t\tCheetahEngine.getDriverInstance().navigate().back();\n\t\t} catch (Exception e) {\n\t\t\tthrow new CheetahException(e);\n\t\t}\n\t}", "public void back () {\r\n if (backHistory.size() > 1) {\r\n forwardHistory.addFirst(current);\r\n current = backHistory.getLast();\r\n backHistory.removeLast();\r\n }\r\n }", "public void onBackPressed() {\r\n \t\r\n \tScreen screen = this.getCurrentScreen();\r\n \tString screenName = screen.getClass().getName();\r\n \t\r\n \t// if we are \"inGame\"\r\n \tif (screenName.endsWith(\"GameScreen\")) {\r\n \t\t\r\n \t\tGameScreen gameScreen = (GameScreen)screen;\r\n \t\t\r\n \t\tif (gameScreen.demoParser != null) {\r\n \t\t\t\r\n \t\t\tthis.finish();\r\n \t \tthis.overridePendingTransition(0, 0);\r\n \t\t}\r\n \t\t\r\n \t\t// restart the race\r\n \t\telse if (gameScreen.map.inRace() || gameScreen.map.raceFinished()) {\r\n \t\t\r\n \t\t\tif (!gameScreen.map.inFinishSequence) {\r\n \t\t\t\t\r\n \t\t\t\tgameScreen.state = GameState.Running;\r\n \t\t\t\tgameScreen.map.restartRace(gameScreen.player);\r\n \t\t\t}\r\n \t\t\t\r\n \t\t// return to maps menu\r\n \t\t} else {\r\n \t\t\t\r\n \t\t\tthis.glView.queueEvent(new Runnable() {\r\n \r\n public void run() {\r\n \r\n \tRacesow.this.setScreen(new MapsScreen(Racesow.this));\r\n }\r\n });\r\n \t\t}\r\n \t\r\n \t// return to main menu\r\n \t} else if (screenName.endsWith(\"MapsScreen\")) {\r\n \t\t\r\n \t\t\tthis.glView.queueEvent(new Runnable() {\r\n \r\n public void run() {\r\n \r\n \tRacesow.this.setScreen(Racesow.this.getStartScreen());\r\n }\r\n });\r\n \t\r\n \t\t// quit the application\r\n \t} else if (screenName.endsWith(\"LoadingScreen\")) {\r\n \t\t\r\n \t\t// if no demo is loading we come from the mapsScreen\r\n \t\tif (((LoadingScreen)screen).demoFile == null) {\r\n \t\t\t\r\n \t\t\t\tthis.glView.queueEvent(new Runnable() {\r\n \t\r\n \t public void run() {\r\n \t \r\n \t \tRacesow.this.setScreen(new MapsScreen(Racesow.this));\r\n \t }\r\n \t });\r\n \t\t\t\r\n \t\t\t// if a demoFile is loading, quit the activity\r\n \t\t\t// as it was started additionally to the main instance.\r\n \t\t\t// will return to the previous activity = DemoList\r\n \t\t} else {\r\n \t\t\t\t\t\r\n \t\t\tthis.finish();\r\n \tthis.overridePendingTransition(0, 0);\r\n \t\t}\r\n \t\r\n \t\t// quit the application\r\n \t} else {\r\n \t\t\r\n \t\tthis.finish();\r\n \tthis.overridePendingTransition(0, 0);\r\n \t\r\n \tAudio.getInstance().stopThread();\r\n \t\r\n \t// If I decide to not kill the process anymore, don't\r\n \t// forget to restart the SoundThread and set this flag\r\n \t// LOOPER_PREPARED = false;\r\n \tProcess.killProcess(Process.myPid());\r\n \t}\r\n }", "@Override\n\tpublic void onBackPressed() {\n\t\tfinish();\n\t\tsuper.onBackPressed();\n\t}", "@Override\n\tpublic void onBackPressed() {\n\t\tfinish();\n\t\tsuper.onBackPressed();\n\t}", "@FXML\n void goBack(ActionEvent event) {\n \tWindowManager.goBack();\n }", "private void goBack() {\n Intent intent = new Intent(this, ReformTypeDetailActivity.class);\n intent.putExtra(Key.REFORM_TYPE_ID, mReformTypeId);\n intent.putExtra(Key.REFORM_TYPE_NAME, mReformType.getName());\n startActivity(intent);\n finish();\n }", "@Override\n\tpublic void onBackPressed() {\n\t\tmoveTaskToBack(false);\n\t}", "@Override\n\tpublic void onBackPressed() {\n\t\tsuper.onBackPressed();\n\t\treturn;\n\t}", "private void goBack() {\n View.clearViews();\n View.cambiar(\"operador.cliente\", new RegistrarClientes(operador));\n }", "@Override\n\tpublic void onBackPressed() {\n\t\tsuper.onBackPressed();\n\t\tfinish();\n\t}", "@Override\n\tpublic void onBackPressed() {\n\t\tsuper.onBackPressed();\n\t\tfinish();\n\t}", "@Override\n\tpublic void onBackPressed() {\n\t\tsuper.onBackPressed();\n\t\tfinish();\n\t}", "@Override\n\tpublic void onBackPressed() {\n\t\texitApplication().onClick(null);\n\t\tsuper.onBackPressed();\n\t}", "private void navBack() {\n Intent intent = new Intent(this, standard_home.class);\n startActivity(intent);\n }", "public void returnToPrev(){\r\n Stage stage = (Stage) exitButton.getScene().getWindow();\r\n stage.close();\r\n }", "public void back(){\n\t\tswitch(state){\n\t\tcase LOGINID:\n\t\t\tbreak; //do nothing, already at top menu\n\t\tcase LOGINPIN:\n\t\t\tloginMenu();\n\t\t\tbreak;\n\t\tcase TRANSACTION:\n\t\t\tbreak; //do nothing, user must enter the choice to log out\n\t\tcase DEPOSIT:\n\t\t\ttransactionMenu();\n\t\t\tbreak;\n\t\tcase DEPOSITNOTIFICATION:\n\t\t\tbreak; //do nothing, user must press ok\n\t\tcase WITHDRAW:\n\t\t\ttransactionMenu();\n\t\t\tbreak;\n\t\tcase BALANCE:\n\t\t\tbreak; //do nothing, user must press ok\n\t\tcase WITHDRAWALNOTIFICATION:\n\t\t\tbreak; //do onthing, user must press ok\n\t\t}\n\t\t\n\t\tcurrentInput = \"\";\n\t}", "public void onBackPressed() {\n backbutton();\n }", "@Override\n public void onBackPressed() {\n\n finish();\n }", "@Override\n public void onBackPressed() {\n return;\n }", "@Override\n public void onBackPressed() {\n return;\n }", "@Override\n public void onBackPressed() {\n return;\n }", "@Override\n public void onBackPressed() {\n return;\n }", "public static void previous() {\n\t\tsendMessage(PREVIOUS_COMMAND);\n\t}", "@Override\n\tpublic void goToBack() {\n\t\tif(uiHomePrestamo!=null){\n\t\tuiHomePrestamo.getHeader().getLblTitulo().setText(constants.prestamos());\n\t\tuiHomePrestamo.getHeader().setVisibleBtnMenu(true);\n\t\tuiHomePrestamo.getContainer().showWidget(1);\n\t\t}else if(uiHomeCobrador!=null){\t\t\t\t\t\t\t\t\t\t\t\n\t\t\tuiHomeCobrador.getContainer().showWidget(2);\n\t\t\tuiHomeCobrador.getUiClienteImpl().cargarClientesAsignados();\n\t\t\tuiHomeCobrador.getUiClienteImpl().reloadTitleCobrador();\n\t\t}\n\t}", "@Override\n\tpublic void onBackPressed() {\n\t\tsuper.onBackPressed();\n\t\t finish();\n\t}", "@Override\n\tpublic void onBackPressed() {\n\t\tthis.finish();\n\t\tsuper.onBackPressed();\n\t}", "@Override\n public void onBackPressed() {\n this.finish();\n }", "@Override\n public void onBackPressed() {\n return;\n }", "@Override\n\tpublic void onBackPressed() {\n\t\tsuper.onBackPressed();\n\t\tthis.finish();\n\t}", "private void backButtonAction() {\n CurrentUI.changeScene(SceneNames.LOGIN);\n }", "public void goBack(View view) {\n updateMortgage();\n this.finish(); //this ends the 2nd activity, thus taking you back where you came from\n }", "@Override\n public void onBackPressed() {\n finish();\n }", "@Override\n public void onBackPressed() {\n finish();\n }", "@Override\n public void onBackPressed() {\n finish();\n }", "@Override\n public void onBackPressed() {\n finish();\n }", "@Override\n public void onBackPressed() {\n finish();\n }", "@Override\n public void onBackPressed() {\n finish();\n }", "@Override\n public void onBackPressed() {\n finish();\n }", "@Override\n public void onBackPressed() {\n replaceUseCase(meetingManager);\n replaceUseCase(traderManager);\n super.onBackPressed();\n }", "private void backPage()\n {\n page--;\n open();\n }", "default public void clickBack() {\n\t\tclickMenu();\n\t}", "@Override\r\n\tpublic void onBackPressed() {\n\t\tsuper.onBackPressed();\r\n\t\tdoBack();\r\n\t}", "void onGoBackButtonClick();", "@Override\n\tpublic void onBackPressed() {\n\t\t\n\t}", "@Override\n public void onBackPressed() {\n super.onBackPressed();\n LessonService.disableToRestoreState();\n }", "public void backButtonClicked(ActionEvent actionEvent) {\n Stage current = (Stage) locationName.getScene().getWindow();\n\n current.setScene(getPreviousScreen());\n }", "public void back(){\n\t\tIntent mainIntent = new Intent().setClass(DatosAuto.this, BuscaPlacaTexto.class);\n\t\tstartActivity(mainIntent);\n\t\tpager=null;\n\t\tDatosAuto.this.finish();\n\t\tDialogos.Toast(DatosAuto.this, getResources().getString(R.string.mapa_inicio_de_viaje_no_tomado), Toast.LENGTH_LONG);\n\t\tsuper.onBackPressed();\n\t}", "@Override\n public void onBackPressed() {\n exitReveal();\n\n super.onBackPressed();\n }", "@Override\n public void onBackPressed() {\n chamarTelaInicial(status_recreate);\n }", "public boolean goBack() {\n if (historyStack.size() > 0) {\n switchToScreen(historyStack.pop(), true, lastTransition != null ? lastTransition : TransitionAnimation.getTransition(TransitionAnimationType.RIGHT_TO_LEFT));\n return true;\n }\n return false;\n }", "public void backToMenu() {\n\t\tcurrentGameGraphics.setVisible(false);\n\t\tcurrentGameGraphics = null;\n\t\tgameScreen.setVisible(true);\n\t}", "@Override\n\tpublic void onBackPressed() {\n\t\tIntent intent = new Intent(GameModeActivity.this, MenuActivity.class);\n\t\tstartActivity(intent);\n\t\tfinish();\n\t\tsuper.onBackPressed();\n\t}", "public static void navigateBack() {\n\t\tLOG.info(\"Navigate to back page from current page.\");\n\t\tConstants.driver.navigate().back();\n\n\t}", "public void goBack(View view){\n this.finish();\n }", "@Override\r\n\tpublic void onBackPressed() {\n\t\tbackButtonHandler();\r\n\t\treturn;\r\n\t}", "@Override\r\n\tpublic void onBackPressed() {\n\t\tsuper.onBackPressed();\r\n\t}", "@Override\r\n\tpublic void onBackPressed() {\n\t\tsuper.onBackPressed();\r\n\t}", "@Override\n protected boolean canGoBack() {\n return false;\n }", "@Override\n public void onBackPressed() {\n this.moveTaskToBack(true);\n }", "@Override\n public void onBackPressed() {\n super.onBackPressed();\n this.finish();\n }", "@Override\n public void onBackPressed() {\n super.onBackPressed();\n this.finish();\n }", "public void back(View view) {\r\n\t\tfinish();\r\n\t}", "@Override\n public void onBackPressed() {\n super.onBackPressed();\n finish();\n }", "public void goBack(View view) {\n this.finish();\n }", "protected void navigateBack() {\n getActivity().finish();\n ActivityTransition transition = ActivityTransition.BACK;\n getActivity().overridePendingTransition(transition.getEnter(), transition.getExit());\n }", "public void onBack(ActionEvent event) {\n try {\n Parent root = FXMLLoader.load(getClass().getResource(\"/Screens/playerScreen.fxml\"));\n Stage sourceStage = (Stage) ((Node) event.getSource()).getScene().getWindow();\n Scene scene = new Scene(root);\n sourceStage.setScene(scene);\n } catch (IOException e) {\n System.out.println(\"Error loading Previous Screen\" + e.getMessage());\n }\n }", "@Override\n public void onBackPressed() {\n finish();\n\n }" ]
[ "0.8393929", "0.81174064", "0.799495", "0.791581", "0.7910743", "0.79004973", "0.78970295", "0.7877789", "0.78755414", "0.7851774", "0.783735", "0.77750564", "0.7704272", "0.7629812", "0.7612728", "0.7610402", "0.7610402", "0.761012", "0.7572533", "0.7571296", "0.75593656", "0.7549947", "0.75477177", "0.7546758", "0.7512531", "0.75028664", "0.74906546", "0.7486973", "0.7480881", "0.74723494", "0.74699235", "0.74463975", "0.74360865", "0.7426625", "0.7425336", "0.74079925", "0.74058926", "0.74058926", "0.7400786", "0.7384568", "0.73792845", "0.73723465", "0.73679906", "0.7367815", "0.7367815", "0.7367815", "0.7360751", "0.7347224", "0.7337598", "0.7336809", "0.733406", "0.7333915", "0.73326975", "0.73326975", "0.73326975", "0.73326975", "0.732636", "0.7319881", "0.73183775", "0.73142785", "0.73095274", "0.7286907", "0.72763103", "0.7275929", "0.72698504", "0.72618806", "0.72618806", "0.72618806", "0.72618806", "0.72618806", "0.72618806", "0.72618806", "0.72517896", "0.7250181", "0.7249254", "0.7246014", "0.7236356", "0.7232734", "0.7218353", "0.72132313", "0.7212897", "0.7209645", "0.7209093", "0.7198812", "0.71973264", "0.719431", "0.7187588", "0.71865463", "0.71863985", "0.7179706", "0.7179706", "0.7179423", "0.7178146", "0.7173246", "0.7173246", "0.7165474", "0.71603566", "0.71587735", "0.7157923", "0.71578354", "0.7153575" ]
0.0
-1
Stores the result of the game to be returned later
public Game() { mDeck = new Deck(); mDealer = new Dealer(mDeck.getCard(), mDeck.getCard()); //dealer gets a random value card twice to initialise the dealers hand with 2 cards mUser = new User(); giveCard(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void finalResult() {\n ConnectionSockets.getInstance().sendMessage(Integer.toString(points)+\"\\n\");\n System.out.println(\"escreveu para o oponente\");\n opponentPoints = Integer.parseInt(ConnectionSockets.getInstance().receiveMessage());\n System.out.println(\"leu do oponente\");\n if(points != opponentPoints) {\n if (points > opponentPoints) {// Won\n MatchController.getInstance().getSets().add(1);\n MatchController.getInstance().increaseSet();\n } else { //Lost\n MatchController.getInstance().getSets().add(0);\n MatchController.getInstance().increaseSet();\n }\n }\n }", "private void rememberGame(char result) {\n\n char playerPiece = game.getPlayer() == 0 ? 'H' : 'A';\n\n if (result == playerPiece) {\n wins++;\n } else if (result == 'T') {\n ties++;\n } else {\n losses++;\n }\n\n // Loop through the short term memory and add each memory to the long term memory\n for (String memory : shortTermMemory) {\n\n BoardRecord boardRecord = longTermMemory.get(memory);\n\n //Board found in long term memory\n if (boardRecord != null) {\n //Win\n if (result == playerPiece) {\n boardRecord.setWins(boardRecord.getWins() + 1);\n }\n //Tie\n else if (result == 'T') {\n boardRecord.setTies(boardRecord.getTies() + 1);\n }\n //Lose\n else {\n boardRecord.setLosses(boardRecord.getLosses() + 1);\n }\n }\n // New board configuration\n else {\n\n //Win\n if (result == playerPiece) {\n boardRecord = new BoardRecord(1, 0, 0);\n }\n //Tie\n else if (result == 'T') {\n boardRecord = new BoardRecord(0, 1, 0);\n }\n //Lose\n else {\n boardRecord = new BoardRecord(0, 0, 1);\n }\n\n longTermMemory.put(memory, boardRecord);\n }\n }\n\n // Reset the short term memory after each game\n shortTermMemory = new ArrayList<>();\n }", "public static void saveResult (GameType type, GameResult result) {\n Results resultsToUpdate;\n\n if (type == GameType.PVP) {\n resultsToUpdate = humanVsHuman;\n } else if (type == GameType.PVB) {\n resultsToUpdate = humanVsBot;\n } else if (type == GameType.BVP) {\n resultsToUpdate = botVsHuman;\n } else {\n resultsToUpdate = botVsBot;\n }\n\n if (result == GameResult.X_WON) {\n resultsToUpdate.XWins++;\n } else if (result == GameResult.O_WON) {\n resultsToUpdate.OWins++;\n } else {\n resultsToUpdate.draws++;\n }\n }", "protected void processMyGameResult(int gameNumber, boolean becomesExamined, String gameResultCode, String scoreString, String descriptionString) {\n Game game = tournamentService.findGame(gameNumber);\n if (game == null) {\n return;\n }\n /* Subtract USCL-Bot itself */\n int observerCount = game.observerCountMax - 1;\n boolean adjourned = (descriptionString.indexOf(\"adjourn\") >= 0);\n if (adjourned) {\n game.status = GameState.ADJOURNED;\n } else if (\"0-1\".equals(scoreString)) {\n game.status = GameState.BLACK_WINS;\n } else if (\"1-0\".equals(scoreString)) {\n game.status = GameState.WHITE_WINS;\n } else if (\"1/2-1/2\".equals(scoreString)) {\n game.status = GameState.DRAW;\n } else if (\"aborted\".equals(scoreString)) {\n game.status = GameState.NOT_STARTED;\n } else {\n game.status = GameState.UNKNOWN;\n alertManagers(\"Error: unexpected game status \\\"{0}\\\": {1}\", gameResultCode, scoreString);\n }\n tournamentService.updateGameStatus(game, game.status);\n if (game.status.isFinished()) {\n String whiteName = game.whitePlayer.getPreTitledHandle(USCL_RATING);\n String blackName = game.blackPlayer.getPreTitledHandle(USCL_RATING);\n String libraryHandle = settingsService.getLibraryHandle();\n int librarySlot = settingsService.getAndIncrementNextLibrarySlot();\n String examineCommand = String.format(\"examine %s %%%d\", libraryHandle, librarySlot);\n command.spoof(libraryHandle, \"libsave {0} -1 %{1}\", game.whitePlayer.getHandle(), librarySlot);\n QEvent.event(game.eventSlot)\n .description(\"%-4s %s - %s\", game.status, whiteName, blackName)\n .addJoinCommand(examineCommand)\n .allowGuests(true)\n .send(command);\n tellEventChannelsAndManagers(\"{0} vs {1}: \\\"{2}\\\" : {3} ({4} observers)\", game.whitePlayer,\n game.blackPlayer, examineCommand, descriptionString, observerCount);\n command.spoof(monitorRole, \"-notify {0}\", game.whitePlayer);\n command.spoof(monitorRole, \"-notify {0}\", game.blackPlayer);\n } else {\n tellEventChannels(\"{0} vs {1}: {2} ({3} observers)\", game.whitePlayer, game.blackPlayer, descriptionString, observerCount);\n }\n if (!adjourned) {\n command.sendCommand(\"qset {0} isolated 0\", game.whitePlayer);\n command.sendCommand(\"qset {0} isolated 0\", game.blackPlayer);\n command.sendAdminCommand(\"-kmuzzle {0}\", game.whitePlayer);\n command.sendAdminCommand(\"-kmuzzle {0}\", game.blackPlayer);\n }\n tournamentService.flush();\n }", "private void result(String result) {\n\n Log.d(LOG_TAG, \"result method\");\n setInfo(result + \"\\n НОВАЯ ИГРА\" + \"\\n побед первого игрока =\" + winsOfPlayerOne + \"\\n побед второго игрока:\" + winsOfPlayerTwo);\n enableAllButtons(false);\n startNewGame();\n Toast.makeText(this, \"Игра окончена\", Toast.LENGTH_LONG).show();\n\n }", "public void calculateResult() {\n\t\tfor (GameEngineCallback callback : callbacks) {\n\t\t\t// Roll for house\n\t\t\tthis.rollHouse(INITIAL_DELAY, FINAL_DELAY, DELAY_INCREMENT);\n\t\t\t\n\t\t\tfor (Player player : this.players.values()) {\n\t\t\t\t// Players who are playing must have a bet and a score\n\t\t\t\t// This conditional may not be required in Assignment 2\n\t\t\t\tif (player.getBet() > 0 && player.getRollResult()\n\t\t\t\t\t\t.getTotalScore() > 0) {\n\t\t\t\t\t// Compare rolls, set result and add/subtract points\n\t\t\t\t\tif (this.houseDice.getTotalScore() > player.\n\t\t\t\t\t\t\tgetRollResult().getTotalScore()) {\n\t\t\t\t\t\tGameStatus status = GameEngine.GameStatus.LOST;\t\t\t\t\t\n\t\t\t\t\t\tplayer.setGameResult(status);\n\t\t\t\t\t\t\n\t\t\t\t\t\t// Subtract bet from player points\n\t\t\t\t\t\tint points = player.getPoints() - player.getBet();\n\t\t\t\t\t\tthis.setPlayerPoints(player, points);\n\t\t\t\t\t}\n\t\t\t\t\telse if (houseDice.getTotalScore() == player.\n\t\t\t\t\t\t\tgetRollResult().getTotalScore()) {\n\t\t\t\t\t\tGameStatus status = GameEngine.GameStatus.DREW;\t\t\t\t\t\n\t\t\t\t\t\tplayer.setGameResult(status);\n\t\t\t\t\t\t\n\t\t\t\t\t\t// No change to points on a draw\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tGameStatus status = GameEngine.GameStatus.WON;\t\t\t\t\t\n\t\t\t\t\t\tplayer.setGameResult(status);\n\t\t\t\t\t\t\n\t\t\t\t\t\t// Add bet to player points\n\t\t\t\t\t\tint points = player.getPoints() + player.getBet();\n\t\t\t\t\t\tthis.setPlayerPoints(player, points);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t// Display result\n\t\t\t\t\tcallback.gameResult(this.getPlayer(player.getPlayerId()), \n\t\t\t\t\t\t\tthis.getPlayer(player.getPlayerId()).getGameResult(), this);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "private void doMatch() {\n // Remember how many games in this session\n mGameCounter++;\n\n PebbleDictionary resultDict = new PebbleDictionary();\n\n switch (mChoice) {\n case Keys.CHOICE_ROCK:\n switch(mP2Choice) {\n case Keys.CHOICE_ROCK:\n mInstructionView.setText(\"It's a tie!\");\n resultDict.addInt32(Keys.KEY_RESULT, Keys.RESULT_TIE);\n break;\n case Keys.CHOICE_PAPER:\n mInstructionView.setText(\"You lose!\");\n resultDict.addInt32(Keys.KEY_RESULT, Keys.RESULT_WIN); // Inform Pebble of opposite result\n break;\n case Keys.CHOICE_SCISSORS:\n mWinCounter++;\n mInstructionView.setText(\"You win! (\" + mWinCounter + \" of \" + mGameCounter + \")\");\n resultDict.addInt32(Keys.KEY_RESULT, Keys.RESULT_LOSE);\n break;\n }\n break;\n case Keys.CHOICE_PAPER:\n switch(mP2Choice) {\n case Keys.CHOICE_ROCK:\n mWinCounter++;\n mInstructionView.setText(\"You win! (\" + mWinCounter + \" of \" + mGameCounter + \")\");\n resultDict.addInt32(Keys.KEY_RESULT, Keys.RESULT_LOSE);\n break;\n case Keys.CHOICE_PAPER:\n mInstructionView.setText(\"It's a tie!\");\n resultDict.addInt32(Keys.KEY_RESULT, Keys.RESULT_TIE);\n break;\n case Keys.CHOICE_SCISSORS:\n mInstructionView.setText(\"You lose!\");\n resultDict.addInt32(Keys.KEY_RESULT, Keys.RESULT_WIN);\n break;\n }\n break;\n case Keys.CHOICE_SCISSORS:\n switch(mP2Choice) {\n case Keys.CHOICE_ROCK:\n mInstructionView.setText(\"You lose!\");\n resultDict.addInt32(Keys.KEY_RESULT, Keys.RESULT_WIN);\n break;\n case Keys.CHOICE_PAPER:\n mWinCounter++;\n mInstructionView.setText(\"You win! (\" + mWinCounter + \" of \" + mGameCounter + \")\");\n resultDict.addInt32(Keys.KEY_RESULT, Keys.RESULT_LOSE);\n break;\n case Keys.CHOICE_SCISSORS:\n mInstructionView.setText(\"It's a tie!\");\n resultDict.addInt32(Keys.KEY_RESULT, Keys.RESULT_TIE);\n break;\n }\n break;\n }\n\n // Inform Pebble of result\n PebbleKit.sendDataToPebble(getApplicationContext(), APP_UUID, resultDict);\n\n // Finally reset both\n mChoice = Keys.CHOICE_WAITING;\n mP2Choice = Keys.CHOICE_WAITING;\n\n // Leave announcement for 5 seconds\n mHandler.postDelayed(new Runnable() {\n\n @Override\n public void run() {\n updateUI();\n }\n\n }, 5000);\n }", "@Override\r\n\tpublic Object execute() {\n\t\tgameState.endGame();\r\n\t\tObject[] r=gameState.getGameData();\r\n\t\treturn r;\r\n\t}", "public String getGameResults(){\n \treturn this.gameResults;\n }", "public void checkResult(){\n\t\tif(throwNum == 0){\n\t\t\tthis.firstThrow = this.sumOfDice;\n\t\t}\n\n\t\tif((this.sumOfDice == 7 || this.sumOfDice==11) && throwNum==0){\n\t\t\tthis.game = gameStatus.WON;\n\t\t}\n\t\telse if(this.sumOfDice ==2 || this.sumOfDice== 3 ||this.sumOfDice==12){\n\t\t\tthis.game = gameStatus.LOST;\n\t\t}\n\t\telse if((this.game == gameStatus.CONTINUE && this.sumOfDice == 7)){\n\t\t\tthis.game = gameStatus.LOST;\n\t\t}\n\t\telse if((this.sumOfDice== this.firstThrow) && throwNum!=0){\n\t\t\tthis.game = gameStatus.WON;\n\t\t}\n\t\telse{\n\t\t\tthis.game = gameStatus.CONTINUE;\n\t\t}\n\t}", "void computeResult() {\n // Get the winner (null if draw).\n roundWinner = compareTopCards();\n\n\n if (roundWinner == null) {\n logger.log(\"Round winner: Draw\");\n logger.log(divider);\n // Increment statistic.\n numDraws++;\n\n } else {\n logger.log(\"Round winner: \" + roundWinner.getName());\n\t logger.log(divider);\n this.gameWinner = roundWinner;\n if (roundWinner.getIsHuman()) {\n // Increment statistic.\n humanWonRounds++;\n }\n }\n\n setGameState(GameState.ROUND_RESULT_COMPUTED);\n }", "public void returnResult() {\n\t\tSystem.out.printf(\"Result of your Numbers are: %d\", result());\n\t}", "@Override\n public synchronized void postWinner(char result) {\n rememberGame(result);\n\n //Increase the heat (decrease randomness) as more games are played\n if (heat < heatMax && gamesPlayed % 50 == 0) heat++;\n\n gamesPlayed++;\n game = null; // No longer playing a game though.\n }", "public void finishGame() {\r\n gameFinished = true;\r\n }", "public static void checkResult() {\n\t\tint sum = PlayerBean.PLAYERONE - PlayerBean.PLAYERTWO;\n\n\t\tif (sum == 1 || sum == -2) {\n\t\t\tScoreBean.addWin();\n\t\t\tresult = \"player one wins\";\n\t\t} else {\n\t\t\tScoreBean.addLoss();\n\t\t\tresult = \"player two wins\";\n\t\t}\n\t}", "public void onFinish() {\r\n Intent endGame = new Intent(getApplicationContext(),Results.class);\r\n endGame.putExtra(\"finalScore\", textViewCurrent.getText().toString());\r\n endGame.putExtra(\"mistakes\",wrongScans);\r\n endGame.putExtra(\"totalScans\",totalScans);\r\n startActivity(endGame);\r\n }", "public GameState(){\n this.gameResults = \"\";\n initVars();\n this.theme = DEFAULT_THEME;\n this.board = new Board(DEFAULT_BOARD);\n createSetOfPlayers(DEFAULT_PLAYERS, DEFAULT_AUTOPLAYER, DEFAULT_AUTOMODE);\n }", "public void saveResults();", "void gameFinished();", "public void printResult(int result) {\n String message = \"\";\n switch (result) {\n case BattleshipGame.RESULT_HIT:\n message = \"Hit!\";\n break;\n case BattleshipGame.RESULT_MISS:\n message = \"Miss!\";\n break;\n case BattleshipGame.RESULT_SUNK:\n message = \"Sink!\";\n break;\n default:\n message = \"Invalid move!\";\n }\n System.out.println(message);\n }", "public void onSuccess(Object result) {\n\t\t\t\tTrumpSession r;\n\t\t\t\ttry {\n\t\t\t\t\t r =(TrumpSession) result;\n\t\t\t\t\t _session.setPlayer(r.getPlayer());\n\t\t\t\t\t _session.setPlayerStack(r.getPlayerStack());\n\t\t\t\t\t \n\t\t\t\t\t fireEvent(new RootControllerEvent(RootControllerEvent.CREATEGAME));\n\t\t\t\t} catch (NullPointerException e) {\n\t\t\t\t \t//fireEvent(new RootControllerEvent(RootControllerEvent.RPCERROR));\n\t\t\t\t\t RootPanel.get(\"mainPanel\").clear();\n\t\t\t\t\t RootPanel.get(\"mainPanel\").add(new HTML(\"error\"));\n\t\t\t\t}\n\t\t\t}", "public void decideResult() {\n\t\t\n\t\tif (mUser.getHandValue() < 22 && mUser.getHandValue() > mDealer.getHandValue()) {\n\t\t\tmResult = \"win\";\n\t\t}else if(mUser.getHandValue() < 22 && mUser.getHandValue() == mDealer.getHandValue()) {\n\t\t\tmResult = \"draw\";\n\t\t}else {\n\t\t\tmResult = \"lose\";\n\t\t}\n\t\t\n\t}", "@Override\n public void gameOver(Result result, Move lastMove) {\n }", "private void saveResult() {\n\t\tBuild newBuild = assembleBuild();\n\t\t\n\t\t// last minute sanity checking on user's input before we write it to the database\n\t\tif (newBuild.getName() == null || newBuild.getName().matches(\"\")) {\n\t\t\t// TODO generate one automatically (Untitled Build #1...)\n\t\t\tshowMessage(R.string.edit_build_no_title_error);\n\t\t\treturn;\n\t\t}\n\t\tif (!newBuild.isWellOrdered()) {\n\t\t\tshowMessage(R.string.edit_build_not_well_ordered_error);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tlong buildId = -1;\n\t\tif (mCreatingNewBuild) {\n\t\t\t// set creation time\n\t\t\tDate now = new Date();\n\t\t\tnewBuild.setCreated(now);\n\t\t\tnewBuild.setModified(now);\n\t\t} else {\n\t\t\tif (userMadeChanges(newBuild)) {\n\t\t\t\t// set last modified time\n\t\t\t\tnewBuild.setModified(new Date());\t// current time\n\t\t\t\t\n\t\t\t\tbuildId = mBuildId;\n\t\t\t} else {\n\t\t\t\tfinish();\t// no changes made, just finish\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\t\n\t\t// finishes activity if successful\n\t\tnew WriteBuildTask(newBuild, buildId).execute();\n\t}", "public void presentAndStoreResults() {\n int index = trial - 1;\n String transcribedString = transcribed.getText().toString();\n\n StringBuilder result = new StringBuilder(\"Thank you!\\n\\n\");\n result.append(String.format(\"Presented...\\n %s\\n\", phrase));\n result.append(String.format(\"Transcribed...\\n %s\\n\", transcribedString));\n\n float t = (elapsedTime / 1000f);\n result.append(String.format(\"You took %.2f seconds\\n\", t));\n times[index] = t;\n\n float w = wpm(phrase, elapsedTime);\n result.append(String.format(Locale.CANADA, \"Entry speed: %.2f wpm\\n\", w));\n wpmScores[index] = w;\n\n MSD errors = new MSD(phrase, transcribedString);\n float e = (float)errors.getErrorRate();\n result.append(String.format(Locale.CANADA, \"Error rate: %.2f%%\\n\", e));\n errorRates[index] = e;\n\n showResultsDialog(result.toString());\n }", "public String getGameOutcome() {\n return gameOutcome;\n }", "public void returnGame () throws ParseException { //ParseE: must be here for the parse method to run\n long days = daysBetween();\n ModelGame game = findGameById();\n game.setAvailable(true);\n printTotalRentFee(days, game.getDailyRentFee());\n totalRent = totalRent + (days * game.getDailyRentFee());\n }", "private void announceRoundResult()\n {\n // Last actions of each player, to compare\n GameAction fpAction = firstPlayer.getLastAction();\n GameAction spAction = secondPlayer.getLastAction();\n\n // Display first IA game\n if (!hasHuman)\n {\n if (fpAction instanceof RockAction)\n {\n animateSelectedButton(firstPlayerRock, true);\n }\n else if (fpAction instanceof PaperAction)\n {\n animateSelectedButton(firstPlayerPaper, true);\n }\n else if (fpAction instanceof ScissorsAction)\n {\n animateSelectedButton(firstPlayerScissors, true);\n }\n }\n // Display second IA game\n if (spAction instanceof RockAction)\n {\n animateSelectedButton(secondPlayerRock, false);\n }\n else if (spAction instanceof PaperAction)\n {\n animateSelectedButton(secondPlayerPaper, false);\n }\n else if (spAction instanceof ScissorsAction)\n {\n animateSelectedButton(secondPlayerScissors, false);\n }\n\n\n // First player has played something ==> look at result\n if (firstPlayer.hasAlreadyPlayed())\n {\n switch (fpAction.versus(spAction))\n {\n case WIN:\n updateResultIcons(true, false);\n break;\n case DRAW:\n updateResultIcons(false, true);\n break;\n case LOSE:\n updateResultIcons(false, false);\n break;\n }\n }\n // First player didn't play ==> draw or loose\n else\n {\n // Draw\n if (!secondPlayer.hasAlreadyPlayed())\n {\n updateResultIcons(false, true);\n }\n // Lose\n else\n {\n updateResultIcons(false, false);\n }\n }\n }", "public GameResults runGame() {\n\n initializeGame();\n gameLoop();\n return new GameResults(decideWinner());\n }", "public void tellPlayerResult(int winner) {\n\t}", "protected SimulatorValue giveResult() {\n\tthis.evalExpression();\n\treturn value;\n }", "@Override\r\n public void printResult(IPlayer player1, IPlayer player2, int [] result){\r\n Alert alert = new Alert(Alert.AlertType.INFORMATION);\r\n alert.setTitle(\"End of the game!\");\r\n alert.setHeaderText(\"The game has ended.\");\r\n alert.setContentText(\"It was a draw..\");\r\n\r\n alert.showAndWait();\r\n }", "void finishMatch() {\n\t\tint playerResult = ParticipantResult.MATCH_RESULT_NONE;\n\t\tint opponentResult = ParticipantResult.MATCH_RESULT_NONE;\n\n\t\tif (!GameActivity.gameMachine.player.isAlive()) {\n\t\t\tLayoutHelper.showResult(resultTextView, false);\n\t\t\tplayerResult = ParticipantResult.MATCH_RESULT_LOSS;\n\t\t\topponentResult = ParticipantResult.MATCH_RESULT_WIN;\n\t\t} else if (!GameActivity.gameMachine.opponent.isAlive()) {\n\t\t\tLayoutHelper.showResult(resultTextView, true);\n\t\t\tplayerResult = ParticipantResult.MATCH_RESULT_WIN;\n\t\t\topponentResult = ParticipantResult.MATCH_RESULT_LOSS;\n\t\t}\n\n\t\tArrayList<ParticipantResult> results = new ArrayList<ParticipantResult>();\n\n\t\tresults.add(new ParticipantResult(GPGHelper.getMyId(\n\t\t\t\tgameHelper.getApiClient(), match), playerResult,\n\t\t\t\tParticipantResult.PLACING_UNINITIALIZED));\n\n\t\tresults.add(new ParticipantResult(GPGHelper.getOpponentId(\n\t\t\t\tgameHelper.getApiClient(), match), opponentResult,\n\t\t\t\tParticipantResult.PLACING_UNINITIALIZED));\n\n\t\tif (match.getStatus() == TurnBasedMatch.MATCH_STATUS_ACTIVE) {\n\t\t\tif (match.getTurnStatus() == TurnBasedMatch.MATCH_TURN_STATUS_MY_TURN) {\n\t\t\t\tGames.TurnBasedMultiplayer.finishMatch(\n\t\t\t\t\t\tgameHelper.getApiClient(), match.getMatchId(),\n\t\t\t\t\t\twriteGameState(match), results);\n\t\t\t\tturnUsed = true;\n\t\t\t\tremoveNotification();\n\t\t\t}\n\t\t} else if (match.getStatus() == TurnBasedMatch.MATCH_STATUS_COMPLETE) {\n\t\t\tif (match.getTurnStatus() == TurnBasedMatch.MATCH_TURN_STATUS_MY_TURN) {\n\t\t\t\tGames.TurnBasedMultiplayer.finishMatch(\n\t\t\t\t\t\tgameHelper.getApiClient(), match.getMatchId());\n\t\t\t}\n\t\t}\n\t}", "public void saveResult() {\n\t\ttry {\n\t\t\tPrintWriter out = new PrintWriter(new FileOutputStream(resultFile));\n\t\t\tout.println(record.resultToString());\n\t\t\tout.close();\n\t\t} catch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "@Override\n\tprotected OperationResult persistResult() throws IOException {\n\t\treturn App.getState().get(processInput());\n\t}", "@Override\n protected void result(Object object) {\n gamePaused = false;\n }", "@Override\n protected void result(Object object) {\n gamePaused = false;\n }", "public abstract void nextGuessResult(ResultPegs resultPegs);", "public void displayResult(View view){\n countPoints();\n String quantity;\n String player;\n boolean checked = ((CheckBox) findViewById(R.id.nickname)).isChecked();\n\n if (checked == true) {\n player = \"Anonymous\";\n } else {\n player = ((EditText) findViewById(R.id.name)).getText().toString();\n }\n /*\n method to show toast message with result\n */\n if (points > 1) {\n quantity = \" points!\";\n } else {\n quantity = \" point!\";\n }\n Toast.makeText(FlagQuiz.this, player + \", your score is: \" + points + quantity, Toast.LENGTH_LONG).show();\n }", "public static void saveBoxScore(){\n Engine engine = Utility.getEngine();\n ArrayList<Player> homePlayers = engine.getHomePlayers();\n ArrayList<Player> awayPlayers = engine.getAwayPlayers();\n ArrayList<String> output = new ArrayList<String>();\n output.add(\"Home team\");\n for(Player player : homePlayers){\n Player upToDatePlayer = Utility.getPlayer(player);\n output.add(upToDatePlayer.toString());\n }\n\n output.add(\"Away team\");\n for(Player player : awayPlayers){\n Player upToDatePlayer = Utility.getPlayer(player);\n output.add(upToDatePlayer.toString());\n }\n\n try {\n Path path = Paths.get(Constants.OUTPUT_FILE_PATH);\n Files.write(path,output,StandardCharsets.UTF_8);\n } catch (Exception e){\n System.out.println(\"Exception: \" + e.toString());\n }\n\n System.exit(0);\n }", "@Override\n\t\t\t\t\t\t\tpublic void onResult(InitiateMatchResult result) {\n\t\t\t\t\t\t\t\tif (!checkStatusCode(match, result.getStatus()\n\t\t\t\t\t\t\t\t\t\t.getStatusCode())) {\n\t\t\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tGameActivity.gameMachine.reset();\n\t\t\t\t\t\t\t\tmatch = result.getMatch();\n\t\t\t\t\t\t\t\tstartGame(match);\n\t\t\t\t\t\t\t}", "void gameFinished(Turn turn) throws IOException;", "public EndingDialog(Game game, Occupant result) {\r\n this.game = game;\r\n this.result = result;\r\n initializeUI();\r\n }", "public int getResult() {return resultCode;}", "void notifyGameComplete(FinalScore score);", "public ResultState(Game game){\r\n super(game);\r\n game.newGameState(); // Makes a new gameState, but doesn't set the State to it yet. This is to reset all\r\n // variables so that the next hand starts fresh.\r\n }", "public int getResult(){\n return localResult;\n }", "void onResult(AIResponse result);", "void handleGameInboxActivityResult(int response, Intent intent) {\n\t\t// TODO: Handle this.\n\t\tif (response != Activity.RESULT_OK) {\n\t\t\treturn;\n\t\t}\n\n\t\t/**\n\t\t * Load the match from the intent.\n\t\t */\n\t\tmatch = intent.getExtras().getParcelable(\n\t\t\t\tMultiplayer.EXTRA_TURN_BASED_MATCH);\n\n\t\tGameActivity.gameMachine.reset();\n\t\tstartGame(match);\n\t}", "private void saveGame(){\n\t\t\n\t}", "private GameResponse endGame() {\n if(gameResponse.getScore() > 0) {\n gameResponse.getPlayer().setHighScore(gameResponse.getScore());\n playerService.save(gameResponse.getPlayer());\n }\n gameResponse.setNewGame(true);\n return gameResponse;\n }", "protected boolean processGameEnd(int gameNumber, String whiteName, String blackName, String reason, String result){return false;}", "public static boolean processScoring() {\r\n\t\tboolean done = true;\r\n\t\tint player1Tricks = 0;\r\n\t\tint player2Tricks = 0;\r\n\t\tint player3Tricks = 0;\r\n\t\tint player4Tricks = 0;\r\n\t\t\r\n\t\t//Gets the data for three players.\r\n\t\tplayer1Tricks = FrameUtils.player1TricksTaken.getSelectedIndex();\r\n\t\tplayer2Tricks = FrameUtils.player2TricksTaken.getSelectedIndex();\r\n\t\tplayer3Tricks = FrameUtils.player3TricksTaken.getSelectedIndex();\r\n\r\n\t\t//Gets the tricks taken if playing with four players.\r\n\t\tif (!Main.isThreeHanded) {\r\n\t\t\tplayer4Tricks = FrameUtils.player4TricksTaken.getSelectedIndex();\r\n\t\t}\r\n\r\n\t\t//Check if all the choice boxes have been selected.\r\n\t\tif (player1Tricks == -1 || player1Tricks == 0) {\r\n\t\t\tdone = false;\r\n\t\t}\r\n\t\tif (player2Tricks == -1 || player2Tricks == 0) {\r\n\t\t\tdone = false;\r\n\t\t}\r\n\t\tif (player3Tricks == -1 || player3Tricks == 0) {\r\n\t\t\tdone = false;\r\n\t\t}\r\n\t\t\r\n\t\t//Don't check fourth player if playing three handed game.\r\n\t\tif (!Main.isThreeHanded) {\r\n\t\t\tif (player4Tricks == -1 || player4Tricks == 0) {\r\n\t\t\t\tdone = false;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t//Get the value of three players tricks taken.\r\n\t\tplayer1Tricks = stringToInt(FrameUtils.player1TricksTaken.getSelectedItem());\r\n\t\tplayer2Tricks = stringToInt(FrameUtils.player2TricksTaken.getSelectedItem());\r\n\t\tplayer3Tricks = stringToInt(FrameUtils.player3TricksTaken.getSelectedItem());\r\n\t\t\r\n\t\t//Get the value of the fourth player in a four handed game.\r\n\t\tif (!Main.isThreeHanded) {\r\n\t\t\tplayer4Tricks = stringToInt(FrameUtils.player4TricksTaken.getSelectedItem());\r\n\t\t}\r\n\t\t\r\n\t\t//Check if tricks taken in a three handed game equals 17.\r\n\t\tif (Main.isThreeHanded) {\r\n\t\t\tif (player1Tricks + player2Tricks + player3Tricks != 17) {\r\n\t\t\t\tdone = false;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t//Check if tricks taken in a non-three-handed game equals 13.\r\n\t\tif (!Main.isThreeHanded) {\r\n\t\t\tif (player1Tricks + player2Tricks + player3Tricks + player4Tricks != 13) {\r\n\t\t\t\tdone = false;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t//Show dialog box reminder.\r\n\t\tif (!done) FrameUtils.showDialogBox(\"Tricks taken was entered wrong.\");\r\n\t\t\t\r\n\t\t//Save tricks taken data.\r\n\t\tsaveTricksTakenData();\r\n\t\t\r\n\t\treturn done;\r\n\t}", "void completeTurn() {\n\n\t\tremoveNotification();\n\n\t\tString matchId = match.getMatchId();// The Id for our match\n\t\tString pendingParticipant = GPGHelper.getOpponentId(\n\t\t\t\tgameHelper.getApiClient(), match);// We set who's turn it\n\t\t// is next since\n\t\t// we're done,\n\t\t// should always be\n\t\t// opponents turn\n\t\t// for us.\n\t\tbyte[] gameState = writeGameState(match);// We build the game state\n\t\t\t\t\t\t\t\t\t\t\t\t\t// bytes from the current\n\t\t\t\t\t\t\t\t\t\t\t\t\t// game state.\n\n\t\t// This actually tries to send our data to Google.\n\t\tGames.TurnBasedMultiplayer.takeTurn(gameHelper.getApiClient(), matchId,\n\t\t\t\tgameState, pendingParticipant).setResultCallback(\n\t\t\t\tnew ResultCallback<TurnBasedMultiplayer.UpdateMatchResult>() {\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onResult(UpdateMatchResult result) {\n\t\t\t\t\t\tturnUsed = true;\n\n\t\t\t\t\t\t// TODO:Handle this better\n\t\t\t\t\t\tif (!GooglePlayGameFragment.this.checkStatusCode(match,\n\t\t\t\t\t\t\t\tresult.getStatus().getStatusCode())) {\n\t\t\t\t\t\t\tLog.d(\"test\", result.getStatus().getStatusCode()\n\t\t\t\t\t\t\t\t\t+ \" Something went wrong\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t});\n\n\t}", "public void gameOver() {\r\n\t\tSystem.out.println(\"[DEBUG LOG/Game.java] Game is over. Calculating points\");\r\n\t\tstatus = \"over\";\r\n\t\ttry {\r\n\t\t\tupdateBoard();\r\n\t\t} catch (FileNotFoundException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\tupdateEvents(false);\r\n\t\tEmbedBuilder embed = new EmbedBuilder();\r\n\t\tembed.setTitle(\"Game Results\");\r\n\t\tMap<Integer, Integer> scores = new HashMap<Integer, Integer>();\r\n\t\t\r\n\t\tfor (int i = 0; i < players.size(); i++) {\r\n\t\t\tscores.put(i,players.get(i).calculatePoints());\r\n\t\t\t// Utils.getName(players.get(i).getPlayerID(),guild)\r\n\t\t}\r\n\t\t\r\n\t\tList<Entry<Integer, Integer>> sortedList = sortScores(scores);\r\n\t\t\r\n\t\t// If tied, add highest artifact values\r\n\t\tif ((playerCount > 1) && (sortedList.get(0).getValue().equals(sortedList.get(1).getValue()))) {\r\n\t\t\tSystem.out.println(\"[DEBUG LOG/Game.java] Scores were tied\");\r\n\t\t\tint highestScore = sortedList.get(0).getValue();\r\n\t\t\tfor (Map.Entry<Integer, Integer> entry : sortedList) {\r\n\t\t\t\t// Only add artifacts to highest scores\r\n\t\t\t\tif (entry.getValue().equals(highestScore)) {\r\n\t\t\t\t\tscores.put(entry.getKey(),entry.getValue()+players.get(entry.getKey()).getHighestArtifactValue());\r\n\t\t\t\t\tplayers.get(entry.getKey()).setAddedArtifactValue(true);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t// Sort with added artifact values\r\n\t\tsortedList = sortScores(scores);\r\n\t\t\r\n\t\t// Assigns 1st, 2nd, 3rd\r\n\t\tfor (int i = 0; i < sortedList.size(); i++) {\r\n\t\t\tMap.Entry<Integer, Integer> entry = sortedList.get(i);\r\n\t\t\t// If tie, include artifact\r\n\t\t\tString name = Utils.getName(players.get(entry.getKey()).getPlayerID(),guild);\r\n\t\t\tif (players.get(entry.getKey()).getAddedArtifactValue()) {\r\n\t\t\t\tint artifactValue = players.get(entry.getKey()).getHighestArtifactValue();\r\n\t\t\t\tembed.addField(Utils.endGamePlaces[i],\"**\"+name+\"** - ``\"+(entry.getValue()-artifactValue)+\" (\"+artifactValue+\")``\",true);\r\n\t\t\t} else {\r\n\t\t\t\tembed.addField(Utils.endGamePlaces[i],\"**\"+name+\"** - ``\"+entry.getValue()+\"``\",true);\r\n\t\t\t}\r\n\t\t}\r\n\t\tembed.setFooter(\"Credit to Renegade Game Studios\", null);\r\n\t\tgameChannel.sendMessage(embed.build()).queueAfter(dragonAttackingDelay+3000,TimeUnit.MILLISECONDS);\r\n\t\t\r\n\t\tGlobalVars.remove(this);\r\n\t}", "public static void resultMessage (int result) {\n System.out.println(\"The result of choosed operation is: \" + result);\n }", "public interface GameResult {\n String WEREWOLVES_WIN = \"werewolves win!\";\n String VILLAGERS_WIN = \"villagers win!\";\n}", "void finishTurn();", "public void setResult (String Result);", "public void Gamefinished()\n\t\t{\n\t\t\tplayers_in_game--;\n\t\t}", "public SolutionResponse run() {\n try {\n Game game = gameApi.getNewGame();\n game.setWeatherReport(weatherApi.getWeather(game.getId()));\n game.setDragon(new Dragon());\n solver.solve(game);\n SolutionResponse solutionResponse = gameApi.putSolution(game);\n LOGGER.info(\"Game: \" + game.getId()\n + \" Result: \" + solutionResponse.getStatus()\n + \" Message: \" + solutionResponse.getMessage());\n return solutionResponse;\n } catch (Exception e) {\n LOGGER.severe(\"Solution failed: \" + e.getMessage());\n }\n return null;\n }", "public int getresult(){\n return result;}", "void gameSaved() {\n\t\tSystem.out.println(\"\\n\\nGame saved.\");\n\t}", "public void setResult(String result)\n {\n this.result = result;\n }", "public void showGameResult(GameMenu myGameMenu){\n //Anropa metoden för att kontrollera resultat av spelet\n gameResult(myGameMenu);\n if (Objects.equals(getMatchResult(), \"Oavgjort\")){\n System.out.println(\"Oavgjort! Du Gjorde Samma Val Som Datorn!\");\n System.out.println(\"Spelaren: \" + getPlayersResult() + \"\\nDatorn: \" + getComputersResult());\n }\n else if (Objects.equals(getMatchResult(),\"Vann\")){\n System.out.println(\"Du Vann! Bra Jobbat!\");\n System.out.println(\"Spelaren: \" + getPlayersResult() + \"\\nDatorn: \" + getComputersResult());\n }\n else if (Objects.equals(getMatchResult(),\"Förlorade\")){\n System.out.println(\"Tyvärr! Du Förlorade!\");\n System.out.println(\"Spelaren: \" + getPlayersResult() + \"\\nDatorn: \" + getComputersResult());\n }\n }", "protected abstract boolean isGameFinished();", "void saveGame();", "public void setResult(String result) {\n this.result = result;\n }", "public void storeResult(String strResult) \n\t{\n this.strResult = strResult;\n }", "private void finishTest() {\n Intent resultIntent = new Intent();\n resultIntent.putExtra(FINAL_SCORE, score);\n setResult(RESULT_OK, resultIntent);\n// finish is to close the activity\n finish();\n }", "public void onComplete(String result) {\n\t\tfileIO.stringToReward(result);\n\t\tfileIO.exportRewards();\n\t\tgetData();\n\t\tinitiateUI();\n\t}", "@Override\r\n\tpublic boolean results()\r\n\t{\r\n\t\treturn this.results(this.getRobot());\r\n\t}", "protected void setResult(R result) {\n _result = result;\n }", "public void setResult(String result)\r\n\t{\r\n\t\tthis.result = result;\r\n\t}", "boolean isGameComplete();", "public int getResult(){\r\n\t\t return result;\r\n\t }", "public synchronized void putResult(DrownVulnerabilityType result) {\n if (result != null) {\n switch (result) {\n case NONE:\n putResult(AnalyzedProperty.VULNERABLE_TO_GENERAL_DROWN, false);\n break;\n case UNKNOWN:\n resultMap.put(AnalyzedProperty.VULNERABLE_TO_GENERAL_DROWN.toString(), TestResult.UNCERTAIN);\n break;\n default:\n putResult(AnalyzedProperty.VULNERABLE_TO_GENERAL_DROWN, TestResult.TRUE);\n }\n }\n }", "public void onResultClick (View v){\n try {\n savekq kq = new savekq(expressionView.getText().toString(), Double.valueOf(resultView.getText().toString()));\n Writehistory(list, kq);\n calculate();\n expressionView.setText(resultView.getText());\n result = Double.valueOf(resultView.getText().toString());\n resultView.setText(\"\");\n } catch (Exception e) {\n resultView.setText(\"0\");\n expressionView.setText(\"Cannot Divide\");\n result = 0;\n }\n\n }", "private void checkResults() {\n\n if (Dealer.calcTotal() == p1.calcTotal()) {\n System.out.println(\"You and the dealer Tie, Here is your money back.\");\n System.out.println(\"Total Winnings: \" + totalWinnings + \"\\n\");\n } else if (p1.calcTotal() > Dealer.calcTotal() && !bust) {\n System.out.println(\"You win!\");\n totalWinnings += betNum;\n p1.addPointCount(betNum);\n System.out.println(\"Total Winnings: \" + totalWinnings + \"\\n\");\n } else if (Dealer.calcTotal() > 31) {\n System.out.println(\"Dealer busts. You Win!\");\n totalWinnings += betNum;\n p1.addPointCount(betNum);\n System.out.println(\"Total Winnings: \" + totalWinnings + \"\\n\");\n } else if (Dealer.getTotal() > p1.calcTotal() && Dealer.getTotal() < 32) {\n System.out.println(\"Dealer Wins.\");\n System.out.println(\"Total Winnings: \" + totalWinnings + \"\\n\");\n p1.subPointCount(betNum);\n }\n }", "@Override\n protected void onActivityResult(int requestCode, int resultCode, @Nullable Intent data) {\n if(requestCode == REQUEST_CODE_NEW_GAME && resultCode == RESULT_OK && data!=null){\n iBestScore=Math.max(iBestScore,data.getExtras().getInt(getString(R.string.score_key)));\n }\n }", "protected abstract int evaluate(GameState state, String playername);", "@Override\r\n\tpublic void nextGuessResult(ResultPegs resultPegs) {\r\n\t\t// TODO Auto-generated method stub\r\n\t\t\r\n\t\t// Not used here\r\n\t}", "public void saveGame();", "public void returnToGame(View view) {\n String gameGson = gson.toJson(game);\n Intent intent = new Intent(this, GameActivity.class);\n intent.putExtra(\"Game\", gameGson);\n intent.putExtra(\"CurrentPlayer\", Integer.toString(currentPlayer));\n startActivity(intent);\n }", "public void setResult(int result) {\n this.result = result;\n this.isSix = this.result == 6;\n }", "boolean addHardGamePlayed();", "protected boolean gotResult (SurveyQuestion result) {\n _cache.questionUpdated(_survey, _questionIndex, result);\n Link.replace(Pages.ADMINZ, \"survey\", \"e\", _survey.surveyId);\n return true;\n }", "boolean addEasyGamePlayed();", "@Override\n public void starryEyes(String result) {\n Intent returnIntent = new Intent();\n returnIntent.putExtra(\"result\",result);\n setResult(RESULT_OK,returnIntent);\n finish();\n }", "public void finishGame(){\r\n\t\t\t\tgameStarted = false;\r\n\t\t\t}", "public void SaveCurrentGame(){\n if(gameStarted == false){ return; }\n recordGame.write(board, timeRuunableThread, level);\n timeRuunableThread.setDrawNumber(false);\n canLoadGame = true;\n // update infoCanvas\n CleanInfoCanvas();\n }", "public void SaveGame(){\n if(gameStarted == false || canLoadGame == true){ return; }\n gamePaused = true;\n timeRuunableThread.setPause(gamePaused);\n int input = JOptionPane.showOptionDialog(null, \"Do you want to save game?\", \"Save Game\", JOptionPane.OK_CANCEL_OPTION, JOptionPane.INFORMATION_MESSAGE, null, null, null);\n if(input == JOptionPane.OK_OPTION) {\n SaveCurrentGame();\n animationThread.start();\n if(muteMusic == false){\n music.stopPlayingAudio(\"All\");\n music.playAudio(\"LoadingScreenMusic\");\n }\n musicName = \"LoadingScreenMusic\";\n }else{\n gamePaused = false;\n timeRuunableThread.setPause(gamePaused);\n }\n }", "public void result(){\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// Result Method initialized\r\n this.getRollNumber();\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// getRollNumber() method called inside the result() method\r\n float sum; \t\t// float (Variable) sum and average Declared\r\n Scanner scanner = new Scanner(System.in);\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// Initialize the scanner to get input from User\r\n System.out.print(\"Enter Physics Marks : \"); // This will print out the argument and ends the line\r\n float Physics = scanner.nextFloat(); // Read float input Physics from the User\r\n System.out.print(\"Enter Chemistry Marks : \"); // This will print out the argument and ends the line\r\n float Chemistry = scanner.nextFloat(); // Read float input Chemistry from the User\r\n System.out.print(\"Enter Math Marks : \"); // This will print out the argument and ends the line\r\n float Maths = scanner.nextFloat(); // Read float input Math from the User\r\n sum = Physics + Chemistry + Maths; // Adding the value of Physics,Chemistry and Math floating variables and stored them in float variable sum\r\n average = sum / 3;\t}", "public void completedGame()\n\t{\n\t\tJOptionPane.showMessageDialog(this,\"Congratulations, you beat the game!\" + ship.getTotalScore(), \"Beat the Game\", JOptionPane.INFORMATION_MESSAGE);\n\t\tbuttonPanel.endGameButton.setEnabled(false);\n\t\tsendScore();\n\t}", "int getResultMonster();", "@Override\n\t\t\t\t\tpublic void onSuccess(Integer result) {\n\t\t\t\t\t\tif (result == 0) {\n\t\t\t\t\t\t\tgetApplyDialog();\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tToastUtil.showToast(context, \"无法获取游戏信息\");\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}", "private void finaliseGame() {\r\n gameOn = false;\r\n if(bestAnswer==null) {\r\n target.reply(\"Nobody got an answer. The best answer was: \" + CountdownSolver.Solve( sourceNumbers, targetNumber ));\r\n return;\r\n }\r\n if( bestAnswer.getAnswer() == bestPossibleAnswer ) {\r\n String reply = Constants.BOLD + bestAnswer.getUsername() + Constants.BOLD\r\n + \" has won with \" + bestAnswer.getAnswer() + \"!\";\r\n if( bestPossibleAnswer!=targetNumber)\r\n reply+=\" This was the best possible answer.\";\r\n target.reply(reply);\r\n } else {\r\n target.reply( \"The best answer was \" + bestAnswer.getAnswer() + \" by \" + bestAnswer.getUsername() + \".\"\r\n + \" But the best possible answer was: \" + CountdownSolver.Solve( sourceNumbers, targetNumber ));\r\n }\r\n bestAnswer=null;\r\n runner.stop();\r\n }", "@Override\n public void execute() {\n String nextPlayer = CModel.getInstance().getCurrGame().advancePlayerTurn();\n if(nextPlayer.equals(CModel.getInstance().getMyUser().getUserName())) {\n CModel.getInstance().setCurrGameState(new MyTurn());\n }\n else {\n //update the player stats\n CModel.getInstance().setCurrGameState(new NotMyTurn());\n }\n CModel.getInstance().updatePlayerStatsView();\n }", "int getResult() {\n return result;\n }", "private void determineButtonPress(boolean answer){\n boolean expectedAnswer = currentQuestion.isAnswer();\n String result;\n if (answer == expectedAnswer){\n result=\"Correct\";\n score++;\n txtScore.setText(\"Score: \" + score);\n } else {\n result=\"False\";\n }\n //call this function to display the result to the player\n answerResultAlert(result);\n\n }", "public void setResult(final String incomingResult)\r\n {\r\n \r\n result = incomingResult;\r\n }" ]
[ "0.6808817", "0.6734309", "0.6663573", "0.6626947", "0.65851974", "0.65226895", "0.6422083", "0.6403804", "0.6303076", "0.62726575", "0.62074286", "0.62026626", "0.61985964", "0.6125573", "0.60991114", "0.6095296", "0.60508794", "0.60420173", "0.60240185", "0.601809", "0.5981219", "0.59686637", "0.5940257", "0.5931869", "0.59056324", "0.58766097", "0.586234", "0.58591145", "0.58457154", "0.5831419", "0.5830018", "0.5829057", "0.5822262", "0.5796471", "0.57805663", "0.5775708", "0.5775708", "0.575805", "0.57553583", "0.5752232", "0.5737616", "0.5729889", "0.57232153", "0.5720239", "0.5705606", "0.56953037", "0.5691915", "0.5689566", "0.5682866", "0.5682052", "0.5681631", "0.56737226", "0.5656461", "0.56499004", "0.5648314", "0.564262", "0.56413513", "0.5634691", "0.56280345", "0.5624472", "0.5624314", "0.5620145", "0.56181926", "0.56164974", "0.5600414", "0.5594281", "0.55872226", "0.5575093", "0.5570656", "0.5566749", "0.5557227", "0.5545422", "0.55386955", "0.5534184", "0.55314916", "0.553149", "0.55302066", "0.5528698", "0.55254835", "0.55247337", "0.55214185", "0.5510302", "0.55096483", "0.5502335", "0.55009854", "0.54937625", "0.5483364", "0.5481599", "0.5481372", "0.5480072", "0.5476549", "0.54697883", "0.5469412", "0.5469016", "0.54686576", "0.5467067", "0.5464726", "0.5462853", "0.5460972", "0.5459362", "0.5457398" ]
0.0
-1
/ Decides whether a win, draw or loss, displaying this to the user Also alters the result member variable to be returned in getResult()
public void decideResult() { if (mUser.getHandValue() < 22 && mUser.getHandValue() > mDealer.getHandValue()) { mResult = "win"; }else if(mUser.getHandValue() < 22 && mUser.getHandValue() == mDealer.getHandValue()) { mResult = "draw"; }else { mResult = "lose"; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void checkResult() {\n\t\tint sum = PlayerBean.PLAYERONE - PlayerBean.PLAYERTWO;\n\n\t\tif (sum == 1 || sum == -2) {\n\t\t\tScoreBean.addWin();\n\t\t\tresult = \"player one wins\";\n\t\t} else {\n\t\t\tScoreBean.addLoss();\n\t\t\tresult = \"player two wins\";\n\t\t}\n\t}", "private void announceRoundResult()\n {\n // Last actions of each player, to compare\n GameAction fpAction = firstPlayer.getLastAction();\n GameAction spAction = secondPlayer.getLastAction();\n\n // Display first IA game\n if (!hasHuman)\n {\n if (fpAction instanceof RockAction)\n {\n animateSelectedButton(firstPlayerRock, true);\n }\n else if (fpAction instanceof PaperAction)\n {\n animateSelectedButton(firstPlayerPaper, true);\n }\n else if (fpAction instanceof ScissorsAction)\n {\n animateSelectedButton(firstPlayerScissors, true);\n }\n }\n // Display second IA game\n if (spAction instanceof RockAction)\n {\n animateSelectedButton(secondPlayerRock, false);\n }\n else if (spAction instanceof PaperAction)\n {\n animateSelectedButton(secondPlayerPaper, false);\n }\n else if (spAction instanceof ScissorsAction)\n {\n animateSelectedButton(secondPlayerScissors, false);\n }\n\n\n // First player has played something ==> look at result\n if (firstPlayer.hasAlreadyPlayed())\n {\n switch (fpAction.versus(spAction))\n {\n case WIN:\n updateResultIcons(true, false);\n break;\n case DRAW:\n updateResultIcons(false, true);\n break;\n case LOSE:\n updateResultIcons(false, false);\n break;\n }\n }\n // First player didn't play ==> draw or loose\n else\n {\n // Draw\n if (!secondPlayer.hasAlreadyPlayed())\n {\n updateResultIcons(false, true);\n }\n // Lose\n else\n {\n updateResultIcons(false, false);\n }\n }\n }", "private boolean checkGameStatus() {\n int res = model.getWinner();\n if (res == Model.DRAW) {\n draw();\n return false;\n } else if (res == Model.WHITE) {\n whiteScore++;\n view.getPrompt().setText(whiteName + \" win!\");\n prepareRestart();\n return false;\n } else if (res == Model.BLACK) {\n blackScore++;\n view.getPrompt().setText(blackName + \" win!\");\n prepareRestart();\n return false;\n }\n return true;\n }", "public void checkWin(){\n boolean result = false;\n if(game.getTurn() > 3){\n Player currentPlayer = game.getPlayerTurn();\n int playernumber = currentPlayer.getPlayericon();\n result = game.winChecker(game.getBored(),playernumber);\n if(result == true) {\n setWinMsgBox(currentPlayer.getPlayerName() + \" Is victorious :)\",\"WIN\");\n }else if(game.getTurn() == 8 && result == false){\n setWinMsgBox(\"Too bad it is a draw, No one out smarted the other -_-\",\"DRAW\");\n }else{}\n }else{\n result = false;\n }\n }", "void computeResult() {\n // Get the winner (null if draw).\n roundWinner = compareTopCards();\n\n\n if (roundWinner == null) {\n logger.log(\"Round winner: Draw\");\n logger.log(divider);\n // Increment statistic.\n numDraws++;\n\n } else {\n logger.log(\"Round winner: \" + roundWinner.getName());\n\t logger.log(divider);\n this.gameWinner = roundWinner;\n if (roundWinner.getIsHuman()) {\n // Increment statistic.\n humanWonRounds++;\n }\n }\n\n setGameState(GameState.ROUND_RESULT_COMPUTED);\n }", "public void win() {\n JOptionPane.showConfirmDialog(null, \"You won! You got out with \" + this.player.getGold() + \" gold!\", \"VICTORY!\", JOptionPane.OK_OPTION);\n this.saveScore();\n this.updateScores();\n this.showTitleScreen();\n }", "private boolean winGame() {\n if (model.isCompleted()) {\n win.message(\"Winner\");\n return true;\n }\n return false;\n }", "private void displayOnResult(String title, String message, Integer gifImage, int whoWon){\n\n switch (whoWon){\n case 1:{\n TextView textView = (TextView) mScoreGrid.getChildAt(3);\n scorePlayer1++;\n textView.setText(String.valueOf(scorePlayer1));\n break;\n }\n case 2:{\n TextView textView = (TextView) mScoreGrid.getChildAt(4);\n scorePlayer2++;\n textView.setText(String.valueOf(scorePlayer2));\n break;\n }\n case 0:\n default:{\n TextView textView = (TextView) mScoreGrid.getChildAt(5);\n scoreDraw++;\n textView.setText(String.valueOf(scoreDraw));\n break;\n }\n }\n\n new MaterialDialog.Builder(this)\n .setTitle(title)\n .setMessage(message)\n .setCancelable(false)\n .setPositiveButton(\"Okay\", R.drawable.ic_baseline_download_done_24, new MaterialDialog.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int which) {\n dialogInterface.dismiss();\n resetEverything();\n }\n })\n .setNegativeButton(\"Exit\", R.drawable.ic_baseline_cancel_24, new MaterialDialog.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int which) {\n dialogInterface.dismiss();\n finish();\n }\n })\n .setAnimation(gifImage)\n .build().show();\n }", "public Result determineOutcome() {\n for (int row = 0; row < TicTacToeModel.BOARD_DIMENSION; row++) {\n if (rowScore[row] == TicTacToeModel.BOARD_DIMENSION){\n return Result.WIN;\n } else if (rowScore[row] == -TicTacToeModel.BOARD_DIMENSION) {\n return Result.LOSE;\n }\n }\n\n for (int col = 0; col < TicTacToeModel.BOARD_DIMENSION; col++) {\n if (colScore[col] == TicTacToeModel.BOARD_DIMENSION){\n return Result.WIN;\n } else if (colScore[col] == -TicTacToeModel.BOARD_DIMENSION) {\n return Result.LOSE;\n }\n }\n\n if (leftDiagScore == TicTacToeModel.BOARD_DIMENSION) return Result.WIN;\n if (rightDiagScore == TicTacToeModel.BOARD_DIMENSION) return Result.WIN;\n if (leftDiagScore == -TicTacToeModel.BOARD_DIMENSION) return Result.LOSE;\n if (rightDiagScore == -TicTacToeModel.BOARD_DIMENSION) return Result.LOSE;\n\n if (freeSpace == 0) return Result.DRAW;\n\n return Result.INCOMPLETE;\n }", "public static void decidedWinner(){\n if(playerOneWon == true ){\n//\n// win.Fill(\"Player One Has Won !\");\n// new WinnerWindow().setVisible(true);\n }\n else if (playerTwoWon == true){\n// win.Fill(\"Player Two Has Won !\");\n// new WinnerWindow().setVisible(true);\n }\n else\n {\n// win.Fill(\"Match Has been Tied !\");\n// new WinnerWindow().setVisible(true);\n }\n }", "public void GameWin () {\n\t\t\n\t\twordDashes.setText(mysteryWord);\n\t\tguessBttn.setVisible(false);\n\t\tguessFullWord.setVisible(false);\n\t\tAnswerBox.setDisable(true); //can no longer use the text box\n\t\tresultMessage.setText(\" Great Job!!\\nYou Guessed the Word!!\");\n\t\tplayAgain.setVisible(true); \n\t\t\n\t}", "public void finalResult() {\n ConnectionSockets.getInstance().sendMessage(Integer.toString(points)+\"\\n\");\n System.out.println(\"escreveu para o oponente\");\n opponentPoints = Integer.parseInt(ConnectionSockets.getInstance().receiveMessage());\n System.out.println(\"leu do oponente\");\n if(points != opponentPoints) {\n if (points > opponentPoints) {// Won\n MatchController.getInstance().getSets().add(1);\n MatchController.getInstance().increaseSet();\n } else { //Lost\n MatchController.getInstance().getSets().add(0);\n MatchController.getInstance().increaseSet();\n }\n }\n }", "public void displayWin()\n {\n if(player1 instanceof GameController){\n player1.gameOver(1);\n } else {\n player2.gameOver(1);\n }\n }", "public void displayResult(Dealer d) {\n if (d.getPlayer2ResultMap() != null) {\n\n controller.p1result.setText(String.format(\"%.2f\", controller.p1WinPercentage) + \"%\");\n controller.p2result.setText(String.format(\"%.2f\", controller.p2WinPercentage) + \"%\");\n controller.tielabel.setText(\"tie\");\n controller.tielabel.setTextFill(Color.BROWN);\n controller.tieresult.setText(String.format(\"%.2f\", controller.tiePercentage));\n controller.tieresult.setTextFill(Color.BROWN);\n if (controller.p1WinPercentage > controller.p2WinPercentage) {\n controller.p1result.setTextFill(Color.GREEN);\n controller.p2result.setTextFill(Color.RED);\n } else {\n controller.p1result.setTextFill(Color.RED);\n controller.p2result.setTextFill(Color.GREEN);\n }\n for (int i = 0; i < controller.p2ResultList.size(); i++) {\n controller.p2ResultList.get(i).setText(controller.p2Results[i]);\n }\n } else {\n for (int i = 0; i < controller.p2ResultList.size(); i++) {\n controller.p2ResultList.get(i).setText(\"\");\n }\n controller.p2result.setText(\"\");\n controller.tielabel.setText(\"\");\n controller.tieresult.setText(\"\");\n }\n\n for (int i = 0; i < controller.p1ResultList.size(); i++) {\n\n controller.p1ResultList.get(i).setText(controller.p1Results[i]);\n }\n controller.errorLabel.setText(\"\");\n }", "private void checkWin() {\n // Check if a dialog is already displayed\n if (!this.gameOverDisplayed) {\n // Check left paddle\n if (Objects.equals(this.scoreL.currentScore, this.winCount) && (this.scoreL.currentScore != 0)) {\n if (twoUser) {\n gameOver(GeneralFunctions.TWO_1_WIN);\n } else {\n gameOver(GeneralFunctions.ONE_LOSE);\n }\n // Right paddle\n } else if (Objects.equals(this.scoreR.currentScore, this.winCount) && (this.scoreR.currentScore != 0)) {\n if (twoUser) {\n gameOver(GeneralFunctions.TWO_2_WIN);\n } else {\n gameOver(GeneralFunctions.ONE_WIN);\n }\n }\n }\n }", "private void updateResultOnScreen() {\n teamAScoreTv.setText(Integer.toString(teamAScoreInt));\n teamBScoreTv.setText(Integer.toString(teamBScoreInt));\n\n if (teamAFoulScoreInt > 1)\n teamAFoulScoreTv.setText(teamAFoulScoreInt + \" fouls\");\n else\n teamAFoulScoreTv.setText(teamAFoulScoreInt + \" foul\");\n\n if (teamBFoulScoreInt > 1)\n teamBFoulScoreTv.setText(teamBFoulScoreInt + \" fouls\");\n else\n teamBFoulScoreTv.setText(teamBFoulScoreInt + \" foul\");\n }", "private void computeWinLose() {\n\n if (!id11.getText().isEmpty()) {\n if ((id11.getText().equals(id00.getText()) && id11.getText().equals(id22.getText())) ||\n (id11.getText().equals(id02.getText()) && id11.getText().equals(id20.getText())) ||\n (id11.getText().equals(id10.getText()) && id11.getText().equals(id12.getText())) ||\n (id11.getText().equals(id01.getText()) && id11.getText().equals(id21.getText()))) {\n winner = id11.getText();\n }\n }\n\n if (!id00.getText().isEmpty()) {\n if ((id00.getText().equals(id01.getText()) && id00.getText().equals(id02.getText())) ||\n id00.getText().equals(id10.getText()) && id00.getText().equals(id20.getText())) {\n winner = id00.getText();\n }\n }\n\n if (!id22.getText().isEmpty()) {\n if ((id22.getText().equals(id21.getText()) && id22.getText().equals(id20.getText())) ||\n id22.getText().equals(id12.getText()) && id22.getText().equals(id02.getText())) {\n winner = id22.getText();\n }\n }\n\n // If all the grid entries are filled, it is a draw\n if (!id00.getText().isEmpty() && !id01.getText().isEmpty() && !id02.getText().isEmpty() && !id10.getText().isEmpty() && !id11.getText().isEmpty() && !id12.getText().isEmpty() && !id20.getText().isEmpty() && !id21.getText().isEmpty() && !id22.getText().isEmpty()) {\n winner = \"Draw\";\n }\n\n if (winner != null) {\n if (\"X\".equals(winner)) {\n winner = playerX;\n } else if (\"O\".equals(winner)) {\n winner = playerO;\n } else {\n winner = \"Draw\";\n }\n showWindow(winner);\n }\n }", "public void winGame() {\n this.isWinner = true;\n }", "public void drawGameCompleteScreen() {\r\n PennDraw.clear();\r\n\r\n if (didPlayerWin()) {\r\n PennDraw.text(width / 2, height / 2, \"You Win!\");\r\n } else if (didPlayerLose()) {\r\n PennDraw.text(width / 2, height / 2, \"You have lost...\");\r\n }\r\n\r\n PennDraw.advance();\r\n }", "public static void win()\n\t{\n\t\tGame.setMoney(Game.getMoney()+bet);\n\t\tremainingMoneyN.setText(String.valueOf(Game.getMoney()));\n\t\tbet=0;\n\t\ttfBet.setText(\"0\");\n\t\tif(Game.getMoney()>Game.getHighScore())\n\t\t{\n\t\t\tGame.setHighScore(Game.getMoney());\n\t\t\tlblHighScore.setText(String.valueOf(Game.getHighScore()));\n\t\t}\n\t\tlblUpdate.setText(\"You win!\");\n\n\t}", "public void winGame() {\r\n if (data.gameState == 3) \r\n data.winner = 1;\r\n else if (data.gameState == 4) \r\n data.winner = 2;\r\n data.victoryFlag = true;\r\n data.gameState = 5;\r\n }", "public void tellPlayerResult(int winner) {\n\t}", "public abstract void showWin(GameStateInterface state);", "public static void checkWinCondition() {\n\t\twin = false;\n\t\tif (curPlayer == 1 && arrContains(2, 4))\n\t\t\twin = true;\n\t\telse if (curPlayer == 2 && arrContains(1, 3))\n\t\t\twin = true;\n\t\tif (curPlayer == 2 && !gameLogic.Logic.arrContains(2, 4))\n\t\t\tP2P.gameLost = true;\n\t\telse if (gameLogic.Logic.curPlayer == 1 && !gameLogic.Logic.arrContains(1, 3))\n\t\t\tP2P.gameLost = true;\n\t\tif (P2P.gameLost == true) {\n\t\t\tif (gameLogic.Logic.curPlayer == 1)\n\t\t\t\tEndScreen.infoWindow.setText(\"<html><center><b><font size=25 color=black> Black player won! </font></b></center></html>\");\n\t\t\telse\n\t\t\t\tEndScreen.infoWindow.setText(\"<html><center><b><font size=25 color=black> Red player won! </font></b></center></html>\");\n\t\t}\n\t\telse\n\t\t\twin = false;\n\t}", "private void paintWin(Graphics g) {\n\t\tif (gameWon){\n\t\t\tFont textFont = new Font(\"Monotype Corsiva\", Font.PLAIN, 30);\n\t\t\tg.setFont(textFont);\n\t\t\tif (winningPlayer == USER){\n\t\t\t\t//If player won\n\t\t\t\tg.drawString(\"You WON!\", DIMENSIONS_SIZE/2 - 50, DIMENSIONS_SIZE/2);\n\t\t\t\tplayerWins++;\n\t\t\t}\n\t\t\tif (winningPlayer == AI){\n\t\t\t\t//If player lost\n\t\t\t\tg.drawString(\"You LOST!\", DIMENSIONS_SIZE/2 - 50, DIMENSIONS_SIZE/2);\n\t\t\t\taiWins++;\n\t\t\t}\n\t\t}\n\t\tif (gameTie){\n\t\t\t//If it's a tie\n\t\t\tFont textFont = new Font(\"Monotype Corsiva\", Font.PLAIN, 30);\n\t\t\tg.setFont(textFont);\n\t\t\tg.drawString(\"It's a tie!\", DIMENSIONS_SIZE/2 - 50, DIMENSIONS_SIZE/2);\n\t\t\ttieGames++;\n\t\t}\n\t}", "public void displayMessage()\n{\n // game should continue\n if ( gameStatus == CONTINUE )\n showStatus( \"Roll again.\" );\n\n // game won or lost\n else {\n\n if ( gameStatus == WON )\n showStatus( \"Player wins. \" +\n \"Click Roll Dice to play again.\" );\n else \n showStatus( \"Player loses. \" + \n \"Click Roll Dice to play again.\" );\n \n // next roll is first roll of new game\n firstRoll = true; \n }\n}", "private void showStat() {\n\t\tSystem.out.println(\"=============================\");\n\t\tSystem.out.println(\"Your won! Congrates!\");\n\t\tSystem.out.println(\"The word is:\");\n\t\tSystem.out.println(\"->\\t\" + this.word.toString().replaceAll(\" \", \"\"));\n\t\tSystem.out.println(\"Your found the word with \" \n\t\t\t\t+ this.numOfWrongGuess + \" wrong guesses.\");\n\t}", "public void win() {\n if (turn == 1) {\n p1.incrementLegs();\n if (p1.getLegs() == 5) {\n p1.incrementSets();\n p1.setLegs(0);\n p2.setSets(0);\n\n }\n if (p1LastScore > p1.getHighout()) {\n p1.setHighout(p1LastScore);\n\n }\n\n if (p1.getHighout() > OVERALL_HIGH_OUT) {\n OVERALL_HIGH_OUT = p1.getHighout();\n }\n } else if (turn == 2) {\n p2.incrementLegs();\n if (p2.getLegs() == 5) {\n p2.incrementSets();\n p2.setLegs(0);\n p1.setSets(0);\n\n }\n if (p2LastScore > p2.getHighout()) {\n p2.setHighout(p2LastScore);\n }\n\n if (p2.getHighout() > OVERALL_HIGH_OUT) {\n OVERALL_HIGH_OUT = p2.getHighout();\n }\n\n\n\n }\n changeFirstTurn();\n win = true;\n\n\n\n }", "private void checkResults() {\n\n if (Dealer.calcTotal() == p1.calcTotal()) {\n System.out.println(\"You and the dealer Tie, Here is your money back.\");\n System.out.println(\"Total Winnings: \" + totalWinnings + \"\\n\");\n } else if (p1.calcTotal() > Dealer.calcTotal() && !bust) {\n System.out.println(\"You win!\");\n totalWinnings += betNum;\n p1.addPointCount(betNum);\n System.out.println(\"Total Winnings: \" + totalWinnings + \"\\n\");\n } else if (Dealer.calcTotal() > 31) {\n System.out.println(\"Dealer busts. You Win!\");\n totalWinnings += betNum;\n p1.addPointCount(betNum);\n System.out.println(\"Total Winnings: \" + totalWinnings + \"\\n\");\n } else if (Dealer.getTotal() > p1.calcTotal() && Dealer.getTotal() < 32) {\n System.out.println(\"Dealer Wins.\");\n System.out.println(\"Total Winnings: \" + totalWinnings + \"\\n\");\n p1.subPointCount(betNum);\n }\n }", "private void doMatch() {\n // Remember how many games in this session\n mGameCounter++;\n\n PebbleDictionary resultDict = new PebbleDictionary();\n\n switch (mChoice) {\n case Keys.CHOICE_ROCK:\n switch(mP2Choice) {\n case Keys.CHOICE_ROCK:\n mInstructionView.setText(\"It's a tie!\");\n resultDict.addInt32(Keys.KEY_RESULT, Keys.RESULT_TIE);\n break;\n case Keys.CHOICE_PAPER:\n mInstructionView.setText(\"You lose!\");\n resultDict.addInt32(Keys.KEY_RESULT, Keys.RESULT_WIN); // Inform Pebble of opposite result\n break;\n case Keys.CHOICE_SCISSORS:\n mWinCounter++;\n mInstructionView.setText(\"You win! (\" + mWinCounter + \" of \" + mGameCounter + \")\");\n resultDict.addInt32(Keys.KEY_RESULT, Keys.RESULT_LOSE);\n break;\n }\n break;\n case Keys.CHOICE_PAPER:\n switch(mP2Choice) {\n case Keys.CHOICE_ROCK:\n mWinCounter++;\n mInstructionView.setText(\"You win! (\" + mWinCounter + \" of \" + mGameCounter + \")\");\n resultDict.addInt32(Keys.KEY_RESULT, Keys.RESULT_LOSE);\n break;\n case Keys.CHOICE_PAPER:\n mInstructionView.setText(\"It's a tie!\");\n resultDict.addInt32(Keys.KEY_RESULT, Keys.RESULT_TIE);\n break;\n case Keys.CHOICE_SCISSORS:\n mInstructionView.setText(\"You lose!\");\n resultDict.addInt32(Keys.KEY_RESULT, Keys.RESULT_WIN);\n break;\n }\n break;\n case Keys.CHOICE_SCISSORS:\n switch(mP2Choice) {\n case Keys.CHOICE_ROCK:\n mInstructionView.setText(\"You lose!\");\n resultDict.addInt32(Keys.KEY_RESULT, Keys.RESULT_WIN);\n break;\n case Keys.CHOICE_PAPER:\n mWinCounter++;\n mInstructionView.setText(\"You win! (\" + mWinCounter + \" of \" + mGameCounter + \")\");\n resultDict.addInt32(Keys.KEY_RESULT, Keys.RESULT_LOSE);\n break;\n case Keys.CHOICE_SCISSORS:\n mInstructionView.setText(\"It's a tie!\");\n resultDict.addInt32(Keys.KEY_RESULT, Keys.RESULT_TIE);\n break;\n }\n break;\n }\n\n // Inform Pebble of result\n PebbleKit.sendDataToPebble(getApplicationContext(), APP_UUID, resultDict);\n\n // Finally reset both\n mChoice = Keys.CHOICE_WAITING;\n mP2Choice = Keys.CHOICE_WAITING;\n\n // Leave announcement for 5 seconds\n mHandler.postDelayed(new Runnable() {\n\n @Override\n public void run() {\n updateUI();\n }\n\n }, 5000);\n }", "private void evaluateWin(boolean finalCheck)\r\n\t{\r\n\t\t// Stores player and dealer scores in local variables, rather than repeatedly call the get methods\r\n\t\tint scoreP = player1.getTotal();\r\n\t\tint scoreD = dealer.getTotal();\r\n\t\t\r\n\t\t// first check: is the game still going? If it has ended, then no evaluation needs to be made\r\n\t\tif ( !endGame )\r\n\t\t{\r\n\t\t\t/* second check: is this the final evaluation? if not, the first block of statements executes.\r\n\t\t\tIf Player == 21 and Dealer == 21, Tie\r\n\t\t\tIf Player == 21 and Dealer != 21, Player wins\r\n\t\t\tIf Player != 21 and Dealer == 21, Dealer wins\r\n\t\t\tIf Player > 21, Dealer wins at any number\r\n\t\t\tIf Player > Dealer at the end of the game and no one has busted or hit 21, Player wins\r\n\t\t\tThe last check is performed only if finalCheck is true.\r\n\t\t\t*/\r\n\t\t\tif ( !finalCheck )\r\n\t\t\t{\r\n\t\t\t\tif (scoreP > BUST_SCORE)\r\n\t\t\t\t{\r\n\t\t\t\t\tSystem.out.println(\"You lose...\");\r\n\t\t\t\t\tendGame = true;\r\n\t\t\t\t}\r\n\t\t\t\telse if (scoreP == BUST_SCORE)\r\n\t\t\t\t{\r\n\t\t\t\t\tif (scoreD == BUST_SCORE)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.println(\"It's a tie.\");\r\n\t\t\t\t\t\tendGame = true;\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.println(\"You win!\");\r\n\t\t\t\t\t\tendGame = true;\r\n\t\t\t\t\t}\r\n\t\t\t\t} // end scoreP > BUST_SCORE\r\n\t\t\t\telse\r\n\t\t\t\t{\r\n\t\t\t\t\tif (scoreD == BUST_SCORE)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.println(\"You lose...\");\r\n\t\t\t\t\t\tendGame = true;\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if (scoreD > BUST_SCORE)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.println(\"You win!\");\r\n\t\t\t\t\t\tendGame = true;\r\n\t\t\t\t\t}\r\n\t\t\t\t} // end ScoreP <= BUST SCORE\r\n\t\t\t} // end finalCheck = false\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\t// Final victory condition check\r\n\t\t\t\tif ( dealer.getTotal() < player1.getTotal() )\r\n\t\t\t\t{\r\n\t\t\t\t\tSystem.out.println(\"You win!\");\r\n\t\t\t\t}\r\n\t\t\t\telse if ( dealer.getTotal() == player1.getTotal() )\r\n\t\t\t\t{\r\n\t\t\t\t\tSystem.out.println(\"It's a tie.\");\r\n\t\t\t\t}\r\n\t\t\t\telse\r\n\t\t\t\t{\r\n\t\t\t\t\tSystem.out.println(\"You lose...1\");\r\n\t\t\t\t}\r\n\t\t\t\r\n\t\t\t} // end finalCheck = true\r\n\t\t\r\n\t\t} // end endGame = false if\r\n\t\r\n\t}", "private int drawCards(){\n int input = JOptionPane.showConfirmDialog(null, FirstPlayer.showHand() + SecondPlayer.showHand() +\n \"Would you like to continue the game?\\n\", \"Draw another card?\", \n JOptionPane.YES_NO_OPTION, JOptionPane.QUESTION_MESSAGE);\n return input;\n }", "private void showGameOver()\n {\n Platform.runLater(new Runnable() {\n @Override\n public void run() {\n //Todo:\n // step 1. get the winner name using game.getWinner()\n // step 2. put the string player.getName()+\" won the game!\" to the string reference called \"result\"\n Player winner = game.getWinner();\n String result = winner.getName() + \" won the game!\";\n\n // pass the string referred by \"result\" to make an alert window\n // check the bottom of page 9 of the PA description for the appearance of this alert window\n Alert alert = new Alert(AlertType.CONFIRMATION, result, ButtonType.YES, ButtonType.NO);\n alert.showAndWait();\n if (alert.getResult() == ButtonType.YES)\n {\n Platform.exit();\n }\n }\n });\n }", "void win() {\n String name = score.getName();\n if (Time.getSecondsPassed() < 1) {\n calculateMissionScore();\n setHighscoreName(name);\n int totalSum = score.getCurrentScore() + (10000 / 1);\n System.out.println(\"You have won the game!\" + \"\\n\" + \"You spend: \" + 1 + \" seconds playing the game!\");\n System.out.println(\"Your score is: \" + totalSum);\n System.out.println(\"your score has been added to highscore\");\n data.addHighscore(score.getName(), totalSum);\n System.out.println(\"\");\n System.out.println(\"Current highscore list is: \");\n System.out.println(data.printHighscore());\n } else {\n calculateMissionScore();\n setHighscoreName(name);\n int totalSum = score.getCurrentScore() + (10000 / Time.getSecondsPassed());\n System.out.println(\"You have won the game!\" + \"\\n\" + \"You spend: \" + Time.getSecondsPassed() + \" seconds playing the game!\");\n System.out.println(\"Your score is: \" + totalSum);\n System.out.println(\"your score has been added to highscore\");\n data.addHighscore(score.getName(), totalSum);\n System.out.println(\"\");\n System.out.println(\"Current highscore list is: \");\n System.out.println(data.printHighscore());\n }\n }", "public void getScores(){\n String p1 = \"Player 1 has \" + Integer.toString(player1.getWins());\n String p2 = \"Player 2 has \" + Integer.toString(player2.getWins());\n String winner = \"tie\";\n if(player1.getWins()>player2.getWins()){\n winner = player1.getName() + \" wins!!!!\";\n }\n else if(player2.getWins()>player1.getWins()){\n winner = player2.getName() + \" Wins!!!\";\n }\n JOptionPane.showMessageDialog(null, (p1 + \"\\n\" + p2 + \"\\n\" + winner));\n }", "public void checkIfWinOrDraw() {\r\n\t\tif (theModel.getIsDraw() == true) {\r\n\t\t\tDrawNum++;\r\n\t\t\tactivePlayer = winningPlayer;\r\n\t\t\t// cards go to communalPile\r\n\r\n\t\t} else {\r\n\t\t\ttheModel.winningCard(winningPlayer);\r\n\t\t\ttheModel.transferWinnerCards(winningPlayer);\r\n\t\t}\r\n\r\n\t}", "public final boolean checkForWin() {\r\n boolean result = false;\r\n String player = \"\";\r\n \r\n for (Rail rail : rails) {\r\n if (rail.isWinner()) {\r\n result = true;\r\n for(Tile tile : rail.getTiles()) {\r\n tile.setBackground(Color.GREEN);\r\n player = tile.getText();\r\n }\r\n if (player.equals(\"X\")) {\r\n winningPlayer = \"X\";\r\n this.xWins++;\r\n } else if (player.equals(\"0\")) {\r\n winningPlayer = \"0\";\r\n this.oWins++;\r\n }\r\n break;\r\n }\r\n }\r\n \r\n return result;\r\n }", "public void checkResult(){\n\t\tif(throwNum == 0){\n\t\t\tthis.firstThrow = this.sumOfDice;\n\t\t}\n\n\t\tif((this.sumOfDice == 7 || this.sumOfDice==11) && throwNum==0){\n\t\t\tthis.game = gameStatus.WON;\n\t\t}\n\t\telse if(this.sumOfDice ==2 || this.sumOfDice== 3 ||this.sumOfDice==12){\n\t\t\tthis.game = gameStatus.LOST;\n\t\t}\n\t\telse if((this.game == gameStatus.CONTINUE && this.sumOfDice == 7)){\n\t\t\tthis.game = gameStatus.LOST;\n\t\t}\n\t\telse if((this.sumOfDice== this.firstThrow) && throwNum!=0){\n\t\t\tthis.game = gameStatus.WON;\n\t\t}\n\t\telse{\n\t\t\tthis.game = gameStatus.CONTINUE;\n\t\t}\n\t}", "void win() {\n if (_game.isWon()) {\n showMessage(\"Congratulations you win!!\", \"WIN\", \"plain\");\n }\n }", "@Override\n public void showWinnerDialog() {\n String message = getGameOverMessage();\n JOptionPane.showMessageDialog( this, message, GameContext.getLabel(\"GAME_OVER\"),\n JOptionPane.INFORMATION_MESSAGE );\n }", "public void retConfirm(float draw){\n System.out.println(\"La cantidad de \"+draw+\" ha sido retirada correctamente\");\n System.out.println(\"\");\n}", "private int gameState() {\n\t\t\n\t\tint gameNotOver = 0;\n\t\tint gameOverWinnerX = 1;\n\t\tint gameOverWinnerO = 2;\n\t\tint gameOverTie = 3;\n\t\t\n\t\t\n\t\t\n\t\t//Win Vertically \n\t\t// 0 3 6 , 1 4 7 , 2 5 8\n\t\t\t\t\n\t\t//Win Horizontally\n\t\t//0 1 2 , 3 4 5 , 6 7 8 \n\t\t\t\t\n\t\t//Win Diagonally\n\t\t// 0 4 8 , 2 4 6\n\t\t\t\t\n\t\t//Assuming it's an equal grid\n\t\t\t\t\n\t\tMark winningMark = null;\n\t\t\t\t\n\t\tboolean hasFoundWinner = false;\n\t\t\t\t\n\t\tint row = 0;\n\t\tint column = 0;\n\t\t\t\t\n\t\t//Horizontal Winner Test\n\t\t\t\t\n\t\twhile (!hasFoundWinner && row < ROW_COUNT) {\n\t\t\t\t\t\n\t\t\tMark[] markArray = new Mark[ROW_COUNT];\n\t\t\t\t\t\n\t\t\tint index = 0;\n\t\t\twhile (column < COLUMN_COUNT) {\n\t\t\t\t\t\n\t\t\t\tmarkArray[index] = getMark(row, column);\n\t\t\t\tcolumn ++;\n\t\t\t\tindex++;\n\t\t\t\t\t\t\n\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\tif (allElementsEqual(markArray)) {\n\t\t\t\thasFoundWinner = true;\n\t\t\t\twinningMark = markArray[0];\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t\tcolumn = 0;\n\t\t\trow++;\t\n\t\t\t\t\t\t\n\t\t}\n\t\t\t\t\n\t\tif (hasFoundWinner) {\n\t\t\tif (winningMark == Mark.X) {\n\t\t\t\treturn gameOverWinnerX;\n\t\t\t}\n\t\t\tif (winningMark == Mark.O) {\n\t\t\t\treturn gameOverWinnerO;\n\t\t\t}\n\t\t}\n\t\t\t\t\n\t\t// Vertical Winner Test\n\t\t\t\t\n\t\trow = 0;\n\t\tcolumn = 0;\n\n\t\twhile (!hasFoundWinner && column < COLUMN_COUNT) {\n\t\t\t\t\t\n\t\t\tMark[] markArray = new Mark[ROW_COUNT];\n\t\t\t\t\t\n\t\t\tint index = 0;\n\t\t\twhile (row < ROW_COUNT) {\n\t\t\t\t\t\n\t\t\t\tmarkArray[index] = getMark(row, column);\n\t\t\t\trow++;\n\t\t\t\tindex++;\n\t\t\t\t\t\t\n\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\tif (allElementsEqual(markArray)) {\n\t\t\t\thasFoundWinner = true;\n\t\t\t\twinningMark = markArray[0];\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t\trow = 0;\n\t\t\tcolumn++;\t\n\t\t\t\t\t\t\n\t\t}\n\t\t\t\t\n\t\tif (hasFoundWinner) {\n\t\t\tif (winningMark == Mark.X) {\n\t\t\t\treturn gameOverWinnerX;\n\t\t\t}\n\t\t\tif (winningMark == Mark.O) {\n\t\t\t\treturn gameOverWinnerO;\n\t\t\t}\n\t\t}\n\t\t\t\t\n\t\t//Diagonal Winner Test \"\\\"\n\t\t\t\t\n\t\trow = 0;\n\t\tcolumn = 0;\n\t\t\t\t\n\t\twhile (!hasFoundWinner && row < ROW_COUNT) {\n\t\t\t\t\t\n\t\t\tMark[] markArray = new Mark[COLUMN_COUNT];\n\t\t\t\t\t\n\t\t\tint index = 0;\n\t\t\t\t\t\n\t\t\twhile (row < ROW_COUNT) {\n\t\t\t\t\t\t\n\t\t\t\tmarkArray[index] = getMark(row, column);\n\t\t\t\trow++;\n\t\t\t\tcolumn++;\n\t\t\t\tindex++;\n\t\t\t\t\t\t\n\t\t\t}\n\t\t\t\t\t\n\t\t\tif (allElementsEqual(markArray)) {\n\t\t\t\thasFoundWinner = true;\n\t\t\t\twinningMark = markArray[0];\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t}\n\t\t\t\t\n\t\tif (hasFoundWinner) {\n\t\t\tif (winningMark == Mark.X) {\n\t\t\t\treturn gameOverWinnerX;\n\t\t\t}\n\t\t\tif (winningMark == Mark.O) {\n\t\t\t\treturn gameOverWinnerO;\n\t\t\t}\n\t\t}\n\t\t\t\t\n\t\t//Diagonal Test \"/\"\n\t\t\t\t\n\t\trow = 0;\n\t\tcolumn = COLUMN_COUNT - 1;\n\t\t\t\t\n\t\twhile (!hasFoundWinner && row < ROW_COUNT) {\n\t\t\t\t\t\n\t\t\tMark[] markArray = new Mark[COLUMN_COUNT];\n\t\t\t\t\t\n\t\t\tint index = 0;\n\t\t\t\t\t\n\t\t\twhile (row < ROW_COUNT) {\n\t\t\t\t\t\t\n\t\t\t\tmarkArray[index] = getMark(row, column);\n\t\t\t\trow++;\n\t\t\t\tcolumn--;\n\t\t\t\tindex++;\n\t\t\t\t\t\t\n\t\t\t}\n\t\t\t\t\t\n\t\t\tif (allElementsEqual(markArray)) {\n\t\t\t\thasFoundWinner = true;\n\t\t\t\twinningMark = markArray[0];\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\t\t\n\t\t}\n\t\t\n\t\tif (hasFoundWinner) {\n\t\t\tif (winningMark == Mark.X) {\n\t\t\t\treturn gameOverWinnerX;\n\t\t\t}\n\t\t\tif (winningMark == Mark.O) {\n\t\t\t\treturn gameOverWinnerO;\n\t\t\t}\n\t\t}\n\t\t\n\t\t// If there are no moves left, and there is no winner, game ends inn a tie \n\t\t\n\t\tboolean foundNoMove = false;\n\t\tfor (int i = 0; i < movesArray.length; i++) {\n\t\t\tif (movesArray[i] == NO_MOVE) {\n\t\t\t\tfoundNoMove = true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n\t\tif (!foundNoMove && !hasFoundWinner) {\n\t\t\treturn gameOverTie;\n\t\t}\n\t\t\n\t\t// If there is no winner and there are still moves left, game is not over\n\t\t\n\t\treturn gameNotOver;\n\t\t\n\t}", "public int checkWin() {\r\n\t int diagSum1 = 0;\r\n\t int diagSum2 = 0;\r\n\t int colSum = 0;\r\n\t int rowSum = 0;\r\n\t int j = 0;\r\n\t String winner = \"\";\r\n\t \r\n\t \r\n\r\n\t diagSum1 = buttons[0][2].getValue() + buttons[1][1].getValue() + buttons[2][0].getValue();\r\n\t diagSum2 = buttons[0][0].getValue() + buttons[1][1].getValue() + buttons[2][2].getValue();\r\n\r\n\t if(diagSum1 == 3 || diagSum2 == 3) {\r\n\t winner = \"computer\";\r\n\t \t message.setText(\"COMPUTER WINS!\");\r\n\t setPanelEnabled(board, false);\r\n\t\t aiscore.setText(Integer.toString(computerscore+=2));\r\n\t\t restart.setVisible(true);\r\n\t\t j=1;\r\n\r\n\t }\r\n\t if(diagSum1 == -3 || diagSum2 == -3) {\r\n\t winner = \"you win\";\r\n\t setPanelEnabled(board, false);\r\n\t \tmessage.setText(\"YOU WIN\");\r\n\t humanscore.setText(Integer.toString(playerscore+=2));\r\n\t restart.setVisible(true);\r\n\t j=1;\r\n\t }\r\n\r\n\t for(int x = 0; x<3; x++) {\r\n\t for(int y = 0; y<3; y++) {\r\n\t rowSum += buttons[x][y].getValue(); \r\n\t colSum += buttons[y][x].getValue();\r\n\t }\r\n\t if(rowSum == 3 || colSum == 3 && winner.equals(\"\")) { \r\n\t setPanelEnabled(board, false);\r\n\t restart.setVisible(true);\r\n\t\t // frame.add(better);\r\n\t winner = \"Computer wins!\";\r\n\t \t message.setText(\"COMPUTER WINS!\");\r\n\t\t\t aiscore.setText(Integer.toString(computerscore+=2));\r\n\t\t\t j=1;\r\n\t }\r\n\t else if(rowSum == -3 || colSum == -3 && winner.equals(\"\")) {\r\n\t setPanelEnabled(board, false);\r\n\t\t // frame.add(restart);\r\n\t winner = \"You win\";\r\n\t \tmessage.setText(\"YOU WIN\");\r\n\t\t humanscore.setText(Integer.toString(playerscore+=2));\r\n\t\t restart.setVisible(true);\r\n\t\t // frame.add(better);\r\n\t\t j=1;\r\n\t }\r\n\t rowSum = 0;\r\n\t colSum = 0;\r\n\t }\r\n\t \r\n\t if(clicks >= 9 && winner.equals(\"\")) {\r\n winner = \"draw\";\r\n\t setPanelEnabled(board, false);\r\n\t restart.setVisible(true);\r\n\t // frame.add(better);\r\n\t message.setText(\"IT'S A DRAW!\");\r\n\t humanscore.setText(Integer.toString(playerscore+=1));\r\n\t\t aiscore.setText(Integer.toString(computerscore+=1));\r\n\t\t j=1;\r\n\t }\r\n\t return j;\r\n\t }", "public void showResult(NimPlayer player1, NimPlayer player2) {\n String g1 = \"game\";\n String g2 = \"game\";\n\n // check the sigular\n if (player1.getWinTimes() >= 2) {\n g1 = \"games\";\n }\n if (player2.getWinTimes() >= 2) {\n g2 = \"games\";\n }\n System.out.println(player1.getName() + \" won \" +\n player1.getWinTimes() + \" \" + g1 + \" out of \" +\n player1.getTotalTimes() + \" played\");\n System.out.println(player2.getName() + \" won \" +\n player2.getWinTimes() + \" \" + g2 + \" out of \" +\n player2.getTotalTimes() + \" played\");\n }", "private Boolean win(int counter) {\n \n winner = false;\n //if the counter is greater than 8, recognizes that it is a draw\n if (counter >= 8) {\n announce.setText(\"Draw\");\n turn.setText(\"\"); //game ends and is no ones turn\n }\n //list of all of the winning options\n if ((tBoard[0] == tBoard[1] && tBoard[1] == tBoard[2] && tBoard[0] != 2)\n || (tBoard[0] == tBoard[3] && tBoard[3] == tBoard[6] && tBoard[0] != 2)\n || (tBoard[3] == tBoard[4] && tBoard[4] == tBoard[5] && tBoard[3] != 2)\n || (tBoard[6] == tBoard[7] && tBoard[7] == tBoard[8] && tBoard[6] != 2)\n || (tBoard[1] == tBoard[4] && tBoard[4] == tBoard[7] && tBoard[1] != 2)\n || (tBoard[2] == tBoard[5] && tBoard[5] == tBoard[8] && tBoard[2] != 2)\n || (tBoard[0] == tBoard[4] && tBoard[4] == tBoard[8] && tBoard[0] != 2)\n || (tBoard[2] == tBoard[4] && tBoard[4] == tBoard[6] && tBoard[2] != 2)) {\n //if counter is even then recognizes that it is the person who has the X symbol and knows that X won \n if (counter % 2 == 0) {\n announce.setText(\"X is the Winner\"); //announces that X has won\n turn.setText(\"\"); //no ones turn anymore\n } //if it is not X, O has won the game and recognizes\n else {\n announce.setText(\"O is the Winner\"); //announces that O has won\n turn.setText(\"\"); //no ones turn anymore\n\n }\n //winner is set to true and stops allowing user to press other squares through pressed method\n winner = true;\n\n }\n //returns winner\n return winner;\n\n }", "public void showNextMovePrompt() {\n\n if(model.isXTurn()){\n resultLabel.setText(\"X's Turn\");\n }\n else{\n resultLabel.setText(\"O's Turn\");\n }\n }", "public final boolean checkForDraw() {\r\n boolean result = false;\r\n String player = \"\";\r\n \r\n for (Rail rail : rails) {\r\n if (rail.isWinner()) {\r\n return false;\r\n }\r\n }\r\n \r\n if (tilesPlayed == 9) {\r\n draws++;\r\n // window.getStatusMsg().setText(DRAW_MSG); \r\n result = true;\r\n }\r\n \r\n return result;\r\n }", "public boolean gameOver()\n {\n return checkmate()||draw()!=NOT_DRAW;\n }", "public String getWinner(){\n if(whiteWins && blackWins){\n return \"ITS A DRAW\";\n } else if(whiteWins){\n return \"WHITE WINS\";\n } else if(blackWins){\n return \"BLACK WINS\";\n } else {\n return \"NO WINNER\";\n }\n }", "public void dispEasy()\r\n {\r\n //Null block of code was original display method; keeping just in case\r\n \r\n /* switch (Win)\r\n {\r\n case 1: \r\n case 2: \r\n case 3: JOptionPane.showMessageDialog(null, \r\n \"It's a tie!\",\r\n \"digiRPS - Results\",\r\n JOptionPane.INFORMATION_MESSAGE);\r\n break;\r\n case 4: \r\n case 5: \r\n case 6: JOptionPane.showMessageDialog(null, \r\n userName + \" won!\",\r\n \"digiRPS - Results\",\r\n JOptionPane.INFORMATION_MESSAGE);\r\n break;\r\n case 7: \r\n case 8: \r\n case 9: JOptionPane.showMessageDialog(null, \r\n \"Computer won!\",\r\n \"digiRPS - Results\",\r\n JOptionPane.INFORMATION_MESSAGE);\r\n break;\r\n }\r\n */\r\n }", "private void feedback_output(){\r\n\t\tif(up){controller_computer.gui_computer.PressedBorderUp();}\r\n\t\tif(down){controller_computer.gui_computer.PressedBorderDown();}\r\n\t\tif(right){controller_computer.gui_computer.PressedBorderRight();}\r\n\t\tif(left){controller_computer.gui_computer.PressedBorderLeft();}\r\n\t}", "public void gameOver() {\n\t\tgameResult = new GameResult(writer);\n\n\t\tString winnersName = \"\";\n\t\tString resultList = \"\";\n\n\t\tGamePlayer[] tempList = new GamePlayer[playerList.size()];\n\t\tfor (int i = 0; i < tempList.length; i++) {\n\t\t\ttempList[i] = playerList.get(i);\n\t\t}\n\n\t\tArrays.sort(tempList); // Sort the players according to the scores\n\n\t\tint max = tempList[tempList.length - 1].getPlayerScore();\n\t\tint position = 0;\n\n\t\tfor (int i = tempList.length - 1; i >= 0; i--) {\n\t\t\tif (max == tempList[i].getPlayerScore()) {\n\t\t\t\twinnersName += tempList[i].getPlayerName() + \"\\t\";\n\t\t\t}\n\t\t\tresultList += \"No.\" + (++position) + \"\\t\" + tempList[i].getPlayerName() + \"\\t\"\n\t\t\t\t\t+ tempList[i].getPlayerScore() + \"\\n\";\n\t\t}\n\t\tgameResult.initialize(winnersName, resultList, roomNumber, gameRoom);\n\t\tframe.dispose();\n\t}", "private void gameOverDisplay(Graphics g) {\r\n Font small = new Font(\"Helvetica\", Font.BOLD, 20);\r\n FontMetrics metric = getFontMetrics(small);\r\n g.setColor(Color.blue);\r\n g.setFont(small);\r\n if(winner == null) g.drawString(\"DRAW!\", (size - metric.stringWidth(\"DRAW!\")) / 2, size / 2);\r\n else g.drawString(winner.getPlayerName()+\" WIN!\", (size - metric.stringWidth(winner.getPlayerName()+\" WIN!\")) / 2, size / 2);\r\n }", "private void showDrawDialog() {\n Alert alert = new Alert(Alert.AlertType.CONFIRMATION, \" Game Has Ended in a Draw!! \\n\\n\\n Thanks For Playing \" + player1.getName(), new ButtonType(\"Close\", ButtonBar.ButtonData.NO), new ButtonType(\"Play Again\", ButtonBar.ButtonData.YES));\n alert.setGraphic(new ImageView(new Image(this.getClass().getResourceAsStream(\"/Images/draw.png\"))));\n alert.setHeaderText(null);\n alert.setTitle(\"Draw!\");\n alert.showAndWait();\n if (alert.getResult().getButtonData() == ButtonBar.ButtonData.YES) {\n onReset();\n }\n }", "private void showResult() {\n int i = 0;\n matchList.forEach(match -> match.proceed());\n for (Match match : matchList) {\n setTextInlabels(match.showTeamWithResult(), i);\n i++;\n }\n }", "private void showChampionshipWinner()\n {\n boolean singleWinner = true;\n String winnerDrivers = getDrivers().getDriver(0).getName();\n for(int j = 1; j < getDrivers().getSize(); j++)\n { \n if(getDrivers().getDriver(0).getAccumulatedScore() == getDrivers().getDriver(j).getAccumulatedScore()) // if multiple winners\n {\n singleWinner = false;\n winnerDrivers += \" and \" + getDrivers().getDriver(j).getName();\n break;\n }\n else\n {\n break;\n }\n\n }\n if(singleWinner)\n System.out.println(winnerDrivers + \" is the winner of the championship with \" + getDrivers().getDriver(0).getAccumulatedScore() + \" points\");\n else // if multiple winner\n System.out.println(\"ITS A CHAMPIONSHIP TIE!!!\" + winnerDrivers + \" are the winners of the championship with \" + getDrivers().getDriver(0).getAccumulatedScore() + \" points\");\n }", "private void showTurn()\n {\n if( PlayerOneTurn == true )\n {\n if( messageShown == false )\n {\n JOptionPane.showMessageDialog( null, playerOneName + \"it is your turn.\", \"for playerOne\", JOptionPane.PLAIN_MESSAGE );\n \n }\n }\n else\n {\n if( messageShown == false )\n {\n JOptionPane.showMessageDialog( null, playerTwoName + \"it is your turn.\", \"for playerTwo\", JOptionPane.PLAIN_MESSAGE );\n \n }\n }\n }", "public void calculateResult() {\n\t\tfor (GameEngineCallback callback : callbacks) {\n\t\t\t// Roll for house\n\t\t\tthis.rollHouse(INITIAL_DELAY, FINAL_DELAY, DELAY_INCREMENT);\n\t\t\t\n\t\t\tfor (Player player : this.players.values()) {\n\t\t\t\t// Players who are playing must have a bet and a score\n\t\t\t\t// This conditional may not be required in Assignment 2\n\t\t\t\tif (player.getBet() > 0 && player.getRollResult()\n\t\t\t\t\t\t.getTotalScore() > 0) {\n\t\t\t\t\t// Compare rolls, set result and add/subtract points\n\t\t\t\t\tif (this.houseDice.getTotalScore() > player.\n\t\t\t\t\t\t\tgetRollResult().getTotalScore()) {\n\t\t\t\t\t\tGameStatus status = GameEngine.GameStatus.LOST;\t\t\t\t\t\n\t\t\t\t\t\tplayer.setGameResult(status);\n\t\t\t\t\t\t\n\t\t\t\t\t\t// Subtract bet from player points\n\t\t\t\t\t\tint points = player.getPoints() - player.getBet();\n\t\t\t\t\t\tthis.setPlayerPoints(player, points);\n\t\t\t\t\t}\n\t\t\t\t\telse if (houseDice.getTotalScore() == player.\n\t\t\t\t\t\t\tgetRollResult().getTotalScore()) {\n\t\t\t\t\t\tGameStatus status = GameEngine.GameStatus.DREW;\t\t\t\t\t\n\t\t\t\t\t\tplayer.setGameResult(status);\n\t\t\t\t\t\t\n\t\t\t\t\t\t// No change to points on a draw\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tGameStatus status = GameEngine.GameStatus.WON;\t\t\t\t\t\n\t\t\t\t\t\tplayer.setGameResult(status);\n\t\t\t\t\t\t\n\t\t\t\t\t\t// Add bet to player points\n\t\t\t\t\t\tint points = player.getPoints() + player.getBet();\n\t\t\t\t\t\tthis.setPlayerPoints(player, points);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t// Display result\n\t\t\t\t\tcallback.gameResult(this.getPlayer(player.getPlayerId()), \n\t\t\t\t\t\t\tthis.getPlayer(player.getPlayerId()).getGameResult(), this);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public int evalBoard(){\n if (wins('o')){\n return 3;\n }\n // Return 0 if human wins\n else if (wins('b')){\n return 0;\n }\n //Return 2 if game is draw\n else if (isDraw()){\n return 2;\n }\n // Game is not a draw and no player has won. Game is still undecided.\n else {\n return 1;\n }\n }", "public void updateIsWinning() {\n if(!isOpponentDone && !isUserDone) {\n TextView opponentPosition = (TextView) findViewById(R.id.position_indicator_receiver);\n TextView userPosition = (TextView) findViewById(R.id.position_indicator_sender);\n\n Run opponentRun = ((ChallengeReceiverFragment) receiverFragment).getRun();\n Run userRun = ((ChallengeSenderFragment) senderFragment).getRun();\n\n float opponentDistance = opponentRun.getTrack().getDistance();\n float userDistance = userRun.getTrack().getDistance();\n\n if (opponentDistance == userDistance) {\n opponentPosition.setText(R.string.dash);\n userPosition.setText(R.string.dash);\n } else if (opponentDistance > userDistance) {\n opponentPosition.setText(R.string.first_position);\n userPosition.setText(R.string.second_position);\n } else {\n opponentPosition.setText(R.string.second_position);\n userPosition.setText(R.string.first_position);\n }\n System.out.println(opponentDistance + \" \" + userDistance);\n }\n }", "public void act()\n {\n displayBoard();\n Greenfoot.delay(10);\n \n if( checkPlayerOneWin() == true )\n {\n JOptionPane.showMessageDialog( null, \"Congratulations Player One!\", \"playerOne Win\", JOptionPane.PLAIN_MESSAGE );\n \n Greenfoot.stop();\n }\n \n if( checkPlayerTwoWin() == true )\n {\n JOptionPane.showMessageDialog( null, \"Congratulations Player Two!\", \"plauerTwo Win\",JOptionPane.PLAIN_MESSAGE );\n \n Greenfoot.stop();\n }\n \n if( checkBoardFilled() == true )\n {\n JOptionPane.showMessageDialog( null, \"It is a draw!\", \"Wrong step\", JOptionPane.PLAIN_MESSAGE );\n \n Greenfoot.stop();\n }\n \n if( messageShown == false )\n {\n showTurn();\n \n messageShown = true;\n }\n \n checkMouseClick();\n }", "private void checkGame() {\n if (game.checkWin()) {\n rollButton.setDisable(true);\n undoButton.setDisable(true);\n this.dialogFlag = true;\n if (game.isDraw()) {\n showDrawDialog();\n return;\n }\n if (game.getWinner().getName().equals(\"Computer\")) {\n showLoserDialog();\n return;\n }\n showWinnerDialog(player1);\n }\n }", "public String win() {\r\n\t\tint blackCount = 0;\r\n\t\tint whiteCount = 0;\r\n\t\tfor (int i=0; i<piece.size(); i++) {\r\n\t\t\tif (piece.get(order[i]).chessPlayer.equals(\"black\")) {\r\n\t\t\t\tblackCount++;\r\n\t\t\t} else if (piece.get(order[i]).chessPlayer.equals(\"white\")) {\r\n\t\t\t\twhiteCount++;\r\n\t\t\t} else continue;\r\n\t\t}\r\n\t\tif (blackCount == 0) {\r\n\t\t\treturn \"white\";\r\n\t\t} else if (whiteCount == 0) {\r\n\t\t\treturn \"black\";\r\n\t\t} else return null;\r\n\t}", "private void showWindow(String winner) {\n String message;\n final FXMLLoader loader = new FXMLLoader(getClass().getResource(\"winlose.fxml\"));\n if (\"Draw\".equals(winner)) {\n message = \"It's a draw! Play again.\";\n } else {\n if (single) {\n if (winner.equals(playerO)) {\n message = \"LOSER!!\";\n } else {\n message = \"YOU WON!!\";\n }\n } else {\n message = winner + \" won!\";\n }\n }\n\n loader.setController(new WinLoseController(message, playerX, playerO, single));\n resetValues();\n\n try {\n final Parent root = loader.load();\n final Scene scene = new Scene(root, 250, 150);\n Stage stage = new Stage();\n stage.initModality(Modality.APPLICATION_MODAL);\n stage.initStyle(StageStyle.DECORATED);\n stage.setTitle(\"Game Over!\");\n stage.initOwner(label.getScene().getWindow());\n stage.setScene(scene);\n stage.showAndWait();\n } catch (IOException ex) {\n ex.printStackTrace();\n }\n // Close present window\n label.getScene().getWindow().hide();\n\n }", "private void scoreDialog() {\n JPanel jp = new JPanel();\n \n Box verticalBox = Box.createVerticalBox();\n \n JLabel scoreTitle = new JLabel(\"<html><font size=13><center>Score: \" + challengeModel.getChallenge().getScore().getScorePoints() + \"</center></font></html>\");\n scoreTitle.setAlignmentX(CENTER_ALIGNMENT);\n verticalBox.add(scoreTitle);\n \n Box horizontalBox = Box.createHorizontalBox();\n String scoreResult = \"\" + challengeModel.getChallenge().getScore().getGold() + challengeModel.getChallenge().getScore().getSilver() + challengeModel.getChallenge().getScore().getBronze();\n switch(Integer.parseInt(scoreResult)) {\n case 111: // Gold, Silver, Bronze\n horizontalBox.add(new JLabel(Resources.getImageMedalGold()));\n case 11: // Silver, Bronze\n horizontalBox.add(new JLabel(Resources.getImageMedalSilver()));\n case 1: // Bronze\n horizontalBox.add(new JLabel(Resources.getImageMedalBronze()));\n break;\n default:\n break;\n }\n \n verticalBox.add(horizontalBox);\n \n jp.add(verticalBox);\n \n int value = JOptionPane.showOptionDialog(null, jp, \"Fim do desafio\", JOptionPane.NO_OPTION, JOptionPane.PLAIN_MESSAGE, null, new String[] {\"Novo Desafio\"}, 1);\n \n hideAnswerResult(false);\n \n if (value == 0)\n challengeModel.newGame();\n }", "private void checkWinner() {\n\t\tif(player.getHandVal() == BLACKJACK && dealer.getHandVal() == BLACKJACK) {\n\t\t\tSystem.out.println(\"Both players have Blackjack!\\n\");\n\t\t\tresult = \"TIE\";\n\t\t}\n\t\telse if (player.getHandVal() == BLACKJACK) {\n\t\t\tSystem.out.println(\"The Player has Blackjack!\\n\");\n\t\t\tresult = \"PLAYER\";\n\t\t}\n\t\telse if (dealer.getHandVal() == BLACKJACK) {\n\t\t\tSystem.out.println(\"The Dealer has Blackjack!\\n\");\n\t\t\tresult = \"DEALER\";\n\t\t}\n\t\telse if(player.getHandVal() > BLACKJACK && dealer.getHandVal() > BLACKJACK) {\n\t\t\tSystem.out.println(\"Both players bust!\\n\");\n\t\t\tresult = \"DEALER\";\n\t\t}\n\t\telse if(player.getHandVal() > BLACKJACK) {\n\t\t\tSystem.out.println(\"The Player has busted!\\n\");\n\t\t\tresult = \"DEALER\";\n\t\t}\n\t\telse if(dealer.getHandVal() > BLACKJACK) {\n\t\t\tSystem.out.println(\"The Dealer has busted!\\n\");\n\t\t\tresult = \"PLAYER\";\n\t\t}\n\t\telse if(player.getHandVal() > dealer.getHandVal()) {\n\t\t\tSystem.out.println(\"The Player has a higher score!\\n\");\n\t\t\tresult = \"PLAYER\";\n\t\t}\n\t\telse if(player.getHandVal() < dealer.getHandVal()){\n\t\t\tSystem.out.println(\"The dealer has a higher score!\\n\");\n\t\t\tresult = \"DEALER\";\n\t\t}\n\t\telse {\n\t\t\tSystem.out.println(\"Both players have the same score!\\n\");\n\t\t\tresult = \"TIE\";\n\t\t}\n\t}", "@Override\n\tpublic String toString(){\n\t\tString game;\n\t\t\n\t\tgame=this.currentBoard.toString();\n\t\tgame=game+\"best value: \"+this.currentRules.getWinValue(currentBoard)+\" Score: \"+this.points+\"\\n\";\n\t\t\n\t\tif(currentRules.win(currentBoard)){\n\t\t\tgame=game+\"Well done!\\n\";\n\t\t\tfinish=true;\n\t\t}\n\t\telse if(currentRules.lose(currentBoard)){\n\t\t\tgame=game+\"Game over.\\n\";\n\t\t\tfinish=true;\n\t\t}\n\t\t\n\t\treturn game;\n\t}", "public void gameWon()\n {\n ScoreBoard endGame = new ScoreBoard(\"You Win!\", scoreCounter.getValue());\n addObject(endGame, getWidth()/2, getHeight()/2);\n }", "public void updateGame() \n\t{\n\t\tif (bet <= credit && bet <=500) // Verify that the bet is valid. \n\t\t{\n\t\t\tcredit = credit - bet; // Decrement the credit by the amount bet\n\t\t\tgamesPlayed++;\n\t\t\tif (ourWin == \"Royal Flush\")\n\t\t\t{\n\t\t\t\tgamesWon++;\t\t\t\t//Increment the amount of games won\n\t\t\t\tcurrentWin = 250 *bet; // Determine the current win\n\t\t\t\tcredit+= currentWin;\t// Add the winnings to the player's credit\n\t\t\t\twinnings+= currentWin;\t// Keep a tally of all the winnings to this point\n\t\t\t\tcreditValue.setText(String.valueOf(credit)); // Update the credit value.\n\t\t\t\tourWinLabel.setText(ourWin);\n\t\t\t}\n\t\t\telse if (ourWin == \"Straight Flush\")\n\t\t\t{\n\t\t\t\tgamesWon++;\n\t\t\t\tcurrentWin+= 50 * bet;\n\t\t\t\tcredit+= currentWin;\n\t\t\t\twinnings+= currentWin;\n\t\t\t\tcreditValue.setText(String.valueOf(credit));\n\t\t\t\tourWinLabel.setText(ourWin);\n\t\t\t}\n\t\t\telse if (ourWin == \"Four of a Kind\")\n\t\t\t{\n\t\t\t\tgamesWon++;\n\t\t\t\tcurrentWin+= 25 *bet;\n\t\t\t\tcredit+= currentWin;\n\t\t\t\twinnings+= currentWin;\n\t\t\t\tcreditValue.setText(String.valueOf(credit));\n\t\t\t\tourWinLabel.setText(ourWin);\n\t\t\t}\n\t\t\telse if (ourWin == \"Full House\")\n\t\t\t{\n\t\t\t\tgamesWon++;\n\t\t\t\tcurrentWin+= 9* bet;\n\t\t\t\tcredit+= currentWin;\n\t\t\t\twinnings+= currentWin;\n\t\t\t\tcreditValue.setText(String.valueOf(credit));\n\t\t\t\tourWinLabel.setText(ourWin);\n\t\t\t}\n\t\t\telse if (ourWin == \"Flush\")\n\t\t\t{\n\t\t\t\tgamesWon++;\n\t\t\t\tcurrentWin= 6 * bet;\n\t\t\t\tcredit+= currentWin;\n\t\t\t\twinnings+= currentWin;\n\t\t\t\tcreditValue.setText(String.valueOf(credit));\n\t\t\t\tourWinLabel.setText(ourWin);\n\t\t\t}\n\t\t\telse if (ourWin == \"Straight\")\n\t\t\t{\n\t\t\t\tgamesWon++;\n\t\t\t\tcurrentWin= 4* bet;\n\t\t\t\tcredit+= currentWin;\n\t\t\t\twinnings+= currentWin;\n\t\t\t\tcreditValue.setText(String.valueOf(credit));\n\t\t\t\tourWinLabel.setText(ourWin);\n\t\t\t}\n\t\t\telse if (ourWin == \"Three of a Kind\")\n\t\t\t{\n\t\t\t\tgamesWon++;\n\t\t\t\tcurrentWin= 3* bet;\n\t\t\t\tcredit+= currentWin;\n\t\t\t\twinnings+= currentWin;\n\t\t\t\tcreditValue.setText(String.valueOf(credit));\n\t\t\t\tourWinLabel.setText(ourWin);\n\t\t\t}\n\t\t\telse if (ourWin == \"Two Pair\")\n\t\t\t{\n\t\t\t\tgamesWon++;\n\t\t\t\tcurrentWin= 2* bet;\n\t\t\t\tcredit+= currentWin;\n\t\t\t\twinnings+= currentWin;\n\t\t\t\tcreditValue.setText(String.valueOf(credit));\n\t\t\t\tourWinLabel.setText(ourWin);\n\t\t\t}\n\t\t\telse if (ourWin == \"Jacks or Better\")\n\t\t\t{\n\t\t\t\tgamesWon++;\n\t\t\t\tcurrentWin= bet;\n\t\t\t\tcredit+= currentWin;\n\t\t\t\twinnings+= currentWin;\n\t\t\t\tcreditValue.setText(String.valueOf(credit));\n\t\t\t\tourWinLabel.setText(ourWin);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tcreditValue.setText(String.valueOf(credit));\n\t\t\t\tgamesLost++;\n\t\t\t\tlosses+= bet;\n\t\t\t\tourWinLabel.setText(ourWin);\n\t\t\t}\n\t\t\t//Update the remaining statistics\n\t\t\tplayedValue.setText(String.valueOf(gamesPlayed));\n\t\t\twonValue.setText(String.valueOf(gamesWon));\n\t\t\tlostValue.setText(String.valueOf(gamesLost));\n\t\t\twinningsValue.setText(String.valueOf(winnings));\n\t\t\tlossesValue.setText(String.valueOf(losses));\n\t\t}\t\n\t}", "public void result() {\n JLabel header = new JLabel(\"Finish!!\");\n header.setFont(new Font(Font.MONOSPACED, Font.PLAIN, 28));\n gui.getConstraints().gridx = 0;\n gui.getConstraints().gridy = 0;\n gui.getConstraints().insets = new Insets(10,10,50,10);\n gui.getPanel().add(header, gui.getConstraints());\n\n String outcomeText = String.format(\"You answer correctly %d / %d.\",\n totalCorrect, VocabularyQuizList.MAX_NUMBER_QUIZ);\n JTextArea outcome = new JTextArea(outcomeText);\n outcome.setFont(new Font(Font.MONOSPACED, Font.PLAIN, 20));\n outcome.setEditable(false);\n gui.getConstraints().gridy = 1;\n gui.getConstraints().insets = new Insets(10,10,30,10);\n gui.getPanel().add(outcome, gui.getConstraints());\n\n JButton b = new JButton(\"home\");\n gui.getGuiAssist().homeListener(b);\n gui.getConstraints().gridy = 2;\n gui.getConstraints().insets = new Insets(10,200,10,200);\n gui.getPanel().add(b, gui.getConstraints());\n\n b = new JButton(\"start again\");\n startQuestionListener(b);\n gui.getConstraints().gridy = 3;\n gui.getPanel().add(b, gui.getConstraints());\n }", "public void checkMovedRedraw(){\n if((board.isTreasureCollected() || board.isKeyCollected()) && muteMusic == false){\n music.playAudio(\"PickupSound\");\n }\n renderer.redraw(board, boardCanvas.getWidth(), boardCanvas.getHeight());\n if(board.isChipAlive() == false){\n gamePaused = true;\n timeRuunableThread.setPause(gamePaused);\n if(muteMusic == false){\n music.stopPlayingAudio(\"All\");\n music.playAudio(\"LevelCompleteSound\");\n }\n musicName = \"LevelCompleteSound\";\n JOptionPane.showMessageDialog(null, \"Oops! Better luck next time!\", \"Failed\", 1);\n canLoadGame = false;\n } else if(board.isLevelFinished()){\n gamePaused = true;\n timeRuunableThread.setPause(gamePaused);\n if(muteMusic == false){\n music.stopPlayingAudio(\"All\");\n music.playAudio(\"LevelCompleteSound\");\n }\n musicName = \"LevelCompleteSound\";\n if(level == 1){\n int saveOrNot = JOptionPane.showConfirmDialog(null, \"congratulations! Level 1 passed! Go to next level?\", \"Confirm\", JOptionPane.YES_NO_OPTION);\n if (saveOrNot == 0) { // yes\n level = level + 1;\n newGameStart(level);\n } else {\n gamePaused = true;\n }\n }else if(level == 2){\n JOptionPane.showMessageDialog(null, \"congratulations! Level 2 passed!\", \"Win Level 2\", JOptionPane.INFORMATION_MESSAGE);\n }\n }else if(board.onInfoTile()){\n JOptionPane.showMessageDialog(null, readAllLines(), \"Information\", JOptionPane.INFORMATION_MESSAGE);\n }else{\n try {\n infoCanvas.drawChipsLeftNumber(board.getTreasureRemainingAmount());\n infoCanvas.drawKeysChipsPics();\n } catch (IOException ex) {\n ex.printStackTrace();\n }\n }\n }", "private boolean draw(Board board)\n {\n return full(board) && !computerWin(board) && playerWin(board);\n }", "private void showMatchOverDialog(String winnerName) {\n this.computerPaquetView.showOnceHiddenCards();\n int dialogResult = JOptionPane.showConfirmDialog (null, String.format(\"%s won!\\nContinue?\", winnerName),\"\", JOptionPane.YES_NO_OPTION);\n if(dialogResult == JOptionPane.YES_OPTION){\n this.startGame();\n } else {\n this.dispose();\n }\n }", "public void setGameDraw() {\n this.gameStarted = false; \n this.winner = 0; \n this.isDraw = true; \n }", "@Override\r\n public void display() {\n super.display();\r\n System.out.println(\"You can choose one of the correct answers!\");\r\n }", "public void draw(View v) {\n if (currentGame.finished) {\n return;\n }\n new AlertDialog.Builder(this)\n .setTitle(\"Title\")\n .setMessage(\"Draw requested. Accept?\")\n .setIcon(android.R.drawable.ic_dialog_alert)\n .setPositiveButton(android.R.string.yes, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int whichButton) {\n currentGame.draw();\n Toast.makeText(getApplicationContext(), \"draw\", Toast.LENGTH_LONG).show();\n saveGameTitleOrNah();\n }})\n .setNegativeButton(android.R.string.no, null).show();\n }", "private boolean updateGUI(){\n // check if there were games found\n if(totalGames == 0){\n resetPieChart();\n resetLabels();\n showAlertSelectionFail(\"Selection error\", \"No games with this constellation were found.\");\n return false;\n }\n\n // fill labels with text\n lblTotalGames.setText(String.valueOf(totalGames));\n lblGamesWithoutWinner.setText(String.valueOf(gamesWithoutWinner));\n if (averageTurns == 0) {\n lblAverageTurns.setText(\"Not available\");\n } else {\n lblAverageTurns.setText(String.valueOf(averageTurns));\n }\n // remove duplicate players -> playerNameListNoDuplicates\n Set<String> playerSet = new HashSet<>(playerNameList);\n List<String> playerNameListNoDuplicates = new ArrayList<>();\n playerNameListNoDuplicates.addAll(playerSet);\n // sort new List\n Collections.sort(playerNameListNoDuplicates);\n int labelCounter = 1;\n for (String playerName : playerNameListNoDuplicates) {\n vBoxDesc.getChildren().add(labelCounter, new Label(playerName + \":\"));\n vBoxNumbers.getChildren().add(labelCounter, new Label(String.valueOf(nameToWins.get(playerName)) + \" wins\"));\n labelCounter++;\n }\n\n // fill pieChart\n fillPieChart();\n\n return true;\n }", "private void checkAnswer()\r\n\t{\r\n\t\t//Submission to the model and getting 'true' if correct and 'false' otherwise\r\n\t\tboolean response = quizModel.isCorrect(group.getSelection().getActionCommand());\r\n\t\t\r\n\t\t//Updating score label based on result\r\n\t\tif (response == true)\r\n\t\t{\r\n\t\t\tscoreLabel.setText(\"<html><div style='text-align: center;'>\" + \"Score = \" + quizModel.getScore() + \"<br>Correct answer!\" + \"</div></html>\");\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tscoreLabel.setText(\"<html><div style='text-align: center;'>\" + \"Score = \" + quizModel.getScore() + \"<br>Incorrect answer!\" + \"</div></html>\");\r\n\t\t}\r\n\t}", "@Override\n public Double execute() {\n t.setDrawing(NOT_DRAWING);\n return NOT_DRAWING;\n }", "private void displayResults() {\r\n\t\tGImage results;\r\n\t\tif(mehran == null ) {\r\n\t\t\tresults = new GImage(\"WinImage.png\");\r\n\t\t\tresults.scale(.7);\r\n\t\t} else {\r\n\t\t\tresults = new GImage(\"LoseImage.png\");\r\n\t\t\tresults.scale(1.5);\r\n\t\t}\r\n\t\tresults.setLocation((getWidth() - results.getWidth()) / 2.0, (getHeight() - results.getHeight()) / 2.0);\r\n\t\tadd(results);\r\n\t}", "public void finished(){\r\n if(coloredRight(currentGraph)==true){\r\n scoresForGameModes();\r\n System.out.println(score);\r\n hBoxWin.getChildren().clear();\r\n viewer.setImage(new Image(new File(\"src/GraphColoring/kittencoin.gif\").toURI().toString()));\r\n ImageView viewer2 = new ImageView();\r\n viewer2.setImage(new Image(new File(\"src/GraphColoring/kittencoin.gif\").toURI().toString()));\r\n ImageView viewer3 = new ImageView();\r\n viewer3.setImage(new Image(new File(\"src/GraphColoring/kittencoin.gif\").toURI().toString()));\r\n ImageView viewer4 = new ImageView();\r\n viewer4.setImage(new Image(new File(\"src/GraphColoring/kittencoin.gif\").toURI().toString()));\r\n ImageView viewer5 = new ImageView();\r\n viewer5.setImage(new Image(new File(\"src/GraphColoring/kittencoin.gif\").toURI().toString()));\r\n\r\n if(score>=100){\r\n hBoxWin.getChildren().addAll(viewer,viewer2,viewer3,viewer4,viewer5);\r\n }\r\n else if(score >= 90 && score<100){\r\n hBoxWin.getChildren().addAll(viewer,viewer2,viewer3,viewer4,viewer5);\r\n viewer5.setEffect(new ColorAdjust(0,0,-0.9,0));\r\n }\r\n else if(score >= 60 && score<90){\r\n hBoxWin.getChildren().addAll(viewer,viewer2,viewer3,viewer4,viewer5);\r\n viewer5.setEffect(new ColorAdjust(0,0,-0.9,0));\r\n viewer4.setEffect(new ColorAdjust(0,0,-0.9,0));\r\n }\r\n else if(score >= 30 && score<60){\r\n hBoxWin.getChildren().addAll(viewer,viewer2,viewer3,viewer4,viewer5);\r\n viewer5.setEffect(new ColorAdjust(0,0,-0.9,0));\r\n viewer4.setEffect(new ColorAdjust(0,0,-0.9,0));\r\n viewer3.setEffect(new ColorAdjust(0,0,-0.9,0));\r\n }\r\n else if(score<30){\r\n hBoxWin.getChildren().addAll(viewer,viewer2,viewer3,viewer4,viewer5);\r\n viewer5.setEffect(new ColorAdjust(0,0,-0.9,0));\r\n viewer4.setEffect(new ColorAdjust(0,0,-0.9,0));\r\n viewer3.setEffect(new ColorAdjust(0,0,-0.9,0));\r\n viewer2.setEffect(new ColorAdjust(0,0,-0.9,0));\r\n }\r\n stackPane.getChildren().add(gameWinStackPane);\r\n resetHints();\r\n }else{\r\n if(gamemode==3){\r\n stackPane.getChildren().add(gameEndStackPane);\r\n }else{\r\n String string = upper2Label.getText();\r\n upper2Label.setText(\"Nononono\");\r\n Timeline timeline = new Timeline(new KeyFrame(Duration.seconds(3),event -> {\r\n\r\n }));\r\n timeline.play();\r\n timeline.setOnFinished(event -> {\r\n upper2Label.setText(string);\r\n });\r\n }\r\n }\r\n\t//should be displayed in the score window when the game is finished\r\n }", "public void refresh() {\r\n\t\t// hide win icon for both players\r\n\t\timgWinPlayer1.setVisibility(View.GONE);\r\n\t\timgWinPlayer2.setVisibility(View.GONE);\r\n\r\n\t\tswitch (game.getState()) {\r\n\t\tcase STATE_PREPARATION:\r\n\t\t\tgame.init(startingArmy);\r\n\t\t\ttxtTitle.setText(\"It's Time To Show Your Might!!\");\r\n\t\t\ttxtInfo.setText(\"Click START to show the armies\");\r\n\t\t\tbtnBattle.setText(\"START\");\r\n\t\t\ttxtPlayer1.setText(\"\");\r\n\t\t\ttxtPlayer2.setText(\"\");\r\n\t\t\tbreak;\r\n\r\n\t\tcase STATE_BEFORE_BATTLE:\r\n\t\t\ttxtTitle.setText(\"Let's The Battle Begin!\");\r\n\t\t\ttxtInfo.setText(\"Click BATTLE! to commence the battle\");\r\n\t\t\tbtnBattle.setText(\"BATTLE\");\r\n\t\t\ttxtPlayer1.setText(game.getPlayer1Castle().getArmyList());\r\n\t\t\ttxtPlayer2.setText(game.getPlayer2Castle().getArmyList());\r\n\t\t\tbreak;\r\n\r\n\t\tcase STATE_AFTER_BATTLE:\r\n\r\n\t\t\t// do the battle here\r\n\t\t\tBattleResult battleResult = game.battle();\r\n\r\n\t\t\ttxtTitle.setText(\"After Battle Result\");\r\n\t\t\tbtnBattle.setText(\"CREATE NEW\");\r\n\t\t\ttxtPlayer1.setText(game.getPlayer1Castle().getAfterBattleReport());\r\n\t\t\ttxtPlayer2.setText(game.getPlayer2Castle().getAfterBattleReport());\r\n\t\t\tString result = \"Battle ends with Draw\";\r\n\t\t\tif (battleResult == BattleResult.PLAYER_1_WIN) {\r\n\t\t\t\tresult = \"Player 1 wins the battle\";\r\n\t\t\t\timgWinPlayer1.setVisibility(View.VISIBLE);\r\n\t\t\t} else if (battleResult == BattleResult.PLAYER_2_WIN) {\r\n\t\t\t\tresult = \"Player 2 wins the battle\";\r\n\t\t\t\timgWinPlayer2.setVisibility(View.VISIBLE);\r\n\t\t\t}\r\n\t\t\ttxtInfo.setText(result);\r\n\r\n\t\t\t// cycle next starting army\r\n\t\t\tif (startingArmy == StartingArmyType.CAVALRY_VS_ARCHER) {\r\n\t\t\t\tstartingArmy = StartingArmyType.MIX_ARMIES_VS_INFANTRY;\r\n\t\t\t} else {\r\n\t\t\t\tstartingArmy = StartingArmyType.CAVALRY_VS_ARCHER;\r\n\t\t\t}\r\n\t\t\tbreak;\r\n\t\t}\r\n\r\n\t\t// match the image of player with its castle skin\r\n\t\timgPlayer1.setImageResource(getCastleImage(game.getPlayer1Castle()));\r\n\t\timgPlayer2.setImageResource(getCastleImage(game.getPlayer2Castle()));\r\n\t\tbtnCastle1.setText(game.getPlayer1Castle().toString());\r\n\t\tbtnCastle2.setText(game.getPlayer2Castle().toString());\r\n\t}", "boolean winGame();", "public void displayResult(View view){\n countPoints();\n String quantity;\n String player;\n boolean checked = ((CheckBox) findViewById(R.id.nickname)).isChecked();\n\n if (checked == true) {\n player = \"Anonymous\";\n } else {\n player = ((EditText) findViewById(R.id.name)).getText().toString();\n }\n /*\n method to show toast message with result\n */\n if (points > 1) {\n quantity = \" points!\";\n } else {\n quantity = \" point!\";\n }\n Toast.makeText(FlagQuiz.this, player + \", your score is: \" + points + quantity, Toast.LENGTH_LONG).show();\n }", "public static void outcomes(){\n switch(outcome){\n case 1:\n System.out.println(\"Player 1 is the Winner\");\n System.exit(0);\n break;\n case 2:\n System.out.println(\"Player 2 is the Winner\");\n System.exit(0);\n break;\n case 3:\n System.out.println(\"Tie\");\n System.exit(0);\n break;\n\n }\n }", "protected boolean checkForWin() {\r\n \t\r\n if (squaresRevealed == this.width * this.height - this.mines) {\r\n finishFlags();\r\n finish(GameStateModel.WON);\r\n return true;\r\n } \t\r\n \t\r\n return false;\r\n \t\r\n }", "public void printTurn(MouseEvent event) {\n\n if(winner != null) {\n showWindow(winner);\n } else {\n Label textId = (Label) event.getSource();\n if(single && textId.getText().isEmpty())\n disableLabel();\n\n if (textId.getText().isEmpty()) {\n if (playerX.equals(whoseTurn)) {\n textId.setText(\"X\");\n whoseTurn = playerO;\n } else {\n textId.setText(\"O\");\n whoseTurn = playerX;\n }\n }\n computeWinLose();\n label.setText(whoseTurn + \"'s turn to play\");\n\n if (single && whoseTurn.equals(playerO)) {\n printO();\n computeWinLose();\n }\n }\n }", "public void youWin(Graphics g, int x, int y, int moves) {\n String youWin = \"YOU WIN!\";\n String finalMoves;\n String perfect = \"Perfect!\";\n \n g.setColor(Color.black);\n g.setFont(new Font(\"Helvetica\", Font.BOLD, 60));\n g.drawString(youWin, 77, 175);\n \n if (game.n==5) {\n finalMoves = \"Moves: \" + Integer.toString(moves) + \"/25\";\n g.setFont(new Font(\"Helvetica\", Font.BOLD, 25));\n if (moves==25) {\n g.drawString(perfect, 175, 260); \n } else {\n g.setColor(Color.red);\n }\n\n }\n else if (game.n==6) {\n finalMoves = \"Moves: \" + Integer.toString(moves) + \"/36\";\n g.setFont(new Font(\"Helvetica\", Font.BOLD, 25));\n if (moves==36) {\n g.drawString(perfect, 175, 260);\n } \n else {\n g.setColor(Color.red);\n }\n }\n\n else {\n finalMoves = \"Moves: \" + Integer.toString(moves) + \"/49\";\n g.setFont(new Font(\"Helvetica\", Font.BOLD, 25));\n if (moves==49) {\n g.drawString(perfect, 175, 260);\n }\n else {\n g.setColor(Color.red);\n }\n\n }\n g.setFont(new Font(\"Helvetica\", Font.BOLD, 40));\n g.drawString(finalMoves, 100, 225);\n }", "private void determineButtonPress(boolean answer){\n boolean expectedAnswer = currentQuestion.isAnswer();\n String result;\n if (answer == expectedAnswer){\n result=\"Correct\";\n score++;\n txtScore.setText(\"Score: \" + score);\n } else {\n result=\"False\";\n }\n //call this function to display the result to the player\n answerResultAlert(result);\n\n }", "int checkGameWon(){\n int sx,sy,ex,ey;\n Point size = new Point();\n //get the size of current window\n Display display = getWindowManager().getDefaultDisplay();\n display.getSize(size);\n int width = size.x;\n int height = size.y;\n\n //win first row\n if (gameBoard[0] != 0 && gameBoard[0] == gameBoard[1] && gameBoard[0] == gameBoard[2]){\n sx = 0;\n sy =(int) (height * .30);\n\n ex = width;\n ey = (int) (height * .30);\n drawLine(sx,sy,ex,ey,imageView10);\n return gameBoard[0];\n }\n //win second row\n else if (gameBoard[3] != 0 && gameBoard[3] == gameBoard[4] && gameBoard[3] == gameBoard[5]){\n sx = 0;\n sy = (int) (height * .54);\n ex = width;\n ey = (int) (height * .54);\n\n drawLine(sx,sy,ex,ey,imageView10);\n return gameBoard[3];\n }\n //win third row\n else if (gameBoard[6] != 0 && gameBoard[6] == gameBoard[7] && gameBoard[6] == gameBoard[8]){\n sx = 0;\n sy = (int) (height * .77);\n\n ex = width;\n ey = (int) (height * .77);\n\n drawLine(sx,sy,ex,ey,imageView10);\n return gameBoard[6];\n }\n //win first colum\n else if (gameBoard[0] != 0 && gameBoard[0] == gameBoard[3] && gameBoard[0] == gameBoard[6]){\n sx = (int) (width *.15);\n sy = (int) (height * .18);\n ex = (int) (width * .15);\n ey=(int) (height * .89);\n\n drawLine(sx,sy,ex,sy,imageView10);\n return gameBoard[0];\n }\n //win second colum\n else if (gameBoard[1] != 0 && gameBoard[1] == gameBoard[4] && gameBoard[1] == gameBoard[7]){\n sx = (int) (width * .50);\n sy = (int) (height * .18);\n\n ex = (int) (width * .50);\n ey = (int) (height * .89);\n\n drawLine(sx,sy,ex,ey,imageView10);\n return gameBoard[1];\n }\n //win third colum\n else if (gameBoard[2] != 0 && gameBoard[2] == gameBoard[5] && gameBoard[2] == gameBoard[8]){\n sx = (int) (width * .85);\n sy = (int) (height * .18);\n\n ex = (int) (width * .85);\n ey = (int) (height * .89);\n\n drawLine(sx,sy,ex,ey,imageView10);\n return gameBoard[2];\n }\n else{\n //game not won\n return 0;\n }\n }", "public static void yourResults()\r\n\t{\r\n\r\n\t\t\r\n\t\tString[] options = {\"In relation to myself\", \"In relation to everyone\"};\r\n\t\tObject panel = JOptionPane.showInputDialog(null, \" I want to see where I am stand\", \"Message\", JOptionPane.INFORMATION_MESSAGE, null, options, options[0]);\r\n\r\n\t\tif (panel == \"In relation to myself\")\r\n\t\t{\r\n\t\t\tString forID = \"\";\r\n\t\t\tint ID;\r\n\t\t\tforID = JOptionPane.showInputDialog(null, \" What is your ID ?\");\r\n\t\t\ttry {\r\n\t\t\t\tID = Integer.parseInt(forID);\r\n\r\n\t\t\t\tString forPrintAns = \"\";\r\n\t\t\t\tClass.forName(\"com.mysql.jdbc.Driver\");\r\n\t\t\t\tConnection connect = DriverManager.getConnection(jdbcUrl, jdbcUser, jdbcUserPassword);\r\n\t\t\t\tStatement statement = connect.createStatement();\r\n\t\t\t\tString query = \"SELECT * FROM Logs WHERE UserID =\" + ID + \" ORDER BY levelID , moves;\";\r\n\t\t\t\tResultSet result = statement.executeQuery(query);\r\n\r\n\t\t\t\t//my level now\r\n\t\t\t\twhile (result.next()) {\r\n\t\t\t\t\tforPrintAns += result.getInt(\"UserID\") + \",\" + result.getInt(\"levelID\") + \",\" + result.getInt(\"moves\") + \",\" + result.getInt(\"score\")+\"E\";\r\n\t\t\t\t}\r\n\r\n\t\t\t\tString forPrintRusults = \"\";\r\n\t\t\t\tString[] arr;\r\n\t\t\t\tint numOfGames = 0;\r\n\r\n\t\t\t\tint level = 0;\r\n\t\t\t\tint moves = -1;\r\n\t\t\t\tint grade = 0;\r\n\r\n\t\t\t\tboolean flag=false;\r\n\t\t\t\tint maxGrade=Integer.MIN_VALUE;\r\n\t\t\t\tint saveMove=0;\r\n\t\t\t\tString for1=\"\",for3=\"\",for5=\"\",for9=\"\",for11=\"\",for13=\"\",for16=\"\",for20=\"\",for19=\"\",for23=\"\";\r\n\r\n\t\t\t\tint index = 3;\r\n\t\t\t\tfor (int i = 0; i < forPrintAns.length(); i++)\r\n\t\t\t\t{\r\n\t\t\t\t\tif (forPrintAns.charAt(i) == 'E')\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tnumOfGames++;\r\n\t\t\t\t\t\tString help = forPrintAns.substring(index, i);\r\n\t\t\t\t\t\tindex = i;\r\n\t\t\t\t\t\tarr = help.split(\",\");\r\n\t\t\t\t\t\t// System.out.println(Arrays.deepToString(arr));\r\n\r\n\t\t\t\t\t\tswitch(level) {\r\n\t\t\t\t\t\tcase 0:\r\n\t\t\t\t\t\t\tif (grade >= 125 && moves <= 290)\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tif(!flag)\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tmaxGrade=Integer.MIN_VALUE;\r\n\t\t\t\t\t\t\t\t\tsaveMove=0;\r\n\t\t\t\t\t\t\t\t\tflag=true;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tif(maxGrade<grade)\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tmaxGrade=grade;\r\n\t\t\t\t\t\t\t\t\tsaveMove=moves;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tforPrintRusults= \"Level: \" + level + \" moves: \" + saveMove + \" Grade: \" + maxGrade + \"\\n\";\r\n\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase 1:\r\n\r\n\t\t\t\t\t\t\tif (grade >= 436&& moves <= 580)\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tif(flag)\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tmaxGrade=Integer.MIN_VALUE;\r\n\t\t\t\t\t\t\t\t\tsaveMove=0;\r\n\t\t\t\t\t\t\t\t\tflag=false;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tif(maxGrade<grade)\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tmaxGrade=grade;\r\n\t\t\t\t\t\t\t\t\tsaveMove=moves;\r\n\t\t\t\t\t\t\t\t} \r\n\t\t\t\t\t\t\t\tfor1= \"Level: \" + level + \" moves: \" + saveMove + \" Grade: \" + maxGrade + \"\\n\";\r\n\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\tbreak;\r\n\r\n\t\t\t\t\t\tcase 3:\r\n\r\n\t\t\t\t\t\t\tif (grade >= 713&& moves <= 580)\r\n\t\t\t\t\t\t\t{ \r\n\t\t\t\t\t\t\t\tif(!flag)\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tmaxGrade=Integer.MIN_VALUE;\r\n\t\t\t\t\t\t\t\t\tsaveMove=0;\r\n\t\t\t\t\t\t\t\t\tflag=true;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tif(maxGrade<grade)\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tmaxGrade=grade;\r\n\t\t\t\t\t\t\t\t\tsaveMove=moves;\r\n\t\t\t\t\t\t\t\t} \r\n\t\t\t\t\t\t\t\tfor3= \"Level: \" + level + \" moves: \" + saveMove + \" Grade: \" + maxGrade + \"\\n\";\r\n\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase 5:\r\n\r\n\t\t\t\t\t\t\tif (grade >= 570&& moves <= 500)\r\n\t\t\t\t\t\t\t{ \r\n\t\t\t\t\t\t\t\tif(flag)\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tmaxGrade=Integer.MIN_VALUE;\r\n\t\t\t\t\t\t\t\t\tsaveMove=0;\r\n\t\t\t\t\t\t\t\t\tflag=false;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tif(maxGrade<grade)\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tmaxGrade=grade;\r\n\t\t\t\t\t\t\t\t\tsaveMove=moves;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tfor5= \"Level: \" + level + \" moves: \" + saveMove + \" Grade: \" + maxGrade + \"\\n\";\r\n\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase 9:\r\n\r\n\t\t\t\t\t\t\tif (grade >= 480&& moves <= 580)\r\n\t\t\t\t\t\t\t{ \r\n\r\n\t\t\t\t\t\t\t\tif(!flag)\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tmaxGrade=Integer.MIN_VALUE;\r\n\t\t\t\t\t\t\t\t\tsaveMove=0;\r\n\t\t\t\t\t\t\t\t\tflag=true;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tif(maxGrade<grade)\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tmaxGrade=grade;\r\n\t\t\t\t\t\t\t\t\tsaveMove=moves;\r\n\t\t\t\t\t\t\t\t} \r\n\t\t\t\t\t\t\t\tfor9= \"Level: \" + level + \" moves: \" + saveMove + \" Grade: \" + maxGrade + \"\\n\";\r\n\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase 11:\r\n\r\n\t\t\t\t\t\t\tif (grade >= 1050&& moves <= 580)\r\n\t\t\t\t\t\t\t{ \r\n\t\t\t\t\t\t\t\tif(flag)\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tmaxGrade=Integer.MIN_VALUE;\r\n\t\t\t\t\t\t\t\t\tsaveMove=0;\r\n\t\t\t\t\t\t\t\t\tflag=false;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tif(maxGrade<grade)\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tmaxGrade=grade;\r\n\t\t\t\t\t\t\t\t\tsaveMove=moves;\r\n\t\t\t\t\t\t\t\t} \r\n\t\t\t\t\t\t\t\tfor11= \"Level: \" + level + \" moves: \" + saveMove + \" Grade: \" + maxGrade + \"\\n\";\r\n\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase 13:\r\n\r\n\t\t\t\t\t\t\tif (grade >= 310&& moves <= 580)\r\n\t\t\t\t\t\t\t{ \r\n\t\t\t\t\t\t\t\tif(!flag)\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tmaxGrade=Integer.MIN_VALUE;\r\n\t\t\t\t\t\t\t\t\tsaveMove=0;\r\n\t\t\t\t\t\t\t\t\tflag=true;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tif(maxGrade<grade)\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tmaxGrade=grade;\r\n\t\t\t\t\t\t\t\t\tsaveMove=moves;\r\n\t\t\t\t\t\t\t\t} \r\n\t\t\t\t\t\t\t\tfor13= \"Level: \" + level + \" moves: \" + saveMove + \" Grade: \" + maxGrade + \"\\n\";\r\n\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase 16:\r\n\r\n\t\t\t\t\t\t\tif (grade >= 235&& moves <= 290)\r\n\t\t\t\t\t\t\t{ \r\n\t\t\t\t\t\t\t\tif(flag)\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tmaxGrade=Integer.MIN_VALUE;\r\n\t\t\t\t\t\t\t\t\tsaveMove=0;\r\n\t\t\t\t\t\t\t\t\tflag=false;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tif(maxGrade<grade)\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tmaxGrade=grade;\r\n\t\t\t\t\t\t\t\t\tsaveMove=moves;\r\n\t\t\t\t\t\t\t\t} \r\n\t\t\t\t\t\t\t\tfor16= \"Level: \" + level + \" moves: \" + saveMove + \" Grade: \" + maxGrade + \"\\n\";\r\n\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase 19:\r\n\r\n\t\t\t\t\t\t\tif (grade >= 250&& moves <= 580)\r\n\t\t\t\t\t\t\t{ \r\n\t\t\t\t\t\t\t\tif(!flag)\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tmaxGrade=Integer.MIN_VALUE;\r\n\t\t\t\t\t\t\t\t\tsaveMove=0;\r\n\t\t\t\t\t\t\t\t\tflag=true;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tif(maxGrade<grade)\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tmaxGrade=grade;\r\n\t\t\t\t\t\t\t\t\tsaveMove=moves;\r\n\t\t\t\t\t\t\t\t} \r\n\t\t\t\t\t\t\t\tfor19= \"Level: \" + level + \" moves: \" + saveMove + \" Grade: \" + maxGrade + \"\\n\";\r\n\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase 20:\r\n\r\n\t\t\t\t\t\t\tif (grade >= 200&& moves <= 290)\r\n\t\t\t\t\t\t\t{ \r\n\t\t\t\t\t\t\t\tif(flag)\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tmaxGrade=Integer.MIN_VALUE;\r\n\t\t\t\t\t\t\t\t\tsaveMove=0;\r\n\t\t\t\t\t\t\t\t\tflag=false;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tif(maxGrade<grade)\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tmaxGrade=grade;\r\n\t\t\t\t\t\t\t\t\tsaveMove=moves;\r\n\t\t\t\t\t\t\t\t} \r\n\t\t\t\t\t\t\t\tfor20= \"Level: \" + level + \" moves: \" + saveMove + \" Grade: \" + maxGrade + \"\\n\";\r\n\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase 23:\r\n\r\n\t\t\t\t\t\t\tif (grade >= 1000&& moves <= 1140)\r\n\t\t\t\t\t\t\t{ \r\n\t\t\t\t\t\t\t\tif(!flag)\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tmaxGrade=Integer.MIN_VALUE;\r\n\t\t\t\t\t\t\t\t\tsaveMove=0;\r\n\t\t\t\t\t\t\t\t\tflag=true;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tif(maxGrade<grade)\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tmaxGrade=grade;\r\n\t\t\t\t\t\t\t\t\tsaveMove=moves;\r\n\t\t\t\t\t\t\t\t} \r\n\t\t\t\t\t\t\t\tfor23= \"Level: \" + level + \" moves: \" + saveMove + \" Grade: \" + maxGrade + \"\\n\";\r\n\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\tlevel = Integer.parseInt(arr[1]);\r\n\t\t\t\t\t\tmoves = Integer.parseInt(arr[2]);\r\n\t\t\t\t\t\tgrade = Integer.parseInt(arr[3]);\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\t\t\t\tforPrintRusults +=\"\\n\"+for1+\"\\n\"+for3+\"\\n\"+for5+\"\\n\"+for9+\"\\n\"+for11+\"\\n\"+for13+\"\\n\"+for16+\"\\n\"+for20+\"\\n\"+for19+\"\\n\"+for23+\"\\n\";\r\n\t\r\n\t\t\t\tforPrintRusults += \"your level is \" + level + \" and so far you played \" + numOfGames + \" games.\";\r\n\t\t\t\tJOptionPane.showMessageDialog(null, forPrintRusults);\r\n\t\t\t\tresult.close();\r\n\t\t\t\tstatement.close();\r\n\t\t\t\tconnect.close();\r\n\t\t\t} catch (SQLException e)\r\n\t\t\t{\r\n\t\t\t\te.getMessage();\r\n\t\t\t\te.getErrorCode();\r\n\t\t\t} catch (ClassNotFoundException e)\r\n\t\t\t{\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif (panel == \"In relation to everyone\")\r\n\t\t{\r\n\t\t\tString forPrintAns = \"\";\r\n\t\t\tString StringID = JOptionPane.showInputDialog(null, \"What is your ID ? \");\r\n\t\t\ttry {\r\n\t\t\t\tint NumberID = Integer.parseInt(StringID);\r\n\t\t\t\tConnection connect =DriverManager.getConnection(jdbcUrl, jdbcUser, jdbcUserPassword);\r\n\t\t\t\tStatement statement = connect.createStatement();\r\n\t\t\t\tString query = \"SELECT * FROM Logs ORDER BY levelID , score;\";\r\n\t\t\t\tResultSet result = statement.executeQuery(query);\r\n\t\t\t\t\r\n\t\t\t\tint myPlace = 1; \r\n\t\t\t\tint level = 0; \r\n\t\t\t\tint grade = 0; \r\n\t\t\t\t\r\n\t\t\t\tString forPrintRusults = \"\";\r\n\t\t\t\tList<String> IDList = new ArrayList<>();\r\n\t\t\t\r\n\r\n\t\t\t\twhile (result.next())\r\n\t\t\t\t{\r\n\t\t\t\t\tforPrintAns += (\"Id: \" + result.getInt(\"UserID\") + \",\" + result.getInt(\"levelID\") + \",\" + result.getInt(\"score\") + \",\" + result.getDate(\"time\") + \"E\");\r\n\t\t\t\t}\r\n\r\n\t\t\t\tint index = 0;\r\n\t\t\t\tboolean weCanPrint = false; \r\n\t\t\t\tboolean notExistID = true;\r\n\t\t\t\t\r\n\t\t\t\tfor (int i = 0; i < forPrintAns.length(); i++) \r\n\t\t\t\t{\r\n\t\t\t\t\tif (forPrintAns.charAt(i) == 'E')\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tnotExistID = true;\r\n\t\t\t\t\t\tString help = forPrintAns.substring(index, i);\r\n\t\t\t\t\t\tindex = i;\r\n\t\t\t\t\t\tString[] arr = help.split(\",\");\r\n\t\t\t\t\t\tfor (int j = 0; j < IDList.size(); j++)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tif (IDList.get(j).equals(arr[0])) //return id\r\n\t\t\t\t\t\t\t\tnotExistID = false;\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\tif (notExistID)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tIDList.add(arr[0]);\r\n\t\t\t\t\t\t\tmyPlace++;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tif (Integer.parseInt(arr[1]) != level && weCanPrint) //we finished to check this level \r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tforPrintRusults += \"Level: \" + level + \" Grade: \" + grade + \" your Place is:\" + myPlace + \"\\n\";\r\n\t\t\t\t\t\t\tmyPlace = 1;\r\n\t\t\t\t\t\t\tlevel = Integer.parseInt(arr[1]);\r\n\t\t\t\t\t\t\tweCanPrint = false;\r\n\t\t\t\t\t\t\tIDList.clear();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\t\tif (arr[0].contains(\"\" + NumberID)) //the id it's my id\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tlevel = Integer.parseInt(arr[1]);\r\n\t\t\t\t\t\t\tweCanPrint = true;\r\n\t\t\t\t\t\t\tgrade = Integer.parseInt(arr[2]);\r\n\t\t\t\t\t\t\tmyPlace = 1;\r\n\t\t\t\t\t\t\tIDList.clear();\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t}\r\n\r\n\t\t\t\tJOptionPane.showMessageDialog(null, forPrintRusults);\r\n\r\n\t\t\t} catch (SQLException e)\r\n\t\t\t{\r\n\t\t\t\te.getMessage();\r\n\t\t\t\t\r\n\t\t\t\te.getErrorCode();\r\n\t\t\t} \r\n\t\t}\r\n\t}", "public void displayCorrect(){\n textPane1.setText(\"\");\r\n generatePlayerName();\r\n textPane1.setText(\"GOOD JOB! That was the correct answer.\\n\"\r\n + atBatPlayer + \" got a hit!\\n\" +\r\n \"Press Next Question, or hit ENTER, to continue.\");\r\n SWINGButton.setText(\"Next Question\");\r\n formattedTextField1.setText(\"\");\r\n formattedTextField1.setText(\"Score: \" + score);\r\n }", "public void winTheGame(boolean userGuessed) {\n this.setGuessed(true); //updating the isGuessed to true\n //dispalying winning message and the name of the picked movie\n System.out.println(\"Congratulation .. You Win!:)\");\n System.out.println(\"You have Guessed '\" + this.replacedMovie + \"' Correctly.\");\n }", "private void bankUserScore() {\n if (game.isPlayer_turn()) {\n game.addPlayerScore(round_score);\n player_tot_view.setText(String.valueOf(game.getPlayer_total()));\n }\n else {\n game.addBankScore(round_score);\n bank_tot_view.setText(String.valueOf(game.getBank_total()));\n }\n if (game.isGameWon()) {\n gameWonDialog();\n } else {\n game.changeTurn();\n round_score = 0;\n round_score_view.setText(String.valueOf(round_score));\n String label;\n if (game.isPlayer_turn()) {\n game.incrementRound();\n label = \"Round \" + game.getRound() + \" - Player's Turn\";\n }\n else {\n label = \"Round \" + game.getRound() + \" - Banker's Turn\";\n }\n round_label.setText(label);\n if (!game.isPlayer_turn())\n doBankTurn();\n }\n }", "public boolean isGameDraw() {\n if (this.winner == 0 && isBoardFull() && this.gameStarted) {\n return true; \n }\n return false; \n }", "void update(boolean winner);", "private void decide(double playerA, double playerMod, double monA, double monMod, Element pType, Element mType){\n double decider = (playerA * playerMod) - (monA * monMod);\n \n if(decider > 0){//case that the player won\n \n //subtract from the monsters health\n monHealth--;\n \n //diplay new monsters health\n String H = \"\";\n for(int i = 0; i < monHealth; i++){\n H += \"❤ \";\n }\n lblMonHealth.setText(H);\n \n //message to the user\n JOptionPane.showMessageDialog(null, \"You hit your opponent\\n\"\n + \"Info:\\n\"\n + \"You Chose \" + pType.toString() + \" -> \" + playerA + \" * \" + playerMod + \" = \" + (playerA*playerMod) + \"\\n\"\n + \"Opponent chose \" + mType.toString() + \" -> \" + monA + \" * \" + monMod + \" = \" + (monA*monMod));\n \n if(monHealth <= 0){//in the case that the monster dies\n //message to user that they win the encounter\n JOptionPane.showMessageDialog(null, \"Great work!\\nYou Win!\\n\\nYou earned \" + expGain + \" experience\");\n //add XP\n c.setXP(c.getXP() + exp);\n \n \n if(c.getXP() >= 20){//in the case that the player has enough XP to win the game\n //display the win screen\n this.setVisible(false);\n new gameWon(c).setVisible(true);\n }else{//otherwise\n //go back to home\n this.setVisible(false);\n new home(c).setVisible(true); \n }\n \n }\n \n }else if(decider < 0){//case in which the monster won\n \n //the player looses one health\n playerHealth--;\n //update on screen\n String H = \"\";\n for(int i = 0; i < playerHealth; i++){\n H += \"❤ \";\n }\n lblPlayerHealth.setText(H);\n \n //message and rundown to the user\n JOptionPane.showMessageDialog(null, \"Ah, you've been hit\\n\"\n + \"Info:\\n\"\n + \"You Chose \" + pType.toString() + \" -> \" + playerA + \" * \" + playerMod + \" = \" + (playerA*playerMod) + \"\\n\"\n + \"Opponent chose \" + mType.toString() + \" -> \" + monA + \" * \" + monMod + \" = \" + (monA*monMod));\n //If the player dies to the monster\n if(playerHealth <= 0){\n //gameover screen\n this.setVisible(false);\n new gameOver(c).setVisible(true);\n }\n \n }else{//otherwise it was a tie\n //message with rundown\n JOptionPane.showMessageDialog(null, \"tie, nobody wins\\n\"\n + \"Info:\\n\"\n + \"You Chose \" + pType.toString() + \" -> \" + playerA + \" * \" + playerMod + \" = \" + (playerA*playerMod) + \"\\n\"\n + \"Opponent chose \" + mType.toString() + \" -> \" + monA + \" * \" + monMod + \" = \" + (monA*monMod));\n }\n }", "private void showResults() {\n if (!sent) {\n if(checkAnswerOne()) {\n nbOfCorrectAnswers++;\n }\n if(checkAnswerTwo()) {\n nbOfCorrectAnswers++;\n }\n if(checkAnswerThree()) {\n nbOfCorrectAnswers++;\n }\n if(checkAnswerFour()) {\n nbOfCorrectAnswers++;\n }\n\n showResultAsToast(nbOfCorrectAnswers);\n\n } else {\n showResultAsToast(nbOfCorrectAnswers);\n }\n }", "public void gameOver(){ // will be more complex in processing (like a fadey screen or whatever, more dramatic)\n System.out.println();\n System.out.println(\"Three strikes and you're out! You're FIRED!\");\n gameOver = true;\n }", "public void cbDBGet()\n {\n if (!m_white.wasSuccess())\n return;\n \n String str = m_white.getResponse(); \n String cleaned = StringUtils.cleanWhiteSpace(str.trim());\n \n \tString[] pts = cleaned.split(\" \");\n \n HexColor winner = HexColor.get(pts[0].trim());\n m_statusbar.setMessage(winner + \" wins in \" + pts[1]);\n \n m_guiboard.clearMarks();\n \n Vector<HexPoint> proofset = new Vector<HexPoint>();\n \n int state = 0; \n \tfor (int i=2; i<pts.length; ++i) {\n if (pts[i].equals(\"Winning\")) {\n state = 1;\n continue;\n } else if (pts[i].equals(\"Losing\")) {\n state = 2;\n continue;\n }\n \t HexPoint point = HexPoint.get(pts[i].trim());\n \n if (state == 0) { // part of the proof\n proofset.add(point);\n if (m_guiboard.getColor(point) == HexColor.EMPTY)\n m_guiboard.setAlphaColor(point, Color.green);\n else\n m_guiboard.setAlphaColor(point, Color.red);\n } else if (state == 1) { // winning move\n m_guiboard.setText(point, pts[++i]);\n Color old = m_guiboard.getAlphaColor(point);\n \n // cyan if inside proof, magenta if outside; but that\n // probably cannot happen.\n if (proofset.contains(point))\n m_guiboard.setAlphaColor(point, Color.cyan);\n else \n m_guiboard.setAlphaColor(point, Color.magenta); \n \n } else if (state == 2) { // losing move\n \n // green if inside the proof, otherwise no color\n m_guiboard.setText(point, pts[++i]);\n }\n \t}\n \n \tm_guiboard.repaint();\n }" ]
[ "0.6860606", "0.6856038", "0.6798204", "0.6774458", "0.67704797", "0.65784", "0.65743953", "0.65234125", "0.6515912", "0.64936733", "0.64655113", "0.64518803", "0.6421099", "0.6358727", "0.6347403", "0.6334281", "0.6310132", "0.6281824", "0.6261475", "0.6249835", "0.622523", "0.61991835", "0.6198959", "0.6197312", "0.6168373", "0.6156736", "0.6138102", "0.61246336", "0.61196953", "0.61017406", "0.6098489", "0.60901076", "0.60519964", "0.6044262", "0.60429984", "0.60338634", "0.6030225", "0.6027958", "0.6025412", "0.60229266", "0.60207886", "0.6017128", "0.6012312", "0.6007132", "0.6005326", "0.5986541", "0.598004", "0.59726673", "0.59405094", "0.5931532", "0.59276646", "0.59219295", "0.59161806", "0.591581", "0.5911124", "0.58862495", "0.58848375", "0.58806086", "0.5840136", "0.5824059", "0.58222634", "0.58198124", "0.58192664", "0.5814677", "0.5810015", "0.58091694", "0.580908", "0.578872", "0.5788023", "0.5785399", "0.57840306", "0.5781896", "0.57719254", "0.57717514", "0.5763383", "0.57631075", "0.57630914", "0.57629526", "0.5757301", "0.5756317", "0.574957", "0.5749182", "0.57484025", "0.57446814", "0.5742389", "0.57364964", "0.57334", "0.57323116", "0.57296365", "0.5728232", "0.57269245", "0.5706156", "0.5704245", "0.5701163", "0.5698885", "0.56986016", "0.5697844", "0.5692207", "0.5689383", "0.568511" ]
0.7334156
0
/ renamed from: com.google.android.gms.internal.e.et
interface C4571et<T> { /* renamed from: a */ int mo16684a(T t); /* renamed from: a */ T mo16685a(); /* renamed from: a */ void mo16686a(T t, C4570es esVar, C4499ch chVar) throws IOException; /* renamed from: a */ void mo16687a(T t, C4621gg ggVar) throws IOException; /* renamed from: a */ boolean mo16688a(T t, T t2); /* renamed from: b */ int mo16689b(T t); /* renamed from: b */ void mo16690b(T t, T t2); /* renamed from: c */ void mo16691c(T t); /* renamed from: d */ boolean mo16692d(T t); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static com.google.android.gms.dynamite.zzj zzaT(android.content.Context r4) {\n /*\n java.lang.Class<com.google.android.gms.dynamite.DynamiteModule> r0 = com.google.android.gms.dynamite.DynamiteModule.class\n monitor-enter(r0)\n com.google.android.gms.dynamite.zzj r1 = zzaSG // Catch:{ all -> 0x0069 }\n if (r1 == 0) goto L_0x000b\n com.google.android.gms.dynamite.zzj r4 = zzaSG // Catch:{ all -> 0x0069 }\n monitor-exit(r0) // Catch:{ all -> 0x0069 }\n return r4\n L_0x000b:\n com.google.android.gms.common.zze r1 = com.google.android.gms.common.zze.zzoW() // Catch:{ all -> 0x0069 }\n int r1 = r1.isGooglePlayServicesAvailable(r4) // Catch:{ all -> 0x0069 }\n r2 = 0\n if (r1 == 0) goto L_0x0018\n monitor-exit(r0) // Catch:{ all -> 0x0069 }\n return r2\n L_0x0018:\n java.lang.String r1 = \"com.google.android.gms\"\n r3 = 3\n android.content.Context r4 = r4.createPackageContext(r1, r3) // Catch:{ Exception -> 0x004d }\n java.lang.ClassLoader r4 = r4.getClassLoader() // Catch:{ Exception -> 0x004d }\n java.lang.String r1 = \"com.google.android.gms.chimera.container.DynamiteLoaderImpl\"\n java.lang.Class r4 = r4.loadClass(r1) // Catch:{ Exception -> 0x004d }\n java.lang.Object r4 = r4.newInstance() // Catch:{ Exception -> 0x004d }\n android.os.IBinder r4 = (android.os.IBinder) r4 // Catch:{ Exception -> 0x004d }\n if (r4 != 0) goto L_0x0033\n r4 = r2\n goto L_0x0047\n L_0x0033:\n java.lang.String r1 = \"com.google.android.gms.dynamite.IDynamiteLoader\"\n android.os.IInterface r1 = r4.queryLocalInterface(r1) // Catch:{ Exception -> 0x004d }\n boolean r3 = r1 instanceof com.google.android.gms.dynamite.zzj // Catch:{ Exception -> 0x004d }\n if (r3 == 0) goto L_0x0041\n r4 = r1\n com.google.android.gms.dynamite.zzj r4 = (com.google.android.gms.dynamite.zzj) r4 // Catch:{ Exception -> 0x004d }\n goto L_0x0047\n L_0x0041:\n com.google.android.gms.dynamite.zzk r1 = new com.google.android.gms.dynamite.zzk // Catch:{ Exception -> 0x004d }\n r1.<init>(r4) // Catch:{ Exception -> 0x004d }\n r4 = r1\n L_0x0047:\n if (r4 == 0) goto L_0x0067\n zzaSG = r4 // Catch:{ Exception -> 0x004d }\n monitor-exit(r0) // Catch:{ all -> 0x0069 }\n return r4\n L_0x004d:\n r4 = move-exception\n java.lang.String r1 = \"Failed to load IDynamiteLoader from GmsCore: \"\n java.lang.String r4 = r4.getMessage() // Catch:{ all -> 0x0069 }\n java.lang.String r4 = java.lang.String.valueOf(r4) // Catch:{ all -> 0x0069 }\n int r3 = r4.length() // Catch:{ all -> 0x0069 }\n if (r3 == 0) goto L_0x0062\n r1.concat(r4) // Catch:{ all -> 0x0069 }\n goto L_0x0067\n L_0x0062:\n java.lang.String r4 = new java.lang.String // Catch:{ all -> 0x0069 }\n r4.<init>(r1) // Catch:{ all -> 0x0069 }\n L_0x0067:\n monitor-exit(r0) // Catch:{ all -> 0x0069 }\n return r2\n L_0x0069:\n r4 = move-exception\n monitor-exit(r0) // Catch:{ all -> 0x0069 }\n throw r4\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.dynamite.DynamiteModule.zzaT(android.content.Context):com.google.android.gms.dynamite.zzj\");\n }", "public interface C1326d extends IInterface {\n\n /* renamed from: com.google.android.gms.plus.internal.d$a */\n public static abstract class C1327a extends Binder implements C1326d {\n\n /* renamed from: com.google.android.gms.plus.internal.d$a$a */\n private static class C1328a implements C1326d {\n\n /* renamed from: ky */\n private IBinder f3425ky;\n\n C1328a(IBinder iBinder) {\n this.f3425ky = iBinder;\n }\n\n /* renamed from: a */\n public void mo7372a(C0802fh fhVar) throws RemoteException {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"com.google.android.gms.plus.internal.IPlusService\");\n if (fhVar != null) {\n obtain.writeInt(1);\n fhVar.writeToParcel(obtain, 0);\n } else {\n obtain.writeInt(0);\n }\n this.f3425ky.transact(4, obtain, obtain2, 0);\n obtain2.readException();\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }\n\n /* renamed from: a */\n public void mo7373a(C1320b bVar) throws RemoteException {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"com.google.android.gms.plus.internal.IPlusService\");\n obtain.writeStrongBinder(bVar != null ? bVar.asBinder() : null);\n this.f3425ky.transact(8, obtain, obtain2, 0);\n obtain2.readException();\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }\n\n /* renamed from: a */\n public void mo7374a(C1320b bVar, int i, int i2, int i3, String str) throws RemoteException {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"com.google.android.gms.plus.internal.IPlusService\");\n obtain.writeStrongBinder(bVar != null ? bVar.asBinder() : null);\n obtain.writeInt(i);\n obtain.writeInt(i2);\n obtain.writeInt(i3);\n obtain.writeString(str);\n this.f3425ky.transact(16, obtain, obtain2, 0);\n obtain2.readException();\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }\n\n /* renamed from: a */\n public void mo7375a(C1320b bVar, int i, String str, Uri uri, String str2, String str3) throws RemoteException {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"com.google.android.gms.plus.internal.IPlusService\");\n obtain.writeStrongBinder(bVar != null ? bVar.asBinder() : null);\n obtain.writeInt(i);\n obtain.writeString(str);\n if (uri != null) {\n obtain.writeInt(1);\n uri.writeToParcel(obtain, 0);\n } else {\n obtain.writeInt(0);\n }\n obtain.writeString(str2);\n obtain.writeString(str3);\n this.f3425ky.transact(14, obtain, obtain2, 0);\n obtain2.readException();\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }\n\n /* renamed from: a */\n public void mo7376a(C1320b bVar, Uri uri, Bundle bundle) throws RemoteException {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"com.google.android.gms.plus.internal.IPlusService\");\n obtain.writeStrongBinder(bVar != null ? bVar.asBinder() : null);\n if (uri != null) {\n obtain.writeInt(1);\n uri.writeToParcel(obtain, 0);\n } else {\n obtain.writeInt(0);\n }\n if (bundle != null) {\n obtain.writeInt(1);\n bundle.writeToParcel(obtain, 0);\n } else {\n obtain.writeInt(0);\n }\n this.f3425ky.transact(9, obtain, obtain2, 0);\n obtain2.readException();\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }\n\n /* renamed from: a */\n public void mo7377a(C1320b bVar, C0802fh fhVar) throws RemoteException {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"com.google.android.gms.plus.internal.IPlusService\");\n obtain.writeStrongBinder(bVar != null ? bVar.asBinder() : null);\n if (fhVar != null) {\n obtain.writeInt(1);\n fhVar.writeToParcel(obtain, 0);\n } else {\n obtain.writeInt(0);\n }\n this.f3425ky.transact(45, obtain, obtain2, 0);\n obtain2.readException();\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }\n\n /* renamed from: a */\n public void mo7378a(C1320b bVar, String str) throws RemoteException {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"com.google.android.gms.plus.internal.IPlusService\");\n obtain.writeStrongBinder(bVar != null ? bVar.asBinder() : null);\n obtain.writeString(str);\n this.f3425ky.transact(1, obtain, obtain2, 0);\n obtain2.readException();\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }\n\n /* renamed from: a */\n public void mo7379a(C1320b bVar, String str, String str2) throws RemoteException {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"com.google.android.gms.plus.internal.IPlusService\");\n obtain.writeStrongBinder(bVar != null ? bVar.asBinder() : null);\n obtain.writeString(str);\n obtain.writeString(str2);\n this.f3425ky.transact(2, obtain, obtain2, 0);\n obtain2.readException();\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }\n\n /* renamed from: a */\n public void mo7380a(C1320b bVar, List<String> list) throws RemoteException {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"com.google.android.gms.plus.internal.IPlusService\");\n obtain.writeStrongBinder(bVar != null ? bVar.asBinder() : null);\n obtain.writeStringList(list);\n this.f3425ky.transact(34, obtain, obtain2, 0);\n obtain2.readException();\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }\n\n public IBinder asBinder() {\n return this.f3425ky;\n }\n\n /* renamed from: b */\n public void mo7381b(C1320b bVar) throws RemoteException {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"com.google.android.gms.plus.internal.IPlusService\");\n obtain.writeStrongBinder(bVar != null ? bVar.asBinder() : null);\n this.f3425ky.transact(19, obtain, obtain2, 0);\n obtain2.readException();\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }\n\n /* renamed from: b */\n public void mo7382b(C1320b bVar, String str) throws RemoteException {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"com.google.android.gms.plus.internal.IPlusService\");\n obtain.writeStrongBinder(bVar != null ? bVar.asBinder() : null);\n obtain.writeString(str);\n this.f3425ky.transact(3, obtain, obtain2, 0);\n obtain2.readException();\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }\n\n /* renamed from: c */\n public void mo7383c(C1320b bVar, String str) throws RemoteException {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"com.google.android.gms.plus.internal.IPlusService\");\n obtain.writeStrongBinder(bVar != null ? bVar.asBinder() : null);\n obtain.writeString(str);\n this.f3425ky.transact(18, obtain, obtain2, 0);\n obtain2.readException();\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }\n\n public void clearDefaultAccount() throws RemoteException {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"com.google.android.gms.plus.internal.IPlusService\");\n this.f3425ky.transact(6, obtain, obtain2, 0);\n obtain2.readException();\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }\n\n /* renamed from: d */\n public void mo7385d(C1320b bVar, String str) throws RemoteException {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"com.google.android.gms.plus.internal.IPlusService\");\n obtain.writeStrongBinder(bVar != null ? bVar.asBinder() : null);\n obtain.writeString(str);\n this.f3425ky.transact(40, obtain, obtain2, 0);\n obtain2.readException();\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }\n\n /* renamed from: e */\n public void mo7386e(C1320b bVar, String str) throws RemoteException {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"com.google.android.gms.plus.internal.IPlusService\");\n obtain.writeStrongBinder(bVar != null ? bVar.asBinder() : null);\n obtain.writeString(str);\n this.f3425ky.transact(44, obtain, obtain2, 0);\n obtain2.readException();\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }\n\n public String getAccountName() throws RemoteException {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"com.google.android.gms.plus.internal.IPlusService\");\n this.f3425ky.transact(5, obtain, obtain2, 0);\n obtain2.readException();\n return obtain2.readString();\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }\n\n /* renamed from: hl */\n public String mo7388hl() throws RemoteException {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"com.google.android.gms.plus.internal.IPlusService\");\n this.f3425ky.transact(41, obtain, obtain2, 0);\n obtain2.readException();\n return obtain2.readString();\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }\n\n /* renamed from: hm */\n public boolean mo7389hm() throws RemoteException {\n boolean z = false;\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"com.google.android.gms.plus.internal.IPlusService\");\n this.f3425ky.transact(42, obtain, obtain2, 0);\n obtain2.readException();\n if (obtain2.readInt() != 0) {\n z = true;\n }\n return z;\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }\n\n /* renamed from: hn */\n public String mo7390hn() throws RemoteException {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"com.google.android.gms.plus.internal.IPlusService\");\n this.f3425ky.transact(43, obtain, obtain2, 0);\n obtain2.readException();\n return obtain2.readString();\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }\n\n public void removeMoment(String momentId) throws RemoteException {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"com.google.android.gms.plus.internal.IPlusService\");\n obtain.writeString(momentId);\n this.f3425ky.transact(17, obtain, obtain2, 0);\n obtain2.readException();\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }\n }\n\n /* renamed from: aA */\n public static C1326d m3858aA(IBinder iBinder) {\n if (iBinder == null) {\n return null;\n }\n IInterface queryLocalInterface = iBinder.queryLocalInterface(\"com.google.android.gms.plus.internal.IPlusService\");\n return (queryLocalInterface == null || !(queryLocalInterface instanceof C1326d)) ? new C1328a(iBinder) : (C1326d) queryLocalInterface;\n }\n\n /* JADX WARNING: type inference failed for: r4v0 */\n /* JADX WARNING: type inference failed for: r4v1, types: [com.google.android.gms.internal.fh] */\n /* JADX WARNING: type inference failed for: r4v2, types: [com.google.android.gms.internal.fh] */\n /* JADX WARNING: type inference failed for: r4v4, types: [android.net.Uri] */\n /* JADX WARNING: type inference failed for: r0v38, types: [android.net.Uri] */\n /* JADX WARNING: type inference failed for: r4v5 */\n /* JADX WARNING: type inference failed for: r4v6 */\n /* JADX WARNING: Multi-variable type inference failed. Error: jadx.core.utils.exceptions.JadxRuntimeException: No candidate types for var: r4v0\n assigns: [?[int, float, boolean, short, byte, char, OBJECT, ARRAY], ?[OBJECT, ARRAY], com.google.android.gms.internal.fh]\n uses: [com.google.android.gms.internal.fh, android.net.Uri]\n mth insns count: 188\n \tat jadx.core.dex.visitors.typeinference.TypeSearch.fillTypeCandidates(TypeSearch.java:237)\n \tat java.base/java.util.ArrayList.forEach(ArrayList.java:1540)\n \tat jadx.core.dex.visitors.typeinference.TypeSearch.run(TypeSearch.java:53)\n \tat jadx.core.dex.visitors.typeinference.TypeInferenceVisitor.runMultiVariableSearch(TypeInferenceVisitor.java:99)\n \tat jadx.core.dex.visitors.typeinference.TypeInferenceVisitor.visit(TypeInferenceVisitor.java:92)\n \tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:27)\n \tat jadx.core.dex.visitors.DepthTraversal.lambda$visit$1(DepthTraversal.java:14)\n \tat java.base/java.util.ArrayList.forEach(ArrayList.java:1540)\n \tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:14)\n \tat jadx.core.dex.visitors.DepthTraversal.lambda$visit$0(DepthTraversal.java:13)\n \tat java.base/java.util.ArrayList.forEach(ArrayList.java:1540)\n \tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:13)\n \tat jadx.core.ProcessClass.process(ProcessClass.java:30)\n \tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:311)\n \tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n \tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:217)\n */\n /* JADX WARNING: Unknown variable types count: 3 */\n /* Code decompiled incorrectly, please refer to instructions dump. */\n public boolean onTransact(int r9, android.os.Parcel r10, android.os.Parcel r11, int r12) throws android.os.RemoteException {\n /*\n r8 = this;\n r4 = 0\n r7 = 1\n switch(r9) {\n case 1: goto L_0x0010;\n case 2: goto L_0x0028;\n case 3: goto L_0x0044;\n case 4: goto L_0x005c;\n case 5: goto L_0x0076;\n case 6: goto L_0x0086;\n case 8: goto L_0x0093;\n case 9: goto L_0x00a8;\n case 14: goto L_0x00de;\n case 16: goto L_0x0113;\n case 17: goto L_0x0139;\n case 18: goto L_0x014a;\n case 19: goto L_0x0163;\n case 34: goto L_0x0178;\n case 40: goto L_0x0191;\n case 41: goto L_0x01aa;\n case 42: goto L_0x01bb;\n case 43: goto L_0x01d1;\n case 44: goto L_0x01e2;\n case 45: goto L_0x01fb;\n case 1598968902: goto L_0x000a;\n default: goto L_0x0005;\n }\n L_0x0005:\n boolean r7 = super.onTransact(r9, r10, r11, r12)\n L_0x0009:\n return r7\n L_0x000a:\n java.lang.String r0 = \"com.google.android.gms.plus.internal.IPlusService\"\n r11.writeString(r0)\n goto L_0x0009\n L_0x0010:\n java.lang.String r0 = \"com.google.android.gms.plus.internal.IPlusService\"\n r10.enforceInterface(r0)\n android.os.IBinder r0 = r10.readStrongBinder()\n com.google.android.gms.plus.internal.b r0 = com.google.android.gms.plus.internal.C1320b.C1321a.m3825ay(r0)\n java.lang.String r1 = r10.readString()\n r8.mo7378a(r0, r1)\n r11.writeNoException()\n goto L_0x0009\n L_0x0028:\n java.lang.String r0 = \"com.google.android.gms.plus.internal.IPlusService\"\n r10.enforceInterface(r0)\n android.os.IBinder r0 = r10.readStrongBinder()\n com.google.android.gms.plus.internal.b r0 = com.google.android.gms.plus.internal.C1320b.C1321a.m3825ay(r0)\n java.lang.String r1 = r10.readString()\n java.lang.String r2 = r10.readString()\n r8.mo7379a(r0, r1, r2)\n r11.writeNoException()\n goto L_0x0009\n L_0x0044:\n java.lang.String r0 = \"com.google.android.gms.plus.internal.IPlusService\"\n r10.enforceInterface(r0)\n android.os.IBinder r0 = r10.readStrongBinder()\n com.google.android.gms.plus.internal.b r0 = com.google.android.gms.plus.internal.C1320b.C1321a.m3825ay(r0)\n java.lang.String r1 = r10.readString()\n r8.mo7382b(r0, r1)\n r11.writeNoException()\n goto L_0x0009\n L_0x005c:\n java.lang.String r0 = \"com.google.android.gms.plus.internal.IPlusService\"\n r10.enforceInterface(r0)\n int r0 = r10.readInt()\n if (r0 == 0) goto L_0x0074\n com.google.android.gms.internal.fi r0 = com.google.android.gms.internal.C0802fh.CREATOR\n com.google.android.gms.internal.fh r0 = r0.createFromParcel(r10)\n L_0x006d:\n r8.mo7372a(r0)\n r11.writeNoException()\n goto L_0x0009\n L_0x0074:\n r0 = r4\n goto L_0x006d\n L_0x0076:\n java.lang.String r0 = \"com.google.android.gms.plus.internal.IPlusService\"\n r10.enforceInterface(r0)\n java.lang.String r0 = r8.getAccountName()\n r11.writeNoException()\n r11.writeString(r0)\n goto L_0x0009\n L_0x0086:\n java.lang.String r0 = \"com.google.android.gms.plus.internal.IPlusService\"\n r10.enforceInterface(r0)\n r8.clearDefaultAccount()\n r11.writeNoException()\n goto L_0x0009\n L_0x0093:\n java.lang.String r0 = \"com.google.android.gms.plus.internal.IPlusService\"\n r10.enforceInterface(r0)\n android.os.IBinder r0 = r10.readStrongBinder()\n com.google.android.gms.plus.internal.b r0 = com.google.android.gms.plus.internal.C1320b.C1321a.m3825ay(r0)\n r8.mo7373a(r0)\n r11.writeNoException()\n goto L_0x0009\n L_0x00a8:\n java.lang.String r0 = \"com.google.android.gms.plus.internal.IPlusService\"\n r10.enforceInterface(r0)\n android.os.IBinder r0 = r10.readStrongBinder()\n com.google.android.gms.plus.internal.b r2 = com.google.android.gms.plus.internal.C1320b.C1321a.m3825ay(r0)\n int r0 = r10.readInt()\n if (r0 == 0) goto L_0x00da\n android.os.Parcelable$Creator r0 = android.net.Uri.CREATOR\n java.lang.Object r0 = r0.createFromParcel(r10)\n android.net.Uri r0 = (android.net.Uri) r0\n r1 = r0\n L_0x00c4:\n int r0 = r10.readInt()\n if (r0 == 0) goto L_0x00dc\n android.os.Parcelable$Creator r0 = android.os.Bundle.CREATOR\n java.lang.Object r0 = r0.createFromParcel(r10)\n android.os.Bundle r0 = (android.os.Bundle) r0\n L_0x00d2:\n r8.mo7376a(r2, r1, r0)\n r11.writeNoException()\n goto L_0x0009\n L_0x00da:\n r1 = r4\n goto L_0x00c4\n L_0x00dc:\n r0 = r4\n goto L_0x00d2\n L_0x00de:\n java.lang.String r0 = \"com.google.android.gms.plus.internal.IPlusService\"\n r10.enforceInterface(r0)\n android.os.IBinder r0 = r10.readStrongBinder()\n com.google.android.gms.plus.internal.b r1 = com.google.android.gms.plus.internal.C1320b.C1321a.m3825ay(r0)\n int r2 = r10.readInt()\n java.lang.String r3 = r10.readString()\n int r0 = r10.readInt()\n if (r0 == 0) goto L_0x0102\n android.os.Parcelable$Creator r0 = android.net.Uri.CREATOR\n java.lang.Object r0 = r0.createFromParcel(r10)\n android.net.Uri r0 = (android.net.Uri) r0\n r4 = r0\n L_0x0102:\n java.lang.String r5 = r10.readString()\n java.lang.String r6 = r10.readString()\n r0 = r8\n r0.mo7375a(r1, r2, r3, r4, r5, r6)\n r11.writeNoException()\n goto L_0x0009\n L_0x0113:\n java.lang.String r0 = \"com.google.android.gms.plus.internal.IPlusService\"\n r10.enforceInterface(r0)\n android.os.IBinder r0 = r10.readStrongBinder()\n com.google.android.gms.plus.internal.b r1 = com.google.android.gms.plus.internal.C1320b.C1321a.m3825ay(r0)\n int r2 = r10.readInt()\n int r3 = r10.readInt()\n int r4 = r10.readInt()\n java.lang.String r5 = r10.readString()\n r0 = r8\n r0.mo7374a(r1, r2, r3, r4, r5)\n r11.writeNoException()\n goto L_0x0009\n L_0x0139:\n java.lang.String r0 = \"com.google.android.gms.plus.internal.IPlusService\"\n r10.enforceInterface(r0)\n java.lang.String r0 = r10.readString()\n r8.removeMoment(r0)\n r11.writeNoException()\n goto L_0x0009\n L_0x014a:\n java.lang.String r0 = \"com.google.android.gms.plus.internal.IPlusService\"\n r10.enforceInterface(r0)\n android.os.IBinder r0 = r10.readStrongBinder()\n com.google.android.gms.plus.internal.b r0 = com.google.android.gms.plus.internal.C1320b.C1321a.m3825ay(r0)\n java.lang.String r1 = r10.readString()\n r8.mo7383c(r0, r1)\n r11.writeNoException()\n goto L_0x0009\n L_0x0163:\n java.lang.String r0 = \"com.google.android.gms.plus.internal.IPlusService\"\n r10.enforceInterface(r0)\n android.os.IBinder r0 = r10.readStrongBinder()\n com.google.android.gms.plus.internal.b r0 = com.google.android.gms.plus.internal.C1320b.C1321a.m3825ay(r0)\n r8.mo7381b(r0)\n r11.writeNoException()\n goto L_0x0009\n L_0x0178:\n java.lang.String r0 = \"com.google.android.gms.plus.internal.IPlusService\"\n r10.enforceInterface(r0)\n android.os.IBinder r0 = r10.readStrongBinder()\n com.google.android.gms.plus.internal.b r0 = com.google.android.gms.plus.internal.C1320b.C1321a.m3825ay(r0)\n java.util.ArrayList r1 = r10.createStringArrayList()\n r8.mo7380a(r0, r1)\n r11.writeNoException()\n goto L_0x0009\n L_0x0191:\n java.lang.String r0 = \"com.google.android.gms.plus.internal.IPlusService\"\n r10.enforceInterface(r0)\n android.os.IBinder r0 = r10.readStrongBinder()\n com.google.android.gms.plus.internal.b r0 = com.google.android.gms.plus.internal.C1320b.C1321a.m3825ay(r0)\n java.lang.String r1 = r10.readString()\n r8.mo7385d(r0, r1)\n r11.writeNoException()\n goto L_0x0009\n L_0x01aa:\n java.lang.String r0 = \"com.google.android.gms.plus.internal.IPlusService\"\n r10.enforceInterface(r0)\n java.lang.String r0 = r8.mo7388hl()\n r11.writeNoException()\n r11.writeString(r0)\n goto L_0x0009\n L_0x01bb:\n java.lang.String r0 = \"com.google.android.gms.plus.internal.IPlusService\"\n r10.enforceInterface(r0)\n boolean r0 = r8.mo7389hm()\n r11.writeNoException()\n if (r0 == 0) goto L_0x01cf\n r0 = r7\n L_0x01ca:\n r11.writeInt(r0)\n goto L_0x0009\n L_0x01cf:\n r0 = 0\n goto L_0x01ca\n L_0x01d1:\n java.lang.String r0 = \"com.google.android.gms.plus.internal.IPlusService\"\n r10.enforceInterface(r0)\n java.lang.String r0 = r8.mo7390hn()\n r11.writeNoException()\n r11.writeString(r0)\n goto L_0x0009\n L_0x01e2:\n java.lang.String r0 = \"com.google.android.gms.plus.internal.IPlusService\"\n r10.enforceInterface(r0)\n android.os.IBinder r0 = r10.readStrongBinder()\n com.google.android.gms.plus.internal.b r0 = com.google.android.gms.plus.internal.C1320b.C1321a.m3825ay(r0)\n java.lang.String r1 = r10.readString()\n r8.mo7386e(r0, r1)\n r11.writeNoException()\n goto L_0x0009\n L_0x01fb:\n java.lang.String r0 = \"com.google.android.gms.plus.internal.IPlusService\"\n r10.enforceInterface(r0)\n android.os.IBinder r0 = r10.readStrongBinder()\n com.google.android.gms.plus.internal.b r0 = com.google.android.gms.plus.internal.C1320b.C1321a.m3825ay(r0)\n int r1 = r10.readInt()\n if (r1 == 0) goto L_0x0214\n com.google.android.gms.internal.fi r1 = com.google.android.gms.internal.C0802fh.CREATOR\n com.google.android.gms.internal.fh r4 = r1.createFromParcel(r10)\n L_0x0214:\n r8.mo7377a(r0, r4)\n r11.writeNoException()\n goto L_0x0009\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.plus.internal.C1326d.C1327a.onTransact(int, android.os.Parcel, android.os.Parcel, int):boolean\");\n }\n }\n\n /* renamed from: a */\n void mo7372a(C0802fh fhVar) throws RemoteException;\n\n /* renamed from: a */\n void mo7373a(C1320b bVar) throws RemoteException;\n\n /* renamed from: a */\n void mo7374a(C1320b bVar, int i, int i2, int i3, String str) throws RemoteException;\n\n /* renamed from: a */\n void mo7375a(C1320b bVar, int i, String str, Uri uri, String str2, String str3) throws RemoteException;\n\n /* renamed from: a */\n void mo7376a(C1320b bVar, Uri uri, Bundle bundle) throws RemoteException;\n\n /* renamed from: a */\n void mo7377a(C1320b bVar, C0802fh fhVar) throws RemoteException;\n\n /* renamed from: a */\n void mo7378a(C1320b bVar, String str) throws RemoteException;\n\n /* renamed from: a */\n void mo7379a(C1320b bVar, String str, String str2) throws RemoteException;\n\n /* renamed from: a */\n void mo7380a(C1320b bVar, List<String> list) throws RemoteException;\n\n /* renamed from: b */\n void mo7381b(C1320b bVar) throws RemoteException;\n\n /* renamed from: b */\n void mo7382b(C1320b bVar, String str) throws RemoteException;\n\n /* renamed from: c */\n void mo7383c(C1320b bVar, String str) throws RemoteException;\n\n void clearDefaultAccount() throws RemoteException;\n\n /* renamed from: d */\n void mo7385d(C1320b bVar, String str) throws RemoteException;\n\n /* renamed from: e */\n void mo7386e(C1320b bVar, String str) throws RemoteException;\n\n String getAccountName() throws RemoteException;\n\n /* renamed from: hl */\n String mo7388hl() throws RemoteException;\n\n /* renamed from: hm */\n boolean mo7389hm() throws RemoteException;\n\n /* renamed from: hn */\n String mo7390hn() throws RemoteException;\n\n void removeMoment(String str) throws RemoteException;\n}", "public String mo27383j() {\n return \"com.google.android.gms.location.internal.IGoogleLocationManagerService\";\n }", "@Override\n public boolean onTransact(int n, Parcel object, Parcel parcel, int n2) throws RemoteException {\n String string = null;\n Object object2 = null;\n Object object3 = null;\n switch (n) {\n default: {\n return super.onTransact(n, (Parcel)object, parcel, n2);\n }\n case 1598968902: {\n parcel.writeString(\"com.google.android.gms.plus.internal.IPlusService\");\n return true;\n }\n case 1: {\n object.enforceInterface(\"com.google.android.gms.plus.internal.IPlusService\");\n this.a(b.a.bE(object.readStrongBinder()), object.readString());\n parcel.writeNoException();\n return true;\n }\n case 2: {\n object.enforceInterface(\"com.google.android.gms.plus.internal.IPlusService\");\n this.a(b.a.bE(object.readStrongBinder()), object.readString(), object.readString());\n parcel.writeNoException();\n return true;\n }\n case 3: {\n object.enforceInterface(\"com.google.android.gms.plus.internal.IPlusService\");\n this.b(b.a.bE(object.readStrongBinder()), object.readString());\n parcel.writeNoException();\n return true;\n }\n case 4: {\n object.enforceInterface(\"com.google.android.gms.plus.internal.IPlusService\");\n object = object.readInt() != 0 ? jp.CREATOR.M((Parcel)object) : null;\n this.a((jp)object);\n parcel.writeNoException();\n return true;\n }\n case 5: {\n object.enforceInterface(\"com.google.android.gms.plus.internal.IPlusService\");\n object = this.getAccountName();\n parcel.writeNoException();\n parcel.writeString((String)object);\n return true;\n }\n case 6: {\n object.enforceInterface(\"com.google.android.gms.plus.internal.IPlusService\");\n this.clearDefaultAccount();\n parcel.writeNoException();\n return true;\n }\n case 8: {\n object.enforceInterface(\"com.google.android.gms.plus.internal.IPlusService\");\n this.a(b.a.bE(object.readStrongBinder()));\n parcel.writeNoException();\n return true;\n }\n case 9: {\n object.enforceInterface(\"com.google.android.gms.plus.internal.IPlusService\");\n object2 = b.a.bE(object.readStrongBinder());\n object3 = object.readInt() != 0 ? Uri.CREATOR.createFromParcel((Parcel)object) : null;\n object = object.readInt() != 0 ? Bundle.CREATOR.createFromParcel((Parcel)object) : null;\n this.a((b)object2, (Uri)object3, (Bundle)object);\n parcel.writeNoException();\n return true;\n }\n case 14: {\n object.enforceInterface(\"com.google.android.gms.plus.internal.IPlusService\");\n object2 = b.a.bE(object.readStrongBinder());\n n = object.readInt();\n string = object.readString();\n object3 = object.readInt() != 0 ? Uri.CREATOR.createFromParcel((Parcel)object) : null;\n this.a((b)object2, n, string, (Uri)object3, object.readString(), object.readString());\n parcel.writeNoException();\n return true;\n }\n case 16: {\n object.enforceInterface(\"com.google.android.gms.plus.internal.IPlusService\");\n object2 = this.a(b.a.bE(object.readStrongBinder()), object.readInt(), object.readInt(), object.readInt(), object.readString());\n parcel.writeNoException();\n object = object3;\n if (object2 != null) {\n object = object2.asBinder();\n }\n parcel.writeStrongBinder((IBinder)object);\n return true;\n }\n case 17: {\n object.enforceInterface(\"com.google.android.gms.plus.internal.IPlusService\");\n this.removeMoment(object.readString());\n parcel.writeNoException();\n return true;\n }\n case 18: {\n object.enforceInterface(\"com.google.android.gms.plus.internal.IPlusService\");\n this.c(b.a.bE(object.readStrongBinder()), object.readString());\n parcel.writeNoException();\n return true;\n }\n case 19: {\n object.enforceInterface(\"com.google.android.gms.plus.internal.IPlusService\");\n this.b(b.a.bE(object.readStrongBinder()));\n parcel.writeNoException();\n return true;\n }\n case 34: {\n object.enforceInterface(\"com.google.android.gms.plus.internal.IPlusService\");\n this.a(b.a.bE(object.readStrongBinder()), object.createStringArrayList());\n parcel.writeNoException();\n return true;\n }\n case 40: {\n object.enforceInterface(\"com.google.android.gms.plus.internal.IPlusService\");\n this.d(b.a.bE(object.readStrongBinder()), object.readString());\n parcel.writeNoException();\n return true;\n }\n case 41: {\n object.enforceInterface(\"com.google.android.gms.plus.internal.IPlusService\");\n object = this.nb();\n parcel.writeNoException();\n parcel.writeString((String)object);\n return true;\n }\n case 42: {\n object.enforceInterface(\"com.google.android.gms.plus.internal.IPlusService\");\n boolean bl = this.nc();\n parcel.writeNoException();\n n = bl ? 1 : 0;\n parcel.writeInt(n);\n return true;\n }\n case 43: {\n object.enforceInterface(\"com.google.android.gms.plus.internal.IPlusService\");\n object = this.nd();\n parcel.writeNoException();\n parcel.writeString((String)object);\n return true;\n }\n case 44: {\n object.enforceInterface(\"com.google.android.gms.plus.internal.IPlusService\");\n this.e(b.a.bE(object.readStrongBinder()), object.readString());\n parcel.writeNoException();\n return true;\n }\n case 45: {\n object.enforceInterface(\"com.google.android.gms.plus.internal.IPlusService\");\n object2 = b.a.bE(object.readStrongBinder());\n object3 = string;\n if (object.readInt() != 0) {\n object3 = jp.CREATOR.M((Parcel)object);\n }\n this.a((b)object2, (jp)object3);\n parcel.writeNoException();\n return true;\n }\n case 46: \n }\n object.enforceInterface(\"com.google.android.gms.plus.internal.IPlusService\");\n string = object.readString();\n object3 = object.readInt() != 0 ? jb.CREATOR.E((Parcel)object) : null;\n if (object.readInt() != 0) {\n object2 = jb.CREATOR.E((Parcel)object);\n }\n this.a(string, (jb)object3, (jb)object2);\n parcel.writeNoException();\n return true;\n }", "public interface C0190d extends IInterface {\n\n /* renamed from: com.google.android.gms.dynamic.d$a */\n public static abstract class C0575a extends Binder implements C0190d {\n\n /* renamed from: com.google.android.gms.dynamic.d$a$a */\n private static class C0574a implements C0190d {\n private IBinder kn;\n\n C0574a(IBinder iBinder) {\n this.kn = iBinder;\n }\n\n public IBinder asBinder() {\n return this.kn;\n }\n }\n\n public C0575a() {\n attachInterface(this, \"com.google.android.gms.dynamic.IObjectWrapper\");\n }\n\n /* renamed from: K */\n public static C0190d m1749K(IBinder iBinder) {\n if (iBinder == null) {\n return null;\n }\n IInterface queryLocalInterface = iBinder.queryLocalInterface(\"com.google.android.gms.dynamic.IObjectWrapper\");\n return (queryLocalInterface == null || !(queryLocalInterface instanceof C0190d)) ? new C0574a(iBinder) : (C0190d) queryLocalInterface;\n }\n\n public IBinder asBinder() {\n return this;\n }\n\n public boolean onTransact(int code, Parcel data, Parcel reply, int flags) throws RemoteException {\n switch (code) {\n case 1598968902:\n reply.writeString(\"com.google.android.gms.dynamic.IObjectWrapper\");\n return true;\n default:\n return super.onTransact(code, data, reply, flags);\n }\n }\n }\n}", "public interface zzke\n extends IInterface\n{\n public static abstract class zza extends Binder\n implements zzke\n {\n\n public static zzke zzbc(IBinder ibinder)\n {\n if(ibinder == null)\n return null;\n IInterface iinterface = ibinder.queryLocalInterface(\"com.google.android.gms.identity.intents.internal.IAddressService\");\n if(iinterface != null && (iinterface instanceof zzke))\n return (zzke)iinterface;\n else\n return new zza(ibinder);\n }\n\n public boolean onTransact(int i, Parcel parcel, Parcel parcel1, int j)\n throws RemoteException\n {\n zzkd zzkd;\n switch(i)\n {\n default:\n return super.onTransact(i, parcel, parcel1, j);\n\n case 1598968902: \n parcel1.writeString(\"com.google.android.gms.identity.intents.internal.IAddressService\");\n return true;\n\n case 2: // '\\002'\n parcel.enforceInterface(\"com.google.android.gms.identity.intents.internal.IAddressService\");\n zzkd = com.google.android.gms.internal.zzkd.zza.zzbb(parcel.readStrongBinder());\n break;\n }\n UserAddressRequest useraddressrequest;\n if(parcel.readInt() != 0)\n useraddressrequest = (UserAddressRequest)UserAddressRequest.CREATOR.createFromParcel(parcel);\n else\n useraddressrequest = null;\n if(parcel.readInt() != 0)\n parcel = (Bundle)Bundle.CREATOR.createFromParcel(parcel);\n else\n parcel = null;\n zza(zzkd, useraddressrequest, parcel);\n parcel1.writeNoException();\n return true;\n }\n }\n\n private static class zza.zza\n implements zzke\n {\n\n public IBinder asBinder()\n {\n return zzlW;\n }\n\n public void zza(zzkd zzkd1, UserAddressRequest useraddressrequest, Bundle bundle)\n throws RemoteException\n {\n Parcel parcel;\n Parcel parcel1;\n parcel = Parcel.obtain();\n parcel1 = Parcel.obtain();\n parcel.writeInterfaceToken(\"com.google.android.gms.identity.intents.internal.IAddressService\");\n if(zzkd1 == null) goto _L2; else goto _L1\n_L1:\n zzkd1 = zzkd1.asBinder();\n_L5:\n parcel.writeStrongBinder(zzkd1);\n if(useraddressrequest == null) goto _L4; else goto _L3\n_L3:\n parcel.writeInt(1);\n useraddressrequest.writeToParcel(parcel, 0);\n_L6:\n if(bundle == null)\n break MISSING_BLOCK_LABEL_127;\n parcel.writeInt(1);\n bundle.writeToParcel(parcel, 0);\n_L7:\n zzlW.transact(2, parcel, parcel1, 0);\n parcel1.readException();\n parcel1.recycle();\n parcel.recycle();\n return;\n_L2:\n zzkd1 = null;\n goto _L5\n_L4:\n parcel.writeInt(0);\n goto _L6\n zzkd1;\n parcel1.recycle();\n parcel.recycle();\n throw zzkd1;\n parcel.writeInt(0);\n goto _L7\n }\n\n private IBinder zzlW;\n\n zza.zza(IBinder ibinder)\n {\n zzlW = ibinder;\n }\n }\n\n\n public abstract void zza(zzkd zzkd, UserAddressRequest useraddressrequest, Bundle bundle)\n throws RemoteException;\n}", "private static C2499b m9557c(Context context) {\n try {\n if (Looper.myLooper() == Looper.getMainLooper()) {\n throw new C2579j(\"getAndroidId cannot be called on the main thread.\");\n }\n Method a = C2479ad.m9434a(\"com.google.android.gms.common.GooglePlayServicesUtil\", \"isGooglePlayServicesAvailable\", (Class<?>[]) new Class[]{Context.class});\n if (a == null) {\n return null;\n }\n Object a2 = C2479ad.m9423a((Object) null, a, context);\n if (a2 instanceof Integer) {\n if (((Integer) a2).intValue() == 0) {\n Method a3 = C2479ad.m9434a(\"com.google.android.gms.ads.identifier.AdvertisingIdClient\", \"getAdvertisingIdInfo\", (Class<?>[]) new Class[]{Context.class});\n if (a3 == null) {\n return null;\n }\n Object a4 = C2479ad.m9423a((Object) null, a3, context);\n if (a4 == null) {\n return null;\n }\n Method a5 = C2479ad.m9433a(a4.getClass(), \"getId\", (Class<?>[]) new Class[0]);\n Method a6 = C2479ad.m9433a(a4.getClass(), \"isLimitAdTrackingEnabled\", (Class<?>[]) new Class[0]);\n if (a5 != null) {\n if (a6 != null) {\n C2499b bVar = new C2499b();\n bVar.f7871c = (String) C2479ad.m9423a(a4, a5, new Object[0]);\n bVar.f7873e = ((Boolean) C2479ad.m9423a(a4, a6, new Object[0])).booleanValue();\n return bVar;\n }\n }\n return null;\n }\n }\n return null;\n } catch (Exception e) {\n C2479ad.m9447a(\"android_id\", e);\n return null;\n }\n }", "private static C2499b m9558d(Context context) {\n C2502b bVar = new C2502b();\n Intent intent = new Intent(\"com.google.android.gms.ads.identifier.service.START\");\n intent.setPackage(\"com.google.android.gms\");\n if (context.bindService(intent, bVar, 1)) {\n try {\n C2501a aVar = new C2501a(bVar.mo8982a());\n C2499b bVar2 = new C2499b();\n bVar2.f7871c = aVar.mo8979a();\n bVar2.f7873e = aVar.mo8981b();\n return bVar2;\n } catch (Exception e) {\n C2479ad.m9447a(\"android_id\", e);\n } finally {\n context.unbindService(bVar);\n }\n }\n return null;\n }", "public java.lang.String toString() {\n /*\n r4 = this;\n r1 = com.google.android.gms.internal.zzkq.a;\n r0 = r4.isEmpty();\t Catch:{ ClassCastException -> 0x000c }\n if (r0 == 0) goto L_0x000e;\n L_0x0008:\n r0 = \"{}\";\n L_0x000b:\n return r0;\n L_0x000c:\n r0 = move-exception;\n throw r0;\n L_0x000e:\n r2 = new java.lang.StringBuilder;\n r0 = r4.mSize;\n r0 = r0 * 28;\n r2.<init>(r0);\n r0 = 123; // 0x7b float:1.72E-43 double:6.1E-322;\n r2.append(r0);\n r0 = 0;\n L_0x001d:\n r3 = r4.mSize;\n if (r0 >= r3) goto L_0x0054;\n L_0x0021:\n if (r0 <= 0) goto L_0x0029;\n L_0x0023:\n r3 = \", \";\n r2.append(r3);\t Catch:{ ClassCastException -> 0x005e }\n L_0x0029:\n r3 = r4.keyAt(r0);\n if (r3 == r4) goto L_0x0034;\n L_0x002f:\n r2.append(r3);\t Catch:{ ClassCastException -> 0x0060 }\n if (r1 == 0) goto L_0x003a;\n L_0x0034:\n r3 = \"(this Map)\";\n r2.append(r3);\t Catch:{ ClassCastException -> 0x0060 }\n L_0x003a:\n r3 = 61;\n r2.append(r3);\n r3 = r4.valueAt(r0);\n if (r3 == r4) goto L_0x004a;\n L_0x0045:\n r2.append(r3);\t Catch:{ ClassCastException -> 0x0062 }\n if (r1 == 0) goto L_0x0050;\n L_0x004a:\n r3 = \"(this Map)\";\n r2.append(r3);\t Catch:{ ClassCastException -> 0x0062 }\n L_0x0050:\n r0 = r0 + 1;\n if (r1 == 0) goto L_0x001d;\n L_0x0054:\n r0 = 125; // 0x7d float:1.75E-43 double:6.2E-322;\n r2.append(r0);\n r0 = r2.toString();\n goto L_0x000b;\n L_0x005e:\n r0 = move-exception;\n throw r0;\n L_0x0060:\n r0 = move-exception;\n throw r0;\n L_0x0062:\n r0 = move-exception;\n throw r0;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.internal.zzlh.toString():java.lang.String\");\n }", "public final /* synthetic */ java.lang.Object createFromParcel(android.os.Parcel r14) {\n /*\n r13 = this;\n int r0 = com.google.android.gms.internal.ej.zzd(r14)\n r1 = 0\n r2 = 0\n r4 = r1\n r5 = r4\n r6 = r5\n r7 = r6\n r8 = 0\n r9 = 0\n r10 = 0\n r11 = 0\n r12 = 0\n L_0x000f:\n int r1 = r14.dataPosition()\n if (r1 >= r0) goto L_0x005b\n int r1 = r14.readInt()\n r2 = 65535(0xffff, float:9.1834E-41)\n r2 = r2 & r1\n switch(r2) {\n case 2: goto L_0x0051;\n case 3: goto L_0x004c;\n case 4: goto L_0x0042;\n case 5: goto L_0x003d;\n case 6: goto L_0x0038;\n case 7: goto L_0x0033;\n case 8: goto L_0x002e;\n case 9: goto L_0x0029;\n case 10: goto L_0x0024;\n default: goto L_0x0020;\n }\n L_0x0020:\n com.google.android.gms.internal.ej.zzb(r14, r1)\n goto L_0x000f\n L_0x0024:\n byte r12 = com.google.android.gms.internal.ej.zze(r14, r1)\n goto L_0x000f\n L_0x0029:\n byte r11 = com.google.android.gms.internal.ej.zze(r14, r1)\n goto L_0x000f\n L_0x002e:\n byte r10 = com.google.android.gms.internal.ej.zze(r14, r1)\n goto L_0x000f\n L_0x0033:\n byte r9 = com.google.android.gms.internal.ej.zze(r14, r1)\n goto L_0x000f\n L_0x0038:\n byte r8 = com.google.android.gms.internal.ej.zze(r14, r1)\n goto L_0x000f\n L_0x003d:\n java.lang.Integer r7 = com.google.android.gms.internal.ej.zzh(r14, r1)\n goto L_0x000f\n L_0x0042:\n android.os.Parcelable$Creator<com.google.android.gms.maps.model.LatLng> r2 = com.google.android.gms.maps.model.LatLng.CREATOR\n android.os.Parcelable r1 = com.google.android.gms.internal.ej.zza(r14, r1, r2)\n r6 = r1\n com.google.android.gms.maps.model.LatLng r6 = (com.google.android.gms.maps.model.LatLng) r6\n goto L_0x000f\n L_0x004c:\n java.lang.String r5 = com.google.android.gms.internal.ej.zzq(r14, r1)\n goto L_0x000f\n L_0x0051:\n android.os.Parcelable$Creator<com.google.android.gms.maps.model.StreetViewPanoramaCamera> r2 = com.google.android.gms.maps.model.StreetViewPanoramaCamera.CREATOR\n android.os.Parcelable r1 = com.google.android.gms.internal.ej.zza(r14, r1, r2)\n r4 = r1\n com.google.android.gms.maps.model.StreetViewPanoramaCamera r4 = (com.google.android.gms.maps.model.StreetViewPanoramaCamera) r4\n goto L_0x000f\n L_0x005b:\n com.google.android.gms.internal.ej.zzaf(r14, r0)\n com.google.android.gms.maps.StreetViewPanoramaOptions r14 = new com.google.android.gms.maps.StreetViewPanoramaOptions\n r3 = r14\n r3.<init>(r4, r5, r6, r7, r8, r9, r10, r11, r12)\n return r14\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.maps.r.createFromParcel(android.os.Parcel):java.lang.Object\");\n }", "private static int zzd(android.content.Context r8, java.lang.String r9, boolean r10) throws com.google.android.gms.dynamite.DynamiteModule.zzc {\n /*\n r0 = 0\n if (r10 == 0) goto L_0x000d\n java.lang.String r10 = \"api_force_staging\"\n goto L_0x000f\n L_0x0006:\n r8 = move-exception\n goto L_0x00ad\n L_0x0009:\n r8 = move-exception\n r9 = r0\n goto L_0x009e\n L_0x000d:\n java.lang.String r10 = \"api\"\n L_0x000f:\n java.lang.String r1 = \"content://com.google.android.gms.chimera/\"\n java.lang.String r1 = java.lang.String.valueOf(r1) // Catch:{ Exception -> 0x0009, all -> 0x0006 }\n java.lang.String r2 = java.lang.String.valueOf(r1) // Catch:{ Exception -> 0x0009, all -> 0x0006 }\n int r2 = r2.length() // Catch:{ Exception -> 0x0009, all -> 0x0006 }\n int r2 = r2 + 1\n java.lang.String r3 = java.lang.String.valueOf(r10) // Catch:{ Exception -> 0x0009, all -> 0x0006 }\n int r3 = r3.length() // Catch:{ Exception -> 0x0009, all -> 0x0006 }\n int r2 = r2 + r3\n java.lang.String r3 = java.lang.String.valueOf(r9) // Catch:{ Exception -> 0x0009, all -> 0x0006 }\n int r3 = r3.length() // Catch:{ Exception -> 0x0009, all -> 0x0006 }\n int r2 = r2 + r3\n java.lang.StringBuilder r3 = new java.lang.StringBuilder // Catch:{ Exception -> 0x0009, all -> 0x0006 }\n r3.<init>(r2) // Catch:{ Exception -> 0x0009, all -> 0x0006 }\n r3.append(r1) // Catch:{ Exception -> 0x0009, all -> 0x0006 }\n r3.append(r10) // Catch:{ Exception -> 0x0009, all -> 0x0006 }\n java.lang.String r10 = \"/\"\n r3.append(r10) // Catch:{ Exception -> 0x0009, all -> 0x0006 }\n r3.append(r9) // Catch:{ Exception -> 0x0009, all -> 0x0006 }\n java.lang.String r9 = r3.toString() // Catch:{ Exception -> 0x0009, all -> 0x0006 }\n android.net.Uri r2 = android.net.Uri.parse(r9) // Catch:{ Exception -> 0x0009, all -> 0x0006 }\n android.content.ContentResolver r1 = r8.getContentResolver() // Catch:{ Exception -> 0x0009, all -> 0x0006 }\n r3 = 0\n r4 = 0\n r5 = 0\n r6 = 0\n android.database.Cursor r8 = r1.query(r2, r3, r4, r5, r6) // Catch:{ Exception -> 0x0009, all -> 0x0006 }\n if (r8 == 0) goto L_0x0096\n boolean r9 = r8.moveToFirst() // Catch:{ Exception -> 0x0091, all -> 0x008d }\n if (r9 == 0) goto L_0x0096\n r9 = 0\n int r9 = r8.getInt(r9) // Catch:{ Exception -> 0x0091, all -> 0x008d }\n if (r9 <= 0) goto L_0x0087\n java.lang.Class<com.google.android.gms.dynamite.DynamiteModule> r10 = com.google.android.gms.dynamite.DynamiteModule.class\n monitor-enter(r10) // Catch:{ Exception -> 0x0091, all -> 0x008d }\n r1 = 2\n java.lang.String r1 = r8.getString(r1) // Catch:{ all -> 0x0084 }\n zzaSI = r1 // Catch:{ all -> 0x0084 }\n monitor-exit(r10) // Catch:{ all -> 0x0084 }\n java.lang.ThreadLocal<com.google.android.gms.dynamite.DynamiteModule$zza> r10 = zzaSJ // Catch:{ Exception -> 0x0091, all -> 0x008d }\n java.lang.Object r10 = r10.get() // Catch:{ Exception -> 0x0091, all -> 0x008d }\n com.google.android.gms.dynamite.DynamiteModule$zza r10 = (com.google.android.gms.dynamite.DynamiteModule.zza) r10 // Catch:{ Exception -> 0x0091, all -> 0x008d }\n if (r10 == 0) goto L_0x0087\n android.database.Cursor r1 = r10.zzaSR // Catch:{ Exception -> 0x0091, all -> 0x008d }\n if (r1 != 0) goto L_0x0087\n r10.zzaSR = r8 // Catch:{ Exception -> 0x0091, all -> 0x008d }\n r8 = r0\n goto L_0x0087\n L_0x0084:\n r9 = move-exception\n monitor-exit(r10) // Catch:{ all -> 0x0084 }\n throw r9 // Catch:{ Exception -> 0x0091, all -> 0x008d }\n L_0x0087:\n if (r8 == 0) goto L_0x008c\n r8.close()\n L_0x008c:\n return r9\n L_0x008d:\n r9 = move-exception\n r0 = r8\n r8 = r9\n goto L_0x00ad\n L_0x0091:\n r9 = move-exception\n r7 = r9\n r9 = r8\n r8 = r7\n goto L_0x009e\n L_0x0096:\n com.google.android.gms.dynamite.DynamiteModule$zzc r9 = new com.google.android.gms.dynamite.DynamiteModule$zzc // Catch:{ Exception -> 0x0091, all -> 0x008d }\n java.lang.String r10 = \"Failed to connect to dynamite module ContentResolver.\"\n r9.<init>((java.lang.String) r10, (com.google.android.gms.dynamite.zza) r0) // Catch:{ Exception -> 0x0091, all -> 0x008d }\n throw r9 // Catch:{ Exception -> 0x0091, all -> 0x008d }\n L_0x009e:\n boolean r10 = r8 instanceof com.google.android.gms.dynamite.DynamiteModule.zzc // Catch:{ all -> 0x00ab }\n if (r10 == 0) goto L_0x00a3\n throw r8 // Catch:{ all -> 0x00ab }\n L_0x00a3:\n com.google.android.gms.dynamite.DynamiteModule$zzc r10 = new com.google.android.gms.dynamite.DynamiteModule$zzc // Catch:{ all -> 0x00ab }\n java.lang.String r1 = \"V2 version check failed\"\n r10.<init>(r1, r8, r0) // Catch:{ all -> 0x00ab }\n throw r10 // Catch:{ all -> 0x00ab }\n L_0x00ab:\n r8 = move-exception\n r0 = r9\n L_0x00ad:\n if (r0 == 0) goto L_0x00b2\n r0.close()\n L_0x00b2:\n throw r8\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.dynamite.DynamiteModule.zzd(android.content.Context, java.lang.String, boolean):int\");\n }", "public final String mo6464b() {\n return \"com.google.android.gms.ads.eventattestation.internal.IEventAttestationService\";\n }", "public final String mo38131b() {\n return \"com.google.android.gms.ads.internal.cache.ICacheService\";\n }", "public String mo7388hl() throws RemoteException {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"com.google.android.gms.plus.internal.IPlusService\");\n this.f3425ky.transact(41, obtain, obtain2, 0);\n obtain2.readException();\n return obtain2.readString();\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }", "public interface C2306m extends IInterface {\n\n /* renamed from: com.google.android.gms.maps.internal.m$a */\n public static abstract class C2307a extends Binder implements C2306m {\n\n /* renamed from: com.google.android.gms.maps.internal.m$a$a */\n private static class C2308a implements C2306m {\n\n /* renamed from: le */\n private IBinder f4324le;\n\n C2308a(IBinder iBinder) {\n this.f4324le = iBinder;\n }\n\n /* renamed from: a */\n public void mo17393a(IGoogleMapDelegate iGoogleMapDelegate) throws RemoteException {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"com.google.android.gms.maps.internal.IOnMapReadyCallback\");\n obtain.writeStrongBinder(iGoogleMapDelegate != null ? iGoogleMapDelegate.asBinder() : null);\n this.f4324le.transact(1, obtain, obtain2, 0);\n obtain2.readException();\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }\n\n public IBinder asBinder() {\n return this.f4324le;\n }\n }\n\n public C2307a() {\n attachInterface(this, \"com.google.android.gms.maps.internal.IOnMapReadyCallback\");\n }\n\n /* renamed from: bg */\n public static C2306m m6766bg(IBinder iBinder) {\n if (iBinder == null) {\n return null;\n }\n IInterface queryLocalInterface = iBinder.queryLocalInterface(\"com.google.android.gms.maps.internal.IOnMapReadyCallback\");\n return (queryLocalInterface == null || !(queryLocalInterface instanceof C2306m)) ? new C2308a(iBinder) : (C2306m) queryLocalInterface;\n }\n\n public IBinder asBinder() {\n return this;\n }\n\n public boolean onTransact(int i, Parcel parcel, Parcel parcel2, int i2) throws RemoteException {\n if (i == 1) {\n parcel.enforceInterface(\"com.google.android.gms.maps.internal.IOnMapReadyCallback\");\n mo17393a(IGoogleMapDelegate.C2253a.m6712aT(parcel.readStrongBinder()));\n parcel2.writeNoException();\n return true;\n } else if (i != 1598968902) {\n return super.onTransact(i, parcel, parcel2, i2);\n } else {\n parcel2.writeString(\"com.google.android.gms.maps.internal.IOnMapReadyCallback\");\n return true;\n }\n }\n }\n\n /* renamed from: a */\n void mo17393a(IGoogleMapDelegate iGoogleMapDelegate) throws RemoteException;\n}", "public final String mo38130a() {\n return \"com.google.android.gms.ads.service.CACHE\";\n }", "public interface C2034ok extends IInterface {\n\n /* renamed from: com.google.android.gms.internal.ok$a */\n public static abstract class C2035a extends Binder implements C2034ok {\n\n /* renamed from: com.google.android.gms.internal.ok$a$a */\n private static class C2036a implements C2034ok {\n\n /* renamed from: le */\n private IBinder f4164le;\n\n C2036a(IBinder iBinder) {\n this.f4164le = iBinder;\n }\n\n /* renamed from: a */\n public void mo16484a(C2031oj ojVar, Uri uri, Bundle bundle, boolean z) throws RemoteException {\n Parcel obtain = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"com.google.android.gms.panorama.internal.IPanoramaService\");\n obtain.writeStrongBinder(ojVar != null ? ojVar.asBinder() : null);\n if (uri != null) {\n obtain.writeInt(1);\n uri.writeToParcel(obtain, 0);\n } else {\n obtain.writeInt(0);\n }\n if (bundle != null) {\n obtain.writeInt(1);\n bundle.writeToParcel(obtain, 0);\n } else {\n obtain.writeInt(0);\n }\n obtain.writeInt(z ? 1 : 0);\n this.f4164le.transact(1, obtain, (Parcel) null, 1);\n } finally {\n obtain.recycle();\n }\n }\n\n public IBinder asBinder() {\n return this.f4164le;\n }\n }\n\n /* renamed from: bG */\n public static C2034ok m6022bG(IBinder iBinder) {\n if (iBinder == null) {\n return null;\n }\n IInterface queryLocalInterface = iBinder.queryLocalInterface(\"com.google.android.gms.panorama.internal.IPanoramaService\");\n return (queryLocalInterface == null || !(queryLocalInterface instanceof C2034ok)) ? new C2036a(iBinder) : (C2034ok) queryLocalInterface;\n }\n\n public boolean onTransact(int i, Parcel parcel, Parcel parcel2, int i2) throws RemoteException {\n if (i == 1) {\n parcel.enforceInterface(\"com.google.android.gms.panorama.internal.IPanoramaService\");\n C2031oj bF = C2031oj.C2032a.m6019bF(parcel.readStrongBinder());\n Bundle bundle = null;\n Uri uri = parcel.readInt() != 0 ? (Uri) Uri.CREATOR.createFromParcel(parcel) : null;\n if (parcel.readInt() != 0) {\n bundle = (Bundle) Bundle.CREATOR.createFromParcel(parcel);\n }\n mo16484a(bF, uri, bundle, parcel.readInt() != 0);\n return true;\n } else if (i != 1598968902) {\n return super.onTransact(i, parcel, parcel2, i2);\n } else {\n parcel2.writeString(\"com.google.android.gms.panorama.internal.IPanoramaService\");\n return true;\n }\n }\n }\n\n /* renamed from: a */\n void mo16484a(C2031oj ojVar, Uri uri, Bundle bundle, boolean z) throws RemoteException;\n}", "private void acquireGooglePlayServices() {\n GoogleApiAvailability apiAvailability =\n GoogleApiAvailability.getInstance();\n final int connectionStatusCode =\n apiAvailability.isGooglePlayServicesAvailable(mActivity);\n if (apiAvailability.isUserResolvableError(connectionStatusCode)) {\n Log.d(Util.TAG_GOOGLE, \"\" + connectionStatusCode);\n // showGooglePlayServicesAvailabilityErrorDialog(connectionStatusCode);\n }\n }", "public final void m12868a(int r5, int r6, android.content.Intent r7) {\n /*\n r4 = this;\n r0 = 1;\n r1 = 0;\n switch(r5) {\n case 1: goto L_0x0017;\n case 2: goto L_0x000c;\n default: goto L_0x0005;\n };\n L_0x0005:\n r0 = r1;\n L_0x0006:\n if (r0 == 0) goto L_0x0027;\n L_0x0008:\n m12867b(r4);\n L_0x000b:\n return;\n L_0x000c:\n r2 = r4.o();\n r2 = com.google.android.gms.common.GoogleApiAvailability.a(r2);\n if (r2 != 0) goto L_0x0005;\n L_0x0016:\n goto L_0x0006;\n L_0x0017:\n r2 = -1;\n if (r6 == r2) goto L_0x0006;\n L_0x001a:\n if (r6 != 0) goto L_0x0005;\n L_0x001c:\n r0 = new com.google.android.gms.common.ConnectionResult;\n r2 = 13;\n r3 = 0;\n r0.<init>(r2, r3);\n r4.f6901e = r0;\n goto L_0x0005;\n L_0x0027:\n r0 = r4.f6900d;\n r1 = r4.f6901e;\n m12865a(r4, r0, r1);\n goto L_0x000b;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.internal.zzmr.a(int, int, android.content.Intent):void\");\n }", "private void acquireGooglePlayServices() {\r\n GoogleApiAvailability apiAvailability = GoogleApiAvailability.getInstance();\r\n final int connectionStatusCode = apiAvailability.isGooglePlayServicesAvailable(getActivity());\r\n if (apiAvailability.isUserResolvableError(connectionStatusCode)) {\r\n showGooglePlayServicesAvailabilityErrorDialog(connectionStatusCode);\r\n }\r\n }", "public String mo27384k() {\n return \"com.google.android.location.internal.GoogleLocationManagerService.START\";\n }", "interface cm\n{\n\n public abstract void f(com.google.android.gms.internal.d.a a);\n\n public abstract cj lS();\n\n public abstract cj lT();\n\n public abstract ck lU();\n\n public abstract ck lV();\n\n public abstract ck lW();\n\n public abstract ck lX();\n}", "String m6946g() {\n return C1110i.m6017b(m6452q(), \"com.crashlytics.ApiEndpoint\");\n }", "@Override\n public void onVerificationFailed(FirebaseException e) {\n // displaying error message with firebase exception.\n Toast.makeText(MainActivity.this, e.getMessage(), Toast.LENGTH_LONG).show();\n }", "@Override\n public void onVerificationFailed(FirebaseException e) {\n\n Toast.makeText(MainActivity.this, e.getMessage(), Toast.LENGTH_LONG).show();\n }", "public com.google.android.gms.internal.zzp zzc(com.google.android.gms.internal.zzr<?> r21) throws com.google.android.gms.internal.zzae {\n /*\n r20 = this;\n r18 = android.os.SystemClock.elapsedRealtime();\n L_0x0004:\n r3 = 0;\n r9 = 0;\n r8 = java.util.Collections.emptyList();\n r4 = r21.zze();\t Catch:{ SocketTimeoutException -> 0x0066, MalformedURLException -> 0x00ec, IOException -> 0x01a1 }\n if (r4 != 0) goto L_0x0040;\n L_0x0010:\n r2 = java.util.Collections.emptyMap();\t Catch:{ SocketTimeoutException -> 0x0066, MalformedURLException -> 0x00ec, IOException -> 0x01a1 }\n L_0x0014:\n r0 = r20;\n r4 = r0.zzbp;\t Catch:{ SocketTimeoutException -> 0x0066, MalformedURLException -> 0x00ec, IOException -> 0x01a1 }\n r0 = r21;\n r17 = r4.zza(r0, r2);\t Catch:{ SocketTimeoutException -> 0x0066, MalformedURLException -> 0x00ec, IOException -> 0x01a1 }\n r3 = r17.getStatusCode();\t Catch:{ SocketTimeoutException -> 0x0066, MalformedURLException -> 0x00ec, IOException -> 0x01a5 }\n r8 = r17.zzp();\t Catch:{ SocketTimeoutException -> 0x0066, MalformedURLException -> 0x00ec, IOException -> 0x01a5 }\n r2 = 304; // 0x130 float:4.26E-43 double:1.5E-321;\n if (r3 != r2) goto L_0x008b;\n L_0x002a:\n r2 = r21.zze();\t Catch:{ SocketTimeoutException -> 0x0066, MalformedURLException -> 0x00ec, IOException -> 0x01a5 }\n if (r2 != 0) goto L_0x0075;\n L_0x0030:\n r2 = new com.google.android.gms.internal.zzp;\t Catch:{ SocketTimeoutException -> 0x0066, MalformedURLException -> 0x00ec, IOException -> 0x01a5 }\n r3 = 304; // 0x130 float:4.26E-43 double:1.5E-321;\n r4 = 0;\n r5 = 1;\n r6 = android.os.SystemClock.elapsedRealtime();\t Catch:{ SocketTimeoutException -> 0x0066, MalformedURLException -> 0x00ec, IOException -> 0x01a5 }\n r6 = r6 - r18;\n r2.<init>(r3, r4, r5, r6, r8);\t Catch:{ SocketTimeoutException -> 0x0066, MalformedURLException -> 0x00ec, IOException -> 0x01a5 }\n L_0x003f:\n return r2;\n L_0x0040:\n r2 = new java.util.HashMap;\t Catch:{ SocketTimeoutException -> 0x0066, MalformedURLException -> 0x00ec, IOException -> 0x01a1 }\n r2.<init>();\t Catch:{ SocketTimeoutException -> 0x0066, MalformedURLException -> 0x00ec, IOException -> 0x01a1 }\n r5 = r4.zza;\t Catch:{ SocketTimeoutException -> 0x0066, MalformedURLException -> 0x00ec, IOException -> 0x01a1 }\n if (r5 == 0) goto L_0x0051;\n L_0x0049:\n r5 = \"If-None-Match\";\n r6 = r4.zza;\t Catch:{ SocketTimeoutException -> 0x0066, MalformedURLException -> 0x00ec, IOException -> 0x01a1 }\n r2.put(r5, r6);\t Catch:{ SocketTimeoutException -> 0x0066, MalformedURLException -> 0x00ec, IOException -> 0x01a1 }\n L_0x0051:\n r6 = r4.zzc;\t Catch:{ SocketTimeoutException -> 0x0066, MalformedURLException -> 0x00ec, IOException -> 0x01a1 }\n r10 = 0;\n r5 = (r6 > r10 ? 1 : (r6 == r10 ? 0 : -1));\n if (r5 <= 0) goto L_0x0014;\n L_0x0059:\n r5 = \"If-Modified-Since\";\n r6 = r4.zzc;\t Catch:{ SocketTimeoutException -> 0x0066, MalformedURLException -> 0x00ec, IOException -> 0x01a1 }\n r4 = com.google.android.gms.internal.zzap.zzb(r6);\t Catch:{ SocketTimeoutException -> 0x0066, MalformedURLException -> 0x00ec, IOException -> 0x01a1 }\n r2.put(r5, r4);\t Catch:{ SocketTimeoutException -> 0x0066, MalformedURLException -> 0x00ec, IOException -> 0x01a1 }\n goto L_0x0014;\n L_0x0066:\n r2 = move-exception;\n r2 = \"socket\";\n r3 = new com.google.android.gms.internal.zzad;\n r3.<init>();\n r0 = r21;\n zza(r2, r0, r3);\n goto L_0x0004;\n L_0x0075:\n r16 = zza(r8, r2);\t Catch:{ SocketTimeoutException -> 0x0066, MalformedURLException -> 0x00ec, IOException -> 0x01a5 }\n r10 = new com.google.android.gms.internal.zzp;\t Catch:{ SocketTimeoutException -> 0x0066, MalformedURLException -> 0x00ec, IOException -> 0x01a5 }\n r11 = 304; // 0x130 float:4.26E-43 double:1.5E-321;\n r12 = r2.data;\t Catch:{ SocketTimeoutException -> 0x0066, MalformedURLException -> 0x00ec, IOException -> 0x01a5 }\n r13 = 1;\n r2 = android.os.SystemClock.elapsedRealtime();\t Catch:{ SocketTimeoutException -> 0x0066, MalformedURLException -> 0x00ec, IOException -> 0x01a5 }\n r14 = r2 - r18;\n r10.<init>(r11, r12, r13, r14, r16);\t Catch:{ SocketTimeoutException -> 0x0066, MalformedURLException -> 0x00ec, IOException -> 0x01a5 }\n r2 = r10;\n goto L_0x003f;\n L_0x008b:\n r2 = r17.getContent();\t Catch:{ SocketTimeoutException -> 0x0066, MalformedURLException -> 0x00ec, IOException -> 0x01a5 }\n if (r2 == 0) goto L_0x0109;\n L_0x0091:\n r4 = r17.getContentLength();\t Catch:{ SocketTimeoutException -> 0x0066, MalformedURLException -> 0x00ec, IOException -> 0x01a5 }\n r0 = r20;\n r4 = r0.zza(r2, r4);\t Catch:{ SocketTimeoutException -> 0x0066, MalformedURLException -> 0x00ec, IOException -> 0x01a5 }\n L_0x009b:\n r6 = android.os.SystemClock.elapsedRealtime();\t Catch:{ SocketTimeoutException -> 0x0066, MalformedURLException -> 0x00ec, IOException -> 0x011f }\n r6 = r6 - r18;\n r2 = DEBUG;\t Catch:{ SocketTimeoutException -> 0x0066, MalformedURLException -> 0x00ec, IOException -> 0x011f }\n if (r2 != 0) goto L_0x00ab;\n L_0x00a5:\n r10 = 3000; // 0xbb8 float:4.204E-42 double:1.482E-320;\n r2 = (r6 > r10 ? 1 : (r6 == r10 ? 0 : -1));\n if (r2 <= 0) goto L_0x00de;\n L_0x00ab:\n r5 = \"HTTP response for request=<%s> [lifetime=%d], [size=%s], [rc=%d], [retryCount=%s]\";\n r2 = 5;\n r9 = new java.lang.Object[r2];\t Catch:{ SocketTimeoutException -> 0x0066, MalformedURLException -> 0x00ec, IOException -> 0x011f }\n r2 = 0;\n r9[r2] = r21;\t Catch:{ SocketTimeoutException -> 0x0066, MalformedURLException -> 0x00ec, IOException -> 0x011f }\n r2 = 1;\n r6 = java.lang.Long.valueOf(r6);\t Catch:{ SocketTimeoutException -> 0x0066, MalformedURLException -> 0x00ec, IOException -> 0x011f }\n r9[r2] = r6;\t Catch:{ SocketTimeoutException -> 0x0066, MalformedURLException -> 0x00ec, IOException -> 0x011f }\n r6 = 2;\n if (r4 == 0) goto L_0x010d;\n L_0x00be:\n r2 = r4.length;\t Catch:{ SocketTimeoutException -> 0x0066, MalformedURLException -> 0x00ec, IOException -> 0x011f }\n r2 = java.lang.Integer.valueOf(r2);\t Catch:{ SocketTimeoutException -> 0x0066, MalformedURLException -> 0x00ec, IOException -> 0x011f }\n L_0x00c3:\n r9[r6] = r2;\t Catch:{ SocketTimeoutException -> 0x0066, MalformedURLException -> 0x00ec, IOException -> 0x011f }\n r2 = 3;\n r6 = java.lang.Integer.valueOf(r3);\t Catch:{ SocketTimeoutException -> 0x0066, MalformedURLException -> 0x00ec, IOException -> 0x011f }\n r9[r2] = r6;\t Catch:{ SocketTimeoutException -> 0x0066, MalformedURLException -> 0x00ec, IOException -> 0x011f }\n r2 = 4;\n r6 = r21.zzi();\t Catch:{ SocketTimeoutException -> 0x0066, MalformedURLException -> 0x00ec, IOException -> 0x011f }\n r6 = r6.zzc();\t Catch:{ SocketTimeoutException -> 0x0066, MalformedURLException -> 0x00ec, IOException -> 0x011f }\n r6 = java.lang.Integer.valueOf(r6);\t Catch:{ SocketTimeoutException -> 0x0066, MalformedURLException -> 0x00ec, IOException -> 0x011f }\n r9[r2] = r6;\t Catch:{ SocketTimeoutException -> 0x0066, MalformedURLException -> 0x00ec, IOException -> 0x011f }\n com.google.android.gms.internal.zzaf.zzb(r5, r9);\t Catch:{ SocketTimeoutException -> 0x0066, MalformedURLException -> 0x00ec, IOException -> 0x011f }\n L_0x00de:\n r2 = 200; // 0xc8 float:2.8E-43 double:9.9E-322;\n if (r3 < r2) goto L_0x00e6;\n L_0x00e2:\n r2 = 299; // 0x12b float:4.19E-43 double:1.477E-321;\n if (r3 <= r2) goto L_0x0111;\n L_0x00e6:\n r2 = new java.io.IOException;\t Catch:{ SocketTimeoutException -> 0x0066, MalformedURLException -> 0x00ec, IOException -> 0x011f }\n r2.<init>();\t Catch:{ SocketTimeoutException -> 0x0066, MalformedURLException -> 0x00ec, IOException -> 0x011f }\n throw r2;\t Catch:{ SocketTimeoutException -> 0x0066, MalformedURLException -> 0x00ec, IOException -> 0x011f }\n L_0x00ec:\n r2 = move-exception;\n r3 = r2;\n r4 = new java.lang.RuntimeException;\n r5 = \"Bad URL \";\n r2 = r21.getUrl();\n r2 = java.lang.String.valueOf(r2);\n r6 = r2.length();\n if (r6 == 0) goto L_0x0164;\n L_0x0101:\n r2 = r5.concat(r2);\n L_0x0105:\n r4.<init>(r2, r3);\n throw r4;\n L_0x0109:\n r2 = 0;\n r4 = new byte[r2];\t Catch:{ SocketTimeoutException -> 0x0066, MalformedURLException -> 0x00ec, IOException -> 0x01a5 }\n goto L_0x009b;\n L_0x010d:\n r2 = \"null\";\n goto L_0x00c3;\n L_0x0111:\n r2 = new com.google.android.gms.internal.zzp;\t Catch:{ SocketTimeoutException -> 0x0066, MalformedURLException -> 0x00ec, IOException -> 0x011f }\n r5 = 0;\n r6 = android.os.SystemClock.elapsedRealtime();\t Catch:{ SocketTimeoutException -> 0x0066, MalformedURLException -> 0x00ec, IOException -> 0x011f }\n r6 = r6 - r18;\n r2.<init>(r3, r4, r5, r6, r8);\t Catch:{ SocketTimeoutException -> 0x0066, MalformedURLException -> 0x00ec, IOException -> 0x011f }\n goto L_0x003f;\n L_0x011f:\n r2 = move-exception;\n r3 = r17;\n L_0x0122:\n if (r3 == 0) goto L_0x016a;\n L_0x0124:\n r3 = r3.getStatusCode();\n r2 = \"Unexpected response code %d for %s\";\n r5 = 2;\n r5 = new java.lang.Object[r5];\n r6 = 0;\n r7 = java.lang.Integer.valueOf(r3);\n r5[r6] = r7;\n r6 = 1;\n r7 = r21.getUrl();\n r5[r6] = r7;\n com.google.android.gms.internal.zzaf.zzc(r2, r5);\n if (r4 == 0) goto L_0x0192;\n L_0x0141:\n r2 = new com.google.android.gms.internal.zzp;\n r5 = 0;\n r6 = android.os.SystemClock.elapsedRealtime();\n r6 = r6 - r18;\n r2.<init>(r3, r4, r5, r6, r8);\n r4 = 401; // 0x191 float:5.62E-43 double:1.98E-321;\n if (r3 == r4) goto L_0x0155;\n L_0x0151:\n r4 = 403; // 0x193 float:5.65E-43 double:1.99E-321;\n if (r3 != r4) goto L_0x0170;\n L_0x0155:\n r3 = \"auth\";\n r4 = new com.google.android.gms.internal.zza;\n r4.<init>(r2);\n r0 = r21;\n zza(r3, r0, r4);\n goto L_0x0004;\n L_0x0164:\n r2 = new java.lang.String;\n r2.<init>(r5);\n goto L_0x0105;\n L_0x016a:\n r3 = new com.google.android.gms.internal.zzq;\n r3.<init>(r2);\n throw r3;\n L_0x0170:\n r4 = 400; // 0x190 float:5.6E-43 double:1.976E-321;\n if (r3 < r4) goto L_0x017e;\n L_0x0174:\n r4 = 499; // 0x1f3 float:6.99E-43 double:2.465E-321;\n if (r3 > r4) goto L_0x017e;\n L_0x0178:\n r3 = new com.google.android.gms.internal.zzg;\n r3.<init>(r2);\n throw r3;\n L_0x017e:\n r4 = 500; // 0x1f4 float:7.0E-43 double:2.47E-321;\n if (r3 < r4) goto L_0x018c;\n L_0x0182:\n r4 = 599; // 0x257 float:8.4E-43 double:2.96E-321;\n if (r3 > r4) goto L_0x018c;\n L_0x0186:\n r3 = new com.google.android.gms.internal.zzac;\n r3.<init>(r2);\n throw r3;\n L_0x018c:\n r3 = new com.google.android.gms.internal.zzac;\n r3.<init>(r2);\n throw r3;\n L_0x0192:\n r2 = \"network\";\n r3 = new com.google.android.gms.internal.zzo;\n r3.<init>();\n r0 = r21;\n zza(r2, r0, r3);\n goto L_0x0004;\n L_0x01a1:\n r2 = move-exception;\n r4 = r9;\n goto L_0x0122;\n L_0x01a5:\n r2 = move-exception;\n r4 = r9;\n r3 = r17;\n goto L_0x0122;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.internal.zzaj.zzc(com.google.android.gms.internal.zzr):com.google.android.gms.internal.zzp\");\n }", "@Override\n\n public void onVerificationFailed(FirebaseException e) {\n\n Toast.makeText(otpsignin.this,\"Something went wrong\",Toast.LENGTH_SHORT).show();\n\n }", "public final void mo14764a() {\n /*\n r9 = this;\n com.google.android.gms.common.util.Clock r0 = com.google.android.gms.ads.internal.zzp.zzkx()\n long r0 = r0.currentTimeMillis()\n java.lang.Object r2 = r9.f10846a\n monitor-enter(r2)\n int r3 = r9.f10847b // Catch:{ all -> 0x004d }\n int r4 = com.google.android.gms.internal.ads.C2349r5.f10765b // Catch:{ all -> 0x004d }\n if (r3 != r4) goto L_0x002c\n long r5 = r9.f10848c // Catch:{ all -> 0x004d }\n com.google.android.gms.internal.ads.zzaaq<java.lang.Long> r3 = com.google.android.gms.internal.ads.zzabf.zzcwh // Catch:{ all -> 0x004d }\n com.google.android.gms.internal.ads.zzabb r7 = com.google.android.gms.internal.ads.zzwq.zzqe() // Catch:{ all -> 0x004d }\n java.lang.Object r3 = r7.zzd(r3) // Catch:{ all -> 0x004d }\n java.lang.Long r3 = (java.lang.Long) r3 // Catch:{ all -> 0x004d }\n long r7 = r3.longValue() // Catch:{ all -> 0x004d }\n long r5 = r5 + r7\n int r3 = (r5 > r0 ? 1 : (r5 == r0 ? 0 : -1))\n if (r3 > 0) goto L_0x002c\n int r0 = com.google.android.gms.internal.ads.C2349r5.f10764a // Catch:{ all -> 0x004d }\n r9.f10847b = r0 // Catch:{ all -> 0x004d }\n L_0x002c:\n monitor-exit(r2) // Catch:{ all -> 0x004d }\n com.google.android.gms.common.util.Clock r0 = com.google.android.gms.ads.internal.zzp.zzkx()\n long r0 = r0.currentTimeMillis()\n java.lang.Object r3 = r9.f10846a\n monitor-enter(r3)\n int r2 = r9.f10847b // Catch:{ all -> 0x004a }\n r5 = 2\n if (r2 == r5) goto L_0x003f\n monitor-exit(r3) // Catch:{ all -> 0x004a }\n return\n L_0x003f:\n r2 = 3\n r9.f10847b = r2 // Catch:{ all -> 0x004a }\n int r2 = r9.f10847b // Catch:{ all -> 0x004a }\n if (r2 != r4) goto L_0x0048\n r9.f10848c = r0 // Catch:{ all -> 0x004a }\n L_0x0048:\n monitor-exit(r3) // Catch:{ all -> 0x004a }\n return\n L_0x004a:\n r0 = move-exception\n monitor-exit(r3) // Catch:{ all -> 0x004a }\n throw r0\n L_0x004d:\n r0 = move-exception\n monitor-exit(r2) // Catch:{ all -> 0x004d }\n throw r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.internal.ads.C2386s5.mo14764a():void\");\n }", "private void acquireGooglePlayServices() {\n GoogleApiAvailability apiAvailability =\n GoogleApiAvailability.getInstance();\n final int connectionStatusCode =\n apiAvailability.isGooglePlayServicesAvailable(getActivity());\n if (apiAvailability.isUserResolvableError(connectionStatusCode)) {\n showGooglePlayServicesAvailabilityErrorDialog(connectionStatusCode);\n }\n }", "private final com.google.android.gms.internal.p000firebaseperf.zzbu zzw() {\n /*\n r15 = this;\n java.lang.String r0 = \"FirebasePerformance\"\n r1 = 0\n java.io.BufferedReader r2 = new java.io.BufferedReader // Catch:{ IOException -> 0x00a4, ArrayIndexOutOfBoundsException -> 0x0085, NumberFormatException -> 0x0083, NullPointerException -> 0x0081 }\n java.io.FileReader r3 = new java.io.FileReader // Catch:{ IOException -> 0x00a4, ArrayIndexOutOfBoundsException -> 0x0085, NumberFormatException -> 0x0083, NullPointerException -> 0x0081 }\n java.lang.String r4 = r15.zzba // Catch:{ IOException -> 0x00a4, ArrayIndexOutOfBoundsException -> 0x0085, NumberFormatException -> 0x0083, NullPointerException -> 0x0081 }\n r3.<init>(r4) // Catch:{ IOException -> 0x00a4, ArrayIndexOutOfBoundsException -> 0x0085, NumberFormatException -> 0x0083, NullPointerException -> 0x0081 }\n r2.<init>(r3) // Catch:{ IOException -> 0x00a4, ArrayIndexOutOfBoundsException -> 0x0085, NumberFormatException -> 0x0083, NullPointerException -> 0x0081 }\n java.util.concurrent.TimeUnit r3 = java.util.concurrent.TimeUnit.MILLISECONDS // Catch:{ Throwable -> 0x006c, all -> 0x0069 }\n long r4 = java.lang.System.currentTimeMillis() // Catch:{ Throwable -> 0x006c, all -> 0x0069 }\n long r3 = r3.toMicros(r4) // Catch:{ Throwable -> 0x006c, all -> 0x0069 }\n java.lang.String r5 = r2.readLine() // Catch:{ Throwable -> 0x006c, all -> 0x0069 }\n java.lang.String r6 = \" \"\n java.lang.String[] r5 = r5.split(r6) // Catch:{ Throwable -> 0x006c, all -> 0x0069 }\n r6 = 13\n r6 = r5[r6] // Catch:{ Throwable -> 0x006c, all -> 0x0069 }\n long r6 = java.lang.Long.parseLong(r6) // Catch:{ Throwable -> 0x006c, all -> 0x0069 }\n r8 = 15\n r8 = r5[r8] // Catch:{ Throwable -> 0x006c, all -> 0x0069 }\n long r8 = java.lang.Long.parseLong(r8) // Catch:{ Throwable -> 0x006c, all -> 0x0069 }\n r10 = 14\n r10 = r5[r10] // Catch:{ Throwable -> 0x006c, all -> 0x0069 }\n long r10 = java.lang.Long.parseLong(r10) // Catch:{ Throwable -> 0x006c, all -> 0x0069 }\n r12 = 16\n r5 = r5[r12] // Catch:{ Throwable -> 0x006c, all -> 0x0069 }\n long r12 = java.lang.Long.parseLong(r5) // Catch:{ Throwable -> 0x006c, all -> 0x0069 }\n com.google.android.gms.internal.firebase-perf.zzbu$zza r5 = com.google.android.gms.internal.p000firebaseperf.zzbu.zzdl() // Catch:{ Throwable -> 0x006c, all -> 0x0069 }\n com.google.android.gms.internal.firebase-perf.zzbu$zza r3 = r5.zzu(r3) // Catch:{ Throwable -> 0x006c, all -> 0x0069 }\n long r10 = r10 + r12\n long r4 = r15.zzd(r10) // Catch:{ Throwable -> 0x006c, all -> 0x0069 }\n com.google.android.gms.internal.firebase-perf.zzbu$zza r3 = r3.zzw(r4) // Catch:{ Throwable -> 0x006c, all -> 0x0069 }\n long r6 = r6 + r8\n long r4 = r15.zzd(r6) // Catch:{ Throwable -> 0x006c, all -> 0x0069 }\n com.google.android.gms.internal.firebase-perf.zzbu$zza r3 = r3.zzv(r4) // Catch:{ Throwable -> 0x006c, all -> 0x0069 }\n com.google.android.gms.internal.firebase-perf.zzga r3 = r3.zzhr() // Catch:{ Throwable -> 0x006c, all -> 0x0069 }\n com.google.android.gms.internal.firebase-perf.zzep r3 = (com.google.android.gms.internal.p000firebaseperf.zzep) r3 // Catch:{ Throwable -> 0x006c, all -> 0x0069 }\n com.google.android.gms.internal.firebase-perf.zzbu r3 = (com.google.android.gms.internal.p000firebaseperf.zzbu) r3 // Catch:{ Throwable -> 0x006c, all -> 0x0069 }\n r2.close() // Catch:{ IOException -> 0x00a4, ArrayIndexOutOfBoundsException -> 0x0085, NumberFormatException -> 0x0083, NullPointerException -> 0x0081 }\n return r3\n L_0x0069:\n r3 = move-exception\n r4 = r1\n goto L_0x0072\n L_0x006c:\n r3 = move-exception\n throw r3 // Catch:{ all -> 0x006e }\n L_0x006e:\n r4 = move-exception\n r14 = r4\n r4 = r3\n r3 = r14\n L_0x0072:\n if (r4 == 0) goto L_0x007d\n r2.close() // Catch:{ Throwable -> 0x0078 }\n goto L_0x0080\n L_0x0078:\n r2 = move-exception\n com.google.android.gms.internal.p000firebaseperf.zzak.zza(r4, r2) // Catch:{ IOException -> 0x00a4, ArrayIndexOutOfBoundsException -> 0x0085, NumberFormatException -> 0x0083, NullPointerException -> 0x0081 }\n goto L_0x0080\n L_0x007d:\n r2.close() // Catch:{ IOException -> 0x00a4, ArrayIndexOutOfBoundsException -> 0x0085, NumberFormatException -> 0x0083, NullPointerException -> 0x0081 }\n L_0x0080:\n throw r3 // Catch:{ IOException -> 0x00a4, ArrayIndexOutOfBoundsException -> 0x0085, NumberFormatException -> 0x0083, NullPointerException -> 0x0081 }\n L_0x0081:\n r2 = move-exception\n goto L_0x0086\n L_0x0083:\n r2 = move-exception\n goto L_0x0086\n L_0x0085:\n r2 = move-exception\n L_0x0086:\n java.lang.String r3 = \"Unexpected '/proc/[pid]/stat' file format encountered: \"\n java.lang.String r2 = r2.getMessage()\n java.lang.String r2 = java.lang.String.valueOf(r2)\n int r4 = r2.length()\n if (r4 == 0) goto L_0x009b\n java.lang.String r2 = r3.concat(r2)\n goto L_0x00a0\n L_0x009b:\n java.lang.String r2 = new java.lang.String\n r2.<init>(r3)\n L_0x00a0:\n android.util.Log.w(r0, r2)\n goto L_0x00c2\n L_0x00a4:\n r2 = move-exception\n java.lang.String r3 = \"Unable to read 'proc/[pid]/stat' file: \"\n java.lang.String r2 = r2.getMessage()\n java.lang.String r2 = java.lang.String.valueOf(r2)\n int r4 = r2.length()\n if (r4 == 0) goto L_0x00ba\n java.lang.String r2 = r3.concat(r2)\n goto L_0x00bf\n L_0x00ba:\n java.lang.String r2 = new java.lang.String\n r2.<init>(r3)\n L_0x00bf:\n android.util.Log.w(r0, r2)\n L_0x00c2:\n return r1\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.internal.p000firebaseperf.zzap.zzw():com.google.android.gms.internal.firebase-perf.zzbu\");\n }", "public static com.google.android.gms.internal.zzpc zza(android.support.p000v4.app.FragmentActivity r3) {\n /*\n r0 = zzaoq;\n r0 = r0.get(r3);\n r0 = (java.lang.ref.WeakReference) r0;\n if (r0 == 0) goto L_0x0013;\n L_0x000a:\n r0 = r0.get();\n r0 = (com.google.android.gms.internal.zzpc) r0;\n if (r0 == 0) goto L_0x0013;\n L_0x0012:\n return r0;\n L_0x0013:\n r0 = r3.getSupportFragmentManager();\t Catch:{ ClassCastException -> 0x0048 }\n r1 = \"SupportLifecycleFragmentImpl\";\n r0 = r0.findFragmentByTag(r1);\t Catch:{ ClassCastException -> 0x0048 }\n r0 = (com.google.android.gms.internal.zzpc) r0;\t Catch:{ ClassCastException -> 0x0048 }\n if (r0 == 0) goto L_0x0027;\n L_0x0021:\n r1 = r0.isRemoving();\n if (r1 == 0) goto L_0x003d;\n L_0x0027:\n r0 = new com.google.android.gms.internal.zzpc;\n r0.<init>();\n r1 = r3.getSupportFragmentManager();\n r1 = r1.beginTransaction();\n r2 = \"SupportLifecycleFragmentImpl\";\n r1 = r1.add(r0, r2);\n r1.commitAllowingStateLoss();\n L_0x003d:\n r1 = zzaoq;\n r2 = new java.lang.ref.WeakReference;\n r2.<init>(r0);\n r1.put(r3, r2);\n goto L_0x0012;\n L_0x0048:\n r0 = move-exception;\n r1 = new java.lang.IllegalStateException;\n r2 = \"Fragment with tag SupportLifecycleFragmentImpl is not a SupportLifecycleFragmentImpl\";\n r1.<init>(r2, r0);\n throw r1;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.internal.zzpc.zza(android.support.v4.app.FragmentActivity):com.google.android.gms.internal.zzpc\");\n }", "private void acquireGooglePlayServices() {\n GoogleApiAvailability apiAvailability =\n GoogleApiAvailability.getInstance();\n final int connectionStatusCode =\n apiAvailability.isGooglePlayServicesAvailable(this);\n if (apiAvailability.isUserResolvableError(connectionStatusCode)) {\n showGooglePlayServicesAvailabilityErrorDialog(connectionStatusCode);\n }\n }", "private void acquireGooglePlayServices() {\n GoogleApiAvailability apiAvailability =\n GoogleApiAvailability.getInstance();\n final int connectionStatusCode =\n apiAvailability.isGooglePlayServicesAvailable(this);\n if (apiAvailability.isUserResolvableError(connectionStatusCode)) {\n showGooglePlayServicesAvailabilityErrorDialog(connectionStatusCode);\n }\n }", "private void acquireGooglePlayServices() {\n GoogleApiAvailability apiAvailability =\n GoogleApiAvailability.getInstance();\n final int connectionStatusCode =\n apiAvailability.isGooglePlayServicesAvailable(this);\n if (apiAvailability.isUserResolvableError(connectionStatusCode)) {\n showGooglePlayServicesAvailabilityErrorDialog(connectionStatusCode);\n }\n }", "public void m2108c() {\n /*\n r3 = this;\n r0 = \"Calling this from your main thread can lead to deadlock\";\n com.google.android.gms.common.internal.C1305x.m6628c(r0);\n monitor-enter(r3);\n r0 = r3.f1274g;\t Catch:{ all -> 0x002a }\n if (r0 == 0) goto L_0x000e;\n L_0x000a:\n r0 = r3.f1268a;\t Catch:{ all -> 0x002a }\n if (r0 != 0) goto L_0x0010;\n L_0x000e:\n monitor-exit(r3);\t Catch:{ all -> 0x002a }\n L_0x000f:\n return;\n L_0x0010:\n r0 = r3.f1270c;\t Catch:{ IllegalArgumentException -> 0x002d }\n if (r0 == 0) goto L_0x001f;\n L_0x0014:\n r0 = com.google.android.gms.common.stats.C1530b.m6956a();\t Catch:{ IllegalArgumentException -> 0x002d }\n r1 = r3.f1274g;\t Catch:{ IllegalArgumentException -> 0x002d }\n r2 = r3.f1268a;\t Catch:{ IllegalArgumentException -> 0x002d }\n r0.m6963a(r1, r2);\t Catch:{ IllegalArgumentException -> 0x002d }\n L_0x001f:\n r0 = 0;\n r3.f1270c = r0;\t Catch:{ all -> 0x002a }\n r0 = 0;\n r3.f1269b = r0;\t Catch:{ all -> 0x002a }\n r0 = 0;\n r3.f1268a = r0;\t Catch:{ all -> 0x002a }\n monitor-exit(r3);\t Catch:{ all -> 0x002a }\n goto L_0x000f;\n L_0x002a:\n r0 = move-exception;\n monitor-exit(r3);\t Catch:{ all -> 0x002a }\n throw r0;\n L_0x002d:\n r0 = move-exception;\n r1 = \"AdvertisingIdClient\";\n r2 = \"AdvertisingIdClient unbindService failed.\";\n android.util.Log.i(r1, r2, r0);\t Catch:{ all -> 0x002a }\n goto L_0x001f;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.ads.c.a.c():void\");\n }", "public static int m22557b(java.lang.String r1) {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.core.ProcessClass.processDependencies(ProcessClass.java:56)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:39)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/509891820.run(Unknown Source)\n*/\n /*\n r0 = com.google.android.gms.internal.measurement.dr.m11788a(r1);\t Catch:{ zzyn -> 0x0005 }\n goto L_0x000c;\n L_0x0005:\n r0 = com.google.android.gms.internal.measurement.zzvo.f10281a;\n r1 = r1.getBytes(r0);\n r0 = r1.length;\n L_0x000c:\n r1 = m22576g(r0);\n r1 = r1 + r0;\n return r1;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.internal.measurement.zzut.b(java.lang.String):int\");\n }", "public final List mo6342a() {\n sre.m36087g(this);\n sre.m36088h(this);\n bngs j = bngx.m109377j();\n Intent putExtra = new Intent().setClassName(\"com.google.android.gms\", \"com.google.android.gms.accountsettings.mg.ui.main.MainActivity\").addCategory(\"android.intent.category.DEFAULT\").putExtra(\"extra.screenId\", 1).putExtra(\"extra.launchApi\", 2);\n if (cbro.m128206j()) {\n putExtra.putExtra(\"extra.callingPackageName\", \"com.google.android.gms\").putExtra(\"extra.utmSource\", \"google-settings-classic\");\n } else {\n putExtra.putExtra(\"extra.callingPackageName\", \"com.google.android.gms.app.settings\");\n }\n GoogleSettingsItem googleSettingsItem = new GoogleSettingsItem(putExtra, 1, getResources().getString(C0126R.string.common_asm_google_account_title), 2);\n googleSettingsItem.f29960f = true;\n googleSettingsItem.f29971q = C0126R.string.accountsettings_google_account_subtitle;\n googleSettingsItem.f29959e = 1;\n j.mo67668c(googleSettingsItem);\n if (cbri.f178135a.mo6606a().mo75276z()) {\n bngs j2 = bngx.m109377j();\n j2.mo67668c(new GoogleSettingsItem(new Intent(\"com.android.settings.action.VIEW_ACCOUNT\").setPackage(\"com.google.android.gms\").putExtra(\"extra.callingPackageName\", \"com.google.android.gms\"), 2, (int) C0126R.string.as_debug_android_me_card, 48));\n j2.mo67668c(new GoogleSettingsItem(new Intent().setClassName(\"com.google.android.gms\", \"com.google.android.gms.accountsettings.ui.PrivacyHubActivityControlsActivity\").addCategory(\"android.intent.category.DEFAULT\").putExtra(\"extra.callingPackageName\", \"com.google.android.gms\"), 2, (int) C0126R.string.as_debug_android_privacy_hub_activty_controls, 51));\n j.mo67666b((Iterable) j2.mo67664a());\n }\n return j.mo67664a();\n }", "@Override\n public void onVerificationFailed(FirebaseException e) {\n if (e instanceof FirebaseAuthInvalidCredentialsException) {\n Log.d(constants.PhoneRegTag, \"Invalid Credentials\");\n } else if (e instanceof FirebaseTooManyRequestsException) {\n Log.d(constants.PhoneRegTag, \"SMS Verification Pin needed\");\n }\n }", "private java.lang.String getTypeString() {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00f0 in method: android.location.GpsClock.getTypeString():java.lang.String, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.location.GpsClock.getTypeString():java.lang.String\");\n }", "@androidx.annotation.WorkerThread\n /* Code decompiled incorrectly, please refer to instructions dump. */\n public final boolean zzc(com.google.firebase.iid.FirebaseInstanceId r5) {\n /*\n r4 = this;\n L_0x0000:\n monitor-enter(r4)\n java.lang.String r0 = r4.zzar() // Catch:{ all -> 0x0042 }\n r1 = 1\n if (r0 != 0) goto L_0x0017\n boolean r5 = com.google.firebase.iid.FirebaseInstanceId.zzm() // Catch:{ all -> 0x0042 }\n if (r5 == 0) goto L_0x0015\n java.lang.String r5 = \"FirebaseInstanceId\"\n java.lang.String r0 = \"topic sync succeeded\"\n android.util.Log.d(r5, r0) // Catch:{ all -> 0x0042 }\n L_0x0015:\n monitor-exit(r4) // Catch:{ all -> 0x0042 }\n return r1\n L_0x0017:\n monitor-exit(r4) // Catch:{ all -> 0x0042 }\n boolean r2 = zza(r5, r0)\n if (r2 != 0) goto L_0x0020\n r5 = 0\n return r5\n L_0x0020:\n monitor-enter(r4)\n java.util.Map<java.lang.Integer, com.google.android.gms.tasks.TaskCompletionSource<java.lang.Void>> r2 = r4.zzdx // Catch:{ all -> 0x003f }\n int r3 = r4.zzdw // Catch:{ all -> 0x003f }\n java.lang.Integer r3 = java.lang.Integer.valueOf(r3) // Catch:{ all -> 0x003f }\n java.lang.Object r2 = r2.remove(r3) // Catch:{ all -> 0x003f }\n com.google.android.gms.tasks.TaskCompletionSource r2 = (com.google.android.gms.tasks.TaskCompletionSource) r2 // Catch:{ all -> 0x003f }\n r4.zzn(r0) // Catch:{ all -> 0x003f }\n int r0 = r4.zzdw // Catch:{ all -> 0x003f }\n int r0 = r0 + r1\n r4.zzdw = r0 // Catch:{ all -> 0x003f }\n monitor-exit(r4) // Catch:{ all -> 0x003f }\n if (r2 == 0) goto L_0x0000\n r0 = 0\n r2.setResult(r0)\n goto L_0x0000\n L_0x003f:\n r5 = move-exception\n monitor-exit(r4) // Catch:{ all -> 0x003f }\n throw r5\n L_0x0042:\n r5 = move-exception\n monitor-exit(r4) // Catch:{ all -> 0x0042 }\n throw r5\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.firebase.iid.zzba.zzc(com.google.firebase.iid.FirebaseInstanceId):boolean\");\n }", "@Override\n public void onConnectionFailed(@NonNull ConnectionResult connectionResult) {\n Log.d(\"MainActivity\", \"onConnectionFailed:\" + connectionResult);\n Toast.makeText(this, \"Google Play Services error.\", Toast.LENGTH_SHORT).show();\n }", "private void zzbJ(int r6) {\n /*\n r5 = this;\n r0 = 8;\n if (r6 != r0) goto L_0x0035;\n L_0x0004:\n r1 = com.google.android.gms.internal.zzld.class;\n monitor-enter(r1);\n r0 = mTwiceBaseCache;\t Catch:{ all -> 0x0067 }\n if (r0 == 0) goto L_0x0030;\n L_0x000b:\n r2 = mTwiceBaseCache;\t Catch:{ all -> 0x0067 }\n r5.mArray = r2;\t Catch:{ all -> 0x0067 }\n r0 = 0;\n r0 = r2[r0];\t Catch:{ all -> 0x0067 }\n r0 = (java.lang.Object[]) r0;\t Catch:{ all -> 0x0067 }\n r0 = (java.lang.Object[]) r0;\t Catch:{ all -> 0x0067 }\n mTwiceBaseCache = r0;\t Catch:{ all -> 0x0067 }\n r0 = 1;\n r0 = r2[r0];\t Catch:{ all -> 0x0067 }\n r0 = (int[]) r0;\t Catch:{ all -> 0x0067 }\n r0 = (int[]) r0;\t Catch:{ all -> 0x0067 }\n r5.mHashes = r0;\t Catch:{ all -> 0x0067 }\n r0 = 0;\n r3 = 1;\n r4 = 0;\n r2[r3] = r4;\t Catch:{ all -> 0x0067 }\n r2[r0] = r4;\t Catch:{ all -> 0x0067 }\n r0 = mTwiceBaseCacheSize;\t Catch:{ all -> 0x0067 }\n r0 = r0 + -1;\n mTwiceBaseCacheSize = r0;\t Catch:{ all -> 0x0067 }\n monitor-exit(r1);\t Catch:{ all -> 0x0067 }\n L_0x002f:\n return;\n L_0x0030:\n monitor-exit(r1);\t Catch:{ all -> 0x0067 }\n r0 = com.google.android.gms.internal.zzkq.a;\t Catch:{ ClassCastException -> 0x006a }\n if (r0 == 0) goto L_0x006d;\n L_0x0035:\n r0 = 4;\n if (r6 != r0) goto L_0x006d;\n L_0x0038:\n r1 = com.google.android.gms.internal.zzld.class;\n monitor-enter(r1);\n r0 = mBaseCache;\t Catch:{ all -> 0x0064 }\n if (r0 == 0) goto L_0x006c;\n L_0x003f:\n r2 = mBaseCache;\t Catch:{ all -> 0x0064 }\n r5.mArray = r2;\t Catch:{ all -> 0x0064 }\n r0 = 0;\n r0 = r2[r0];\t Catch:{ all -> 0x0064 }\n r0 = (java.lang.Object[]) r0;\t Catch:{ all -> 0x0064 }\n r0 = (java.lang.Object[]) r0;\t Catch:{ all -> 0x0064 }\n mBaseCache = r0;\t Catch:{ all -> 0x0064 }\n r0 = 1;\n r0 = r2[r0];\t Catch:{ all -> 0x0064 }\n r0 = (int[]) r0;\t Catch:{ all -> 0x0064 }\n r0 = (int[]) r0;\t Catch:{ all -> 0x0064 }\n r5.mHashes = r0;\t Catch:{ all -> 0x0064 }\n r0 = 0;\n r3 = 1;\n r4 = 0;\n r2[r3] = r4;\t Catch:{ all -> 0x0064 }\n r2[r0] = r4;\t Catch:{ all -> 0x0064 }\n r0 = mBaseCacheSize;\t Catch:{ all -> 0x0064 }\n r0 = r0 + -1;\n mBaseCacheSize = r0;\t Catch:{ all -> 0x0064 }\n monitor-exit(r1);\t Catch:{ all -> 0x0064 }\n goto L_0x002f;\n L_0x0064:\n r0 = move-exception;\n monitor-exit(r1);\t Catch:{ all -> 0x0064 }\n throw r0;\n L_0x0067:\n r0 = move-exception;\n monitor-exit(r1);\t Catch:{ all -> 0x0067 }\n throw r0;\n L_0x006a:\n r0 = move-exception;\n throw r0;\n L_0x006c:\n monitor-exit(r1);\t Catch:{ all -> 0x0064 }\n L_0x006d:\n r0 = new int[r6];\n r5.mHashes = r0;\n r0 = r6 << 1;\n r0 = new java.lang.Object[r0];\n r5.mArray = r0;\n goto L_0x002f;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.internal.zzlh.zzbJ(int):void\");\n }", "public static void m92440a(Context context, int i, String str, String str2, String str3) {\n skc skc = new skc(context);\n long a = m92438a(str3);\n long currentTimeMillis = System.currentTimeMillis();\n skc.mo25675a(f107597c, 0, currentTimeMillis + a, m92439a(context, i, a, str, str2, str3), \"com.google.android.gms\");\n }", "public String zzfL() {\n return \"com.google.android.gms.auth.api.consent.internal.IConsentService\";\n }", "public static String m21394b(Context context) {\n String str = \"wns_ac\";\n try {\n if (f16891b == null) {\n f16891b = C5206p.m21472b(context, str);\n if (TextUtils.isEmpty(f16891b)) {\n f16891b = C5144a.m21266a(context).mo26750a();\n C5206p.m21471a(context, str, f16891b);\n }\n }\n } catch (Throwable unused) {\n C5205o.m21462a(\"不存在google play\");\n }\n return f16891b;\n }", "public GoogleApiA() {}", "static /* synthetic */ com.android.internal.telecom.IConnectionServiceAdapter m18-get0(android.telecom.ConnectionServiceAdapterServant r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e5 in method: android.telecom.ConnectionServiceAdapterServant.-get0(android.telecom.ConnectionServiceAdapterServant):com.android.internal.telecom.IConnectionServiceAdapter, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.telecom.ConnectionServiceAdapterServant.-get0(android.telecom.ConnectionServiceAdapterServant):com.android.internal.telecom.IConnectionServiceAdapter\");\n }", "protected String getServiceId(){\n return \"com.google.android.gms.nearby.messages.samples.nearbydevices\";\n }", "public final void mo2487a(com.google.android.gms.common.api.ResultCallback<? super R> r5) {\n /*\n r4 = this;\n r0 = r4.f11863a;\n monitor-enter(r0);\n if (r5 != 0) goto L_0x000c;\n L_0x0005:\n r5 = 0;\n r4.f11868g = r5;\t Catch:{ all -> 0x000a }\n monitor-exit(r0);\t Catch:{ all -> 0x000a }\n return;\n L_0x000a:\n r5 = move-exception;\n goto L_0x003c;\n L_0x000c:\n r1 = r4.f11872k;\t Catch:{ all -> 0x000a }\n r2 = 1;\n r1 = r1 ^ r2;\n r3 = \"Result has already been consumed.\";\n com.google.android.gms.common.internal.ad.m9051a(r1, r3);\t Catch:{ all -> 0x000a }\n r1 = r4.f11876o;\t Catch:{ all -> 0x000a }\n if (r1 != 0) goto L_0x001a;\n L_0x0019:\n goto L_0x001b;\n L_0x001a:\n r2 = 0;\n L_0x001b:\n r1 = \"Cannot set callbacks if then() has been called.\";\n com.google.android.gms.common.internal.ad.m9051a(r2, r1);\t Catch:{ all -> 0x000a }\n r1 = r4.mo2488b();\t Catch:{ all -> 0x000a }\n if (r1 == 0) goto L_0x0028;\n L_0x0026:\n monitor-exit(r0);\t Catch:{ all -> 0x000a }\n return;\n L_0x0028:\n r1 = r4.m14229d();\t Catch:{ all -> 0x000a }\n if (r1 == 0) goto L_0x0038;\n L_0x002e:\n r1 = r4.f11864b;\t Catch:{ all -> 0x000a }\n r2 = r4.mo3575g();\t Catch:{ all -> 0x000a }\n r1.m8915a(r5, r2);\t Catch:{ all -> 0x000a }\n goto L_0x003a;\n L_0x0038:\n r4.f11868g = r5;\t Catch:{ all -> 0x000a }\n L_0x003a:\n monitor-exit(r0);\t Catch:{ all -> 0x000a }\n return;\n L_0x003c:\n monitor-exit(r0);\t Catch:{ all -> 0x000a }\n throw r5;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.common.api.internal.BasePendingResult.a(com.google.android.gms.common.api.ResultCallback):void\");\n }", "protected void SetupGoogleServices()\n {\n if (mGoogleApiClient == null)\n {\n mGoogleApiClient = new GoogleApiClient.Builder(this)\n .addConnectionCallbacks(this)\n .addOnConnectionFailedListener(this)\n .addApi(LocationServices.API)\n .build();\n }\n }", "public String mo7390hn() throws RemoteException {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"com.google.android.gms.plus.internal.IPlusService\");\n this.f3425ky.transact(43, obtain, obtain2, 0);\n obtain2.readException();\n return obtain2.readString();\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }", "private void buildGoogleApiClient() {\n this.mGoogleApiClient = new GoogleApiClient.Builder(context)\n //.enableAutoManage(this /* FragmentActivity */, this /* OnConnectionFailedListener */)\n .addApi(LocationServices.API)\n .build();\n }", "static /* synthetic */ void m53869b(BindGoogleContactIntroUI bindGoogleContactIntroUI) {\n AppMethodBeat.m2504i(13346);\n bindGoogleContactIntroUI.gqp = new C32968w(C1993a.MM_BIND_GCONTACT_OPCODE_UNBIND, bindGoogleContactIntroUI.gqn, C32968w.gvM);\n C1720g.m3540Rg().mo14541a(bindGoogleContactIntroUI.gqp, 0);\n bindGoogleContactIntroUI.getString(C25738R.string.f9238tz);\n bindGoogleContactIntroUI.gqo = C30379h.m48458b((Context) bindGoogleContactIntroUI, bindGoogleContactIntroUI.getString(C25738R.string.f9260un), true, new C19664());\n AppMethodBeat.m2505o(13346);\n }", "@Override\n public void onVerificationFailed(FirebaseException e) {\n Log.w(TAG, \"onVerificationFailed\", e);\n\n if (e instanceof FirebaseAuthInvalidCredentialsException) {\n // Invalid request\n } else if (e instanceof FirebaseTooManyRequestsException) {\n // The SMS quota for the project has been exceeded\n }\n\n // Show a message and update the UI\n }", "public interface C15428f {\n\n /* renamed from: com.ss.android.ugc.asve.context.f$a */\n public static final class C15429a {\n /* renamed from: a */\n public static String m45146a(C15428f fVar) {\n return \"\";\n }\n\n /* renamed from: b */\n public static String m45147b(C15428f fVar) {\n return \"\";\n }\n }\n\n /* renamed from: a */\n boolean mo38970a();\n\n /* renamed from: b */\n String mo38971b();\n\n /* renamed from: c */\n String mo38972c();\n\n /* renamed from: d */\n int mo38973d();\n\n /* renamed from: e */\n int mo38974e();\n}", "protected synchronized void buildGoogleApiClient() {\n// mGoogleApiClient = new GoogleApiClient.Builder(this).addConnectionCallbacks(this).addOnConnectionFailedListener(this).addApi(LocationServices.API).build();\n mGoogleApiClient = new GoogleApiClient.Builder(this)\n .addConnectionCallbacks(this)\n .addOnConnectionFailedListener(this)\n //.addApi(Places.GEO_DATA_API)\n //.addApi(Places.PLACE_DETECTION_API)\n .addApi(LocationServices.API)\n .build();\n mGoogleApiClient.connect();\n }", "private Map<String, C0148k> m471c() {\n HashMap hashMap = new HashMap();\n try {\n Class.forName(\"com.google.android.gms.ads.AdView\");\n C0148k kVar = new C0148k(\"com.google.firebase.firebase-ads\", \"0.0.0\", \"binary\");\n hashMap.put(kVar.mo326a(), kVar);\n C0135c.m449h().mo273b(\"Fabric\", \"Found kit: com.google.firebase.firebase-ads\");\n } catch (Exception unused) {\n }\n return hashMap;\n }", "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent intent) {\n switch (requestCode) {\n case ClientSideUtils.CONNECTION_FAILURE_RESOLUTION_REQUEST :\n\n switch (resultCode) {\n // If Google Play services resolved the problem\n case Activity.RESULT_OK:\n // If the request was to add geofences\n if (ClientSideUtils.GEOFENCE_REQUEST_TYPE.ADD == mGeofenceRequestType) {\n\n // Toggle the request flag and send a new request\n mGeofenceRequester.setInProgressFlag(false);\n\n // Restart the process of adding the current geofences\n mGeofenceRequester.addGeofences(mCurrentGeofenceList);\n\n // If the request was to remove geofences\n } else if (ClientSideUtils.GEOFENCE_REQUEST_TYPE.REMOVE == mGeofenceRequestType ){\n\n // Toggle the removal flag and send a new removal request\n mGeofenceRemover.setInProgressFlag(false);\n\n // If the removal was by Intent\n if (ClientSideUtils.GEOFENCE_REMOVE_TYPE.INTENT == mGeofenceRemoveType) {\n\n \t// TODO support this after fixing the remove by intent\n \tLog.d(ClientSideUtils.APPTAG, \"REMOVE_TYPE.INTENT was found - unsupported in this app\");\n //mGeofenceRemover.removeGeofencesByIntent(\n //mGeofenceRequester.getRequestPendingIntent());\n\n } else {\n // Restart the removal of the geofence list\n \tremoveCurrentGeofecesByID(mCurrentGeofenceList);\n }\n } else if (ClientSideUtils.ACTIVITY_REQUEST_TYPE.ADD == mActivityRequestType) {\n \t\n // Restart the process of requesting activity recognition updates\n mDetectionRequester.requestUpdates();\n \t\n } else if (ClientSideUtils.ACTIVITY_REQUEST_TYPE.REMOVE == mActivityRequestType) {\n \t\n \t// Restart the removal of all activity recognition updates for the PendingIntent\n mDetectionRemover.removeUpdates(mDetectionRequester.getRequestPendingIntent());\n \t\n }\n break;\n\n // If any other result was returned by Google Play services\n default:\n // Report that Google Play services was unable to resolve the problem. \t\n Log.d(ClientSideUtils.APPTAG, getString(R.string.no_resolution));\n }\n default:\n // Report that this Activity received an unknown requestCode\n Log.d(ClientSideUtils.APPTAG, getString(R.string.unknown_activity_request_code, requestCode));\n break;\n }\n }", "private static void zza(com.google.android.gms.internal.gtm.zzug r2, java.lang.Object r3) {\n /*\n com.google.android.gms.internal.gtm.zzre.checkNotNull(r3)\n int[] r0 = com.google.android.gms.internal.gtm.zzqu.zzaxr\n com.google.android.gms.internal.gtm.zzul r2 = r2.zzrs()\n int r2 = r2.ordinal()\n r2 = r0[r2]\n r0 = 1\n r1 = 0\n switch(r2) {\n case 1: goto L_0x0040;\n case 2: goto L_0x003d;\n case 3: goto L_0x003a;\n case 4: goto L_0x0037;\n case 5: goto L_0x0034;\n case 6: goto L_0x0031;\n case 7: goto L_0x0028;\n case 8: goto L_0x001e;\n case 9: goto L_0x0015;\n default: goto L_0x0014;\n }\n L_0x0014:\n goto L_0x0043\n L_0x0015:\n boolean r2 = r3 instanceof com.google.android.gms.internal.gtm.zzsk\n if (r2 != 0) goto L_0x0026\n boolean r2 = r3 instanceof com.google.android.gms.internal.gtm.zzrn\n if (r2 == 0) goto L_0x0043\n goto L_0x0026\n L_0x001e:\n boolean r2 = r3 instanceof java.lang.Integer\n if (r2 != 0) goto L_0x0026\n boolean r2 = r3 instanceof com.google.android.gms.internal.gtm.zzrf\n if (r2 == 0) goto L_0x0043\n L_0x0026:\n r1 = 1\n goto L_0x0043\n L_0x0028:\n boolean r2 = r3 instanceof com.google.android.gms.internal.gtm.zzps\n if (r2 != 0) goto L_0x0026\n boolean r2 = r3 instanceof byte[]\n if (r2 == 0) goto L_0x0043\n goto L_0x0026\n L_0x0031:\n boolean r0 = r3 instanceof java.lang.String\n goto L_0x0042\n L_0x0034:\n boolean r0 = r3 instanceof java.lang.Boolean\n goto L_0x0042\n L_0x0037:\n boolean r0 = r3 instanceof java.lang.Double\n goto L_0x0042\n L_0x003a:\n boolean r0 = r3 instanceof java.lang.Float\n goto L_0x0042\n L_0x003d:\n boolean r0 = r3 instanceof java.lang.Long\n goto L_0x0042\n L_0x0040:\n boolean r0 = r3 instanceof java.lang.Integer\n L_0x0042:\n r1 = r0\n L_0x0043:\n if (r1 == 0) goto L_0x0046\n return\n L_0x0046:\n java.lang.IllegalArgumentException r2 = new java.lang.IllegalArgumentException\n java.lang.String r3 = \"Wrong object type used with protocol message reflection.\"\n r2.<init>(r3)\n goto L_0x004f\n L_0x004e:\n throw r2\n L_0x004f:\n goto L_0x004e\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.internal.gtm.zzqt.zza(com.google.android.gms.internal.gtm.zzug, java.lang.Object):void\");\n }", "public interface C7878U {\n /* renamed from: Lg */\n public static final int f26781Lg = 1;\n /* renamed from: Mg */\n public static final int f26782Mg = 2;\n public static final int NOERROR = 0;\n /* renamed from: Ng */\n public static final int f26783Ng = 3;\n /* renamed from: Og */\n public static final int f26784Og = 4;\n /* renamed from: Pg */\n public static final int f26785Pg = 5;\n /* renamed from: Qg */\n public static final int f26786Qg = 6;\n}", "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent intent) {\n switch (requestCode) {\n case Constants.CONNECTION_FAILURE_RESOLUTION_REQUEST :\n switch (resultCode) {\n // If Google Play services resolved the problem\n case Activity.RESULT_OK:\n mInProgress = false;\n beginAddGeofences(mGeoIds);\n break;\n }\n }\n }", "private void m2250b(String str) {\n try {\n if (C0661x.m1755b()) {\n m2251c(str);\n return;\n }\n C0661x.m1752a();\n sa.m1656a(C0650i.ERROR, \"'Google Play services' app not installed or disabled on the device.\");\n this.f1830c.mo1392a(null, -7);\n } catch (Throwable th) {\n C0650i c0650i = C0650i.ERROR;\n StringBuilder stringBuilder = new StringBuilder();\n stringBuilder.append(\"Could not register with \");\n stringBuilder.append(mo1748c());\n stringBuilder.append(\" due to an issue with your AndroidManifest.xml or with 'Google Play services'.\");\n sa.m1657a(c0650i, stringBuilder.toString(), th);\n this.f1830c.mo1392a(null, -8);\n }\n }", "public final /* synthetic */ Object zzpq() {\n \n /* JADX ERROR: Method code generation error\n jadx.core.utils.exceptions.CodegenException: Error generate insn: 0x0004: INVOKE (wrap: android.content.Context\n 0x0000: IGET (r0v0 android.content.Context) = (r2v0 'this' com.google.android.gms.internal.ads.zzwo A[THIS]) com.google.android.gms.internal.ads.zzwo.val$context android.content.Context), (wrap: java.lang.String\n 0x0002: CONST_STR (r1v0 java.lang.String) = \"native_ad\") com.google.android.gms.internal.ads.zzwj.zzb(android.content.Context, java.lang.String):void type: STATIC in method: com.google.android.gms.internal.ads.zzwo.zzpq():java.lang.Object, dex: classes2.dex\n \tat jadx.core.codegen.InsnGen.makeInsn(InsnGen.java:245)\n \tat jadx.core.codegen.InsnGen.makeInsn(InsnGen.java:213)\n \tat jadx.core.codegen.RegionGen.makeSimpleBlock(RegionGen.java:109)\n \tat jadx.core.codegen.RegionGen.makeRegion(RegionGen.java:55)\n \tat jadx.core.codegen.RegionGen.makeSimpleRegion(RegionGen.java:92)\n \tat jadx.core.codegen.RegionGen.makeRegion(RegionGen.java:58)\n \tat jadx.core.codegen.MethodGen.addRegionInsns(MethodGen.java:210)\n \tat jadx.core.codegen.MethodGen.addInstructions(MethodGen.java:203)\n \tat jadx.core.codegen.ClassGen.addMethod(ClassGen.java:316)\n \tat jadx.core.codegen.ClassGen.addMethods(ClassGen.java:262)\n \tat jadx.core.codegen.ClassGen.addClassBody(ClassGen.java:225)\n \tat jadx.core.codegen.ClassGen.addClassCode(ClassGen.java:110)\n \tat jadx.core.codegen.ClassGen.makeClass(ClassGen.java:76)\n \tat jadx.core.codegen.CodeGen.wrapCodeGen(CodeGen.java:44)\n \tat jadx.core.codegen.CodeGen.generateJavaCode(CodeGen.java:32)\n \tat jadx.core.codegen.CodeGen.generate(CodeGen.java:20)\n \tat jadx.core.ProcessClass.process(ProcessClass.java:36)\n \tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:311)\n \tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n \tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:217)\n Caused by: java.lang.ArrayIndexOutOfBoundsException: arraycopy: length -2 is negative\n \tat java.base/java.util.ArrayList.shiftTailOverGap(Unknown Source)\n \tat java.base/java.util.ArrayList.removeIf(Unknown Source)\n \tat java.base/java.util.ArrayList.removeIf(Unknown Source)\n \tat jadx.core.dex.instructions.args.SSAVar.removeUse(SSAVar.java:86)\n \tat jadx.core.utils.InsnRemover.unbindArgUsage(InsnRemover.java:90)\n \tat jadx.core.dex.nodes.InsnNode.replaceArg(InsnNode.java:130)\n \tat jadx.core.codegen.InsnGen.inlineMethod(InsnGen.java:892)\n \tat jadx.core.codegen.InsnGen.makeInvoke(InsnGen.java:669)\n \tat jadx.core.codegen.InsnGen.makeInsnBody(InsnGen.java:357)\n \tat jadx.core.codegen.InsnGen.makeInsn(InsnGen.java:239)\n \t... 19 more\n */\n /*\n this = this;\n android.content.Context r0 = r2.val$context\n java.lang.String r1 = \"native_ad\"\n com.google.android.gms.internal.ads.zzwj.zza(r0, r1)\n com.google.android.gms.internal.ads.zzzh r0 = new com.google.android.gms.internal.ads.zzzh\n r0.<init>()\n return r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.internal.ads.zzwo.zzpq():java.lang.Object\");\n }", "@Override\n protected void onStart() {\n super.onStart();\n\n\n GoogleApiAvailability GMS_Availability = GoogleApiAvailability.getInstance();\n int GMS_CheckResult = GMS_Availability.isGooglePlayServicesAvailable(this);\n\n if (GMS_CheckResult != ConnectionResult.SUCCESS) {\n\n // Would show a dialog to suggest user download GMS through Google Play\n GMS_Availability.getErrorDialog(this, GMS_CheckResult, 1).show();\n }else{\n mGoogleApiClient.connect();\n }\n }", "protected synchronized void buildGoogleApiClient() {\n mGoogleApiClient = new GoogleApiClient.Builder(this)\n .addConnectionCallbacks(this) //En este caso, necesitamos la api de google para recoger nuestra ubicacion\n .addOnConnectionFailedListener(this) // junto con la api FusedLocationProviderApi.\n .addApi(LocationServices.API)\n .build();\n mGoogleApiClient.connect();\n }", "protected synchronized void buildGoogleApiClient() {\n GoogleApiClient mGoogleApiClient = new GoogleApiClient.Builder(getActivity()).addApi(LocationServices.API).build();\n mGoogleApiClient.connect();\n\n LocationRequest locationRequest = LocationRequest.create();\n mGoogleApiClient = new GoogleApiClient.Builder(getActivity())\n .addConnectionCallbacks(new GoogleApiClient.ConnectionCallbacks() {\n @Override\n public void onConnected(@Nullable Bundle bundle) {\n if (ActivityCompat.checkSelfPermission(getApplicationContext(), Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\n mFusedLocationClient.getLastLocation().addOnSuccessListener(new OnSuccessListener<Location>() {\n @Override\n public void onSuccess(Location location) {\n if (location!=null){\n LatLng loc = new LatLng(location.getLatitude(), location.getLongitude());\n strLatitude = String.valueOf(location.getLatitude());\n strLongitude = String.valueOf(location.getLongitude());\n //mMap.animateCamera(CameraUpdateFactory.newLatLngZoom(loc, 16.0f));\n }\n }\n });\n }\n }\n\n @Override\n public void onConnectionSuspended(int i) {\n //LOG\n }\n })\n .addApi(LocationServices.API)\n .build();\n }", "protected synchronized void buildGoogleApiClient() {\n mGoogleApiClient = new GoogleApiClient.Builder(getActivity())\n .addConnectionCallbacks(this)\n .addOnConnectionFailedListener(this)\n .addApi(LocationServices.API)\n .build();\n }", "@Override\n public void onConnectionFailed(@NonNull ConnectionResult connectionResult) {\n Log.e(TAG, \"onConnectionFailed:\" + connectionResult);\n Toast.makeText(this, \"Google Play Services error.\", Toast.LENGTH_SHORT).show();\n }", "private void b(int r14) {\n /*\n r13 = this;\n java.lang.Integer r0 = r13.w\n if (r0 != 0) goto L_0x000b\n java.lang.Integer r14 = java.lang.Integer.valueOf(r14)\n r13.w = r14\n goto L_0x005b\n L_0x000b:\n java.lang.Integer r0 = r13.w\n int r0 = r0.intValue()\n if (r0 == r14) goto L_0x005b\n java.lang.IllegalStateException r0 = new java.lang.IllegalStateException\n java.lang.String r14 = a(r14)\n java.lang.String r14 = java.lang.String.valueOf(r14)\n java.lang.Integer r1 = r13.w\n int r1 = r1.intValue()\n java.lang.String r1 = a(r1)\n java.lang.String r1 = java.lang.String.valueOf(r1)\n java.lang.StringBuilder r2 = new java.lang.StringBuilder\n java.lang.String r3 = java.lang.String.valueOf(r14)\n int r3 = r3.length()\n int r3 = r3 + 51\n java.lang.String r4 = java.lang.String.valueOf(r1)\n int r4 = r4.length()\n int r3 = r3 + r4\n r2.<init>(r3)\n java.lang.String r3 = \"Cannot use sign-in mode: \"\n r2.append(r3)\n r2.append(r14)\n java.lang.String r14 = \". Mode was already set to \"\n r2.append(r14)\n r2.append(r1)\n java.lang.String r14 = r2.toString()\n r0.<init>(r14)\n throw r0\n L_0x005b:\n com.google.android.gms.internal.zzqy r14 = r13.l\n if (r14 == 0) goto L_0x0060\n return\n L_0x0060:\n java.util.Map<com.google.android.gms.common.api.Api$zzc<?>, com.google.android.gms.common.api.Api$zze> r14 = r13.c\n java.util.Collection r14 = r14.values()\n java.util.Iterator r14 = r14.iterator()\n r0 = 0\n r1 = 0\n L_0x006c:\n boolean r2 = r14.hasNext()\n if (r2 == 0) goto L_0x0088\n java.lang.Object r2 = r14.next()\n com.google.android.gms.common.api.Api$zze r2 = (com.google.android.gms.common.api.Api.zze) r2\n boolean r3 = r2.zzahd()\n r4 = 1\n if (r3 == 0) goto L_0x0080\n r0 = 1\n L_0x0080:\n boolean r2 = r2.zzahs()\n if (r2 == 0) goto L_0x006c\n r1 = 1\n goto L_0x006c\n L_0x0088:\n java.lang.Integer r14 = r13.w\n int r14 = r14.intValue()\n switch(r14) {\n case 1: goto L_0x00ae;\n case 2: goto L_0x0092;\n case 3: goto L_0x00c2;\n default: goto L_0x0091;\n }\n L_0x0091:\n goto L_0x00c2\n L_0x0092:\n if (r0 == 0) goto L_0x00c2\n android.content.Context r2 = r13.n\n java.util.concurrent.locks.Lock r4 = r13.j\n android.os.Looper r5 = r13.o\n com.google.android.gms.common.GoogleApiAvailability r6 = r13.t\n java.util.Map<com.google.android.gms.common.api.Api$zzc<?>, com.google.android.gms.common.api.Api$zze> r7 = r13.c\n com.google.android.gms.common.internal.zzh r8 = r13.e\n java.util.Map<com.google.android.gms.common.api.Api<?>, java.lang.Integer> r9 = r13.f\n com.google.android.gms.common.api.Api$zza<? extends com.google.android.gms.internal.zzwz, com.google.android.gms.internal.zzxa> r10 = r13.g\n java.util.ArrayList<com.google.android.gms.internal.zzqf> r11 = r13.v\n r3 = r13\n com.google.android.gms.internal.zzqh r14 = com.google.android.gms.internal.zzqh.a(r2, r3, r4, r5, r6, r7, r8, r9, r10, r11)\n L_0x00ab:\n r13.l = r14\n return\n L_0x00ae:\n if (r0 != 0) goto L_0x00b8\n java.lang.IllegalStateException r14 = new java.lang.IllegalStateException\n java.lang.String r0 = \"SIGN_IN_MODE_REQUIRED cannot be used on a GoogleApiClient that does not contain any authenticated APIs. Use connect() instead.\"\n r14.<init>(r0)\n throw r14\n L_0x00b8:\n if (r1 == 0) goto L_0x00c2\n java.lang.IllegalStateException r14 = new java.lang.IllegalStateException\n java.lang.String r0 = \"Cannot use SIGN_IN_MODE_REQUIRED with GOOGLE_SIGN_IN_API. Use connect(SIGN_IN_MODE_OPTIONAL) instead.\"\n r14.<init>(r0)\n throw r14\n L_0x00c2:\n com.google.android.gms.internal.zzqr r14 = new com.google.android.gms.internal.zzqr\n android.content.Context r2 = r13.n\n java.util.concurrent.locks.Lock r4 = r13.j\n android.os.Looper r5 = r13.o\n com.google.android.gms.common.GoogleApiAvailability r6 = r13.t\n java.util.Map<com.google.android.gms.common.api.Api$zzc<?>, com.google.android.gms.common.api.Api$zze> r7 = r13.c\n com.google.android.gms.common.internal.zzh r8 = r13.e\n java.util.Map<com.google.android.gms.common.api.Api<?>, java.lang.Integer> r9 = r13.f\n com.google.android.gms.common.api.Api$zza<? extends com.google.android.gms.internal.zzwz, com.google.android.gms.internal.zzxa> r10 = r13.g\n java.util.ArrayList<com.google.android.gms.internal.zzqf> r11 = r13.v\n r1 = r14\n r3 = r13\n r12 = r13\n r1.<init>(r2, r3, r4, r5, r6, r7, r8, r9, r10, r11, r12)\n goto L_0x00ab\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.internal.zzqp.b(int):void\");\n }", "@Override\n public void onConnectionFailed(@NonNull ConnectionResult connectionResult) {\n Log.d(TAG, \"onConnectionFailed:\" + connectionResult);\n Toast.makeText(this, \"Google Play Services error.\", Toast.LENGTH_SHORT).show();\n }", "@Override\n public void onConnectionFailed(@NonNull ConnectionResult connectionResult) {\n Log.d(TAG, \"onConnectionFailed:\" + connectionResult);\n Toast.makeText(this, \"Google Play Services error.\", Toast.LENGTH_SHORT).show();\n }", "@Override\n public void onConnectionFailed(@NonNull ConnectionResult connectionResult) {\n Log.d(TAG, \"onConnectionFailed:\" + connectionResult);\n Toast.makeText(this, \"Google Play Services error.\", Toast.LENGTH_SHORT).show();\n }", "@Override\n public void onConnectionFailed(@NonNull ConnectionResult connectionResult) {\n Log.d(TAG, \"onConnectionFailed:\" + connectionResult);\n Toast.makeText(this, \"Google Play Services error.\", Toast.LENGTH_SHORT).show();\n }", "@Override\n public void onConnectionFailed(@NonNull ConnectionResult connectionResult) {\n Log.d(TAG, \"onConnectionFailed:\" + connectionResult);\n Toast.makeText(this, \"Google Play Services error.\", Toast.LENGTH_SHORT).show();\n }", "@Override\n public void onConnectionFailed(@NonNull ConnectionResult connectionResult) {\n Log.d(TAG, \"onConnectionFailed:\" + connectionResult);\n Toast.makeText(this, \"Google Play Services error.\", Toast.LENGTH_SHORT).show();\n }", "@Override\n public void onConnectionFailed(@NonNull ConnectionResult connectionResult) {\n Log.d(TAG, \"onConnectionFailed:\" + connectionResult);\n Toast.makeText(this, \"Google Play Services error.\", Toast.LENGTH_SHORT).show();\n }", "@androidx.annotation.WorkerThread\n /* Code decompiled incorrectly, please refer to instructions dump. */\n private static boolean zza(com.google.firebase.iid.FirebaseInstanceId r6, java.lang.String r7) {\n /*\n java.lang.String r0 = \"!\"\n java.lang.String[] r7 = r7.split(r0)\n int r0 = r7.length\n r1 = 1\n r2 = 2\n if (r0 != r2) goto L_0x0075\n r0 = 0\n r2 = r7[r0]\n r7 = r7[r1]\n r3 = -1\n int r4 = r2.hashCode() // Catch:{ IOException -> 0x0054 }\n r5 = 83\n if (r4 == r5) goto L_0x0028\n r5 = 85\n if (r4 == r5) goto L_0x001e\n goto L_0x0031\n L_0x001e:\n java.lang.String r4 = \"U\"\n boolean r2 = r2.equals(r4) // Catch:{ IOException -> 0x0054 }\n if (r2 == 0) goto L_0x0031\n r3 = 1\n goto L_0x0031\n L_0x0028:\n java.lang.String r4 = \"S\"\n boolean r2 = r2.equals(r4) // Catch:{ IOException -> 0x0054 }\n if (r2 == 0) goto L_0x0031\n r3 = 0\n L_0x0031:\n switch(r3) {\n case 0: goto L_0x0046;\n case 1: goto L_0x0035;\n default: goto L_0x0034;\n } // Catch:{ IOException -> 0x0054 }\n L_0x0034:\n goto L_0x0075\n L_0x0035:\n r6.zzc(r7) // Catch:{ IOException -> 0x0054 }\n boolean r6 = com.google.firebase.iid.FirebaseInstanceId.zzm() // Catch:{ IOException -> 0x0054 }\n if (r6 == 0) goto L_0x0075\n java.lang.String r6 = \"FirebaseInstanceId\"\n java.lang.String r7 = \"unsubscribe operation succeeded\"\n L_0x0042:\n android.util.Log.d(r6, r7) // Catch:{ IOException -> 0x0054 }\n goto L_0x0075\n L_0x0046:\n r6.zzb((java.lang.String) r7) // Catch:{ IOException -> 0x0054 }\n boolean r6 = com.google.firebase.iid.FirebaseInstanceId.zzm() // Catch:{ IOException -> 0x0054 }\n if (r6 == 0) goto L_0x0075\n java.lang.String r6 = \"FirebaseInstanceId\"\n java.lang.String r7 = \"subscribe operation succeeded\"\n goto L_0x0042\n L_0x0054:\n r6 = move-exception\n java.lang.String r7 = \"FirebaseInstanceId\"\n java.lang.String r1 = \"Topic sync failed: \"\n java.lang.String r6 = r6.getMessage()\n java.lang.String r6 = java.lang.String.valueOf(r6)\n int r2 = r6.length()\n if (r2 == 0) goto L_0x006c\n java.lang.String r6 = r1.concat(r6)\n goto L_0x0071\n L_0x006c:\n java.lang.String r6 = new java.lang.String\n r6.<init>(r1)\n L_0x0071:\n android.util.Log.e(r7, r6)\n return r0\n L_0x0075:\n return r1\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.firebase.iid.zzba.zza(com.google.firebase.iid.FirebaseInstanceId, java.lang.String):boolean\");\n }", "public String mo1081b() {\n return \"com.crashlytics.sdk.android:beta\";\n }", "public void zzfg() {\n /*\n r11 = this;\n r9 = 0\n java.lang.Object r10 = com.google.android.gms.ads.internal.purchase.zzh.zzqt\n monitor-enter(r10)\n android.database.sqlite.SQLiteDatabase r0 = r11.getWritableDatabase() // Catch:{ all -> 0x0031 }\n if (r0 != 0) goto L_0x000c\n monitor-exit(r10) // Catch:{ all -> 0x0031 }\n L_0x000b:\n return\n L_0x000c:\n java.lang.String r7 = \"record_time ASC\"\n java.lang.String r1 = \"InAppPurchase\"\n r2 = 0\n r3 = 0\n r4 = 0\n r5 = 0\n r6 = 0\n java.lang.String r8 = \"1\"\n android.database.Cursor r1 = r0.query(r1, r2, r3, r4, r5, r6, r7, r8) // Catch:{ SQLiteException -> 0x0034, all -> 0x0056 }\n if (r1 == 0) goto L_0x002a\n boolean r0 = r1.moveToFirst() // Catch:{ SQLiteException -> 0x0060 }\n if (r0 == 0) goto L_0x002a\n com.google.android.gms.ads.internal.purchase.zzf r0 = r11.zza(r1) // Catch:{ SQLiteException -> 0x0060 }\n r11.zza(r0) // Catch:{ SQLiteException -> 0x0060 }\n L_0x002a:\n if (r1 == 0) goto L_0x002f\n r1.close()\n L_0x002f:\n monitor-exit(r10)\n goto L_0x000b\n L_0x0031:\n r0 = move-exception\n monitor-exit(r10)\n throw r0\n L_0x0034:\n r0 = move-exception\n r1 = r9\n L_0x0036:\n java.lang.StringBuilder r2 = new java.lang.StringBuilder // Catch:{ all -> 0x005e }\n r2.<init>() // Catch:{ all -> 0x005e }\n java.lang.String r3 = \"Error remove oldest record\"\n java.lang.StringBuilder r2 = r2.append(r3) // Catch:{ all -> 0x005e }\n java.lang.String r0 = r0.getMessage() // Catch:{ all -> 0x005e }\n java.lang.StringBuilder r0 = r2.append(r0) // Catch:{ all -> 0x005e }\n java.lang.String r0 = r0.toString() // Catch:{ all -> 0x005e }\n com.google.android.gms.ads.internal.util.client.zzb.zzaC(r0) // Catch:{ all -> 0x005e }\n if (r1 == 0) goto L_0x002f\n r1.close()\n goto L_0x002f\n L_0x0056:\n r0 = move-exception\n r1 = r9\n L_0x0058:\n if (r1 == 0) goto L_0x005d\n r1.close()\n L_0x005d:\n throw r0\n L_0x005e:\n r0 = move-exception\n goto L_0x0058\n L_0x0060:\n r0 = move-exception\n goto L_0x0036\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.ads.internal.purchase.zzh.zzfg():void\");\n }", "private final void zaa(java.lang.StringBuilder r10, java.util.Map<java.lang.String, com.google.android.gms.common.server.response.FastJsonResponse.Field<?, ?>> r11, android.os.Parcel r12) {\n /*\n r9 = this;\n android.util.SparseArray r0 = new android.util.SparseArray\n r0.<init>()\n java.util.Set r11 = r11.entrySet()\n java.util.Iterator r11 = r11.iterator()\n L_0x000d:\n boolean r1 = r11.hasNext()\n if (r1 == 0) goto L_0x0027\n java.lang.Object r1 = r11.next()\n java.util.Map$Entry r1 = (java.util.Map.Entry) r1\n java.lang.Object r2 = r1.getValue()\n com.google.android.gms.common.server.response.FastJsonResponse$Field r2 = (com.google.android.gms.common.server.response.FastJsonResponse.Field) r2\n int r2 = r2.getSafeParcelableFieldId()\n r0.put(r2, r1)\n goto L_0x000d\n L_0x0027:\n r11 = 123(0x7b, float:1.72E-43)\n r10.append(r11)\n int r11 = com.google.android.gms.common.internal.safeparcel.SafeParcelReader.validateObjectHeader(r12)\n r1 = 1\n r2 = 0\n r3 = 0\n L_0x0033:\n int r4 = r12.dataPosition()\n if (r4 >= r11) goto L_0x0262\n int r4 = com.google.android.gms.common.internal.safeparcel.SafeParcelReader.readHeader(r12)\n int r5 = com.google.android.gms.common.internal.safeparcel.SafeParcelReader.getFieldId(r4)\n java.lang.Object r5 = r0.get(r5)\n java.util.Map$Entry r5 = (java.util.Map.Entry) r5\n if (r5 == 0) goto L_0x0033\n if (r3 == 0) goto L_0x0050\n java.lang.String r3 = \",\"\n r10.append(r3)\n L_0x0050:\n java.lang.Object r3 = r5.getKey()\n java.lang.String r3 = (java.lang.String) r3\n java.lang.Object r5 = r5.getValue()\n com.google.android.gms.common.server.response.FastJsonResponse$Field r5 = (com.google.android.gms.common.server.response.FastJsonResponse.Field) r5\n java.lang.String r6 = \"\\\"\"\n r10.append(r6)\n r10.append(r3)\n java.lang.String r3 = \"\\\":\"\n r10.append(r3)\n boolean r3 = r5.zacn()\n if (r3 == 0) goto L_0x010a\n int r3 = r5.zapt\n switch(r3) {\n case 0: goto L_0x00f9;\n case 1: goto L_0x00f4;\n case 2: goto L_0x00eb;\n case 3: goto L_0x00e2;\n case 4: goto L_0x00d9;\n case 5: goto L_0x00d4;\n case 6: goto L_0x00cb;\n case 7: goto L_0x00c6;\n case 8: goto L_0x00c1;\n case 9: goto L_0x00c1;\n case 10: goto L_0x0097;\n case 11: goto L_0x008f;\n default: goto L_0x0074;\n }\n L_0x0074:\n java.lang.IllegalArgumentException r10 = new java.lang.IllegalArgumentException\n int r11 = r5.zapt\n r12 = 36\n java.lang.StringBuilder r0 = new java.lang.StringBuilder\n r0.<init>(r12)\n java.lang.String r12 = \"Unknown field out type = \"\n r0.append(r12)\n r0.append(r11)\n java.lang.String r11 = r0.toString()\n r10.<init>(r11)\n throw r10\n L_0x008f:\n java.lang.IllegalArgumentException r10 = new java.lang.IllegalArgumentException\n java.lang.String r11 = \"Method does not accept concrete type.\"\n r10.<init>(r11)\n throw r10\n L_0x0097:\n android.os.Bundle r3 = com.google.android.gms.common.internal.safeparcel.SafeParcelReader.createBundle(r12, r4)\n java.util.HashMap r4 = new java.util.HashMap\n r4.<init>()\n java.util.Set r6 = r3.keySet()\n java.util.Iterator r6 = r6.iterator()\n L_0x00a8:\n boolean r7 = r6.hasNext()\n if (r7 == 0) goto L_0x00bc\n java.lang.Object r7 = r6.next()\n java.lang.String r7 = (java.lang.String) r7\n java.lang.String r8 = r3.getString(r7)\n r4.put(r7, r8)\n goto L_0x00a8\n L_0x00bc:\n java.lang.Object r3 = zab(r5, (java.lang.Object) r4)\n goto L_0x0105\n L_0x00c1:\n byte[] r3 = com.google.android.gms.common.internal.safeparcel.SafeParcelReader.createByteArray(r12, r4)\n goto L_0x0101\n L_0x00c6:\n java.lang.String r3 = com.google.android.gms.common.internal.safeparcel.SafeParcelReader.createString(r12, r4)\n goto L_0x0101\n L_0x00cb:\n boolean r3 = com.google.android.gms.common.internal.safeparcel.SafeParcelReader.readBoolean(r12, r4)\n java.lang.Boolean r3 = java.lang.Boolean.valueOf(r3)\n goto L_0x0101\n L_0x00d4:\n java.math.BigDecimal r3 = com.google.android.gms.common.internal.safeparcel.SafeParcelReader.createBigDecimal(r12, r4)\n goto L_0x0101\n L_0x00d9:\n double r3 = com.google.android.gms.common.internal.safeparcel.SafeParcelReader.readDouble(r12, r4)\n java.lang.Double r3 = java.lang.Double.valueOf(r3)\n goto L_0x0101\n L_0x00e2:\n float r3 = com.google.android.gms.common.internal.safeparcel.SafeParcelReader.readFloat(r12, r4)\n java.lang.Float r3 = java.lang.Float.valueOf(r3)\n goto L_0x0101\n L_0x00eb:\n long r3 = com.google.android.gms.common.internal.safeparcel.SafeParcelReader.readLong(r12, r4)\n java.lang.Long r3 = java.lang.Long.valueOf(r3)\n goto L_0x0101\n L_0x00f4:\n java.math.BigInteger r3 = com.google.android.gms.common.internal.safeparcel.SafeParcelReader.createBigInteger(r12, r4)\n goto L_0x0101\n L_0x00f9:\n int r3 = com.google.android.gms.common.internal.safeparcel.SafeParcelReader.readInt(r12, r4)\n java.lang.Integer r3 = java.lang.Integer.valueOf(r3)\n L_0x0101:\n java.lang.Object r3 = zab(r5, (java.lang.Object) r3)\n L_0x0105:\n r9.zab((java.lang.StringBuilder) r10, (com.google.android.gms.common.server.response.FastJsonResponse.Field<?, ?>) r5, (java.lang.Object) r3)\n goto L_0x025f\n L_0x010a:\n boolean r3 = r5.zapu\n if (r3 == 0) goto L_0x0188\n java.lang.String r3 = \"[\"\n r10.append(r3)\n int r3 = r5.zapt\n switch(r3) {\n case 0: goto L_0x017d;\n case 1: goto L_0x0175;\n case 2: goto L_0x016d;\n case 3: goto L_0x0165;\n case 4: goto L_0x015d;\n case 5: goto L_0x0158;\n case 6: goto L_0x0150;\n case 7: goto L_0x0148;\n case 8: goto L_0x0140;\n case 9: goto L_0x0140;\n case 10: goto L_0x0140;\n case 11: goto L_0x0120;\n default: goto L_0x0118;\n }\n L_0x0118:\n java.lang.IllegalStateException r10 = new java.lang.IllegalStateException\n java.lang.String r11 = \"Unknown field type out.\"\n r10.<init>(r11)\n throw r10\n L_0x0120:\n android.os.Parcel[] r3 = com.google.android.gms.common.internal.safeparcel.SafeParcelReader.createParcelArray(r12, r4)\n int r4 = r3.length\n r6 = 0\n L_0x0126:\n if (r6 >= r4) goto L_0x0184\n if (r6 <= 0) goto L_0x012f\n java.lang.String r7 = \",\"\n r10.append(r7)\n L_0x012f:\n r7 = r3[r6]\n r7.setDataPosition(r2)\n java.util.Map r7 = r5.zacq()\n r8 = r3[r6]\n r9.zaa((java.lang.StringBuilder) r10, (java.util.Map<java.lang.String, com.google.android.gms.common.server.response.FastJsonResponse.Field<?, ?>>) r7, (android.os.Parcel) r8)\n int r6 = r6 + 1\n goto L_0x0126\n L_0x0140:\n java.lang.UnsupportedOperationException r10 = new java.lang.UnsupportedOperationException\n java.lang.String r11 = \"List of type BASE64, BASE64_URL_SAFE, or STRING_MAP is not supported\"\n r10.<init>(r11)\n throw r10\n L_0x0148:\n java.lang.String[] r3 = com.google.android.gms.common.internal.safeparcel.SafeParcelReader.createStringArray(r12, r4)\n com.google.android.gms.common.util.ArrayUtils.writeStringArray(r10, r3)\n goto L_0x0184\n L_0x0150:\n boolean[] r3 = com.google.android.gms.common.internal.safeparcel.SafeParcelReader.createBooleanArray(r12, r4)\n com.google.android.gms.common.util.ArrayUtils.writeArray((java.lang.StringBuilder) r10, (boolean[]) r3)\n goto L_0x0184\n L_0x0158:\n java.math.BigDecimal[] r3 = com.google.android.gms.common.internal.safeparcel.SafeParcelReader.createBigDecimalArray(r12, r4)\n goto L_0x0179\n L_0x015d:\n double[] r3 = com.google.android.gms.common.internal.safeparcel.SafeParcelReader.createDoubleArray(r12, r4)\n com.google.android.gms.common.util.ArrayUtils.writeArray((java.lang.StringBuilder) r10, (double[]) r3)\n goto L_0x0184\n L_0x0165:\n float[] r3 = com.google.android.gms.common.internal.safeparcel.SafeParcelReader.createFloatArray(r12, r4)\n com.google.android.gms.common.util.ArrayUtils.writeArray((java.lang.StringBuilder) r10, (float[]) r3)\n goto L_0x0184\n L_0x016d:\n long[] r3 = com.google.android.gms.common.internal.safeparcel.SafeParcelReader.createLongArray(r12, r4)\n com.google.android.gms.common.util.ArrayUtils.writeArray((java.lang.StringBuilder) r10, (long[]) r3)\n goto L_0x0184\n L_0x0175:\n java.math.BigInteger[] r3 = com.google.android.gms.common.internal.safeparcel.SafeParcelReader.createBigIntegerArray(r12, r4)\n L_0x0179:\n com.google.android.gms.common.util.ArrayUtils.writeArray((java.lang.StringBuilder) r10, (T[]) r3)\n goto L_0x0184\n L_0x017d:\n int[] r3 = com.google.android.gms.common.internal.safeparcel.SafeParcelReader.createIntArray(r12, r4)\n com.google.android.gms.common.util.ArrayUtils.writeArray((java.lang.StringBuilder) r10, (int[]) r3)\n L_0x0184:\n java.lang.String r3 = \"]\"\n goto L_0x0227\n L_0x0188:\n int r3 = r5.zapt\n switch(r3) {\n case 0: goto L_0x0258;\n case 1: goto L_0x0250;\n case 2: goto L_0x0248;\n case 3: goto L_0x0240;\n case 4: goto L_0x0238;\n case 5: goto L_0x0233;\n case 6: goto L_0x022b;\n case 7: goto L_0x0215;\n case 8: goto L_0x0207;\n case 9: goto L_0x01f9;\n case 10: goto L_0x01a5;\n case 11: goto L_0x0195;\n default: goto L_0x018d;\n }\n L_0x018d:\n java.lang.IllegalStateException r10 = new java.lang.IllegalStateException\n java.lang.String r11 = \"Unknown field type out\"\n r10.<init>(r11)\n throw r10\n L_0x0195:\n android.os.Parcel r3 = com.google.android.gms.common.internal.safeparcel.SafeParcelReader.createParcel(r12, r4)\n r3.setDataPosition(r2)\n java.util.Map r4 = r5.zacq()\n r9.zaa((java.lang.StringBuilder) r10, (java.util.Map<java.lang.String, com.google.android.gms.common.server.response.FastJsonResponse.Field<?, ?>>) r4, (android.os.Parcel) r3)\n goto L_0x025f\n L_0x01a5:\n android.os.Bundle r3 = com.google.android.gms.common.internal.safeparcel.SafeParcelReader.createBundle(r12, r4)\n java.util.Set r4 = r3.keySet()\n r4.size()\n java.lang.String r5 = \"{\"\n r10.append(r5)\n java.util.Iterator r4 = r4.iterator()\n r5 = 1\n L_0x01ba:\n boolean r6 = r4.hasNext()\n if (r6 == 0) goto L_0x01f6\n java.lang.Object r6 = r4.next()\n java.lang.String r6 = (java.lang.String) r6\n if (r5 != 0) goto L_0x01cd\n java.lang.String r5 = \",\"\n r10.append(r5)\n L_0x01cd:\n java.lang.String r5 = \"\\\"\"\n r10.append(r5)\n r10.append(r6)\n java.lang.String r5 = \"\\\"\"\n r10.append(r5)\n java.lang.String r5 = \":\"\n r10.append(r5)\n java.lang.String r5 = \"\\\"\"\n r10.append(r5)\n java.lang.String r5 = r3.getString(r6)\n java.lang.String r5 = com.google.android.gms.common.util.JsonUtils.escapeString(r5)\n r10.append(r5)\n java.lang.String r5 = \"\\\"\"\n r10.append(r5)\n r5 = 0\n goto L_0x01ba\n L_0x01f6:\n java.lang.String r3 = \"}\"\n goto L_0x0227\n L_0x01f9:\n byte[] r3 = com.google.android.gms.common.internal.safeparcel.SafeParcelReader.createByteArray(r12, r4)\n java.lang.String r4 = \"\\\"\"\n r10.append(r4)\n java.lang.String r3 = com.google.android.gms.common.util.Base64Utils.encodeUrlSafe(r3)\n goto L_0x0222\n L_0x0207:\n byte[] r3 = com.google.android.gms.common.internal.safeparcel.SafeParcelReader.createByteArray(r12, r4)\n java.lang.String r4 = \"\\\"\"\n r10.append(r4)\n java.lang.String r3 = com.google.android.gms.common.util.Base64Utils.encode(r3)\n goto L_0x0222\n L_0x0215:\n java.lang.String r3 = com.google.android.gms.common.internal.safeparcel.SafeParcelReader.createString(r12, r4)\n java.lang.String r4 = \"\\\"\"\n r10.append(r4)\n java.lang.String r3 = com.google.android.gms.common.util.JsonUtils.escapeString(r3)\n L_0x0222:\n r10.append(r3)\n java.lang.String r3 = \"\\\"\"\n L_0x0227:\n r10.append(r3)\n goto L_0x025f\n L_0x022b:\n boolean r3 = com.google.android.gms.common.internal.safeparcel.SafeParcelReader.readBoolean(r12, r4)\n r10.append(r3)\n goto L_0x025f\n L_0x0233:\n java.math.BigDecimal r3 = com.google.android.gms.common.internal.safeparcel.SafeParcelReader.createBigDecimal(r12, r4)\n goto L_0x0254\n L_0x0238:\n double r3 = com.google.android.gms.common.internal.safeparcel.SafeParcelReader.readDouble(r12, r4)\n r10.append(r3)\n goto L_0x025f\n L_0x0240:\n float r3 = com.google.android.gms.common.internal.safeparcel.SafeParcelReader.readFloat(r12, r4)\n r10.append(r3)\n goto L_0x025f\n L_0x0248:\n long r3 = com.google.android.gms.common.internal.safeparcel.SafeParcelReader.readLong(r12, r4)\n r10.append(r3)\n goto L_0x025f\n L_0x0250:\n java.math.BigInteger r3 = com.google.android.gms.common.internal.safeparcel.SafeParcelReader.createBigInteger(r12, r4)\n L_0x0254:\n r10.append(r3)\n goto L_0x025f\n L_0x0258:\n int r3 = com.google.android.gms.common.internal.safeparcel.SafeParcelReader.readInt(r12, r4)\n r10.append(r3)\n L_0x025f:\n r3 = 1\n goto L_0x0033\n L_0x0262:\n int r0 = r12.dataPosition()\n if (r0 != r11) goto L_0x026e\n r11 = 125(0x7d, float:1.75E-43)\n r10.append(r11)\n return\n L_0x026e:\n com.google.android.gms.common.internal.safeparcel.SafeParcelReader$ParseException r10 = new com.google.android.gms.common.internal.safeparcel.SafeParcelReader$ParseException\n r0 = 37\n java.lang.StringBuilder r1 = new java.lang.StringBuilder\n r1.<init>(r0)\n java.lang.String r0 = \"Overread allowed size end=\"\n r1.append(r0)\n r1.append(r11)\n java.lang.String r11 = r1.toString()\n r10.<init>(r11, r12)\n throw r10\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.common.server.response.SafeParcelResponse.zaa(java.lang.StringBuilder, java.util.Map, android.os.Parcel):void\");\n }", "@Override\n public void onVerificationFailed(FirebaseException e) {\n\n if (e instanceof FirebaseAuthInvalidCredentialsException) {\n // Invalid request\n otp.setError(e.getMessage());\n } else if (e instanceof FirebaseTooManyRequestsException) {\n // The SMS quota for the project has been exceeded\n otp.setError(e.getMessage());\n }\n progressBar.setVisibility(View.INVISIBLE);\n\n // Show a message and update the UI\n }", "@Override\n public void onVerificationFailed(FirebaseException e) {\n\n if (e instanceof FirebaseAuthInvalidCredentialsException) {\n // Invalid request\n otp.setError(e.getMessage());\n } else if (e instanceof FirebaseTooManyRequestsException) {\n // The SMS quota for the project has been exceeded\n otp.setError(e.getMessage());\n }\n progressBar.setVisibility(View.INVISIBLE);\n\n // Show a message and update the UI\n }", "@Override\n public void onVerificationFailed(FirebaseException e) {\n\n if (e instanceof FirebaseAuthInvalidCredentialsException) {\n // Invalid request\n otp.setError(e.getMessage());\n } else if (e instanceof FirebaseTooManyRequestsException) {\n // The SMS quota for the project has been exceeded\n otp.setError(e.getMessage());\n }\n progressBar.setVisibility(View.INVISIBLE);\n\n // Show a message and update the UI\n }", "public final String mo6463a() {\n return \"com.google.android.gms.ads.identifier.service.EVENT_ATTESTATION\";\n }", "public GoogleApiRecord() {\n super(GoogleApi.GOOGLE_API);\n }", "public final /* synthetic */ void G() {\n Uri uri;\n com.ss.android.ugc.aweme.festival.common.a e2 = com.ss.android.ugc.aweme.festival.christmas.a.e();\n if (e2 != null && !TextUtils.isEmpty(e2.f47289c)) {\n String str = \"\";\n boolean z = this instanceof MusUserProfileFragment;\n if (z) {\n str = \"others_homepage\";\n } else if (this instanceof MusMyProfileFragment) {\n str = \"personal_homepage\";\n }\n r.a(\"enter_activity_page\", (Map) new d().a(\"enter_from\", str).f34114b);\n String str2 = null;\n if (z && this.J != null && !this.J.isMe()) {\n str2 = this.J.getUid();\n }\n if (!TextUtils.isEmpty(str2)) {\n uri = Uri.parse(e2.f47289c).buildUpon().appendQueryParameter(\"uid\", str2).build();\n } else {\n uri = Uri.parse(e2.f47289c);\n }\n com.ss.android.ugc.aweme.festival.christmas.a.a(getContext(), uri.toString());\n }\n }", "protected synchronized void buildGoogleApiClient() {\r\n googleApiClient = new GoogleApiClient.Builder(this)\r\n .addConnectionCallbacks(this)\r\n .addOnConnectionFailedListener(this)\r\n .addApi(LocationServices.API)\r\n .build();\r\n }", "public com.google.android.gms.dynamic.d g(com.google.android.gms.maps.model.internal.l param1) throws RemoteException {\n }", "private static abstract class <init> extends com.google.android.gms.games.dMatchesImpl\n{\n\n public com.google.android.gms.games.multiplayer.turnbased.Q V(Status status)\n {\n return new com.google.android.gms.games.multiplayer.turnbased.TurnBasedMultiplayer.LoadMatchesResult(status) {\n\n final TurnBasedMultiplayerImpl.LoadMatchesImpl Ln;\n final Status wz;\n\n public LoadMatchesResponse getMatches()\n {\n return new LoadMatchesResponse(new Bundle());\n }\n\n public Status getStatus()\n {\n return wz;\n }\n\n public void release()\n {\n }\n\n \n {\n Ln = TurnBasedMultiplayerImpl.LoadMatchesImpl.this;\n wz = status;\n super();\n }\n };\n }", "AnonymousClass1(android.telecom.ConnectionServiceAdapterServant r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e8 in method: android.telecom.ConnectionServiceAdapterServant.1.<init>(android.telecom.ConnectionServiceAdapterServant):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.telecom.ConnectionServiceAdapterServant.1.<init>(android.telecom.ConnectionServiceAdapterServant):void\");\n }", "@Override\n public void onConnectionFailed(@NonNull ConnectionResult connectionResult) {\n Toast.makeText(getBaseContext(), R.string.google_api_client_connection_failed, Toast.LENGTH_LONG).show();\n googleApiClient.connect();\n }", "private void initialize() {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00ee in method: android.location.GpsClock.initialize():void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.location.GpsClock.initialize():void\");\n }", "private void buildGoogleApiClient() {\n Log.d(TAG, \"buildGoogleApiClient\");\n mGoogleApiClient = new GoogleApiClient.Builder(getContext())\n .addConnectionCallbacks(this)\n .addOnConnectionFailedListener(this)\n .addApi(LocationServices.API)\n .build();\n }", "private FirebaseUtil(){}", "public GoogleAPI() {\n try {\n ytService = getService();\n } catch (GeneralSecurityException | IOException e) {\n e.printStackTrace();\n }\n DEVELOPER_KEY = DEVELOPER_KEY_Junwei;\n }", "static final /* synthetic */ void m50993b(ane ane, Map map) {\n PackageManager packageManager = ane.getContext().getPackageManager();\n try {\n try {\n JSONArray jSONArray = new JSONObject((String) map.get(\"data\")).getJSONArray(\"intents\");\n JSONObject jSONObject = new JSONObject();\n for (int i = 0; i < jSONArray.length(); i++) {\n try {\n JSONObject jSONObject2 = jSONArray.getJSONObject(i);\n String optString = jSONObject2.optString(\"id\");\n String optString2 = jSONObject2.optString(\"u\");\n String optString3 = jSONObject2.optString(C42323i.f110089f);\n String optString4 = jSONObject2.optString(C13192m.f34940a);\n String optString5 = jSONObject2.optString(\"p\");\n String optString6 = jSONObject2.optString(\"c\");\n jSONObject2.optString(\"f\");\n jSONObject2.optString(\"e\");\n String optString7 = jSONObject2.optString(\"intent_url\");\n Intent intent = null;\n if (!TextUtils.isEmpty(optString7)) {\n try {\n intent = Intent.parseUri(optString7, 0);\n } catch (URISyntaxException e) {\n URISyntaxException uRISyntaxException = e;\n String str = \"Error parsing the url: \";\n String valueOf = String.valueOf(optString7);\n acd.m45778b(valueOf.length() != 0 ? str.concat(valueOf) : new String(str), uRISyntaxException);\n }\n }\n boolean z = true;\n if (intent == null) {\n intent = new Intent();\n if (!TextUtils.isEmpty(optString2)) {\n intent.setData(Uri.parse(optString2));\n }\n if (!TextUtils.isEmpty(optString3)) {\n intent.setAction(optString3);\n }\n if (!TextUtils.isEmpty(optString4)) {\n intent.setType(optString4);\n }\n if (!TextUtils.isEmpty(optString5)) {\n intent.setPackage(optString5);\n }\n if (!TextUtils.isEmpty(optString6)) {\n String[] split = optString6.split(\"/\", 2);\n if (split.length == 2) {\n intent.setComponent(new ComponentName(split[0], split[1]));\n }\n }\n }\n if (packageManager.resolveActivity(intent, 65536) == null) {\n z = false;\n }\n try {\n jSONObject.put(optString, z);\n } catch (JSONException e2) {\n acd.m45778b(\"Error constructing openable urls response.\", e2);\n }\n } catch (JSONException e3) {\n acd.m45778b(\"Error parsing the intent data.\", e3);\n }\n }\n ((C15836lc) ane).mo39810a(\"openableIntents\", jSONObject);\n } catch (JSONException unused) {\n ((C15836lc) ane).mo39810a(\"openableIntents\", new JSONObject());\n }\n } catch (JSONException unused2) {\n ((C15836lc) ane).mo39810a(\"openableIntents\", new JSONObject());\n }\n }", "private void m10265b(String str) {\n if (!TextUtils.isEmpty(str)) {\n final ArrayList arrayList = new ArrayList();\n boolean a = C1849a.m9641a();\n StringBuilder stringBuilder = new StringBuilder(a ? \"http://maps.google.cn/maps/api/elevation/json?path=\" : \"https://maps.googleapis.com/maps/api/elevation/json?path=\");\n stringBuilder.append(str).append(\"&samples=\").append(this.f8993u);\n if (!a) {\n stringBuilder.append(\"&key=AIzaSyC6rtQRpblQN3RWVE3OCK_c8q4QhWVSnfg\");\n }\n this.f8996x.m13745a(new JsonObjectRequest(stringBuilder.toString(), null, new Listener<JSONObject>(this) {\n /* renamed from: b */\n final /* synthetic */ C1998a f8964b;\n\n public /* synthetic */ void onResponse(Object obj) {\n m10245a((JSONObject) obj);\n }\n\n /* renamed from: a */\n public void m10245a(JSONObject jSONObject) {\n if (\"OK\".equals(jSONObject.optString(\"status\"))) {\n JSONArray optJSONArray = jSONObject.optJSONArray(\"results\");\n for (int i = 0; i < optJSONArray.length(); i++) {\n try {\n arrayList.add(Double.valueOf(((JSONObject) optJSONArray.get(i)).optDouble(\"elevation\")));\n } catch (JSONException e) {\n this.f8964b.f8973a.mo3309a(\"get elevation error\", e.getMessage());\n }\n }\n this.f8964b.f8976d.setMaxAltitude(((Double) Collections.max(arrayList)).doubleValue());\n this.f8964b.f8973a.mo3315b(arrayList);\n } else if (\"INVALID_REQUEST\".equals(jSONObject.optString(\"status\"))) {\n this.f8964b.f8973a.mo3309a(\"get elevation error\", this.f8964b.f8974b.getString(C1373R.string.route_elevation_activity_error));\n this.f8964b.m10259a(this.f8964b.f8990r);\n } else {\n this.f8964b.f8973a.mo3309a(\"get elevation error\", this.f8964b.f8974b.getString(C1373R.string.route_elevation_activity_error));\n this.f8964b.m10259a(this.f8964b.f8990r);\n }\n }\n }, new C19945(this)), this.f8974b);\n }\n }", "protected synchronized void createGoogleAPIClient() {\n googleApiClient = new GoogleApiClient.Builder(this)\n .addConnectionCallbacks(this)\n .addOnConnectionFailedListener(this)\n .addApi(LocationServices.API)\n .build();\n }", "private static int zza(byte[] r1, int r2, int r3, com.google.android.gms.internal.clearcut.zzfl r4, java.lang.Class<?> r5, com.google.android.gms.internal.clearcut.zzay r6) throws java.io.IOException {\n /*\n r0 = com.google.android.gms.internal.clearcut.zzdt.zzgq;\n r4 = r4.ordinal();\n r4 = r0[r4];\n switch(r4) {\n case 1: goto L_0x0085;\n case 2: goto L_0x0080;\n case 3: goto L_0x0073;\n case 4: goto L_0x0066;\n case 5: goto L_0x0066;\n case 6: goto L_0x005d;\n case 7: goto L_0x005d;\n case 8: goto L_0x0054;\n case 9: goto L_0x0047;\n case 10: goto L_0x0047;\n case 11: goto L_0x0047;\n case 12: goto L_0x003c;\n case 13: goto L_0x003c;\n case 14: goto L_0x002f;\n case 15: goto L_0x0024;\n case 16: goto L_0x0019;\n case 17: goto L_0x0013;\n default: goto L_0x000b;\n };\n L_0x000b:\n r1 = new java.lang.RuntimeException;\n r2 = \"unsupported field type.\";\n r1.<init>(r2);\n throw r1;\n L_0x0013:\n r1 = com.google.android.gms.internal.clearcut.zzax.zzd(r1, r2, r6);\n goto L_0x0099;\n L_0x0019:\n r1 = com.google.android.gms.internal.clearcut.zzax.zzb(r1, r2, r6);\n r2 = r6.zzfe;\n r2 = com.google.android.gms.internal.clearcut.zzbk.zza(r2);\n goto L_0x0042;\n L_0x0024:\n r1 = com.google.android.gms.internal.clearcut.zzax.zza(r1, r2, r6);\n r2 = r6.zzfd;\n r2 = com.google.android.gms.internal.clearcut.zzbk.zzm(r2);\n goto L_0x004d;\n L_0x002f:\n r4 = com.google.android.gms.internal.clearcut.zzea.zzcm();\n r4 = r4.zze(r5);\n r1 = zza(r4, r1, r2, r3, r6);\n goto L_0x0099;\n L_0x003c:\n r1 = com.google.android.gms.internal.clearcut.zzax.zzb(r1, r2, r6);\n r2 = r6.zzfe;\n L_0x0042:\n r2 = java.lang.Long.valueOf(r2);\n goto L_0x0051;\n L_0x0047:\n r1 = com.google.android.gms.internal.clearcut.zzax.zza(r1, r2, r6);\n r2 = r6.zzfd;\n L_0x004d:\n r2 = java.lang.Integer.valueOf(r2);\n L_0x0051:\n r6.zzff = r2;\n goto L_0x0099;\n L_0x0054:\n r1 = com.google.android.gms.internal.clearcut.zzax.zzf(r1, r2);\n r1 = java.lang.Float.valueOf(r1);\n goto L_0x006e;\n L_0x005d:\n r3 = com.google.android.gms.internal.clearcut.zzax.zzd(r1, r2);\n r1 = java.lang.Long.valueOf(r3);\n goto L_0x007b;\n L_0x0066:\n r1 = com.google.android.gms.internal.clearcut.zzax.zzc(r1, r2);\n r1 = java.lang.Integer.valueOf(r1);\n L_0x006e:\n r6.zzff = r1;\n r1 = r2 + 4;\n goto L_0x0099;\n L_0x0073:\n r3 = com.google.android.gms.internal.clearcut.zzax.zze(r1, r2);\n r1 = java.lang.Double.valueOf(r3);\n L_0x007b:\n r6.zzff = r1;\n r1 = r2 + 8;\n goto L_0x0099;\n L_0x0080:\n r1 = com.google.android.gms.internal.clearcut.zzax.zze(r1, r2, r6);\n goto L_0x0099;\n L_0x0085:\n r1 = com.google.android.gms.internal.clearcut.zzax.zzb(r1, r2, r6);\n r2 = r6.zzfe;\n r4 = 0;\n r0 = (r2 > r4 ? 1 : (r2 == r4 ? 0 : -1));\n if (r0 == 0) goto L_0x0093;\n L_0x0091:\n r2 = 1;\n goto L_0x0094;\n L_0x0093:\n r2 = 0;\n L_0x0094:\n r2 = java.lang.Boolean.valueOf(r2);\n goto L_0x0051;\n L_0x0099:\n return r1;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.internal.clearcut.zzds.zza(byte[], int, int, com.google.android.gms.internal.clearcut.zzfl, java.lang.Class, com.google.android.gms.internal.clearcut.zzay):int\");\n }", "protected synchronized void buildGoogleApiClient() {\n mGoogleApiClient = new GoogleApiClient.Builder(this)\n .addConnectionCallbacks(this)\n .addOnConnectionFailedListener(this)\n .addApi(LocationServices.API)\n .build();\n }", "@Override\n public void onFailure(@NonNull Exception e) {//requye\n if (e instanceof ResolvableApiException) {//chua bat\n ResolvableApiException resolvableApiException = (ResolvableApiException) e;//bat man hinh hien thi bat gps\n ((MainActivity) context).requestOpenGps(resolvableApiException);\n }\n }" ]
[ "0.6354855", "0.6354758", "0.61909336", "0.6158811", "0.5970861", "0.5847063", "0.58421487", "0.5818324", "0.56936085", "0.5655779", "0.5650426", "0.563519", "0.5617691", "0.5599894", "0.55787116", "0.55396014", "0.55253625", "0.55186415", "0.549758", "0.54900426", "0.5482578", "0.5457882", "0.54428285", "0.54372287", "0.5433394", "0.54203314", "0.5408952", "0.5400138", "0.5378111", "0.53613716", "0.53477657", "0.53446436", "0.53446436", "0.53446436", "0.5338678", "0.5329263", "0.5320083", "0.5284073", "0.5273201", "0.5271487", "0.52594495", "0.5235328", "0.5222726", "0.52177453", "0.52161247", "0.52083796", "0.5207966", "0.5203361", "0.5192495", "0.51808655", "0.51806134", "0.5177859", "0.51778394", "0.5169405", "0.516108", "0.51581085", "0.5135291", "0.51099294", "0.5102823", "0.5095772", "0.5079396", "0.5076989", "0.5076045", "0.5073035", "0.5068033", "0.5058912", "0.50531274", "0.5052208", "0.5044097", "0.5044045", "0.5044045", "0.5044045", "0.5044045", "0.5044045", "0.5044045", "0.5044045", "0.50407594", "0.5035287", "0.50338686", "0.50332355", "0.5017658", "0.5017658", "0.5017658", "0.5016834", "0.5014997", "0.5008259", "0.50070226", "0.5002601", "0.4995234", "0.49948236", "0.49934018", "0.49891877", "0.49873653", "0.4985778", "0.49855912", "0.49845892", "0.498143", "0.49723715", "0.49716467", "0.49634144", "0.495926" ]
0.0
-1
/ renamed from: a
int mo16684a(T t);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }", "public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }", "interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}", "interface C33292a {\n /* renamed from: a */\n void mo85415a(String str);\n }", "interface C10331b {\n /* renamed from: a */\n void mo26876a(int i);\n }", "public interface C0779a {\n /* renamed from: a */\n void mo2311a();\n}", "public interface C6788a {\n /* renamed from: a */\n void mo20141a();\n }", "public interface C0237a {\n /* renamed from: a */\n void mo1791a(String str);\n }", "public interface C35013b {\n /* renamed from: a */\n void mo88773a(int i);\n}", "public interface C11112n {\n /* renamed from: a */\n void mo38026a();\n }", "@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}", "public interface C23407b {\n /* renamed from: a */\n void mo60892a();\n\n /* renamed from: b */\n void mo60893b();\n }", "interface C0312e {\n /* renamed from: a */\n void mo4671a(View view, int i, int i2, int i3, int i4);\n }", "public interface C34379a {\n /* renamed from: a */\n void mo46242a(bmc bmc);\n }", "public interface C32456b<T> {\n /* renamed from: a */\n void mo83696a(T t);\n }", "private String convertir(String a) {\n StringBuilder atributo = new StringBuilder(a);\n atributo.insert(0, Character.toUpperCase(atributo.charAt(0)));\n return atributo.deleteCharAt(1).toString();\n }", "protected m a(String name) {\n/* 42 */ return this.a.get(name);\n/* */ }", "public interface AbstractC23925a {\n /* renamed from: a */\n void mo105476a();\n }", "private interface C0257a {\n /* renamed from: a */\n float mo196a(ViewGroup viewGroup, View view);\n\n /* renamed from: b */\n float mo195b(ViewGroup viewGroup, View view);\n }", "public interface C3598a {\n /* renamed from: a */\n void mo11024a(int i, int i2, String str);\n }", "public interface C2459d {\n /* renamed from: a */\n C2451d mo3408a(C2457e c2457e);\n}", "public interface am extends ak {\r\n /* renamed from: a */\r\n void mo194a(int i) throws RemoteException;\r\n\r\n /* renamed from: a */\r\n void mo195a(List<LatLng> list) throws RemoteException;\r\n\r\n /* renamed from: b */\r\n void mo196b(float f) throws RemoteException;\r\n\r\n /* renamed from: b */\r\n void mo197b(boolean z);\r\n\r\n /* renamed from: c */\r\n void mo198c(boolean z) throws RemoteException;\r\n\r\n /* renamed from: g */\r\n float mo199g() throws RemoteException;\r\n\r\n /* renamed from: h */\r\n int mo200h() throws RemoteException;\r\n\r\n /* renamed from: i */\r\n List<LatLng> mo201i() throws RemoteException;\r\n\r\n /* renamed from: j */\r\n boolean mo202j();\r\n\r\n /* renamed from: k */\r\n boolean mo203k();\r\n}", "public interface C32459e<T> {\n /* renamed from: a */\n void mo83698a(T t);\n }", "public interface C32458d<T> {\n /* renamed from: a */\n void mo83695a(T t);\n }", "public interface C5482b {\n /* renamed from: a */\n void mo27575a();\n\n /* renamed from: a */\n void mo27576a(int i);\n }", "public interface C27084a {\n /* renamed from: a */\n void mo69874a();\n\n /* renamed from: a */\n void mo69875a(List<Aweme> list, boolean z);\n }", "public void a() {\n ((a) this.a).a();\n }", "public interface C1153a {\n /* renamed from: a */\n void mo4520a(byte[] bArr);\n }", "public interface C13373b {\n /* renamed from: a */\n void mo32681a(String str, int i, boolean z);\n}", "public interface C40453c {\n /* renamed from: a */\n void mo100442a(C40429b bVar);\n\n /* renamed from: a */\n void mo100443a(List<String> list);\n\n /* renamed from: b */\n void mo100444b(List<C40429b> list);\n}", "public interface AbstractC17367b {\n /* renamed from: a */\n void mo84655a();\n }", "@Override\r\n\tpublic void a() {\n\t\t\r\n\t}", "public interface C43270a {\n /* renamed from: a */\n void mo64942a(String str, long j, long j2);\n}", "public interface C18928d {\n /* renamed from: a */\n void mo50320a(C18924b bVar);\n\n /* renamed from: b */\n void mo50321b(C18924b bVar);\n}", "public interface C0087c {\n /* renamed from: a */\n String mo150a(String str);\n}", "public interface C1529m {\n /* renamed from: a */\n void mo3767a(int i);\n\n /* renamed from: a */\n void mo3768a(String str);\n}", "interface C4483e {\n /* renamed from: a */\n boolean mo34114a();\n}", "public interface C1234b {\r\n /* renamed from: a */\r\n void m8367a();\r\n\r\n /* renamed from: b */\r\n void m8368b();\r\n}", "public interface C10965j<T> {\n /* renamed from: a */\n T mo26439a();\n}", "public interface C28772a {\n /* renamed from: a */\n View mo73990a(View view);\n }", "@Override\n\tpublic void a() {\n\t\t\n\t}", "public interface C8326b {\n /* renamed from: a */\n C8325a mo21498a(String str);\n\n /* renamed from: a */\n void mo21499a(C8325a aVar);\n}", "void metodo1(int a, int[] b) {\r\n\t\ta += 5;//Par\\u00e1metro con el mismo nombre que el campo de la clase.\r\n\t\tb[0] += 7;//se produce un env\\u00edo por referencia, apunta a una copia de un objeto, que se asigna aqu\\u00ed.\r\n\t}", "public interface C2367a {\n /* renamed from: a */\n C2368d mo1698a();\n }", "interface C30585a {\n /* renamed from: b */\n void mo27952b(C5379a c5379a, int i, C46650a c46650a, C7620bi c7620bi);\n }", "public interface C4211a {\n\n /* renamed from: com.iab.omid.library.oguryco.c.a$a */\n public interface C4212a {\n /* renamed from: a */\n void mo28760a(View view, C4211a aVar, JSONObject jSONObject);\n }\n\n /* renamed from: a */\n JSONObject mo28758a(View view);\n\n /* renamed from: a */\n void mo28759a(View view, JSONObject jSONObject, C4212a aVar, boolean z);\n}", "public interface C4697a extends C5595at {\n /* renamed from: a */\n void mo12634a();\n\n /* renamed from: a */\n void mo12635a(String str);\n\n /* renamed from: a */\n void mo12636a(boolean z);\n\n /* renamed from: b */\n void mo12637b();\n\n /* renamed from: c */\n void mo12638c();\n }", "public interface C4773c {\n /* renamed from: a */\n void m15858a(int i);\n\n /* renamed from: a */\n void m15859a(int i, int i2);\n\n /* renamed from: a */\n void m15860a(int i, int i2, int i3);\n\n /* renamed from: b */\n void m15861b(int i, int i2);\n}", "public interface C4869f {\n /* renamed from: a */\n C4865b mo6249a();\n}", "public interface C1799a {\n /* renamed from: b */\n void mo3314b(String str);\n }", "public interface C43499b {\n /* renamed from: a */\n void mo8445a(int i, String str, int i2, byte[] bArr);\n}", "public interface C0601aq {\n /* renamed from: a */\n void mo9148a(int i, ArrayList<C0889x> arrayList);\n}", "public interface C45101e {\n /* renamed from: b */\n void mo3796b(int i);\n}", "public interface AbstractC6461g {\n /* renamed from: a */\n String mo42332a();\n}", "public interface AbstractC1645a {\n /* renamed from: a */\n String mo17375a();\n }", "public interface C6178c {\n /* renamed from: a */\n Map<String, String> mo14888a();\n}", "public interface C5101b {\n /* renamed from: a */\n void mo5289a(C5102c c5102c);\n\n /* renamed from: b */\n void mo5290b(C5102c c5102c);\n}", "public interface C19045k {\n /* renamed from: a */\n void mo50368a(int i, Object obj);\n\n /* renamed from: b */\n void mo50369b(int i, Object obj);\n}", "public b a()\r\n/* 12: */ {\r\n/* 13:13 */ return this.a;\r\n/* 14: */ }", "public interface C7720a {\n /* renamed from: a */\n long mo20406a();\n}", "public String a()\r\n/* 25: */ {\r\n/* 26:171 */ return \"dig.\" + this.a;\r\n/* 27: */ }", "public interface ayt {\n /* renamed from: a */\n int mo1635a(long j, List list);\n\n /* renamed from: a */\n long mo1636a(long j, alb alb);\n\n /* renamed from: a */\n void mo1637a();\n\n /* renamed from: a */\n void mo1638a(long j, long j2, List list, ayp ayp);\n\n /* renamed from: a */\n void mo1639a(ayl ayl);\n\n /* renamed from: a */\n boolean mo1640a(ayl ayl, boolean z, Exception exc, long j);\n}", "public interface C24221b extends C28343z<C28318an> {\n /* renamed from: a */\n void mo62991a(int i);\n\n String aw_();\n\n /* renamed from: e */\n Aweme mo62993e();\n}", "public interface C4051c {\n /* renamed from: a */\n boolean mo23707a();\n}", "public interface C45112b {\n /* renamed from: a */\n List<C45111a> mo107674a(Integer num);\n\n /* renamed from: a */\n List<C45111a> mo107675a(Integer num, Integer num2);\n\n /* renamed from: a */\n void mo107676a(C45111a aVar);\n\n /* renamed from: b */\n void mo107677b(Integer num);\n\n /* renamed from: c */\n long mo107678c(Integer num);\n}", "public void acionou(int a){\n\t\t\tb=a;\n\t\t}", "public interface C44963i {\n /* renamed from: a */\n void mo63037a(int i, int i2);\n\n void aA_();\n\n /* renamed from: b */\n void mo63039b(int i, int i2);\n}", "public interface C32457c<T> {\n /* renamed from: a */\n void mo83699a(T t, int i, int i2, String str);\n }", "public interface C5861g {\n /* renamed from: a */\n void mo18320a(C7251a aVar);\n\n @Deprecated\n /* renamed from: a */\n void mo18321a(C7251a aVar, String str);\n\n /* renamed from: a */\n void mo18322a(C7252b bVar);\n\n /* renamed from: a */\n void mo18323a(C7253c cVar);\n\n /* renamed from: a */\n void mo18324a(C7260j jVar);\n}", "public interface C0937a {\n /* renamed from: a */\n void mo3807a(C0985po[] poVarArr);\n }", "public interface C8466a {\n /* renamed from: a */\n void mo25956a(int i);\n\n /* renamed from: a */\n void mo25957a(long j, long j2);\n }", "public interface C39684b {\n /* renamed from: a */\n void mo98969a();\n\n /* renamed from: a */\n void mo98970a(C29296g gVar);\n\n /* renamed from: a */\n void mo98971a(C29296g gVar, int i);\n }", "public interface C43470b {\n /* renamed from: a */\n void mo61496a(C43469a aVar, C43471c cVar);\n }", "public interface AbstractC18255a {\n /* renamed from: a */\n void mo88521a();\n\n /* renamed from: a */\n void mo88522a(String str);\n\n /* renamed from: b */\n void mo88523b();\n\n /* renamed from: c */\n void mo88524c();\n }", "public interface C1436d {\n /* renamed from: a */\n C1435c mo1754a(C1433a c1433a, C1434b c1434b);\n}", "public interface C4150sl {\n /* renamed from: a */\n void mo15005a(C4143se seVar);\n}", "public void a(nm paramnm)\r\n/* 28: */ {\r\n/* 29:45 */ paramnm.a(this);\r\n/* 30: */ }", "public interface C19351a {\n /* renamed from: b */\n void mo30633b(int i, String str, byte[] bArr);\n }", "public interface C11113o {\n /* renamed from: a */\n void mo37759a(String str);\n }", "public interface C39504az {\n /* renamed from: a */\n int mo98207a();\n\n /* renamed from: a */\n void mo98208a(boolean z);\n\n /* renamed from: b */\n int mo98209b();\n\n /* renamed from: c */\n int mo98355c();\n\n /* renamed from: d */\n int mo98356d();\n\n /* renamed from: e */\n int mo98357e();\n\n /* renamed from: f */\n int mo98358f();\n}", "protected a<T> a(Tag.e<T> var0) {\n/* 80 */ Tag.a var1 = b(var0);\n/* 81 */ return new a<>(var1, this.c, \"vanilla\");\n/* */ }", "public interface C35565a {\n /* renamed from: a */\n C45321i mo90380a();\n }", "public interface C21298a {\n /* renamed from: a */\n void mo57275a();\n\n /* renamed from: a */\n void mo57276a(Exception exc);\n\n /* renamed from: b */\n void mo57277b();\n\n /* renamed from: c */\n void mo57278c();\n }", "public interface C40108b {\n /* renamed from: a */\n void mo99838a(boolean z);\n }", "public interface C0456a {\n /* renamed from: a */\n void mo2090a(C0455b bVar);\n\n /* renamed from: a */\n boolean mo2091a(C0455b bVar, Menu menu);\n\n /* renamed from: a */\n boolean mo2092a(C0455b bVar, MenuItem menuItem);\n\n /* renamed from: b */\n boolean mo2093b(C0455b bVar, Menu menu);\n }", "public interface C4724o {\n /* renamed from: a */\n void mo4872a(int i, String str);\n\n /* renamed from: a */\n void mo4873a(C4718l c4718l);\n\n /* renamed from: b */\n void mo4874b(C4718l c4718l);\n}", "public interface C7654b {\n /* renamed from: a */\n C7904c mo24084a();\n\n /* renamed from: b */\n C7716a mo24085b();\n }", "public interface C2603a {\n /* renamed from: a */\n String mo1889a(String str, String str2, String str3, String str4);\n }", "public interface afp {\n /* renamed from: a */\n C0512sx mo169a(C0497si siVar, afj afj, afr afr, Context context);\n}", "public interface C0615ja extends b<HomeFragment> {\n\n /* renamed from: c.c.a.h.b.ja$a */\n /* compiled from: FragmentModule_HomeFragment$app_bazaarRelease */\n public static abstract class a extends b.a<HomeFragment> {\n }\n}", "public interface a {\n\n /* renamed from: c.b.a.c.b.b.a$a reason: collision with other inner class name */\n /* compiled from: DiskCache */\n public interface C0054a {\n a build();\n }\n\n /* compiled from: DiskCache */\n public interface b {\n boolean a(File file);\n }\n\n File a(c cVar);\n\n void a(c cVar, b bVar);\n}", "public interface C0940d {\n /* renamed from: a */\n void mo3305a(boolean z);\n }", "public interface AbstractC17368c {\n /* renamed from: a */\n void mo84656a(float f);\n }", "interface C0932a {\n /* renamed from: a */\n void mo7438a(int i, int i2);\n\n /* renamed from: b */\n void mo7439b(C0933b bVar);\n\n /* renamed from: c */\n void mo7440c(int i, int i2, Object obj);\n\n /* renamed from: d */\n void mo7441d(C0933b bVar);\n\n /* renamed from: e */\n RecyclerView.ViewHolder mo7442e(int i);\n\n /* renamed from: f */\n void mo7443f(int i, int i2);\n\n /* renamed from: g */\n void mo7444g(int i, int i2);\n\n /* renamed from: h */\n void mo7445h(int i, int i2);\n }", "public interface C10330c {\n /* renamed from: a */\n C7562b<C10403b, C10328a> mo25041a();\n}", "public interface C3819a {\n /* renamed from: a */\n void mo23214a(Message message);\n }", "private Proof atoAImpl(Expression a) {\n Proof where = axm2(a, arrow(a, a), a); //a->(a->a) -> (a->(a->a)->a) -> (a -> a)\n Proof one = axm1(a, a); //a->a->a\n Proof two = axm1(a, arrow(a, a)); //a->(a->a)->A\n return mpTwice(where, one, two);\n }", "interface C1939a {\n /* renamed from: a */\n Bitmap mo1406a(Bitmap bitmap, float f);\n}", "public interface a extends com.bankeen.d.b.b.a {\n void a();\n\n void b();\n }", "public b[] a() {\n/* 95 */ return this.a;\n/* */ }", "interface C8361a {\n /* renamed from: b */\n float mo18284b(ViewGroup viewGroup, View view);\n\n /* renamed from: c */\n float mo18281c(ViewGroup viewGroup, View view);\n }" ]
[ "0.62497115", "0.6242887", "0.61394435", "0.61176854", "0.6114027", "0.60893", "0.6046901", "0.6024682", "0.60201293", "0.5975212", "0.59482527", "0.59121317", "0.5883635", "0.587841", "0.58703005", "0.5868436", "0.5864884", "0.5857492", "0.58306104", "0.5827752", "0.58272064", "0.5794689", "0.57890314", "0.57838726", "0.5775679", "0.57694733", "0.5769128", "0.57526815", "0.56907034", "0.5677874", "0.5670547", "0.56666386", "0.56592244", "0.5658682", "0.56574154", "0.5654324", "0.5644676", "0.56399715", "0.5638734", "0.5630582", "0.56183887", "0.5615435", "0.56069666", "0.5605207", "0.56005067", "0.559501", "0.55910283", "0.5590222", "0.55736613", "0.5556682", "0.5554544", "0.5550076", "0.55493855", "0.55446684", "0.5538079", "0.5529058", "0.5528109", "0.552641", "0.5525864", "0.552186", "0.5519972", "0.5509587", "0.5507195", "0.54881203", "0.5485328", "0.54826045", "0.5482066", "0.5481586", "0.5479751", "0.54776895", "0.54671466", "0.5463307", "0.54505056", "0.54436916", "0.5440517", "0.5439747", "0.5431944", "0.5422869", "0.54217863", "0.5417556", "0.5403905", "0.5400223", "0.53998446", "0.5394735", "0.5388649", "0.5388258", "0.5374842", "0.5368887", "0.53591394", "0.5357029", "0.5355688", "0.535506", "0.5355034", "0.53494394", "0.5341044", "0.5326166", "0.53236824", "0.53199095", "0.53177035", "0.53112453", "0.5298229" ]
0.0
-1
/ renamed from: a
T mo16685a();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }", "public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }", "interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}", "interface C33292a {\n /* renamed from: a */\n void mo85415a(String str);\n }", "interface C10331b {\n /* renamed from: a */\n void mo26876a(int i);\n }", "public interface C0779a {\n /* renamed from: a */\n void mo2311a();\n}", "public interface C6788a {\n /* renamed from: a */\n void mo20141a();\n }", "public interface C0237a {\n /* renamed from: a */\n void mo1791a(String str);\n }", "public interface C35013b {\n /* renamed from: a */\n void mo88773a(int i);\n}", "public interface C11112n {\n /* renamed from: a */\n void mo38026a();\n }", "@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}", "public interface C23407b {\n /* renamed from: a */\n void mo60892a();\n\n /* renamed from: b */\n void mo60893b();\n }", "interface C0312e {\n /* renamed from: a */\n void mo4671a(View view, int i, int i2, int i3, int i4);\n }", "public interface C34379a {\n /* renamed from: a */\n void mo46242a(bmc bmc);\n }", "public interface C32456b<T> {\n /* renamed from: a */\n void mo83696a(T t);\n }", "private String convertir(String a) {\n StringBuilder atributo = new StringBuilder(a);\n atributo.insert(0, Character.toUpperCase(atributo.charAt(0)));\n return atributo.deleteCharAt(1).toString();\n }", "protected m a(String name) {\n/* 42 */ return this.a.get(name);\n/* */ }", "public interface AbstractC23925a {\n /* renamed from: a */\n void mo105476a();\n }", "private interface C0257a {\n /* renamed from: a */\n float mo196a(ViewGroup viewGroup, View view);\n\n /* renamed from: b */\n float mo195b(ViewGroup viewGroup, View view);\n }", "public interface C3598a {\n /* renamed from: a */\n void mo11024a(int i, int i2, String str);\n }", "public interface C2459d {\n /* renamed from: a */\n C2451d mo3408a(C2457e c2457e);\n}", "public interface am extends ak {\r\n /* renamed from: a */\r\n void mo194a(int i) throws RemoteException;\r\n\r\n /* renamed from: a */\r\n void mo195a(List<LatLng> list) throws RemoteException;\r\n\r\n /* renamed from: b */\r\n void mo196b(float f) throws RemoteException;\r\n\r\n /* renamed from: b */\r\n void mo197b(boolean z);\r\n\r\n /* renamed from: c */\r\n void mo198c(boolean z) throws RemoteException;\r\n\r\n /* renamed from: g */\r\n float mo199g() throws RemoteException;\r\n\r\n /* renamed from: h */\r\n int mo200h() throws RemoteException;\r\n\r\n /* renamed from: i */\r\n List<LatLng> mo201i() throws RemoteException;\r\n\r\n /* renamed from: j */\r\n boolean mo202j();\r\n\r\n /* renamed from: k */\r\n boolean mo203k();\r\n}", "public interface C32459e<T> {\n /* renamed from: a */\n void mo83698a(T t);\n }", "public interface C32458d<T> {\n /* renamed from: a */\n void mo83695a(T t);\n }", "public interface C5482b {\n /* renamed from: a */\n void mo27575a();\n\n /* renamed from: a */\n void mo27576a(int i);\n }", "public interface C27084a {\n /* renamed from: a */\n void mo69874a();\n\n /* renamed from: a */\n void mo69875a(List<Aweme> list, boolean z);\n }", "public void a() {\n ((a) this.a).a();\n }", "public interface C1153a {\n /* renamed from: a */\n void mo4520a(byte[] bArr);\n }", "public interface C13373b {\n /* renamed from: a */\n void mo32681a(String str, int i, boolean z);\n}", "public interface C40453c {\n /* renamed from: a */\n void mo100442a(C40429b bVar);\n\n /* renamed from: a */\n void mo100443a(List<String> list);\n\n /* renamed from: b */\n void mo100444b(List<C40429b> list);\n}", "public interface AbstractC17367b {\n /* renamed from: a */\n void mo84655a();\n }", "@Override\r\n\tpublic void a() {\n\t\t\r\n\t}", "public interface C43270a {\n /* renamed from: a */\n void mo64942a(String str, long j, long j2);\n}", "public interface C18928d {\n /* renamed from: a */\n void mo50320a(C18924b bVar);\n\n /* renamed from: b */\n void mo50321b(C18924b bVar);\n}", "public interface C0087c {\n /* renamed from: a */\n String mo150a(String str);\n}", "public interface C1529m {\n /* renamed from: a */\n void mo3767a(int i);\n\n /* renamed from: a */\n void mo3768a(String str);\n}", "interface C4483e {\n /* renamed from: a */\n boolean mo34114a();\n}", "public interface C1234b {\r\n /* renamed from: a */\r\n void m8367a();\r\n\r\n /* renamed from: b */\r\n void m8368b();\r\n}", "public interface C10965j<T> {\n /* renamed from: a */\n T mo26439a();\n}", "public interface C28772a {\n /* renamed from: a */\n View mo73990a(View view);\n }", "@Override\n\tpublic void a() {\n\t\t\n\t}", "public interface C8326b {\n /* renamed from: a */\n C8325a mo21498a(String str);\n\n /* renamed from: a */\n void mo21499a(C8325a aVar);\n}", "void metodo1(int a, int[] b) {\r\n\t\ta += 5;//Par\\u00e1metro con el mismo nombre que el campo de la clase.\r\n\t\tb[0] += 7;//se produce un env\\u00edo por referencia, apunta a una copia de un objeto, que se asigna aqu\\u00ed.\r\n\t}", "public interface C2367a {\n /* renamed from: a */\n C2368d mo1698a();\n }", "interface C30585a {\n /* renamed from: b */\n void mo27952b(C5379a c5379a, int i, C46650a c46650a, C7620bi c7620bi);\n }", "public interface C4211a {\n\n /* renamed from: com.iab.omid.library.oguryco.c.a$a */\n public interface C4212a {\n /* renamed from: a */\n void mo28760a(View view, C4211a aVar, JSONObject jSONObject);\n }\n\n /* renamed from: a */\n JSONObject mo28758a(View view);\n\n /* renamed from: a */\n void mo28759a(View view, JSONObject jSONObject, C4212a aVar, boolean z);\n}", "public interface C4697a extends C5595at {\n /* renamed from: a */\n void mo12634a();\n\n /* renamed from: a */\n void mo12635a(String str);\n\n /* renamed from: a */\n void mo12636a(boolean z);\n\n /* renamed from: b */\n void mo12637b();\n\n /* renamed from: c */\n void mo12638c();\n }", "public interface C4773c {\n /* renamed from: a */\n void m15858a(int i);\n\n /* renamed from: a */\n void m15859a(int i, int i2);\n\n /* renamed from: a */\n void m15860a(int i, int i2, int i3);\n\n /* renamed from: b */\n void m15861b(int i, int i2);\n}", "public interface C4869f {\n /* renamed from: a */\n C4865b mo6249a();\n}", "public interface C1799a {\n /* renamed from: b */\n void mo3314b(String str);\n }", "public interface C43499b {\n /* renamed from: a */\n void mo8445a(int i, String str, int i2, byte[] bArr);\n}", "public interface C0601aq {\n /* renamed from: a */\n void mo9148a(int i, ArrayList<C0889x> arrayList);\n}", "public interface C45101e {\n /* renamed from: b */\n void mo3796b(int i);\n}", "public interface AbstractC6461g {\n /* renamed from: a */\n String mo42332a();\n}", "public interface AbstractC1645a {\n /* renamed from: a */\n String mo17375a();\n }", "public interface C6178c {\n /* renamed from: a */\n Map<String, String> mo14888a();\n}", "public interface C5101b {\n /* renamed from: a */\n void mo5289a(C5102c c5102c);\n\n /* renamed from: b */\n void mo5290b(C5102c c5102c);\n}", "public interface C19045k {\n /* renamed from: a */\n void mo50368a(int i, Object obj);\n\n /* renamed from: b */\n void mo50369b(int i, Object obj);\n}", "public b a()\r\n/* 12: */ {\r\n/* 13:13 */ return this.a;\r\n/* 14: */ }", "public interface C7720a {\n /* renamed from: a */\n long mo20406a();\n}", "public String a()\r\n/* 25: */ {\r\n/* 26:171 */ return \"dig.\" + this.a;\r\n/* 27: */ }", "public interface ayt {\n /* renamed from: a */\n int mo1635a(long j, List list);\n\n /* renamed from: a */\n long mo1636a(long j, alb alb);\n\n /* renamed from: a */\n void mo1637a();\n\n /* renamed from: a */\n void mo1638a(long j, long j2, List list, ayp ayp);\n\n /* renamed from: a */\n void mo1639a(ayl ayl);\n\n /* renamed from: a */\n boolean mo1640a(ayl ayl, boolean z, Exception exc, long j);\n}", "public interface C24221b extends C28343z<C28318an> {\n /* renamed from: a */\n void mo62991a(int i);\n\n String aw_();\n\n /* renamed from: e */\n Aweme mo62993e();\n}", "public interface C4051c {\n /* renamed from: a */\n boolean mo23707a();\n}", "public interface C45112b {\n /* renamed from: a */\n List<C45111a> mo107674a(Integer num);\n\n /* renamed from: a */\n List<C45111a> mo107675a(Integer num, Integer num2);\n\n /* renamed from: a */\n void mo107676a(C45111a aVar);\n\n /* renamed from: b */\n void mo107677b(Integer num);\n\n /* renamed from: c */\n long mo107678c(Integer num);\n}", "public void acionou(int a){\n\t\t\tb=a;\n\t\t}", "public interface C44963i {\n /* renamed from: a */\n void mo63037a(int i, int i2);\n\n void aA_();\n\n /* renamed from: b */\n void mo63039b(int i, int i2);\n}", "public interface C32457c<T> {\n /* renamed from: a */\n void mo83699a(T t, int i, int i2, String str);\n }", "public interface C5861g {\n /* renamed from: a */\n void mo18320a(C7251a aVar);\n\n @Deprecated\n /* renamed from: a */\n void mo18321a(C7251a aVar, String str);\n\n /* renamed from: a */\n void mo18322a(C7252b bVar);\n\n /* renamed from: a */\n void mo18323a(C7253c cVar);\n\n /* renamed from: a */\n void mo18324a(C7260j jVar);\n}", "public interface C0937a {\n /* renamed from: a */\n void mo3807a(C0985po[] poVarArr);\n }", "public interface C8466a {\n /* renamed from: a */\n void mo25956a(int i);\n\n /* renamed from: a */\n void mo25957a(long j, long j2);\n }", "public interface C39684b {\n /* renamed from: a */\n void mo98969a();\n\n /* renamed from: a */\n void mo98970a(C29296g gVar);\n\n /* renamed from: a */\n void mo98971a(C29296g gVar, int i);\n }", "public interface C43470b {\n /* renamed from: a */\n void mo61496a(C43469a aVar, C43471c cVar);\n }", "public interface AbstractC18255a {\n /* renamed from: a */\n void mo88521a();\n\n /* renamed from: a */\n void mo88522a(String str);\n\n /* renamed from: b */\n void mo88523b();\n\n /* renamed from: c */\n void mo88524c();\n }", "public interface C1436d {\n /* renamed from: a */\n C1435c mo1754a(C1433a c1433a, C1434b c1434b);\n}", "public interface C4150sl {\n /* renamed from: a */\n void mo15005a(C4143se seVar);\n}", "public void a(nm paramnm)\r\n/* 28: */ {\r\n/* 29:45 */ paramnm.a(this);\r\n/* 30: */ }", "public interface C19351a {\n /* renamed from: b */\n void mo30633b(int i, String str, byte[] bArr);\n }", "public interface C11113o {\n /* renamed from: a */\n void mo37759a(String str);\n }", "public interface C39504az {\n /* renamed from: a */\n int mo98207a();\n\n /* renamed from: a */\n void mo98208a(boolean z);\n\n /* renamed from: b */\n int mo98209b();\n\n /* renamed from: c */\n int mo98355c();\n\n /* renamed from: d */\n int mo98356d();\n\n /* renamed from: e */\n int mo98357e();\n\n /* renamed from: f */\n int mo98358f();\n}", "protected a<T> a(Tag.e<T> var0) {\n/* 80 */ Tag.a var1 = b(var0);\n/* 81 */ return new a<>(var1, this.c, \"vanilla\");\n/* */ }", "public interface C35565a {\n /* renamed from: a */\n C45321i mo90380a();\n }", "public interface C21298a {\n /* renamed from: a */\n void mo57275a();\n\n /* renamed from: a */\n void mo57276a(Exception exc);\n\n /* renamed from: b */\n void mo57277b();\n\n /* renamed from: c */\n void mo57278c();\n }", "public interface C40108b {\n /* renamed from: a */\n void mo99838a(boolean z);\n }", "public interface C0456a {\n /* renamed from: a */\n void mo2090a(C0455b bVar);\n\n /* renamed from: a */\n boolean mo2091a(C0455b bVar, Menu menu);\n\n /* renamed from: a */\n boolean mo2092a(C0455b bVar, MenuItem menuItem);\n\n /* renamed from: b */\n boolean mo2093b(C0455b bVar, Menu menu);\n }", "public interface C4724o {\n /* renamed from: a */\n void mo4872a(int i, String str);\n\n /* renamed from: a */\n void mo4873a(C4718l c4718l);\n\n /* renamed from: b */\n void mo4874b(C4718l c4718l);\n}", "public interface C7654b {\n /* renamed from: a */\n C7904c mo24084a();\n\n /* renamed from: b */\n C7716a mo24085b();\n }", "public interface C2603a {\n /* renamed from: a */\n String mo1889a(String str, String str2, String str3, String str4);\n }", "public interface afp {\n /* renamed from: a */\n C0512sx mo169a(C0497si siVar, afj afj, afr afr, Context context);\n}", "public interface C0615ja extends b<HomeFragment> {\n\n /* renamed from: c.c.a.h.b.ja$a */\n /* compiled from: FragmentModule_HomeFragment$app_bazaarRelease */\n public static abstract class a extends b.a<HomeFragment> {\n }\n}", "public interface a {\n\n /* renamed from: c.b.a.c.b.b.a$a reason: collision with other inner class name */\n /* compiled from: DiskCache */\n public interface C0054a {\n a build();\n }\n\n /* compiled from: DiskCache */\n public interface b {\n boolean a(File file);\n }\n\n File a(c cVar);\n\n void a(c cVar, b bVar);\n}", "public interface C0940d {\n /* renamed from: a */\n void mo3305a(boolean z);\n }", "public interface AbstractC17368c {\n /* renamed from: a */\n void mo84656a(float f);\n }", "interface C0932a {\n /* renamed from: a */\n void mo7438a(int i, int i2);\n\n /* renamed from: b */\n void mo7439b(C0933b bVar);\n\n /* renamed from: c */\n void mo7440c(int i, int i2, Object obj);\n\n /* renamed from: d */\n void mo7441d(C0933b bVar);\n\n /* renamed from: e */\n RecyclerView.ViewHolder mo7442e(int i);\n\n /* renamed from: f */\n void mo7443f(int i, int i2);\n\n /* renamed from: g */\n void mo7444g(int i, int i2);\n\n /* renamed from: h */\n void mo7445h(int i, int i2);\n }", "public interface C10330c {\n /* renamed from: a */\n C7562b<C10403b, C10328a> mo25041a();\n}", "public interface C3819a {\n /* renamed from: a */\n void mo23214a(Message message);\n }", "private Proof atoAImpl(Expression a) {\n Proof where = axm2(a, arrow(a, a), a); //a->(a->a) -> (a->(a->a)->a) -> (a -> a)\n Proof one = axm1(a, a); //a->a->a\n Proof two = axm1(a, arrow(a, a)); //a->(a->a)->A\n return mpTwice(where, one, two);\n }", "interface C1939a {\n /* renamed from: a */\n Bitmap mo1406a(Bitmap bitmap, float f);\n}", "public interface a extends com.bankeen.d.b.b.a {\n void a();\n\n void b();\n }", "public b[] a() {\n/* 95 */ return this.a;\n/* */ }", "interface C8361a {\n /* renamed from: b */\n float mo18284b(ViewGroup viewGroup, View view);\n\n /* renamed from: c */\n float mo18281c(ViewGroup viewGroup, View view);\n }" ]
[ "0.62497115", "0.6242887", "0.61394435", "0.61176854", "0.6114027", "0.60893", "0.6046901", "0.6024682", "0.60201293", "0.5975212", "0.59482527", "0.59121317", "0.5883635", "0.587841", "0.58703005", "0.5868436", "0.5864884", "0.5857492", "0.58306104", "0.5827752", "0.58272064", "0.5794689", "0.57890314", "0.57838726", "0.5775679", "0.57694733", "0.5769128", "0.57526815", "0.56907034", "0.5677874", "0.5670547", "0.56666386", "0.56592244", "0.5658682", "0.56574154", "0.5654324", "0.5644676", "0.56399715", "0.5638734", "0.5630582", "0.56183887", "0.5615435", "0.56069666", "0.5605207", "0.56005067", "0.559501", "0.55910283", "0.5590222", "0.55736613", "0.5556682", "0.5554544", "0.5550076", "0.55493855", "0.55446684", "0.5538079", "0.5529058", "0.5528109", "0.552641", "0.5525864", "0.552186", "0.5519972", "0.5509587", "0.5507195", "0.54881203", "0.5485328", "0.54826045", "0.5482066", "0.5481586", "0.5479751", "0.54776895", "0.54671466", "0.5463307", "0.54505056", "0.54436916", "0.5440517", "0.5439747", "0.5431944", "0.5422869", "0.54217863", "0.5417556", "0.5403905", "0.5400223", "0.53998446", "0.5394735", "0.5388649", "0.5388258", "0.5374842", "0.5368887", "0.53591394", "0.5357029", "0.5355688", "0.535506", "0.5355034", "0.53494394", "0.5341044", "0.5326166", "0.53236824", "0.53199095", "0.53177035", "0.53112453", "0.5298229" ]
0.0
-1
/ renamed from: a
void mo16686a(T t, C4570es esVar, C4499ch chVar) throws IOException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }", "public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }", "interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}", "interface C33292a {\n /* renamed from: a */\n void mo85415a(String str);\n }", "interface C10331b {\n /* renamed from: a */\n void mo26876a(int i);\n }", "public interface C0779a {\n /* renamed from: a */\n void mo2311a();\n}", "public interface C6788a {\n /* renamed from: a */\n void mo20141a();\n }", "public interface C0237a {\n /* renamed from: a */\n void mo1791a(String str);\n }", "public interface C35013b {\n /* renamed from: a */\n void mo88773a(int i);\n}", "public interface C11112n {\n /* renamed from: a */\n void mo38026a();\n }", "@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}", "public interface C23407b {\n /* renamed from: a */\n void mo60892a();\n\n /* renamed from: b */\n void mo60893b();\n }", "interface C0312e {\n /* renamed from: a */\n void mo4671a(View view, int i, int i2, int i3, int i4);\n }", "public interface C34379a {\n /* renamed from: a */\n void mo46242a(bmc bmc);\n }", "public interface C32456b<T> {\n /* renamed from: a */\n void mo83696a(T t);\n }", "private String convertir(String a) {\n StringBuilder atributo = new StringBuilder(a);\n atributo.insert(0, Character.toUpperCase(atributo.charAt(0)));\n return atributo.deleteCharAt(1).toString();\n }", "protected m a(String name) {\n/* 42 */ return this.a.get(name);\n/* */ }", "public interface AbstractC23925a {\n /* renamed from: a */\n void mo105476a();\n }", "private interface C0257a {\n /* renamed from: a */\n float mo196a(ViewGroup viewGroup, View view);\n\n /* renamed from: b */\n float mo195b(ViewGroup viewGroup, View view);\n }", "public interface C3598a {\n /* renamed from: a */\n void mo11024a(int i, int i2, String str);\n }", "public interface C2459d {\n /* renamed from: a */\n C2451d mo3408a(C2457e c2457e);\n}", "public interface am extends ak {\r\n /* renamed from: a */\r\n void mo194a(int i) throws RemoteException;\r\n\r\n /* renamed from: a */\r\n void mo195a(List<LatLng> list) throws RemoteException;\r\n\r\n /* renamed from: b */\r\n void mo196b(float f) throws RemoteException;\r\n\r\n /* renamed from: b */\r\n void mo197b(boolean z);\r\n\r\n /* renamed from: c */\r\n void mo198c(boolean z) throws RemoteException;\r\n\r\n /* renamed from: g */\r\n float mo199g() throws RemoteException;\r\n\r\n /* renamed from: h */\r\n int mo200h() throws RemoteException;\r\n\r\n /* renamed from: i */\r\n List<LatLng> mo201i() throws RemoteException;\r\n\r\n /* renamed from: j */\r\n boolean mo202j();\r\n\r\n /* renamed from: k */\r\n boolean mo203k();\r\n}", "public interface C32459e<T> {\n /* renamed from: a */\n void mo83698a(T t);\n }", "public interface C32458d<T> {\n /* renamed from: a */\n void mo83695a(T t);\n }", "public interface C5482b {\n /* renamed from: a */\n void mo27575a();\n\n /* renamed from: a */\n void mo27576a(int i);\n }", "public interface C27084a {\n /* renamed from: a */\n void mo69874a();\n\n /* renamed from: a */\n void mo69875a(List<Aweme> list, boolean z);\n }", "public void a() {\n ((a) this.a).a();\n }", "public interface C1153a {\n /* renamed from: a */\n void mo4520a(byte[] bArr);\n }", "public interface C13373b {\n /* renamed from: a */\n void mo32681a(String str, int i, boolean z);\n}", "public interface C40453c {\n /* renamed from: a */\n void mo100442a(C40429b bVar);\n\n /* renamed from: a */\n void mo100443a(List<String> list);\n\n /* renamed from: b */\n void mo100444b(List<C40429b> list);\n}", "public interface AbstractC17367b {\n /* renamed from: a */\n void mo84655a();\n }", "@Override\r\n\tpublic void a() {\n\t\t\r\n\t}", "public interface C43270a {\n /* renamed from: a */\n void mo64942a(String str, long j, long j2);\n}", "public interface C18928d {\n /* renamed from: a */\n void mo50320a(C18924b bVar);\n\n /* renamed from: b */\n void mo50321b(C18924b bVar);\n}", "public interface C0087c {\n /* renamed from: a */\n String mo150a(String str);\n}", "public interface C1529m {\n /* renamed from: a */\n void mo3767a(int i);\n\n /* renamed from: a */\n void mo3768a(String str);\n}", "interface C4483e {\n /* renamed from: a */\n boolean mo34114a();\n}", "public interface C1234b {\r\n /* renamed from: a */\r\n void m8367a();\r\n\r\n /* renamed from: b */\r\n void m8368b();\r\n}", "public interface C10965j<T> {\n /* renamed from: a */\n T mo26439a();\n}", "public interface C28772a {\n /* renamed from: a */\n View mo73990a(View view);\n }", "@Override\n\tpublic void a() {\n\t\t\n\t}", "public interface C8326b {\n /* renamed from: a */\n C8325a mo21498a(String str);\n\n /* renamed from: a */\n void mo21499a(C8325a aVar);\n}", "void metodo1(int a, int[] b) {\r\n\t\ta += 5;//Par\\u00e1metro con el mismo nombre que el campo de la clase.\r\n\t\tb[0] += 7;//se produce un env\\u00edo por referencia, apunta a una copia de un objeto, que se asigna aqu\\u00ed.\r\n\t}", "public interface C2367a {\n /* renamed from: a */\n C2368d mo1698a();\n }", "interface C30585a {\n /* renamed from: b */\n void mo27952b(C5379a c5379a, int i, C46650a c46650a, C7620bi c7620bi);\n }", "public interface C4211a {\n\n /* renamed from: com.iab.omid.library.oguryco.c.a$a */\n public interface C4212a {\n /* renamed from: a */\n void mo28760a(View view, C4211a aVar, JSONObject jSONObject);\n }\n\n /* renamed from: a */\n JSONObject mo28758a(View view);\n\n /* renamed from: a */\n void mo28759a(View view, JSONObject jSONObject, C4212a aVar, boolean z);\n}", "public interface C4697a extends C5595at {\n /* renamed from: a */\n void mo12634a();\n\n /* renamed from: a */\n void mo12635a(String str);\n\n /* renamed from: a */\n void mo12636a(boolean z);\n\n /* renamed from: b */\n void mo12637b();\n\n /* renamed from: c */\n void mo12638c();\n }", "public interface C4773c {\n /* renamed from: a */\n void m15858a(int i);\n\n /* renamed from: a */\n void m15859a(int i, int i2);\n\n /* renamed from: a */\n void m15860a(int i, int i2, int i3);\n\n /* renamed from: b */\n void m15861b(int i, int i2);\n}", "public interface C4869f {\n /* renamed from: a */\n C4865b mo6249a();\n}", "public interface C1799a {\n /* renamed from: b */\n void mo3314b(String str);\n }", "public interface C43499b {\n /* renamed from: a */\n void mo8445a(int i, String str, int i2, byte[] bArr);\n}", "public interface C0601aq {\n /* renamed from: a */\n void mo9148a(int i, ArrayList<C0889x> arrayList);\n}", "public interface C45101e {\n /* renamed from: b */\n void mo3796b(int i);\n}", "public interface AbstractC6461g {\n /* renamed from: a */\n String mo42332a();\n}", "public interface AbstractC1645a {\n /* renamed from: a */\n String mo17375a();\n }", "public interface C6178c {\n /* renamed from: a */\n Map<String, String> mo14888a();\n}", "public interface C5101b {\n /* renamed from: a */\n void mo5289a(C5102c c5102c);\n\n /* renamed from: b */\n void mo5290b(C5102c c5102c);\n}", "public interface C19045k {\n /* renamed from: a */\n void mo50368a(int i, Object obj);\n\n /* renamed from: b */\n void mo50369b(int i, Object obj);\n}", "public b a()\r\n/* 12: */ {\r\n/* 13:13 */ return this.a;\r\n/* 14: */ }", "public interface C7720a {\n /* renamed from: a */\n long mo20406a();\n}", "public String a()\r\n/* 25: */ {\r\n/* 26:171 */ return \"dig.\" + this.a;\r\n/* 27: */ }", "public interface ayt {\n /* renamed from: a */\n int mo1635a(long j, List list);\n\n /* renamed from: a */\n long mo1636a(long j, alb alb);\n\n /* renamed from: a */\n void mo1637a();\n\n /* renamed from: a */\n void mo1638a(long j, long j2, List list, ayp ayp);\n\n /* renamed from: a */\n void mo1639a(ayl ayl);\n\n /* renamed from: a */\n boolean mo1640a(ayl ayl, boolean z, Exception exc, long j);\n}", "public interface C24221b extends C28343z<C28318an> {\n /* renamed from: a */\n void mo62991a(int i);\n\n String aw_();\n\n /* renamed from: e */\n Aweme mo62993e();\n}", "public interface C4051c {\n /* renamed from: a */\n boolean mo23707a();\n}", "public interface C45112b {\n /* renamed from: a */\n List<C45111a> mo107674a(Integer num);\n\n /* renamed from: a */\n List<C45111a> mo107675a(Integer num, Integer num2);\n\n /* renamed from: a */\n void mo107676a(C45111a aVar);\n\n /* renamed from: b */\n void mo107677b(Integer num);\n\n /* renamed from: c */\n long mo107678c(Integer num);\n}", "public interface C44963i {\n /* renamed from: a */\n void mo63037a(int i, int i2);\n\n void aA_();\n\n /* renamed from: b */\n void mo63039b(int i, int i2);\n}", "public void acionou(int a){\n\t\t\tb=a;\n\t\t}", "public interface C32457c<T> {\n /* renamed from: a */\n void mo83699a(T t, int i, int i2, String str);\n }", "public interface C5861g {\n /* renamed from: a */\n void mo18320a(C7251a aVar);\n\n @Deprecated\n /* renamed from: a */\n void mo18321a(C7251a aVar, String str);\n\n /* renamed from: a */\n void mo18322a(C7252b bVar);\n\n /* renamed from: a */\n void mo18323a(C7253c cVar);\n\n /* renamed from: a */\n void mo18324a(C7260j jVar);\n}", "public interface C0937a {\n /* renamed from: a */\n void mo3807a(C0985po[] poVarArr);\n }", "public interface C8466a {\n /* renamed from: a */\n void mo25956a(int i);\n\n /* renamed from: a */\n void mo25957a(long j, long j2);\n }", "public interface C39684b {\n /* renamed from: a */\n void mo98969a();\n\n /* renamed from: a */\n void mo98970a(C29296g gVar);\n\n /* renamed from: a */\n void mo98971a(C29296g gVar, int i);\n }", "public interface C43470b {\n /* renamed from: a */\n void mo61496a(C43469a aVar, C43471c cVar);\n }", "public interface AbstractC18255a {\n /* renamed from: a */\n void mo88521a();\n\n /* renamed from: a */\n void mo88522a(String str);\n\n /* renamed from: b */\n void mo88523b();\n\n /* renamed from: c */\n void mo88524c();\n }", "public interface C1436d {\n /* renamed from: a */\n C1435c mo1754a(C1433a c1433a, C1434b c1434b);\n}", "public interface C4150sl {\n /* renamed from: a */\n void mo15005a(C4143se seVar);\n}", "public void a(nm paramnm)\r\n/* 28: */ {\r\n/* 29:45 */ paramnm.a(this);\r\n/* 30: */ }", "public interface C19351a {\n /* renamed from: b */\n void mo30633b(int i, String str, byte[] bArr);\n }", "public interface C11113o {\n /* renamed from: a */\n void mo37759a(String str);\n }", "public interface C39504az {\n /* renamed from: a */\n int mo98207a();\n\n /* renamed from: a */\n void mo98208a(boolean z);\n\n /* renamed from: b */\n int mo98209b();\n\n /* renamed from: c */\n int mo98355c();\n\n /* renamed from: d */\n int mo98356d();\n\n /* renamed from: e */\n int mo98357e();\n\n /* renamed from: f */\n int mo98358f();\n}", "protected a<T> a(Tag.e<T> var0) {\n/* 80 */ Tag.a var1 = b(var0);\n/* 81 */ return new a<>(var1, this.c, \"vanilla\");\n/* */ }", "public interface C35565a {\n /* renamed from: a */\n C45321i mo90380a();\n }", "public interface C21298a {\n /* renamed from: a */\n void mo57275a();\n\n /* renamed from: a */\n void mo57276a(Exception exc);\n\n /* renamed from: b */\n void mo57277b();\n\n /* renamed from: c */\n void mo57278c();\n }", "public interface C40108b {\n /* renamed from: a */\n void mo99838a(boolean z);\n }", "public interface C0456a {\n /* renamed from: a */\n void mo2090a(C0455b bVar);\n\n /* renamed from: a */\n boolean mo2091a(C0455b bVar, Menu menu);\n\n /* renamed from: a */\n boolean mo2092a(C0455b bVar, MenuItem menuItem);\n\n /* renamed from: b */\n boolean mo2093b(C0455b bVar, Menu menu);\n }", "public interface C4724o {\n /* renamed from: a */\n void mo4872a(int i, String str);\n\n /* renamed from: a */\n void mo4873a(C4718l c4718l);\n\n /* renamed from: b */\n void mo4874b(C4718l c4718l);\n}", "public interface C7654b {\n /* renamed from: a */\n C7904c mo24084a();\n\n /* renamed from: b */\n C7716a mo24085b();\n }", "public interface C2603a {\n /* renamed from: a */\n String mo1889a(String str, String str2, String str3, String str4);\n }", "public interface afp {\n /* renamed from: a */\n C0512sx mo169a(C0497si siVar, afj afj, afr afr, Context context);\n}", "public interface C0615ja extends b<HomeFragment> {\n\n /* renamed from: c.c.a.h.b.ja$a */\n /* compiled from: FragmentModule_HomeFragment$app_bazaarRelease */\n public static abstract class a extends b.a<HomeFragment> {\n }\n}", "public interface a {\n\n /* renamed from: c.b.a.c.b.b.a$a reason: collision with other inner class name */\n /* compiled from: DiskCache */\n public interface C0054a {\n a build();\n }\n\n /* compiled from: DiskCache */\n public interface b {\n boolean a(File file);\n }\n\n File a(c cVar);\n\n void a(c cVar, b bVar);\n}", "public interface C0940d {\n /* renamed from: a */\n void mo3305a(boolean z);\n }", "public interface AbstractC17368c {\n /* renamed from: a */\n void mo84656a(float f);\n }", "interface C0932a {\n /* renamed from: a */\n void mo7438a(int i, int i2);\n\n /* renamed from: b */\n void mo7439b(C0933b bVar);\n\n /* renamed from: c */\n void mo7440c(int i, int i2, Object obj);\n\n /* renamed from: d */\n void mo7441d(C0933b bVar);\n\n /* renamed from: e */\n RecyclerView.ViewHolder mo7442e(int i);\n\n /* renamed from: f */\n void mo7443f(int i, int i2);\n\n /* renamed from: g */\n void mo7444g(int i, int i2);\n\n /* renamed from: h */\n void mo7445h(int i, int i2);\n }", "public interface C10330c {\n /* renamed from: a */\n C7562b<C10403b, C10328a> mo25041a();\n}", "public interface C3819a {\n /* renamed from: a */\n void mo23214a(Message message);\n }", "private Proof atoAImpl(Expression a) {\n Proof where = axm2(a, arrow(a, a), a); //a->(a->a) -> (a->(a->a)->a) -> (a -> a)\n Proof one = axm1(a, a); //a->a->a\n Proof two = axm1(a, arrow(a, a)); //a->(a->a)->A\n return mpTwice(where, one, two);\n }", "interface C1939a {\n /* renamed from: a */\n Bitmap mo1406a(Bitmap bitmap, float f);\n}", "public interface a extends com.bankeen.d.b.b.a {\n void a();\n\n void b();\n }", "public b[] a() {\n/* 95 */ return this.a;\n/* */ }", "interface C8361a {\n /* renamed from: b */\n float mo18284b(ViewGroup viewGroup, View view);\n\n /* renamed from: c */\n float mo18281c(ViewGroup viewGroup, View view);\n }" ]
[ "0.6249595", "0.6242955", "0.61393225", "0.6117684", "0.61140615", "0.60893875", "0.6046927", "0.60248226", "0.60201806", "0.59753186", "0.5947817", "0.5912414", "0.5883872", "0.5878469", "0.587005", "0.58678955", "0.58651674", "0.5857262", "0.58311176", "0.58279663", "0.58274275", "0.5794977", "0.57889086", "0.57837564", "0.5775938", "0.57696944", "0.57688814", "0.5752557", "0.5690739", "0.5678386", "0.567034", "0.56661606", "0.56595623", "0.56588095", "0.56576085", "0.5654566", "0.56445956", "0.56401736", "0.5638699", "0.56305", "0.56179273", "0.56157446", "0.5607045", "0.5605239", "0.5600648", "0.5595156", "0.55912733", "0.5590759", "0.5573802", "0.5556659", "0.55545336", "0.5550466", "0.5549409", "0.5544484", "0.55377364", "0.55291194", "0.55285007", "0.55267704", "0.5525843", "0.5522067", "0.5520236", "0.55098593", "0.5507351", "0.5488173", "0.54860324", "0.54823226", "0.5481975", "0.5481588", "0.5480086", "0.5478032", "0.54676044", "0.5463578", "0.54506475", "0.54438734", "0.5440832", "0.5440053", "0.5432095", "0.5422814", "0.5421934", "0.54180306", "0.5403851", "0.5400144", "0.5400042", "0.5394655", "0.53891194", "0.5388751", "0.53749055", "0.53691155", "0.53590924", "0.5356525", "0.5355397", "0.535498", "0.5354871", "0.535003", "0.5341249", "0.5326222", "0.53232485", "0.53197914", "0.5316941", "0.5311645", "0.5298656" ]
0.0
-1
/ renamed from: a
void mo16687a(T t, C4621gg ggVar) throws IOException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }", "public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }", "interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}", "interface C33292a {\n /* renamed from: a */\n void mo85415a(String str);\n }", "interface C10331b {\n /* renamed from: a */\n void mo26876a(int i);\n }", "public interface C0779a {\n /* renamed from: a */\n void mo2311a();\n}", "public interface C6788a {\n /* renamed from: a */\n void mo20141a();\n }", "public interface C0237a {\n /* renamed from: a */\n void mo1791a(String str);\n }", "public interface C35013b {\n /* renamed from: a */\n void mo88773a(int i);\n}", "public interface C11112n {\n /* renamed from: a */\n void mo38026a();\n }", "@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}", "public interface C23407b {\n /* renamed from: a */\n void mo60892a();\n\n /* renamed from: b */\n void mo60893b();\n }", "interface C0312e {\n /* renamed from: a */\n void mo4671a(View view, int i, int i2, int i3, int i4);\n }", "public interface C34379a {\n /* renamed from: a */\n void mo46242a(bmc bmc);\n }", "public interface C32456b<T> {\n /* renamed from: a */\n void mo83696a(T t);\n }", "private String convertir(String a) {\n StringBuilder atributo = new StringBuilder(a);\n atributo.insert(0, Character.toUpperCase(atributo.charAt(0)));\n return atributo.deleteCharAt(1).toString();\n }", "protected m a(String name) {\n/* 42 */ return this.a.get(name);\n/* */ }", "public interface AbstractC23925a {\n /* renamed from: a */\n void mo105476a();\n }", "private interface C0257a {\n /* renamed from: a */\n float mo196a(ViewGroup viewGroup, View view);\n\n /* renamed from: b */\n float mo195b(ViewGroup viewGroup, View view);\n }", "public interface C3598a {\n /* renamed from: a */\n void mo11024a(int i, int i2, String str);\n }", "public interface C2459d {\n /* renamed from: a */\n C2451d mo3408a(C2457e c2457e);\n}", "public interface am extends ak {\r\n /* renamed from: a */\r\n void mo194a(int i) throws RemoteException;\r\n\r\n /* renamed from: a */\r\n void mo195a(List<LatLng> list) throws RemoteException;\r\n\r\n /* renamed from: b */\r\n void mo196b(float f) throws RemoteException;\r\n\r\n /* renamed from: b */\r\n void mo197b(boolean z);\r\n\r\n /* renamed from: c */\r\n void mo198c(boolean z) throws RemoteException;\r\n\r\n /* renamed from: g */\r\n float mo199g() throws RemoteException;\r\n\r\n /* renamed from: h */\r\n int mo200h() throws RemoteException;\r\n\r\n /* renamed from: i */\r\n List<LatLng> mo201i() throws RemoteException;\r\n\r\n /* renamed from: j */\r\n boolean mo202j();\r\n\r\n /* renamed from: k */\r\n boolean mo203k();\r\n}", "public interface C32459e<T> {\n /* renamed from: a */\n void mo83698a(T t);\n }", "public interface C32458d<T> {\n /* renamed from: a */\n void mo83695a(T t);\n }", "public interface C5482b {\n /* renamed from: a */\n void mo27575a();\n\n /* renamed from: a */\n void mo27576a(int i);\n }", "public interface C27084a {\n /* renamed from: a */\n void mo69874a();\n\n /* renamed from: a */\n void mo69875a(List<Aweme> list, boolean z);\n }", "public void a() {\n ((a) this.a).a();\n }", "public interface C1153a {\n /* renamed from: a */\n void mo4520a(byte[] bArr);\n }", "public interface C13373b {\n /* renamed from: a */\n void mo32681a(String str, int i, boolean z);\n}", "public interface C40453c {\n /* renamed from: a */\n void mo100442a(C40429b bVar);\n\n /* renamed from: a */\n void mo100443a(List<String> list);\n\n /* renamed from: b */\n void mo100444b(List<C40429b> list);\n}", "public interface AbstractC17367b {\n /* renamed from: a */\n void mo84655a();\n }", "@Override\r\n\tpublic void a() {\n\t\t\r\n\t}", "public interface C43270a {\n /* renamed from: a */\n void mo64942a(String str, long j, long j2);\n}", "public interface C18928d {\n /* renamed from: a */\n void mo50320a(C18924b bVar);\n\n /* renamed from: b */\n void mo50321b(C18924b bVar);\n}", "public interface C0087c {\n /* renamed from: a */\n String mo150a(String str);\n}", "public interface C1529m {\n /* renamed from: a */\n void mo3767a(int i);\n\n /* renamed from: a */\n void mo3768a(String str);\n}", "interface C4483e {\n /* renamed from: a */\n boolean mo34114a();\n}", "public interface C1234b {\r\n /* renamed from: a */\r\n void m8367a();\r\n\r\n /* renamed from: b */\r\n void m8368b();\r\n}", "public interface C10965j<T> {\n /* renamed from: a */\n T mo26439a();\n}", "public interface C28772a {\n /* renamed from: a */\n View mo73990a(View view);\n }", "@Override\n\tpublic void a() {\n\t\t\n\t}", "public interface C8326b {\n /* renamed from: a */\n C8325a mo21498a(String str);\n\n /* renamed from: a */\n void mo21499a(C8325a aVar);\n}", "void metodo1(int a, int[] b) {\r\n\t\ta += 5;//Par\\u00e1metro con el mismo nombre que el campo de la clase.\r\n\t\tb[0] += 7;//se produce un env\\u00edo por referencia, apunta a una copia de un objeto, que se asigna aqu\\u00ed.\r\n\t}", "public interface C2367a {\n /* renamed from: a */\n C2368d mo1698a();\n }", "interface C30585a {\n /* renamed from: b */\n void mo27952b(C5379a c5379a, int i, C46650a c46650a, C7620bi c7620bi);\n }", "public interface C4211a {\n\n /* renamed from: com.iab.omid.library.oguryco.c.a$a */\n public interface C4212a {\n /* renamed from: a */\n void mo28760a(View view, C4211a aVar, JSONObject jSONObject);\n }\n\n /* renamed from: a */\n JSONObject mo28758a(View view);\n\n /* renamed from: a */\n void mo28759a(View view, JSONObject jSONObject, C4212a aVar, boolean z);\n}", "public interface C4697a extends C5595at {\n /* renamed from: a */\n void mo12634a();\n\n /* renamed from: a */\n void mo12635a(String str);\n\n /* renamed from: a */\n void mo12636a(boolean z);\n\n /* renamed from: b */\n void mo12637b();\n\n /* renamed from: c */\n void mo12638c();\n }", "public interface C4773c {\n /* renamed from: a */\n void m15858a(int i);\n\n /* renamed from: a */\n void m15859a(int i, int i2);\n\n /* renamed from: a */\n void m15860a(int i, int i2, int i3);\n\n /* renamed from: b */\n void m15861b(int i, int i2);\n}", "public interface C4869f {\n /* renamed from: a */\n C4865b mo6249a();\n}", "public interface C1799a {\n /* renamed from: b */\n void mo3314b(String str);\n }", "public interface C43499b {\n /* renamed from: a */\n void mo8445a(int i, String str, int i2, byte[] bArr);\n}", "public interface C0601aq {\n /* renamed from: a */\n void mo9148a(int i, ArrayList<C0889x> arrayList);\n}", "public interface C45101e {\n /* renamed from: b */\n void mo3796b(int i);\n}", "public interface AbstractC6461g {\n /* renamed from: a */\n String mo42332a();\n}", "public interface AbstractC1645a {\n /* renamed from: a */\n String mo17375a();\n }", "public interface C6178c {\n /* renamed from: a */\n Map<String, String> mo14888a();\n}", "public interface C5101b {\n /* renamed from: a */\n void mo5289a(C5102c c5102c);\n\n /* renamed from: b */\n void mo5290b(C5102c c5102c);\n}", "public interface C19045k {\n /* renamed from: a */\n void mo50368a(int i, Object obj);\n\n /* renamed from: b */\n void mo50369b(int i, Object obj);\n}", "public b a()\r\n/* 12: */ {\r\n/* 13:13 */ return this.a;\r\n/* 14: */ }", "public interface C7720a {\n /* renamed from: a */\n long mo20406a();\n}", "public String a()\r\n/* 25: */ {\r\n/* 26:171 */ return \"dig.\" + this.a;\r\n/* 27: */ }", "public interface ayt {\n /* renamed from: a */\n int mo1635a(long j, List list);\n\n /* renamed from: a */\n long mo1636a(long j, alb alb);\n\n /* renamed from: a */\n void mo1637a();\n\n /* renamed from: a */\n void mo1638a(long j, long j2, List list, ayp ayp);\n\n /* renamed from: a */\n void mo1639a(ayl ayl);\n\n /* renamed from: a */\n boolean mo1640a(ayl ayl, boolean z, Exception exc, long j);\n}", "public interface C24221b extends C28343z<C28318an> {\n /* renamed from: a */\n void mo62991a(int i);\n\n String aw_();\n\n /* renamed from: e */\n Aweme mo62993e();\n}", "public interface C4051c {\n /* renamed from: a */\n boolean mo23707a();\n}", "public interface C45112b {\n /* renamed from: a */\n List<C45111a> mo107674a(Integer num);\n\n /* renamed from: a */\n List<C45111a> mo107675a(Integer num, Integer num2);\n\n /* renamed from: a */\n void mo107676a(C45111a aVar);\n\n /* renamed from: b */\n void mo107677b(Integer num);\n\n /* renamed from: c */\n long mo107678c(Integer num);\n}", "public void acionou(int a){\n\t\t\tb=a;\n\t\t}", "public interface C44963i {\n /* renamed from: a */\n void mo63037a(int i, int i2);\n\n void aA_();\n\n /* renamed from: b */\n void mo63039b(int i, int i2);\n}", "public interface C32457c<T> {\n /* renamed from: a */\n void mo83699a(T t, int i, int i2, String str);\n }", "public interface C5861g {\n /* renamed from: a */\n void mo18320a(C7251a aVar);\n\n @Deprecated\n /* renamed from: a */\n void mo18321a(C7251a aVar, String str);\n\n /* renamed from: a */\n void mo18322a(C7252b bVar);\n\n /* renamed from: a */\n void mo18323a(C7253c cVar);\n\n /* renamed from: a */\n void mo18324a(C7260j jVar);\n}", "public interface C0937a {\n /* renamed from: a */\n void mo3807a(C0985po[] poVarArr);\n }", "public interface C8466a {\n /* renamed from: a */\n void mo25956a(int i);\n\n /* renamed from: a */\n void mo25957a(long j, long j2);\n }", "public interface C39684b {\n /* renamed from: a */\n void mo98969a();\n\n /* renamed from: a */\n void mo98970a(C29296g gVar);\n\n /* renamed from: a */\n void mo98971a(C29296g gVar, int i);\n }", "public interface C43470b {\n /* renamed from: a */\n void mo61496a(C43469a aVar, C43471c cVar);\n }", "public interface AbstractC18255a {\n /* renamed from: a */\n void mo88521a();\n\n /* renamed from: a */\n void mo88522a(String str);\n\n /* renamed from: b */\n void mo88523b();\n\n /* renamed from: c */\n void mo88524c();\n }", "public interface C1436d {\n /* renamed from: a */\n C1435c mo1754a(C1433a c1433a, C1434b c1434b);\n}", "public interface C4150sl {\n /* renamed from: a */\n void mo15005a(C4143se seVar);\n}", "public void a(nm paramnm)\r\n/* 28: */ {\r\n/* 29:45 */ paramnm.a(this);\r\n/* 30: */ }", "public interface C19351a {\n /* renamed from: b */\n void mo30633b(int i, String str, byte[] bArr);\n }", "public interface C11113o {\n /* renamed from: a */\n void mo37759a(String str);\n }", "public interface C39504az {\n /* renamed from: a */\n int mo98207a();\n\n /* renamed from: a */\n void mo98208a(boolean z);\n\n /* renamed from: b */\n int mo98209b();\n\n /* renamed from: c */\n int mo98355c();\n\n /* renamed from: d */\n int mo98356d();\n\n /* renamed from: e */\n int mo98357e();\n\n /* renamed from: f */\n int mo98358f();\n}", "protected a<T> a(Tag.e<T> var0) {\n/* 80 */ Tag.a var1 = b(var0);\n/* 81 */ return new a<>(var1, this.c, \"vanilla\");\n/* */ }", "public interface C35565a {\n /* renamed from: a */\n C45321i mo90380a();\n }", "public interface C21298a {\n /* renamed from: a */\n void mo57275a();\n\n /* renamed from: a */\n void mo57276a(Exception exc);\n\n /* renamed from: b */\n void mo57277b();\n\n /* renamed from: c */\n void mo57278c();\n }", "public interface C40108b {\n /* renamed from: a */\n void mo99838a(boolean z);\n }", "public interface C0456a {\n /* renamed from: a */\n void mo2090a(C0455b bVar);\n\n /* renamed from: a */\n boolean mo2091a(C0455b bVar, Menu menu);\n\n /* renamed from: a */\n boolean mo2092a(C0455b bVar, MenuItem menuItem);\n\n /* renamed from: b */\n boolean mo2093b(C0455b bVar, Menu menu);\n }", "public interface C4724o {\n /* renamed from: a */\n void mo4872a(int i, String str);\n\n /* renamed from: a */\n void mo4873a(C4718l c4718l);\n\n /* renamed from: b */\n void mo4874b(C4718l c4718l);\n}", "public interface C7654b {\n /* renamed from: a */\n C7904c mo24084a();\n\n /* renamed from: b */\n C7716a mo24085b();\n }", "public interface C2603a {\n /* renamed from: a */\n String mo1889a(String str, String str2, String str3, String str4);\n }", "public interface afp {\n /* renamed from: a */\n C0512sx mo169a(C0497si siVar, afj afj, afr afr, Context context);\n}", "public interface C0615ja extends b<HomeFragment> {\n\n /* renamed from: c.c.a.h.b.ja$a */\n /* compiled from: FragmentModule_HomeFragment$app_bazaarRelease */\n public static abstract class a extends b.a<HomeFragment> {\n }\n}", "public interface a {\n\n /* renamed from: c.b.a.c.b.b.a$a reason: collision with other inner class name */\n /* compiled from: DiskCache */\n public interface C0054a {\n a build();\n }\n\n /* compiled from: DiskCache */\n public interface b {\n boolean a(File file);\n }\n\n File a(c cVar);\n\n void a(c cVar, b bVar);\n}", "public interface C0940d {\n /* renamed from: a */\n void mo3305a(boolean z);\n }", "public interface AbstractC17368c {\n /* renamed from: a */\n void mo84656a(float f);\n }", "interface C0932a {\n /* renamed from: a */\n void mo7438a(int i, int i2);\n\n /* renamed from: b */\n void mo7439b(C0933b bVar);\n\n /* renamed from: c */\n void mo7440c(int i, int i2, Object obj);\n\n /* renamed from: d */\n void mo7441d(C0933b bVar);\n\n /* renamed from: e */\n RecyclerView.ViewHolder mo7442e(int i);\n\n /* renamed from: f */\n void mo7443f(int i, int i2);\n\n /* renamed from: g */\n void mo7444g(int i, int i2);\n\n /* renamed from: h */\n void mo7445h(int i, int i2);\n }", "public interface C10330c {\n /* renamed from: a */\n C7562b<C10403b, C10328a> mo25041a();\n}", "public interface C3819a {\n /* renamed from: a */\n void mo23214a(Message message);\n }", "private Proof atoAImpl(Expression a) {\n Proof where = axm2(a, arrow(a, a), a); //a->(a->a) -> (a->(a->a)->a) -> (a -> a)\n Proof one = axm1(a, a); //a->a->a\n Proof two = axm1(a, arrow(a, a)); //a->(a->a)->A\n return mpTwice(where, one, two);\n }", "interface C1939a {\n /* renamed from: a */\n Bitmap mo1406a(Bitmap bitmap, float f);\n}", "public interface a extends com.bankeen.d.b.b.a {\n void a();\n\n void b();\n }", "public b[] a() {\n/* 95 */ return this.a;\n/* */ }", "interface C8361a {\n /* renamed from: b */\n float mo18284b(ViewGroup viewGroup, View view);\n\n /* renamed from: c */\n float mo18281c(ViewGroup viewGroup, View view);\n }" ]
[ "0.62497115", "0.6242887", "0.61394435", "0.61176854", "0.6114027", "0.60893", "0.6046901", "0.6024682", "0.60201293", "0.5975212", "0.59482527", "0.59121317", "0.5883635", "0.587841", "0.58703005", "0.5868436", "0.5864884", "0.5857492", "0.58306104", "0.5827752", "0.58272064", "0.5794689", "0.57890314", "0.57838726", "0.5775679", "0.57694733", "0.5769128", "0.57526815", "0.56907034", "0.5677874", "0.5670547", "0.56666386", "0.56592244", "0.5658682", "0.56574154", "0.5654324", "0.5644676", "0.56399715", "0.5638734", "0.5630582", "0.56183887", "0.5615435", "0.56069666", "0.5605207", "0.56005067", "0.559501", "0.55910283", "0.5590222", "0.55736613", "0.5556682", "0.5554544", "0.5550076", "0.55493855", "0.55446684", "0.5538079", "0.5529058", "0.5528109", "0.552641", "0.5525864", "0.552186", "0.5519972", "0.5509587", "0.5507195", "0.54881203", "0.5485328", "0.54826045", "0.5482066", "0.5481586", "0.5479751", "0.54776895", "0.54671466", "0.5463307", "0.54505056", "0.54436916", "0.5440517", "0.5439747", "0.5431944", "0.5422869", "0.54217863", "0.5417556", "0.5403905", "0.5400223", "0.53998446", "0.5394735", "0.5388649", "0.5388258", "0.5374842", "0.5368887", "0.53591394", "0.5357029", "0.5355688", "0.535506", "0.5355034", "0.53494394", "0.5341044", "0.5326166", "0.53236824", "0.53199095", "0.53177035", "0.53112453", "0.5298229" ]
0.0
-1
/ renamed from: a
boolean mo16688a(T t, T t2);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }", "public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }", "interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}", "interface C33292a {\n /* renamed from: a */\n void mo85415a(String str);\n }", "interface C10331b {\n /* renamed from: a */\n void mo26876a(int i);\n }", "public interface C0779a {\n /* renamed from: a */\n void mo2311a();\n}", "public interface C6788a {\n /* renamed from: a */\n void mo20141a();\n }", "public interface C0237a {\n /* renamed from: a */\n void mo1791a(String str);\n }", "public interface C35013b {\n /* renamed from: a */\n void mo88773a(int i);\n}", "public interface C11112n {\n /* renamed from: a */\n void mo38026a();\n }", "@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}", "public interface C23407b {\n /* renamed from: a */\n void mo60892a();\n\n /* renamed from: b */\n void mo60893b();\n }", "interface C0312e {\n /* renamed from: a */\n void mo4671a(View view, int i, int i2, int i3, int i4);\n }", "public interface C34379a {\n /* renamed from: a */\n void mo46242a(bmc bmc);\n }", "public interface C32456b<T> {\n /* renamed from: a */\n void mo83696a(T t);\n }", "private String convertir(String a) {\n StringBuilder atributo = new StringBuilder(a);\n atributo.insert(0, Character.toUpperCase(atributo.charAt(0)));\n return atributo.deleteCharAt(1).toString();\n }", "protected m a(String name) {\n/* 42 */ return this.a.get(name);\n/* */ }", "public interface AbstractC23925a {\n /* renamed from: a */\n void mo105476a();\n }", "private interface C0257a {\n /* renamed from: a */\n float mo196a(ViewGroup viewGroup, View view);\n\n /* renamed from: b */\n float mo195b(ViewGroup viewGroup, View view);\n }", "public interface C3598a {\n /* renamed from: a */\n void mo11024a(int i, int i2, String str);\n }", "public interface C2459d {\n /* renamed from: a */\n C2451d mo3408a(C2457e c2457e);\n}", "public interface am extends ak {\r\n /* renamed from: a */\r\n void mo194a(int i) throws RemoteException;\r\n\r\n /* renamed from: a */\r\n void mo195a(List<LatLng> list) throws RemoteException;\r\n\r\n /* renamed from: b */\r\n void mo196b(float f) throws RemoteException;\r\n\r\n /* renamed from: b */\r\n void mo197b(boolean z);\r\n\r\n /* renamed from: c */\r\n void mo198c(boolean z) throws RemoteException;\r\n\r\n /* renamed from: g */\r\n float mo199g() throws RemoteException;\r\n\r\n /* renamed from: h */\r\n int mo200h() throws RemoteException;\r\n\r\n /* renamed from: i */\r\n List<LatLng> mo201i() throws RemoteException;\r\n\r\n /* renamed from: j */\r\n boolean mo202j();\r\n\r\n /* renamed from: k */\r\n boolean mo203k();\r\n}", "public interface C32459e<T> {\n /* renamed from: a */\n void mo83698a(T t);\n }", "public interface C32458d<T> {\n /* renamed from: a */\n void mo83695a(T t);\n }", "public interface C5482b {\n /* renamed from: a */\n void mo27575a();\n\n /* renamed from: a */\n void mo27576a(int i);\n }", "public interface C27084a {\n /* renamed from: a */\n void mo69874a();\n\n /* renamed from: a */\n void mo69875a(List<Aweme> list, boolean z);\n }", "public void a() {\n ((a) this.a).a();\n }", "public interface C1153a {\n /* renamed from: a */\n void mo4520a(byte[] bArr);\n }", "public interface C13373b {\n /* renamed from: a */\n void mo32681a(String str, int i, boolean z);\n}", "public interface C40453c {\n /* renamed from: a */\n void mo100442a(C40429b bVar);\n\n /* renamed from: a */\n void mo100443a(List<String> list);\n\n /* renamed from: b */\n void mo100444b(List<C40429b> list);\n}", "public interface AbstractC17367b {\n /* renamed from: a */\n void mo84655a();\n }", "@Override\r\n\tpublic void a() {\n\t\t\r\n\t}", "public interface C43270a {\n /* renamed from: a */\n void mo64942a(String str, long j, long j2);\n}", "public interface C18928d {\n /* renamed from: a */\n void mo50320a(C18924b bVar);\n\n /* renamed from: b */\n void mo50321b(C18924b bVar);\n}", "public interface C0087c {\n /* renamed from: a */\n String mo150a(String str);\n}", "public interface C1529m {\n /* renamed from: a */\n void mo3767a(int i);\n\n /* renamed from: a */\n void mo3768a(String str);\n}", "interface C4483e {\n /* renamed from: a */\n boolean mo34114a();\n}", "public interface C1234b {\r\n /* renamed from: a */\r\n void m8367a();\r\n\r\n /* renamed from: b */\r\n void m8368b();\r\n}", "public interface C10965j<T> {\n /* renamed from: a */\n T mo26439a();\n}", "public interface C28772a {\n /* renamed from: a */\n View mo73990a(View view);\n }", "@Override\n\tpublic void a() {\n\t\t\n\t}", "public interface C8326b {\n /* renamed from: a */\n C8325a mo21498a(String str);\n\n /* renamed from: a */\n void mo21499a(C8325a aVar);\n}", "void metodo1(int a, int[] b) {\r\n\t\ta += 5;//Par\\u00e1metro con el mismo nombre que el campo de la clase.\r\n\t\tb[0] += 7;//se produce un env\\u00edo por referencia, apunta a una copia de un objeto, que se asigna aqu\\u00ed.\r\n\t}", "public interface C2367a {\n /* renamed from: a */\n C2368d mo1698a();\n }", "interface C30585a {\n /* renamed from: b */\n void mo27952b(C5379a c5379a, int i, C46650a c46650a, C7620bi c7620bi);\n }", "public interface C4211a {\n\n /* renamed from: com.iab.omid.library.oguryco.c.a$a */\n public interface C4212a {\n /* renamed from: a */\n void mo28760a(View view, C4211a aVar, JSONObject jSONObject);\n }\n\n /* renamed from: a */\n JSONObject mo28758a(View view);\n\n /* renamed from: a */\n void mo28759a(View view, JSONObject jSONObject, C4212a aVar, boolean z);\n}", "public interface C4697a extends C5595at {\n /* renamed from: a */\n void mo12634a();\n\n /* renamed from: a */\n void mo12635a(String str);\n\n /* renamed from: a */\n void mo12636a(boolean z);\n\n /* renamed from: b */\n void mo12637b();\n\n /* renamed from: c */\n void mo12638c();\n }", "public interface C4773c {\n /* renamed from: a */\n void m15858a(int i);\n\n /* renamed from: a */\n void m15859a(int i, int i2);\n\n /* renamed from: a */\n void m15860a(int i, int i2, int i3);\n\n /* renamed from: b */\n void m15861b(int i, int i2);\n}", "public interface C4869f {\n /* renamed from: a */\n C4865b mo6249a();\n}", "public interface C1799a {\n /* renamed from: b */\n void mo3314b(String str);\n }", "public interface C43499b {\n /* renamed from: a */\n void mo8445a(int i, String str, int i2, byte[] bArr);\n}", "public interface C0601aq {\n /* renamed from: a */\n void mo9148a(int i, ArrayList<C0889x> arrayList);\n}", "public interface C45101e {\n /* renamed from: b */\n void mo3796b(int i);\n}", "public interface AbstractC6461g {\n /* renamed from: a */\n String mo42332a();\n}", "public interface AbstractC1645a {\n /* renamed from: a */\n String mo17375a();\n }", "public interface C6178c {\n /* renamed from: a */\n Map<String, String> mo14888a();\n}", "public interface C5101b {\n /* renamed from: a */\n void mo5289a(C5102c c5102c);\n\n /* renamed from: b */\n void mo5290b(C5102c c5102c);\n}", "public interface C19045k {\n /* renamed from: a */\n void mo50368a(int i, Object obj);\n\n /* renamed from: b */\n void mo50369b(int i, Object obj);\n}", "public b a()\r\n/* 12: */ {\r\n/* 13:13 */ return this.a;\r\n/* 14: */ }", "public interface C7720a {\n /* renamed from: a */\n long mo20406a();\n}", "public String a()\r\n/* 25: */ {\r\n/* 26:171 */ return \"dig.\" + this.a;\r\n/* 27: */ }", "public interface ayt {\n /* renamed from: a */\n int mo1635a(long j, List list);\n\n /* renamed from: a */\n long mo1636a(long j, alb alb);\n\n /* renamed from: a */\n void mo1637a();\n\n /* renamed from: a */\n void mo1638a(long j, long j2, List list, ayp ayp);\n\n /* renamed from: a */\n void mo1639a(ayl ayl);\n\n /* renamed from: a */\n boolean mo1640a(ayl ayl, boolean z, Exception exc, long j);\n}", "public interface C24221b extends C28343z<C28318an> {\n /* renamed from: a */\n void mo62991a(int i);\n\n String aw_();\n\n /* renamed from: e */\n Aweme mo62993e();\n}", "public interface C4051c {\n /* renamed from: a */\n boolean mo23707a();\n}", "public interface C45112b {\n /* renamed from: a */\n List<C45111a> mo107674a(Integer num);\n\n /* renamed from: a */\n List<C45111a> mo107675a(Integer num, Integer num2);\n\n /* renamed from: a */\n void mo107676a(C45111a aVar);\n\n /* renamed from: b */\n void mo107677b(Integer num);\n\n /* renamed from: c */\n long mo107678c(Integer num);\n}", "public void acionou(int a){\n\t\t\tb=a;\n\t\t}", "public interface C44963i {\n /* renamed from: a */\n void mo63037a(int i, int i2);\n\n void aA_();\n\n /* renamed from: b */\n void mo63039b(int i, int i2);\n}", "public interface C32457c<T> {\n /* renamed from: a */\n void mo83699a(T t, int i, int i2, String str);\n }", "public interface C5861g {\n /* renamed from: a */\n void mo18320a(C7251a aVar);\n\n @Deprecated\n /* renamed from: a */\n void mo18321a(C7251a aVar, String str);\n\n /* renamed from: a */\n void mo18322a(C7252b bVar);\n\n /* renamed from: a */\n void mo18323a(C7253c cVar);\n\n /* renamed from: a */\n void mo18324a(C7260j jVar);\n}", "public interface C0937a {\n /* renamed from: a */\n void mo3807a(C0985po[] poVarArr);\n }", "public interface C8466a {\n /* renamed from: a */\n void mo25956a(int i);\n\n /* renamed from: a */\n void mo25957a(long j, long j2);\n }", "public interface C39684b {\n /* renamed from: a */\n void mo98969a();\n\n /* renamed from: a */\n void mo98970a(C29296g gVar);\n\n /* renamed from: a */\n void mo98971a(C29296g gVar, int i);\n }", "public interface C43470b {\n /* renamed from: a */\n void mo61496a(C43469a aVar, C43471c cVar);\n }", "public interface AbstractC18255a {\n /* renamed from: a */\n void mo88521a();\n\n /* renamed from: a */\n void mo88522a(String str);\n\n /* renamed from: b */\n void mo88523b();\n\n /* renamed from: c */\n void mo88524c();\n }", "public interface C1436d {\n /* renamed from: a */\n C1435c mo1754a(C1433a c1433a, C1434b c1434b);\n}", "public interface C4150sl {\n /* renamed from: a */\n void mo15005a(C4143se seVar);\n}", "public void a(nm paramnm)\r\n/* 28: */ {\r\n/* 29:45 */ paramnm.a(this);\r\n/* 30: */ }", "public interface C19351a {\n /* renamed from: b */\n void mo30633b(int i, String str, byte[] bArr);\n }", "public interface C11113o {\n /* renamed from: a */\n void mo37759a(String str);\n }", "public interface C39504az {\n /* renamed from: a */\n int mo98207a();\n\n /* renamed from: a */\n void mo98208a(boolean z);\n\n /* renamed from: b */\n int mo98209b();\n\n /* renamed from: c */\n int mo98355c();\n\n /* renamed from: d */\n int mo98356d();\n\n /* renamed from: e */\n int mo98357e();\n\n /* renamed from: f */\n int mo98358f();\n}", "protected a<T> a(Tag.e<T> var0) {\n/* 80 */ Tag.a var1 = b(var0);\n/* 81 */ return new a<>(var1, this.c, \"vanilla\");\n/* */ }", "public interface C35565a {\n /* renamed from: a */\n C45321i mo90380a();\n }", "public interface C21298a {\n /* renamed from: a */\n void mo57275a();\n\n /* renamed from: a */\n void mo57276a(Exception exc);\n\n /* renamed from: b */\n void mo57277b();\n\n /* renamed from: c */\n void mo57278c();\n }", "public interface C40108b {\n /* renamed from: a */\n void mo99838a(boolean z);\n }", "public interface C0456a {\n /* renamed from: a */\n void mo2090a(C0455b bVar);\n\n /* renamed from: a */\n boolean mo2091a(C0455b bVar, Menu menu);\n\n /* renamed from: a */\n boolean mo2092a(C0455b bVar, MenuItem menuItem);\n\n /* renamed from: b */\n boolean mo2093b(C0455b bVar, Menu menu);\n }", "public interface C4724o {\n /* renamed from: a */\n void mo4872a(int i, String str);\n\n /* renamed from: a */\n void mo4873a(C4718l c4718l);\n\n /* renamed from: b */\n void mo4874b(C4718l c4718l);\n}", "public interface C7654b {\n /* renamed from: a */\n C7904c mo24084a();\n\n /* renamed from: b */\n C7716a mo24085b();\n }", "public interface C2603a {\n /* renamed from: a */\n String mo1889a(String str, String str2, String str3, String str4);\n }", "public interface afp {\n /* renamed from: a */\n C0512sx mo169a(C0497si siVar, afj afj, afr afr, Context context);\n}", "public interface C0615ja extends b<HomeFragment> {\n\n /* renamed from: c.c.a.h.b.ja$a */\n /* compiled from: FragmentModule_HomeFragment$app_bazaarRelease */\n public static abstract class a extends b.a<HomeFragment> {\n }\n}", "public interface a {\n\n /* renamed from: c.b.a.c.b.b.a$a reason: collision with other inner class name */\n /* compiled from: DiskCache */\n public interface C0054a {\n a build();\n }\n\n /* compiled from: DiskCache */\n public interface b {\n boolean a(File file);\n }\n\n File a(c cVar);\n\n void a(c cVar, b bVar);\n}", "public interface C0940d {\n /* renamed from: a */\n void mo3305a(boolean z);\n }", "public interface AbstractC17368c {\n /* renamed from: a */\n void mo84656a(float f);\n }", "interface C0932a {\n /* renamed from: a */\n void mo7438a(int i, int i2);\n\n /* renamed from: b */\n void mo7439b(C0933b bVar);\n\n /* renamed from: c */\n void mo7440c(int i, int i2, Object obj);\n\n /* renamed from: d */\n void mo7441d(C0933b bVar);\n\n /* renamed from: e */\n RecyclerView.ViewHolder mo7442e(int i);\n\n /* renamed from: f */\n void mo7443f(int i, int i2);\n\n /* renamed from: g */\n void mo7444g(int i, int i2);\n\n /* renamed from: h */\n void mo7445h(int i, int i2);\n }", "public interface C10330c {\n /* renamed from: a */\n C7562b<C10403b, C10328a> mo25041a();\n}", "public interface C3819a {\n /* renamed from: a */\n void mo23214a(Message message);\n }", "private Proof atoAImpl(Expression a) {\n Proof where = axm2(a, arrow(a, a), a); //a->(a->a) -> (a->(a->a)->a) -> (a -> a)\n Proof one = axm1(a, a); //a->a->a\n Proof two = axm1(a, arrow(a, a)); //a->(a->a)->A\n return mpTwice(where, one, two);\n }", "interface C1939a {\n /* renamed from: a */\n Bitmap mo1406a(Bitmap bitmap, float f);\n}", "public interface a extends com.bankeen.d.b.b.a {\n void a();\n\n void b();\n }", "public b[] a() {\n/* 95 */ return this.a;\n/* */ }", "interface C8361a {\n /* renamed from: b */\n float mo18284b(ViewGroup viewGroup, View view);\n\n /* renamed from: c */\n float mo18281c(ViewGroup viewGroup, View view);\n }" ]
[ "0.62497115", "0.6242887", "0.61394435", "0.61176854", "0.6114027", "0.60893", "0.6046901", "0.6024682", "0.60201293", "0.5975212", "0.59482527", "0.59121317", "0.5883635", "0.587841", "0.58703005", "0.5868436", "0.5864884", "0.5857492", "0.58306104", "0.5827752", "0.58272064", "0.5794689", "0.57890314", "0.57838726", "0.5775679", "0.57694733", "0.5769128", "0.57526815", "0.56907034", "0.5677874", "0.5670547", "0.56666386", "0.56592244", "0.5658682", "0.56574154", "0.5654324", "0.5644676", "0.56399715", "0.5638734", "0.5630582", "0.56183887", "0.5615435", "0.56069666", "0.5605207", "0.56005067", "0.559501", "0.55910283", "0.5590222", "0.55736613", "0.5556682", "0.5554544", "0.5550076", "0.55493855", "0.55446684", "0.5538079", "0.5529058", "0.5528109", "0.552641", "0.5525864", "0.552186", "0.5519972", "0.5509587", "0.5507195", "0.54881203", "0.5485328", "0.54826045", "0.5482066", "0.5481586", "0.5479751", "0.54776895", "0.54671466", "0.5463307", "0.54505056", "0.54436916", "0.5440517", "0.5439747", "0.5431944", "0.5422869", "0.54217863", "0.5417556", "0.5403905", "0.5400223", "0.53998446", "0.5394735", "0.5388649", "0.5388258", "0.5374842", "0.5368887", "0.53591394", "0.5357029", "0.5355688", "0.535506", "0.5355034", "0.53494394", "0.5341044", "0.5326166", "0.53236824", "0.53199095", "0.53177035", "0.53112453", "0.5298229" ]
0.0
-1
/ renamed from: b
int mo16689b(T t);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void mo2508a(bxb bxb);", "@Override\n public void func_104112_b() {\n \n }", "@Override\n public void b() {\n }", "public interface C19351a {\n /* renamed from: b */\n void mo30633b(int i, String str, byte[] bArr);\n }", "@Override\n\tpublic void b2() {\n\t\t\n\t}", "void metodo1(int a, int[] b) {\r\n\t\ta += 5;//Par\\u00e1metro con el mismo nombre que el campo de la clase.\r\n\t\tb[0] += 7;//se produce un env\\u00edo por referencia, apunta a una copia de un objeto, que se asigna aqu\\u00ed.\r\n\t}", "interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}", "@Override\n\tpublic void b() {\n\n\t}", "interface C30585a {\n /* renamed from: b */\n void mo27952b(C5379a c5379a, int i, C46650a c46650a, C7620bi c7620bi);\n }", "public bb b() {\n return a(this.a);\n }", "@Override\n\tpublic void b1() {\n\t\t\n\t}", "public void b() {\r\n }", "@Override\n\tpublic void bbb() {\n\t\t\n\t}", "public interface C34379a {\n /* renamed from: a */\n void mo46242a(bmc bmc);\n }", "public abstract void b(StringBuilder sb);", "public void b() {\n }", "public void b() {\n }", "protected b(int mb) {\n/* 87 */ this.b = mb;\n/* */ }", "public u(b paramb)\r\n/* 7: */ {\r\n/* 8: 9 */ this.a = paramb;\r\n/* 9: */ }", "public interface b {\n void H_();\n\n void I_();\n\n void J_();\n\n void a(C0063d dVar);\n\n void a(byte[] bArr);\n\n void b(boolean z);\n }", "public b[] a() {\n/* 95 */ return this.a;\n/* */ }", "public interface C7654b {\n /* renamed from: a */\n C7904c mo24084a();\n\n /* renamed from: b */\n C7716a mo24085b();\n }", "public interface C1153a {\n /* renamed from: a */\n void mo4520a(byte[] bArr);\n }", "public interface C43499b {\n /* renamed from: a */\n void mo8445a(int i, String str, int i2, byte[] bArr);\n}", "public void b() {\n ((a) this.a).b();\n }", "public np a()\r\n/* 33: */ {\r\n/* 34:49 */ return this.b;\r\n/* 35: */ }", "b(a aVar) {\n super(0);\n this.this$0 = aVar;\n }", "public t b() {\n return a(this.a);\n }", "public interface C32456b<T> {\n /* renamed from: a */\n void mo83696a(T t);\n }", "public static String a(int c) {\n/* 89 */ return b.a(c);\n/* */ }", "private void m678b(byte b) {\n byte[] bArr = this.f523r;\n bArr[0] = b;\n this.f552g.mo502b(bArr);\n }", "public interface C23407b {\n /* renamed from: a */\n void mo60892a();\n\n /* renamed from: b */\n void mo60893b();\n }", "public abstract T zzm(B b);", "public b a()\r\n/* 12: */ {\r\n/* 13:13 */ return this.a;\r\n/* 14: */ }", "public void b(World paramaqu, BlockPosition paramdt, Block parambec)\r\n/* 27: */ {\r\n/* 28: 47 */ bcm localbcm = paramaqu.s(paramdt);\r\n/* 29: 48 */ if ((localbcm instanceof bdv)) {\r\n/* 30: 49 */ ((bdv)localbcm).h();\r\n/* 31: */ } else {\r\n/* 32: 51 */ super.b(paramaqu, paramdt, parambec);\r\n/* 33: */ }\r\n/* 34: */ }", "public abstract void zzc(B b, int i, int i2);", "public interface b {\n}", "public interface b {\n}", "private void m10263b(byte b) throws cf {\r\n this.f6483r[0] = b;\r\n this.g.m10347b(this.f6483r);\r\n }", "BSubstitution createBSubstitution();", "public void b(ahd paramahd) {}", "void b();", "public interface C18928d {\n /* renamed from: a */\n void mo50320a(C18924b bVar);\n\n /* renamed from: b */\n void mo50321b(C18924b bVar);\n}", "B database(S database);", "public interface C0615ja extends b<HomeFragment> {\n\n /* renamed from: c.c.a.h.b.ja$a */\n /* compiled from: FragmentModule_HomeFragment$app_bazaarRelease */\n public static abstract class a extends b.a<HomeFragment> {\n }\n}", "public abstract C0631bt mo9227aB();", "public an b() {\n return a(this.a);\n }", "protected abstract void a(bru parambru);", "static void go(Base b) {\n\t\tb.add(8);\n\t}", "void mo46242a(bmc bmc);", "public interface b extends c {\n void a(Float f);\n\n void a(Integer num);\n\n void b(Float f);\n\n void c(Float f);\n\n String d();\n\n void d(Float f);\n\n void d(String str);\n\n void e(Float f);\n\n void e(String str);\n\n void f(String str);\n\n void g(String str);\n\n Long j();\n\n LineChart k();\n }", "public interface bca extends bbn {\n bca a();\n\n bca a(String str);\n\n bca b(String str);\n\n bca c(String str);\n}", "public interface a extends com.bankeen.d.b.b.a {\n void a();\n\n void b();\n }", "public abstract BoundType b();", "public void b(amj paramamj)\r\n/* 538: */ {\r\n/* 539:579 */ this.f = paramamj;\r\n/* 540: */ }", "b(a aVar, com.bytedance.jedi.model.h.a aVar2) {\n super(aVar2);\n this.f21531a = aVar;\n this.f21532b = new com.bytedance.jedi.model.h.f(aVar);\n }", "private void b(int paramInt)\r\n/* 193: */ {\r\n/* 194:203 */ this.h.a(a(paramInt));\r\n/* 195: */ }", "public void b(ahb paramahb)\r\n/* 583: */ {\r\n/* 584:625 */ for (int i = 0; i < this.a.length; i++) {\r\n/* 585:626 */ this.a[i] = amj.b(paramahb.a[i]);\r\n/* 586: */ }\r\n/* 587:628 */ for (i = 0; i < this.b.length; i++) {\r\n/* 588:629 */ this.b[i] = amj.b(paramahb.b[i]);\r\n/* 589: */ }\r\n/* 590:631 */ this.c = paramahb.c;\r\n/* 591: */ }", "interface b {\n\n /* compiled from: CreditAccountContract */\n public interface a extends com.bankeen.d.b.b.a {\n void a();\n\n void b();\n }\n\n /* compiled from: CreditAccountContract */\n public interface b extends c {\n void a(Float f);\n\n void a(Integer num);\n\n void b(Float f);\n\n void c(Float f);\n\n String d();\n\n void d(Float f);\n\n void d(String str);\n\n void e(Float f);\n\n void e(String str);\n\n void f(String str);\n\n void g(String str);\n\n Long j();\n\n LineChart k();\n }\n}", "@Override\n\tpublic void visit(PartB partB) {\n\n\t}", "public abstract void zzb(B b, int i, long j);", "public abstract void zza(B b, int i, zzeh zzeh);", "int metodo2(int a, int b) {\r\n\r\n\t\tthis.a += 5; // se modifica el campo del objeto, el uso de la palabra reservada this se utiliza para referenciar al campo.\r\n\t\tb += 7;\r\n\t\treturn a; // modifica en la asignaci\\u00f3n\r\n\t}", "private void internalCopy(Board b) {\n for (int i = 0; i < SIDE * SIDE; i += 1) {\n set(i, b.get(i));\n }\n\n _directions = b._directions;\n _whoseMove = b._whoseMove;\n _history = b._history;\n }", "public int b()\r\n/* 69: */ {\r\n/* 70:74 */ return this.b;\r\n/* 71: */ }", "public void b(StringBuilder sb) {\n sb.append(this.a);\n sb.append(')');\n }", "public void b() {\n e$a e$a;\n try {\n e$a = this.b;\n }\n catch (IOException iOException) {\n return;\n }\n Object object = this.c;\n e$a.b(object);\n }", "public abstract void a(StringBuilder sb);", "public interface C45101e {\n /* renamed from: b */\n void mo3796b(int i);\n}", "public abstract void zzf(Object obj, B b);", "public interface bdp {\n\n /* renamed from: a */\n public static final bdp f3422a = new bdo();\n\n /* renamed from: a */\n bdm mo1784a(akh akh);\n}", "@Override\n\tpublic void parse(Buffer b) {\n\t\t\n\t}", "@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}", "public abstract void a(b paramb, int paramInt1, int paramInt2);", "public void mo1945a(byte b) throws cf {\r\n m10263b(b);\r\n }", "void mo83703a(C32456b<T> bVar);", "public void a(String str) {\n ((b.b) this.b).d(str);\n }", "public void selectB() { }", "BOperation createBOperation();", "void metodo1(int a, int b) {\r\n\t\ta += 5;//par\\u00e1metro con el mismo nombre que el campo.\r\n\t\tb += 7;\r\n\t}", "private static void m2196a(StringBuffer stringBuffer, byte b) {\n stringBuffer.append(\"0123456789ABCDEF\".charAt((b >> 4) & 15)).append(\"0123456789ABCDEF\".charAt(b & 15));\n }", "public interface C1799a {\n /* renamed from: b */\n void mo3314b(String str);\n }", "public void b(fv paramfv)\r\n/* 408: */ {\r\n/* 409:423 */ this.a = new amj[36];\r\n/* 410:424 */ this.b = new amj[4];\r\n/* 411:425 */ for (int i = 0; i < paramfv.c(); i++)\r\n/* 412: */ {\r\n/* 413:426 */ fn localfn = paramfv.b(i);\r\n/* 414:427 */ int j = localfn.d(\"Slot\") & 0xFF;\r\n/* 415:428 */ amj localamj = amj.a(localfn);\r\n/* 416:429 */ if (localamj != null)\r\n/* 417: */ {\r\n/* 418:430 */ if ((j >= 0) && (j < this.a.length)) {\r\n/* 419:431 */ this.a[j] = localamj;\r\n/* 420: */ }\r\n/* 421:433 */ if ((j >= 100) && (j < this.b.length + 100)) {\r\n/* 422:434 */ this.b[(j - 100)] = localamj;\r\n/* 423: */ }\r\n/* 424: */ }\r\n/* 425: */ }\r\n/* 426: */ }", "public void b(String str) {\n ((b.b) this.b).e(str);\n }", "public String b()\r\n/* 35: */ {\r\n/* 36:179 */ return a();\r\n/* 37: */ }", "public abstract void zza(B b, int i, T t);", "public Item b(World paramaqu, BlockPosition paramdt)\r\n/* 189: */ {\r\n/* 190:220 */ return null;\r\n/* 191: */ }", "public abstract void zza(B b, int i, long j);", "public interface C5101b {\n /* renamed from: a */\n void mo5289a(C5102c c5102c);\n\n /* renamed from: b */\n void mo5290b(C5102c c5102c);\n}", "private interface C0257a {\n /* renamed from: a */\n float mo196a(ViewGroup viewGroup, View view);\n\n /* renamed from: b */\n float mo195b(ViewGroup viewGroup, View view);\n }", "public abstract void mo9798a(byte b);", "public void mo9798a(byte b) {\n if (this.f9108f == this.f9107e) {\n mo9827i();\n }\n byte[] bArr = this.f9106d;\n int i = this.f9108f;\n this.f9108f = i + 1;\n bArr[i] = b;\n this.f9109g++;\n }", "public interface C1234b {\r\n /* renamed from: a */\r\n void m8367a();\r\n\r\n /* renamed from: b */\r\n void m8368b();\r\n}", "private void m676a(TField bkVar, byte b) {\n if (b == -1) {\n b = m687e(bkVar.f538b);\n }\n short s = bkVar.f539c;\n short s2 = this.f519n;\n if (s <= s2 || s - s2 > 15) {\n m678b(b);\n mo446a(bkVar.f539c);\n } else {\n m686d(b | ((s - s2) << 4));\n }\n this.f519n = bkVar.f539c;\n }", "private static void m831a(C0741g<?> gVar, C0747b bVar) {\n gVar.mo9477a(C0743i.f718b, (C0739e<? super Object>) bVar);\n gVar.mo9476a(C0743i.f718b, (C0738d) bVar);\n gVar.mo9474a(C0743i.f718b, (C0736b) bVar);\n }", "public interface C40453c {\n /* renamed from: a */\n void mo100442a(C40429b bVar);\n\n /* renamed from: a */\n void mo100443a(List<String> list);\n\n /* renamed from: b */\n void mo100444b(List<C40429b> list);\n}", "private void j()\n/* */ {\n/* 223 */ c localc = this.b;\n/* 224 */ this.b = this.c;\n/* 225 */ this.c = localc;\n/* 226 */ this.c.b();\n/* */ }", "public lj ar(byte b) {\n throw new Runtime(\"d2j fail translate: java.lang.RuntimeException: can not merge I and Z\\r\\n\\tat com.googlecode.dex2jar.ir.TypeClass.merge(TypeClass.java:100)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeRef.updateTypeClass(TypeTransformer.java:174)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.provideAs(TypeTransformer.java:780)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.e1expr(TypeTransformer.java:496)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.exExpr(TypeTransformer.java:713)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.exExpr(TypeTransformer.java:703)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.enexpr(TypeTransformer.java:698)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.exExpr(TypeTransformer.java:719)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.exExpr(TypeTransformer.java:703)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.s1stmt(TypeTransformer.java:810)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.sxStmt(TypeTransformer.java:840)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.analyze(TypeTransformer.java:206)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer.transform(TypeTransformer.java:44)\\r\\n\\tat com.googlecode.d2j.dex.Dex2jar$2.optimize(Dex2jar.java:162)\\r\\n\\tat com.googlecode.d2j.dex.Dex2Asm.convertCode(Dex2Asm.java:414)\\r\\n\\tat com.googlecode.d2j.dex.ExDex2Asm.convertCode(ExDex2Asm.java:42)\\r\\n\\tat com.googlecode.d2j.dex.Dex2jar$2.convertCode(Dex2jar.java:128)\\r\\n\\tat com.googlecode.d2j.dex.Dex2Asm.convertMethod(Dex2Asm.java:509)\\r\\n\\tat com.googlecode.d2j.dex.Dex2Asm.convertClass(Dex2Asm.java:406)\\r\\n\\tat com.googlecode.d2j.dex.Dex2Asm.convertDex(Dex2Asm.java:422)\\r\\n\\tat com.googlecode.d2j.dex.Dex2jar.doTranslate(Dex2jar.java:172)\\r\\n\\tat com.googlecode.d2j.dex.Dex2jar.to(Dex2jar.java:272)\\r\\n\\tat com.googlecode.dex2jar.tools.Dex2jarCmd.doCommandLine(Dex2jarCmd.java:108)\\r\\n\\tat com.googlecode.dex2jar.tools.BaseCmd.doMain(BaseCmd.java:288)\\r\\n\\tat com.googlecode.dex2jar.tools.Dex2jarCmd.main(Dex2jarCmd.java:32)\\r\\n\");\n }", "public interface AbstractC10485b {\n /* renamed from: a */\n void mo64153a(boolean z);\n }", "public interface C40108b {\n /* renamed from: a */\n void mo99838a(boolean z);\n }", "interface C8361a {\n /* renamed from: b */\n float mo18284b(ViewGroup viewGroup, View view);\n\n /* renamed from: c */\n float mo18281c(ViewGroup viewGroup, View view);\n }" ]
[ "0.64558864", "0.6283203", "0.6252635", "0.6250949", "0.6244743", "0.6216273", "0.6194491", "0.6193556", "0.61641675", "0.6140157", "0.60993093", "0.60974354", "0.6077849", "0.6001867", "0.5997364", "0.59737104", "0.59737104", "0.5905105", "0.5904295", "0.58908087", "0.5886636", "0.58828026", "0.5855491", "0.584618", "0.5842517", "0.5824137", "0.5824071", "0.58097327", "0.5802052", "0.58012927", "0.579443", "0.5792392", "0.57902914", "0.5785124", "0.57718205", "0.57589084", "0.5735892", "0.5735892", "0.5734873", "0.5727929", "0.5720821", "0.5712531", "0.5706813", "0.56896514", "0.56543154", "0.5651059", "0.5649904", "0.56496733", "0.5647035", "0.5640965", "0.5640109", "0.563993", "0.5631903", "0.5597427", "0.55843794", "0.5583287", "0.557783", "0.55734867", "0.55733293", "0.5572254", "0.55683887", "0.55624336", "0.55540246", "0.5553985", "0.55480546", "0.554261", "0.5535739", "0.5529958", "0.5519634", "0.5517503", "0.55160624", "0.5511545", "0.5505353", "0.5500533", "0.5491741", "0.5486198", "0.5481978", "0.547701", "0.54725856", "0.5471632", "0.5463497", "0.5460805", "0.5454913", "0.5454885", "0.54519916", "0.5441594", "0.5436747", "0.5432453", "0.5425923", "0.5424724", "0.54189867", "0.54162544", "0.54051477", "0.53998184", "0.53945845", "0.53887725", "0.5388146", "0.5387678", "0.53858143", "0.53850687", "0.5384439" ]
0.0
-1
/ renamed from: b
void mo16690b(T t, T t2);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void mo2508a(bxb bxb);", "@Override\n public void func_104112_b() {\n \n }", "@Override\n public void b() {\n }", "public interface C19351a {\n /* renamed from: b */\n void mo30633b(int i, String str, byte[] bArr);\n }", "@Override\n\tpublic void b2() {\n\t\t\n\t}", "void metodo1(int a, int[] b) {\r\n\t\ta += 5;//Par\\u00e1metro con el mismo nombre que el campo de la clase.\r\n\t\tb[0] += 7;//se produce un env\\u00edo por referencia, apunta a una copia de un objeto, que se asigna aqu\\u00ed.\r\n\t}", "interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}", "@Override\n\tpublic void b() {\n\n\t}", "interface C30585a {\n /* renamed from: b */\n void mo27952b(C5379a c5379a, int i, C46650a c46650a, C7620bi c7620bi);\n }", "public bb b() {\n return a(this.a);\n }", "@Override\n\tpublic void b1() {\n\t\t\n\t}", "public void b() {\r\n }", "@Override\n\tpublic void bbb() {\n\t\t\n\t}", "public interface C34379a {\n /* renamed from: a */\n void mo46242a(bmc bmc);\n }", "public abstract void b(StringBuilder sb);", "public void b() {\n }", "public void b() {\n }", "protected b(int mb) {\n/* 87 */ this.b = mb;\n/* */ }", "public u(b paramb)\r\n/* 7: */ {\r\n/* 8: 9 */ this.a = paramb;\r\n/* 9: */ }", "public interface b {\n void H_();\n\n void I_();\n\n void J_();\n\n void a(C0063d dVar);\n\n void a(byte[] bArr);\n\n void b(boolean z);\n }", "public b[] a() {\n/* 95 */ return this.a;\n/* */ }", "public interface C7654b {\n /* renamed from: a */\n C7904c mo24084a();\n\n /* renamed from: b */\n C7716a mo24085b();\n }", "public interface C1153a {\n /* renamed from: a */\n void mo4520a(byte[] bArr);\n }", "public interface C43499b {\n /* renamed from: a */\n void mo8445a(int i, String str, int i2, byte[] bArr);\n}", "public void b() {\n ((a) this.a).b();\n }", "public np a()\r\n/* 33: */ {\r\n/* 34:49 */ return this.b;\r\n/* 35: */ }", "b(a aVar) {\n super(0);\n this.this$0 = aVar;\n }", "public t b() {\n return a(this.a);\n }", "public interface C32456b<T> {\n /* renamed from: a */\n void mo83696a(T t);\n }", "public static String a(int c) {\n/* 89 */ return b.a(c);\n/* */ }", "private void m678b(byte b) {\n byte[] bArr = this.f523r;\n bArr[0] = b;\n this.f552g.mo502b(bArr);\n }", "public interface C23407b {\n /* renamed from: a */\n void mo60892a();\n\n /* renamed from: b */\n void mo60893b();\n }", "public abstract T zzm(B b);", "public b a()\r\n/* 12: */ {\r\n/* 13:13 */ return this.a;\r\n/* 14: */ }", "public void b(World paramaqu, BlockPosition paramdt, Block parambec)\r\n/* 27: */ {\r\n/* 28: 47 */ bcm localbcm = paramaqu.s(paramdt);\r\n/* 29: 48 */ if ((localbcm instanceof bdv)) {\r\n/* 30: 49 */ ((bdv)localbcm).h();\r\n/* 31: */ } else {\r\n/* 32: 51 */ super.b(paramaqu, paramdt, parambec);\r\n/* 33: */ }\r\n/* 34: */ }", "public abstract void zzc(B b, int i, int i2);", "public interface b {\n}", "public interface b {\n}", "private void m10263b(byte b) throws cf {\r\n this.f6483r[0] = b;\r\n this.g.m10347b(this.f6483r);\r\n }", "BSubstitution createBSubstitution();", "public void b(ahd paramahd) {}", "void b();", "public interface C18928d {\n /* renamed from: a */\n void mo50320a(C18924b bVar);\n\n /* renamed from: b */\n void mo50321b(C18924b bVar);\n}", "B database(S database);", "public interface C0615ja extends b<HomeFragment> {\n\n /* renamed from: c.c.a.h.b.ja$a */\n /* compiled from: FragmentModule_HomeFragment$app_bazaarRelease */\n public static abstract class a extends b.a<HomeFragment> {\n }\n}", "public abstract C0631bt mo9227aB();", "public an b() {\n return a(this.a);\n }", "protected abstract void a(bru parambru);", "static void go(Base b) {\n\t\tb.add(8);\n\t}", "void mo46242a(bmc bmc);", "public interface b extends c {\n void a(Float f);\n\n void a(Integer num);\n\n void b(Float f);\n\n void c(Float f);\n\n String d();\n\n void d(Float f);\n\n void d(String str);\n\n void e(Float f);\n\n void e(String str);\n\n void f(String str);\n\n void g(String str);\n\n Long j();\n\n LineChart k();\n }", "public interface bca extends bbn {\n bca a();\n\n bca a(String str);\n\n bca b(String str);\n\n bca c(String str);\n}", "public interface a extends com.bankeen.d.b.b.a {\n void a();\n\n void b();\n }", "public abstract BoundType b();", "public void b(amj paramamj)\r\n/* 538: */ {\r\n/* 539:579 */ this.f = paramamj;\r\n/* 540: */ }", "b(a aVar, com.bytedance.jedi.model.h.a aVar2) {\n super(aVar2);\n this.f21531a = aVar;\n this.f21532b = new com.bytedance.jedi.model.h.f(aVar);\n }", "private void b(int paramInt)\r\n/* 193: */ {\r\n/* 194:203 */ this.h.a(a(paramInt));\r\n/* 195: */ }", "public void b(ahb paramahb)\r\n/* 583: */ {\r\n/* 584:625 */ for (int i = 0; i < this.a.length; i++) {\r\n/* 585:626 */ this.a[i] = amj.b(paramahb.a[i]);\r\n/* 586: */ }\r\n/* 587:628 */ for (i = 0; i < this.b.length; i++) {\r\n/* 588:629 */ this.b[i] = amj.b(paramahb.b[i]);\r\n/* 589: */ }\r\n/* 590:631 */ this.c = paramahb.c;\r\n/* 591: */ }", "interface b {\n\n /* compiled from: CreditAccountContract */\n public interface a extends com.bankeen.d.b.b.a {\n void a();\n\n void b();\n }\n\n /* compiled from: CreditAccountContract */\n public interface b extends c {\n void a(Float f);\n\n void a(Integer num);\n\n void b(Float f);\n\n void c(Float f);\n\n String d();\n\n void d(Float f);\n\n void d(String str);\n\n void e(Float f);\n\n void e(String str);\n\n void f(String str);\n\n void g(String str);\n\n Long j();\n\n LineChart k();\n }\n}", "@Override\n\tpublic void visit(PartB partB) {\n\n\t}", "public abstract void zzb(B b, int i, long j);", "public abstract void zza(B b, int i, zzeh zzeh);", "int metodo2(int a, int b) {\r\n\r\n\t\tthis.a += 5; // se modifica el campo del objeto, el uso de la palabra reservada this se utiliza para referenciar al campo.\r\n\t\tb += 7;\r\n\t\treturn a; // modifica en la asignaci\\u00f3n\r\n\t}", "private void internalCopy(Board b) {\n for (int i = 0; i < SIDE * SIDE; i += 1) {\n set(i, b.get(i));\n }\n\n _directions = b._directions;\n _whoseMove = b._whoseMove;\n _history = b._history;\n }", "public int b()\r\n/* 69: */ {\r\n/* 70:74 */ return this.b;\r\n/* 71: */ }", "public void b(StringBuilder sb) {\n sb.append(this.a);\n sb.append(')');\n }", "public void b() {\n e$a e$a;\n try {\n e$a = this.b;\n }\n catch (IOException iOException) {\n return;\n }\n Object object = this.c;\n e$a.b(object);\n }", "public abstract void a(StringBuilder sb);", "public interface C45101e {\n /* renamed from: b */\n void mo3796b(int i);\n}", "public abstract void zzf(Object obj, B b);", "public interface bdp {\n\n /* renamed from: a */\n public static final bdp f3422a = new bdo();\n\n /* renamed from: a */\n bdm mo1784a(akh akh);\n}", "@Override\n\tpublic void parse(Buffer b) {\n\t\t\n\t}", "@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}", "public abstract void a(b paramb, int paramInt1, int paramInt2);", "public void mo1945a(byte b) throws cf {\r\n m10263b(b);\r\n }", "void mo83703a(C32456b<T> bVar);", "public void a(String str) {\n ((b.b) this.b).d(str);\n }", "public void selectB() { }", "BOperation createBOperation();", "void metodo1(int a, int b) {\r\n\t\ta += 5;//par\\u00e1metro con el mismo nombre que el campo.\r\n\t\tb += 7;\r\n\t}", "private static void m2196a(StringBuffer stringBuffer, byte b) {\n stringBuffer.append(\"0123456789ABCDEF\".charAt((b >> 4) & 15)).append(\"0123456789ABCDEF\".charAt(b & 15));\n }", "public interface C1799a {\n /* renamed from: b */\n void mo3314b(String str);\n }", "public void b(fv paramfv)\r\n/* 408: */ {\r\n/* 409:423 */ this.a = new amj[36];\r\n/* 410:424 */ this.b = new amj[4];\r\n/* 411:425 */ for (int i = 0; i < paramfv.c(); i++)\r\n/* 412: */ {\r\n/* 413:426 */ fn localfn = paramfv.b(i);\r\n/* 414:427 */ int j = localfn.d(\"Slot\") & 0xFF;\r\n/* 415:428 */ amj localamj = amj.a(localfn);\r\n/* 416:429 */ if (localamj != null)\r\n/* 417: */ {\r\n/* 418:430 */ if ((j >= 0) && (j < this.a.length)) {\r\n/* 419:431 */ this.a[j] = localamj;\r\n/* 420: */ }\r\n/* 421:433 */ if ((j >= 100) && (j < this.b.length + 100)) {\r\n/* 422:434 */ this.b[(j - 100)] = localamj;\r\n/* 423: */ }\r\n/* 424: */ }\r\n/* 425: */ }\r\n/* 426: */ }", "public void b(String str) {\n ((b.b) this.b).e(str);\n }", "public String b()\r\n/* 35: */ {\r\n/* 36:179 */ return a();\r\n/* 37: */ }", "public abstract void zza(B b, int i, T t);", "public Item b(World paramaqu, BlockPosition paramdt)\r\n/* 189: */ {\r\n/* 190:220 */ return null;\r\n/* 191: */ }", "public abstract void zza(B b, int i, long j);", "public interface C5101b {\n /* renamed from: a */\n void mo5289a(C5102c c5102c);\n\n /* renamed from: b */\n void mo5290b(C5102c c5102c);\n}", "private interface C0257a {\n /* renamed from: a */\n float mo196a(ViewGroup viewGroup, View view);\n\n /* renamed from: b */\n float mo195b(ViewGroup viewGroup, View view);\n }", "public abstract void mo9798a(byte b);", "public void mo9798a(byte b) {\n if (this.f9108f == this.f9107e) {\n mo9827i();\n }\n byte[] bArr = this.f9106d;\n int i = this.f9108f;\n this.f9108f = i + 1;\n bArr[i] = b;\n this.f9109g++;\n }", "public interface C1234b {\r\n /* renamed from: a */\r\n void m8367a();\r\n\r\n /* renamed from: b */\r\n void m8368b();\r\n}", "private void m676a(TField bkVar, byte b) {\n if (b == -1) {\n b = m687e(bkVar.f538b);\n }\n short s = bkVar.f539c;\n short s2 = this.f519n;\n if (s <= s2 || s - s2 > 15) {\n m678b(b);\n mo446a(bkVar.f539c);\n } else {\n m686d(b | ((s - s2) << 4));\n }\n this.f519n = bkVar.f539c;\n }", "private static void m831a(C0741g<?> gVar, C0747b bVar) {\n gVar.mo9477a(C0743i.f718b, (C0739e<? super Object>) bVar);\n gVar.mo9476a(C0743i.f718b, (C0738d) bVar);\n gVar.mo9474a(C0743i.f718b, (C0736b) bVar);\n }", "public interface C40453c {\n /* renamed from: a */\n void mo100442a(C40429b bVar);\n\n /* renamed from: a */\n void mo100443a(List<String> list);\n\n /* renamed from: b */\n void mo100444b(List<C40429b> list);\n}", "private void j()\n/* */ {\n/* 223 */ c localc = this.b;\n/* 224 */ this.b = this.c;\n/* 225 */ this.c = localc;\n/* 226 */ this.c.b();\n/* */ }", "public lj ar(byte b) {\n throw new Runtime(\"d2j fail translate: java.lang.RuntimeException: can not merge I and Z\\r\\n\\tat com.googlecode.dex2jar.ir.TypeClass.merge(TypeClass.java:100)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeRef.updateTypeClass(TypeTransformer.java:174)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.provideAs(TypeTransformer.java:780)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.e1expr(TypeTransformer.java:496)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.exExpr(TypeTransformer.java:713)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.exExpr(TypeTransformer.java:703)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.enexpr(TypeTransformer.java:698)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.exExpr(TypeTransformer.java:719)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.exExpr(TypeTransformer.java:703)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.s1stmt(TypeTransformer.java:810)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.sxStmt(TypeTransformer.java:840)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.analyze(TypeTransformer.java:206)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer.transform(TypeTransformer.java:44)\\r\\n\\tat com.googlecode.d2j.dex.Dex2jar$2.optimize(Dex2jar.java:162)\\r\\n\\tat com.googlecode.d2j.dex.Dex2Asm.convertCode(Dex2Asm.java:414)\\r\\n\\tat com.googlecode.d2j.dex.ExDex2Asm.convertCode(ExDex2Asm.java:42)\\r\\n\\tat com.googlecode.d2j.dex.Dex2jar$2.convertCode(Dex2jar.java:128)\\r\\n\\tat com.googlecode.d2j.dex.Dex2Asm.convertMethod(Dex2Asm.java:509)\\r\\n\\tat com.googlecode.d2j.dex.Dex2Asm.convertClass(Dex2Asm.java:406)\\r\\n\\tat com.googlecode.d2j.dex.Dex2Asm.convertDex(Dex2Asm.java:422)\\r\\n\\tat com.googlecode.d2j.dex.Dex2jar.doTranslate(Dex2jar.java:172)\\r\\n\\tat com.googlecode.d2j.dex.Dex2jar.to(Dex2jar.java:272)\\r\\n\\tat com.googlecode.dex2jar.tools.Dex2jarCmd.doCommandLine(Dex2jarCmd.java:108)\\r\\n\\tat com.googlecode.dex2jar.tools.BaseCmd.doMain(BaseCmd.java:288)\\r\\n\\tat com.googlecode.dex2jar.tools.Dex2jarCmd.main(Dex2jarCmd.java:32)\\r\\n\");\n }", "public interface AbstractC10485b {\n /* renamed from: a */\n void mo64153a(boolean z);\n }", "public interface C40108b {\n /* renamed from: a */\n void mo99838a(boolean z);\n }", "interface C8361a {\n /* renamed from: b */\n float mo18284b(ViewGroup viewGroup, View view);\n\n /* renamed from: c */\n float mo18281c(ViewGroup viewGroup, View view);\n }" ]
[ "0.64558864", "0.6283203", "0.6252635", "0.6250949", "0.6244743", "0.6216273", "0.6194491", "0.6193556", "0.61641675", "0.6140157", "0.60993093", "0.60974354", "0.6077849", "0.6001867", "0.5997364", "0.59737104", "0.59737104", "0.5905105", "0.5904295", "0.58908087", "0.5886636", "0.58828026", "0.5855491", "0.584618", "0.5842517", "0.5824137", "0.5824071", "0.58097327", "0.5802052", "0.58012927", "0.579443", "0.5792392", "0.57902914", "0.5785124", "0.57718205", "0.57589084", "0.5735892", "0.5735892", "0.5734873", "0.5727929", "0.5720821", "0.5712531", "0.5706813", "0.56896514", "0.56543154", "0.5651059", "0.5649904", "0.56496733", "0.5647035", "0.5640965", "0.5640109", "0.563993", "0.5631903", "0.5597427", "0.55843794", "0.5583287", "0.557783", "0.55734867", "0.55733293", "0.5572254", "0.55683887", "0.55624336", "0.55540246", "0.5553985", "0.55480546", "0.554261", "0.5535739", "0.5529958", "0.5519634", "0.5517503", "0.55160624", "0.5511545", "0.5505353", "0.5500533", "0.5491741", "0.5486198", "0.5481978", "0.547701", "0.54725856", "0.5471632", "0.5463497", "0.5460805", "0.5454913", "0.5454885", "0.54519916", "0.5441594", "0.5436747", "0.5432453", "0.5425923", "0.5424724", "0.54189867", "0.54162544", "0.54051477", "0.53998184", "0.53945845", "0.53887725", "0.5388146", "0.5387678", "0.53858143", "0.53850687", "0.5384439" ]
0.0
-1
/ renamed from: c
void mo16691c(T t);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void mo5289a(C5102c c5102c);", "public static void c0() {\n\t}", "void mo57278c();", "private static void cajas() {\n\t\t\n\t}", "void mo5290b(C5102c c5102c);", "void mo80457c();", "void mo12638c();", "void mo28717a(zzc zzc);", "void mo21072c();", "@Override\n\tpublic void ccc() {\n\t\t\n\t}", "public void c() {\n }", "void mo17012c();", "C2451d mo3408a(C2457e c2457e);", "void mo88524c();", "void mo86a(C0163d c0163d);", "void mo17021c();", "public abstract void mo53562a(C18796a c18796a);", "void mo4874b(C4718l c4718l);", "void mo4873a(C4718l c4718l);", "C12017a mo41088c();", "public abstract void mo70702a(C30989b c30989b);", "void mo72114c();", "public void mo12628c() {\n }", "C2841w mo7234g();", "public interface C0335c {\n }", "public void mo1403c() {\n }", "public static void c3() {\n\t}", "public static void c1() {\n\t}", "void mo8712a(C9714a c9714a);", "void mo67924c();", "public void mo97906c() {\n }", "public abstract void mo27385c();", "String mo20731c();", "public int c()\r\n/* 74: */ {\r\n/* 75:78 */ return this.c;\r\n/* 76: */ }", "public interface C0939c {\n }", "void mo1582a(String str, C1329do c1329do);", "void mo304a(C0366h c0366h);", "void mo1493c();", "private String getString(byte c) {\n\t\treturn c==1? \"$ \": \" \";\n\t}", "java.lang.String getC3();", "C45321i mo90380a();", "public interface C11910c {\n}", "void mo57277b();", "String mo38972c();", "static int type_of_cnc(String passed){\n\t\treturn 1;\n\t}", "public static void CC2_1() {\n\t}", "static int type_of_cc(String passed){\n\t\treturn 1;\n\t}", "public interface C7654b {\n /* renamed from: a */\n C7904c mo24084a();\n\n /* renamed from: b */\n C7716a mo24085b();\n }", "public void mo56167c() {\n }", "public interface C0136c {\n }", "private void kk12() {\n\n\t}", "abstract String mo1748c();", "public interface C0303q extends C0291e {\n /* renamed from: a */\n void mo1747a(int i);\n\n /* renamed from: a */\n void mo1749a(C0288c cVar);\n\n /* renamed from: a */\n void mo1751a(byte[] bArr);\n\n /* renamed from: b */\n void mo1753b(int i);\n\n /* renamed from: c */\n void mo1754c(int i);\n\n /* renamed from: d */\n void mo1755d(int i);\n\n /* renamed from: e */\n int mo1756e(int i);\n\n /* renamed from: g */\n int mo1760g();\n\n /* renamed from: g */\n void mo1761g(int i);\n\n /* renamed from: h */\n void mo1763h(int i);\n}", "public abstract void mo70710a(String str, C24343db c24343db);", "C3577c mo19678C();", "public abstract int c();", "public abstract int c();", "public final void mo11687c() {\n }", "byte mo30283c();", "private java.lang.String c(java.lang.String r7) {\n /*\n r6 = this;\n r2 = \"\";\n r0 = r6.e;\t Catch:{ FileNotFoundException -> 0x0052 }\n if (r0 == 0) goto L_0x0050;\n L_0x0006:\n r0 = new java.lang.StringBuilder;\t Catch:{ FileNotFoundException -> 0x0052 }\n r1 = java.lang.String.valueOf(r7);\t Catch:{ FileNotFoundException -> 0x0052 }\n r0.<init>(r1);\t Catch:{ FileNotFoundException -> 0x0052 }\n r1 = \".\";\n r0 = r0.append(r1);\t Catch:{ FileNotFoundException -> 0x0052 }\n r1 = r6.e;\t Catch:{ FileNotFoundException -> 0x0052 }\n r0 = r0.append(r1);\t Catch:{ FileNotFoundException -> 0x0052 }\n r0 = r0.toString();\t Catch:{ FileNotFoundException -> 0x0052 }\n L_0x001f:\n r1 = r6.d;\t Catch:{ FileNotFoundException -> 0x0052 }\n r1 = r1.openFileInput(r0);\t Catch:{ FileNotFoundException -> 0x0052 }\n L_0x0025:\n r3 = new java.io.BufferedReader;\n r4 = new java.io.InputStreamReader;\n r0 = r1;\n r0 = (java.io.InputStream) r0;\n r5 = \"UTF-8\";\n r5 = java.nio.charset.Charset.forName(r5);\n r4.<init>(r0, r5);\n r3.<init>(r4);\n r0 = new java.lang.StringBuffer;\n r0.<init>();\n L_0x003d:\n r4 = r3.readLine();\t Catch:{ IOException -> 0x0065, all -> 0x0073 }\n if (r4 != 0) goto L_0x0061;\n L_0x0043:\n r0 = r0.toString();\t Catch:{ IOException -> 0x0065, all -> 0x0073 }\n r1 = (java.io.InputStream) r1;\t Catch:{ IOException -> 0x007d }\n r1.close();\t Catch:{ IOException -> 0x007d }\n r3.close();\t Catch:{ IOException -> 0x007d }\n L_0x004f:\n return r0;\n L_0x0050:\n r0 = r7;\n goto L_0x001f;\n L_0x0052:\n r0 = move-exception;\n r0 = r6.d;\t Catch:{ IOException -> 0x005e }\n r0 = r0.getAssets();\t Catch:{ IOException -> 0x005e }\n r1 = r0.open(r7);\t Catch:{ IOException -> 0x005e }\n goto L_0x0025;\n L_0x005e:\n r0 = move-exception;\n r0 = r2;\n goto L_0x004f;\n L_0x0061:\n r0.append(r4);\t Catch:{ IOException -> 0x0065, all -> 0x0073 }\n goto L_0x003d;\n L_0x0065:\n r0 = move-exception;\n r1 = (java.io.InputStream) r1;\t Catch:{ IOException -> 0x0070 }\n r1.close();\t Catch:{ IOException -> 0x0070 }\n r3.close();\t Catch:{ IOException -> 0x0070 }\n r0 = r2;\n goto L_0x004f;\n L_0x0070:\n r0 = move-exception;\n r0 = r2;\n goto L_0x004f;\n L_0x0073:\n r0 = move-exception;\n r1 = (java.io.InputStream) r1;\t Catch:{ IOException -> 0x007f }\n r1.close();\t Catch:{ IOException -> 0x007f }\n r3.close();\t Catch:{ IOException -> 0x007f }\n L_0x007c:\n throw r0;\n L_0x007d:\n r1 = move-exception;\n goto L_0x004f;\n L_0x007f:\n r1 = move-exception;\n goto L_0x007c;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.tencent.a.b.b.c(java.lang.String):java.lang.String\");\n }", "@Override\n\tpublic void compile(CodeBlock c, CompilerEnvironment environment) {\n\n\t}", "public interface C3196it extends C3208jc {\n /* renamed from: a */\n void mo30275a(long j);\n\n /* renamed from: b */\n C3197iu mo30281b(long j);\n\n /* renamed from: b */\n boolean mo30282b();\n\n /* renamed from: c */\n byte mo30283c();\n\n /* renamed from: c */\n String mo30285c(long j);\n\n /* renamed from: d */\n void mo30290d(long j);\n\n /* renamed from: e */\n int mo30291e();\n\n /* renamed from: f */\n long mo30295f();\n}", "public static void mmcc() {\n\t}", "java.lang.String getCit();", "public abstract C mo29734a();", "C15430g mo56154a();", "void mo41086b();", "@Override\n public void func_104112_b() {\n \n }", "public abstract String mo11611b();", "public interface C9223b {\n }", "void mo27952b(C5379a c5379a, int i, C46650a c46650a, C7620bi c7620bi);", "String getCmt();", "interface C30585a {\n /* renamed from: b */\n void mo27952b(C5379a c5379a, int i, C46650a c46650a, C7620bi c7620bi);\n }", "interface C2578d {\n}", "public interface C1803l extends C1813t {\n /* renamed from: b */\n C1803l mo7382b(C2778au auVar);\n\n /* renamed from: f */\n List<C1700ar> mo7233f();\n\n /* renamed from: g */\n C2841w mo7234g();\n\n /* renamed from: q */\n C1800i mo7384q();\n}", "double fFromC(double c) {\n return (c * 9 / 5) + 32;\n }", "void mo72113b();", "public interface C0764b {\n}", "void mo1749a(C0288c cVar);", "void mo41083a();", "String[] mo1153c();", "C1458cs mo7613iS();", "public interface C0333a {\n }", "public abstract int mo41077c();", "public interface C8843g {\n}", "public abstract void mo70709a(String str, C41018cm c41018cm);", "void mo28307a(zzgd zzgd);", "public static void mcdc() {\n\t}", "public interface C2459d {\n /* renamed from: a */\n C2451d mo3408a(C2457e c2457e);\n}", "C1435c mo1754a(C1433a c1433a, C1434b c1434b);", "public interface C0389gj extends C0388gi {\n}", "C5727e mo33224a();", "C12000e mo41087c(String str);", "public abstract String mo118046b();", "public interface C11113o {\n /* renamed from: a */\n void mo37759a(String str);\n }", "public interface C0938b {\n }", "void mo80455b();", "public interface C0385a {\n }", "public interface C5527c {\n /* renamed from: a */\n int mo4095a(int i);\n\n /* renamed from: b */\n C5537g mo4096b(int i);\n}", "public interface C32231g {\n /* renamed from: a */\n void mo8280a(int i, int i2, C1207m c1207m);\n}", "public interface C11994b {\n /* renamed from: a */\n C11996a mo41079a(String str);\n\n /* renamed from: a */\n C11996a mo41080a(String str, C11997b bVar, String... strArr);\n\n /* renamed from: a */\n C11998c mo41081a(String str, C11999d dVar, String... strArr);\n\n /* renamed from: a */\n C12000e mo41082a(String str, C12001f fVar, String... strArr);\n\n /* renamed from: a */\n void mo41083a();\n\n /* renamed from: a */\n void mo41084a(C12018b bVar, ConnectionState... connectionStateArr);\n\n /* renamed from: b */\n C11996a mo41085b(String str);\n\n /* renamed from: b */\n void mo41086b();\n\n /* renamed from: c */\n C12000e mo41087c(String str);\n\n /* renamed from: c */\n C12017a mo41088c();\n\n /* renamed from: d */\n void mo41089d(String str);\n\n /* renamed from: e */\n C11998c mo41090e(String str);\n\n /* renamed from: f */\n C12000e mo41091f(String str);\n\n /* renamed from: g */\n C11998c mo41092g(String str);\n}" ]
[ "0.64591914", "0.6440394", "0.64304763", "0.64169085", "0.64117986", "0.6396691", "0.625008", "0.6246554", "0.62438184", "0.62318844", "0.61891645", "0.6165131", "0.6152563", "0.61487406", "0.6138327", "0.613623", "0.6130962", "0.61034465", "0.60980344", "0.6077121", "0.6061407", "0.60503274", "0.60479593", "0.60301375", "0.6026484", "0.60079914", "0.59965855", "0.5975918", "0.59559464", "0.5948297", "0.59368193", "0.59114563", "0.59034544", "0.5901453", "0.58829784", "0.5870883", "0.58654714", "0.5850356", "0.58187044", "0.58149314", "0.58012795", "0.57887626", "0.5785781", "0.5775517", "0.57612795", "0.5733095", "0.57316107", "0.57277685", "0.5722931", "0.57127535", "0.5707738", "0.5707596", "0.5697629", "0.56971806", "0.5691031", "0.5685937", "0.5685937", "0.5675658", "0.56754833", "0.565871", "0.5658353", "0.56570995", "0.5652934", "0.5651004", "0.56480724", "0.5641675", "0.5638254", "0.56378275", "0.5629865", "0.5629643", "0.5618571", "0.56153023", "0.56105924", "0.5595683", "0.558974", "0.5582368", "0.5580182", "0.55723506", "0.55723166", "0.55685776", "0.5566604", "0.5562614", "0.5558605", "0.5556048", "0.5552211", "0.5549061", "0.5547213", "0.5545458", "0.55385184", "0.55358976", "0.55303013", "0.55277544", "0.5518566", "0.55173403", "0.5516226", "0.5515025", "0.55140865", "0.5512393", "0.5508847", "0.5503615", "0.5497816" ]
0.0
-1
/ renamed from: d
boolean mo16692d(T t);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void d() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "public int d()\r\n/* 79: */ {\r\n/* 80:82 */ return this.d;\r\n/* 81: */ }", "public String d_()\r\n/* 445: */ {\r\n/* 446:459 */ return \"container.inventory\";\r\n/* 447: */ }", "public abstract int d();", "private void m2248a(double d, String str) {\n this.f2954c = d;\n this.f2955d = (long) d;\n this.f2953b = str;\n this.f2952a = ValueType.doubleValue;\n }", "public int d()\n {\n return 1;\n }", "public interface C19512d {\n /* renamed from: dd */\n void mo34676dd(int i, int i2);\n }", "void mo21073d();", "@Override\n public boolean d() {\n return false;\n }", "int getD();", "public void dor(){\n }", "public int getD() {\n\t\treturn d;\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 String getD() {\n return d;\n }", "@Override\n\tpublic void dibuja() {\n\t\t\n\t}", "public final void mo91715d() {\n }", "public D() {}", "void mo17013d();", "public int getD() {\n return d_;\n }", "void mo83705a(C32458d<T> dVar);", "public void d() {\n\t\tSystem.out.println(\"d method\");\n\t}", "double d();", "public float d()\r\n/* 15: */ {\r\n/* 16:163 */ return this.b;\r\n/* 17: */ }", "protected DNA(Population pop, DNA d) {\n\t\t// TODO: implement this\n\t}", "public ahb(ahd paramahd)\r\n/* 12: */ {\r\n/* 13: 36 */ this.d = paramahd;\r\n/* 14: */ }", "public abstract C17954dh<E> mo45842a();", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\n\tpublic void visitTdetree(Tdetree p) {\n\n\t}", "public abstract void mo56925d();", "void mo54435d();", "public void mo21779D() {\n }", "public void d() {\n this.f20599d.a(this.f20598c);\n this.f20598c.a(this);\n this.f20601f = new a(new d());\n d.a(this.f20596a, this.f20597b, this.f20601f);\n this.f20596a.setLayoutManager(new NPALinearLayoutManager(getContext()));\n ((s) this.f20596a.getItemAnimator()).setSupportsChangeAnimations(false);\n this.f20596a.setAdapter(this.f20601f);\n this.f20598c.a(this.f20602g);\n }", "@Override\r\n public String getStringRepresentation()\r\n {\r\n return \"D\";\r\n }", "void mo28307a(zzgd zzgd);", "List<String> d();", "d(l lVar, m mVar, b bVar) {\n super(mVar);\n this.f11484d = lVar;\n this.f11483c = bVar;\n }", "public int getD() {\n return d_;\n }", "public void addDField(String d){\n\t\tdfield.add(d);\n\t}", "public void mo3749d() {\n }", "public a dD() {\n return new a(this.HG);\n }", "public String amd_to_dma(java.sql.Date d)\n {\n String resp = \"\";\n if (d!=null)\n {\n String sdat = d.toString();\n String sano = sdat.substring(0,4);\n String smes = sdat.substring(5,7);\n String sdia = sdat.substring(8,10);\n resp = sdia+\"/\"+smes+\"/\"+sano;\n }\n return resp;\n }", "public void mo130970a(double d) {\n SinkDefaults.m149818a(this, d);\n }", "public abstract int getDx();", "public void mo97908d() {\n }", "public com.c.a.d.d d() {\n return this.k;\n }", "private static String toPsString(double d) {\n return \"(\" + d + \")\";\n }", "public boolean d() {\n return false;\n }", "void mo17023d();", "String dibujar();", "@Override\n\tpublic void setDurchmesser(int d) {\n\n\t}", "public void mo2470d() {\n }", "public abstract VH mo102583a(ViewGroup viewGroup, D d);", "public abstract String mo41079d();", "public void setD ( boolean d ) {\n\n\tthis.d = d;\n }", "public Dx getDx() {\n/* 32 */ return this.dx;\n/* */ }", "DoubleNode(int d) {\n\t data = d; }", "DD createDD();", "@java.lang.Override\n public float getD() {\n return d_;\n }", "public void setD(String d) {\n this.d = d == null ? null : d.trim();\n }", "public int d()\r\n {\r\n return 20;\r\n }", "float getD();", "public static int m22546b(double d) {\n return 8;\n }", "void mo12650d();", "String mo20732d();", "static void feladat4() {\n\t}", "void mo130799a(double d);", "public void mo2198g(C0317d dVar) {\n }", "@Override\n public void d(String TAG, String msg) {\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 void d(String str) {\n ((b.b) this.b).g(str);\n }", "public abstract void mo42329d();", "public abstract long mo9229aD();", "public abstract String getDnForPerson(String inum);", "public interface ddd {\n public String dan();\n\n}", "@Override\n public void func_104112_b() {\n \n }", "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 void mo5117a(C0371d c0371d, double d) {\n new C0369b(this, c0371d, d).start();\n }", "public interface C27442s {\n /* renamed from: d */\n List<EffectPointModel> mo70331d();\n}", "public final void m22595a(double d) {\n mo4383c(Double.doubleToRawLongBits(d));\n }", "public void d() {\n this.f23522d.a(this.f23521c);\n this.f23521c.a(this);\n this.i = new a();\n this.i.a(new ae(this.f23519a));\n this.f23519a.setAdapter(this.i);\n this.f23519a.setOnItemClickListener(this);\n this.f23521c.e();\n this.h.a(hashCode(), this.f23520b);\n }", "public Vector2d(double d) {\n\t\tthis.x = d;\n\t\tthis.y = d;\n\t}", "DomainHelper dh();", "private Pares(PLoc p, PLoc s, int d){\n\t\t\tprimero=p;\n\t\t\tsegundo=s;\n\t\t\tdistancia=d;\n\t\t}", "static double DEG_to_RAD(double d) {\n return d * Math.PI / 180.0;\n }", "@java.lang.Override\n public float getD() {\n return d_;\n }", "private final VH m112826b(ViewGroup viewGroup, D d) {\n return mo102583a(viewGroup, d);\n }", "public Double getDx();", "public void m25658a(double d) {\n if (d <= 0.0d) {\n d = 1.0d;\n }\n this.f19276f = (float) (50.0d / d);\n this.f19277g = new C4658a(this, this.f19273c);\n }", "boolean hasD();", "public abstract void mo27386d();", "MergedMDD() {\n }", "@ReflectiveMethod(name = \"d\", types = {})\n public void d(){\n NMSWrapper.getInstance().exec(nmsObject);\n }", "@Override\n public Chunk d(int i0, int i1) {\n return null;\n }", "public void d(World paramaqu, BlockPosition paramdt, Block parambec)\r\n/* 47: */ {\r\n/* 48: 68 */ BlockPosition localdt = paramdt.offset(((EnumDirection)parambec.getData(a)).opposite());\r\n/* 49: 69 */ Block localbec = paramaqu.getBlock(localdt);\r\n/* 50: 70 */ if (((localbec.getType() instanceof bdq)) && (((Boolean)localbec.getData(bdq.b)).booleanValue())) {\r\n/* 51: 71 */ paramaqu.g(localdt);\r\n/* 52: */ }\r\n/* 53: */ }", "double defendre();", "public static int setDimension( int d ) {\n int temp = DPoint.d;\n DPoint.d = d;\n return temp;\n }", "public Datum(Datum d) {\n this.dan = d.dan;\n this.mesec = d.mesec;\n this.godina = d.godina;\n }", "public Nodo (String d, Nodo n){\n\t\tdato = d;\n\t\tsiguiente=n;\n\t}" ]
[ "0.63810617", "0.616207", "0.6071929", "0.59959275", "0.5877492", "0.58719957", "0.5825175", "0.57585526", "0.5701679", "0.5661244", "0.5651699", "0.56362265", "0.562437", "0.5615328", "0.56114155", "0.56114155", "0.5605659", "0.56001145", "0.5589302", "0.5571578", "0.5559222", "0.5541367", "0.5534182", "0.55326", "0.550431", "0.55041796", "0.5500838", "0.54946786", "0.5475938", "0.5466879", "0.5449981", "0.5449007", "0.54464436", "0.5439673", "0.543565", "0.5430978", "0.5428843", "0.5423923", "0.542273", "0.541701", "0.5416963", "0.54093426", "0.53927654", "0.53906536", "0.53793144", "0.53732955", "0.53695524", "0.5366731", "0.53530186", "0.535299", "0.53408253", "0.5333639", "0.5326304", "0.53250664", "0.53214055", "0.53208005", "0.5316437", "0.53121597", "0.52979535", "0.52763224", "0.5270543", "0.526045", "0.5247397", "0.5244388", "0.5243049", "0.5241726", "0.5241194", "0.523402", "0.5232349", "0.5231111", "0.5230985", "0.5219358", "0.52145815", "0.5214168", "0.5209237", "0.52059376", "0.51952434", "0.5193699", "0.51873696", "0.5179743", "0.5178796", "0.51700175", "0.5164517", "0.51595956", "0.5158281", "0.51572365", "0.5156627", "0.5155795", "0.51548296", "0.51545656", "0.5154071", "0.51532024", "0.5151545", "0.5143571", "0.5142079", "0.5140048", "0.51377696", "0.5133826", "0.5128858", "0.5125679", "0.5121545" ]
0.0
-1
Returns a canonical Hash of the Json object, assuming the Json object is onedimensional.
protected Hash _hashJson(final Json json) { if (json.isArray()) { final String jsonString = json.toString(); final ByteArray jsonStringBytes = ByteArray.wrap(StringUtil.stringToBytes(jsonString)); return HashUtil.sha256(jsonStringBytes); } final MutableList<String> sortedKeys = new MutableList<String>(); sortedKeys.addAll(json.getKeys()); sortedKeys.sort(String::compareTo); final StringBuilder stringBuilder = new StringBuilder(); for (final String key : sortedKeys) { final String value = json.getString(key); stringBuilder.append(key); stringBuilder.append(":"); stringBuilder.append(value); } final String canonicalString = stringBuilder.toString(); final ByteArray jsonStringBytes = ByteArray.wrap(StringUtil.stringToBytes(canonicalString)); return HashUtil.sha256(jsonStringBytes); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private String getDigest(JSONArray json) {\n return json == null || json.toString() == null ? null : DigestUtils.sha256Hex(json.toString());\n }", "private String getDigest(JSONObject json) {\n return json == null || json.toString() == null ? null : DigestUtils.sha256Hex(json.toString());\n }", "public String calculateHash() throws JsonProcessingException {\n ObjectMapper mapper = new ObjectMapper();\n String data = \"\";\n data += previousHash +\n Long.toString(timeStamp) +\n Integer.toString(nonce) +\n merkleRoot;\n\n data += \"\\\"transactions\\\":\";\n data += mapper.writeValueAsString(transactions);\n return Hashing.applySha256(data);\n }", "@Override\r\n public int hashCode() {\r\n return jsObject.hashCode();\r\n }", "private String hash(){\r\n return Utility.SHA512(this.simplify());\r\n }", "com.google.protobuf.ByteString getHash();", "com.google.protobuf.ByteString getHash();", "public String getHashCode();", "@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(getClass().getSimpleName());\n sb.append(\" [\");\n sb.append(\"Hash = \").append(hashCode());\n sb.append(\", pObjObjectGid=\").append(pObjObjectGid);\n sb.append(\", layoutName=\").append(layoutName);\n sb.append(\", layoutType=\").append(layoutType);\n sb.append(\", df=\").append(df);\n sb.append(\", fields=\").append(fields);\n sb.append(\", jsondata=\").append(jsondata);\n sb.append(\", serialVersionUID=\").append(serialVersionUID);\n sb.append(\"]\");\n return sb.toString();\n }", "@Override\n public int hashCode() {\n final int prime = 31;\n int result = 1;\n result = prime * result + ((getLogUuid() == null) ? 0 : getLogUuid().hashCode());\n result = prime * result + ((getBversion() == null) ? 0 : getBversion().hashCode());\n result = prime * result + ((getBlockHeight() == null) ? 0 : getBlockHeight().hashCode());\n result = prime * result + ((getPropKey() == null) ? 0 : getPropKey().hashCode());\n result = prime * result + ((getPropValue() == null) ? 0 : getPropValue().hashCode());\n result = prime * result + ((getMptType() == null) ? 0 : getMptType().hashCode());\n result = prime * result + ((getHashValue() == null) ? 0 : getHashValue().hashCode());\n result = prime * result + ((getTxid() == null) ? 0 : getTxid().hashCode());\n result = prime * result + ((getPrevHashValue() == null) ? 0 : getPrevHashValue().hashCode());\n result = prime * result + ((getPrevBlockHeight() == null) ? 0 : getPrevBlockHeight().hashCode());\n result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());\n result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());\n return result;\n }", "@Override // com.google.common.base.Equivalence\n public int doHash(Object o) {\n return System.identityHashCode(o);\n }", "public int hashCode()\r\n {\r\n int hash = super.hashCode();\r\n hash ^= hashValue( m_name );\r\n hash ^= hashValue( m_classname );\r\n if( m_implicit )\r\n {\r\n hash ^= 35;\r\n }\r\n hash ^= hashValue( m_production );\r\n hash ^= hashArray( m_dependencies );\r\n hash ^= hashArray( m_inputs );\r\n hash ^= hashArray( m_validators );\r\n hash ^= hashValue( m_data );\r\n return hash;\r\n }", "public long JSHash(String str) {\n\t\tlong hash = 1315423911;\n\n\t\tfor (int i = 0; i < str.length(); i++) {\n\t\t\thash ^= ((hash << 5) + str.charAt(i) + (hash >> 2));\n\t\t}\n\n\t\treturn hash;\n\t}", "@Test\n\tpublic void testToHashCode() throws HashUtilException {\n\t\tshort sh = 121;\n\t\tbyte b = 14;\n\t\tObject obj1 = new String[] { \"Ra\", \"sh\" };\n\t\tObject obj2 = new int[] { 23, 46, 74 };\n\t\tObject obj3 = new boolean[] { true, false };\n\t\tObject obj4 = new double[] { 12.3, 45.7 };\n\t\tObject obj5 = new byte[] { 51, 60 };\n\t\tObject obj6 = new short[] { 121, 127 };\n\t\tObject obj7 = new long[] { 23, 46, 74 };\n\t\tObject obj8 = new float[] { 20f, 23.567f };\n\t\tObject obj9 = new char[] { 'r', 'e' };\n\n\t\tassertEquals(\n\t\t\t\t((((((((((23l * 45) + 34) * 45) + (long) 'R') * 45) + (long) 'a') * 45) + (long) 'm') * 45 + 1) * 45)\n\t\t\t\t\t\t+ Double.doubleToLongBits(12.3),\n\t\t\t\tnew HashUtility(23, 45).append(34).append(\"Ram\").append(false).append(12.3).toHashCode());\n\n\t\tassertEquals(\n\t\t\t\t(((((((((23l * 45) + 123456789000l) * 45) + Float.floatToIntBits(2.453f)) * 45) + sh) * 45) + b) * 45)\n\t\t\t\t\t\t+ (long) 'r',\n\t\t\t\tnew HashUtility(23, 45).append(123456789000l).append(2.453f).append(sh).append(b).append('r')\n\t\t\t\t\t\t.toHashCode());\n\n\t\tassertEquals(\n\t\t\t\t((((((((((((((((((((23l * 45) + (long) 'R') * 45) + (long) 'a') * 45) + (long) 's') * 45) + (long) 'h')\n\t\t\t\t\t\t* 45 + 23) * 45) + 46) * 45) + 74) * 45) + 0) * 45) + 1) * 45) + Double.doubleToLongBits(12.3))\n\t\t\t\t\t\t* 45) + Double.doubleToLongBits(45.7),\n\t\t\t\tnew HashUtility(23, 45).append(new String[] { \"Ra\", \"sh\" }).append(new int[] { 23, 46, 74 })\n\t\t\t\t\t\t.append(new boolean[] { true, false }).append(new double[] { 12.3, 45.7 }).toHashCode());\n\n\t\tassertEquals(\n\t\t\t\t(((((((((((((((((((((23l * 45) + (long) 'R') * 45) + (long) 'a') * 45) + (long) 's') * 45) + (long) 'h')\n\t\t\t\t\t\t* 45) + 23) * 45) + 46) * 45) + 74) * 45) + 0) * 45) + 1) * 45) + Double.doubleToLongBits(12.3))\n\t\t\t\t\t\t* 45) + Double.doubleToLongBits(45.7),\n\t\t\t\tnew HashUtility(23, 45).append(obj1).append(obj2).append(obj3).append(obj4).toHashCode());\n\n\t\tassertEquals(\n\t\t\t\t(((((((((((((((((((((23l * 45) + 51) * 45) + 60) * 45) + 121) * 45) + 127) * 45) + 23) * 45) + 46) * 45)\n\t\t\t\t\t\t+ 74) * 45) + Float.floatToIntBits(20f)) * 45) + Float.floatToIntBits(23.567f)) * 45)\n\t\t\t\t\t\t+ (long) 'r') * 45) + (long) 'e',\n\t\t\t\tnew HashUtility(23, 45).append(new byte[] { 51, 60 }).append(new short[] { 121, 127 })\n\t\t\t\t\t\t.append(new long[] { 23, 46, 74 }).append(new float[] { 20f, 23.567f })\n\t\t\t\t\t\t.append(new char[] { 'r', 'e' }).toHashCode());\n\n\t\tassertEquals(\n\t\t\t\t(((((((((((((((((((((23l * 45) + 51) * 45) + 60) * 45) + 121) * 45) + 127) * 45) + 23) * 45) + 46) * 45)\n\t\t\t\t\t\t+ 74) * 45) + Float.floatToIntBits(20f)) * 45) + (long) Float.floatToIntBits(23.567f)) * 45)\n\t\t\t\t\t\t+ (long) 'r') * 45) + (long) 'e',\n\t\t\t\tnew HashUtility(23, 45).append(obj5).append(obj6).append(obj7).append(obj8).append(obj9).toHashCode());\n\t}", "String getHash();", "String getHash();", "static int getHash(Object obj) {\n return getHash(new HashSet<Class>(), obj, 0);\n }", "private static int getHash(HashSet<Class> pre, Object obj, int prevDepth) {\n // For the following scenarios, we will quickly return a hash code of 0:\n // 1. The given object is null.\n // 2. We have zoomed too deep.\n // 3. We have zoomed recursively.\n // 4. We failed to get a hash code for the given object's class.\n if (obj == null\n || prevDepth == Config.zoomDepth\n || pre.contains(obj.getClass())\n || badClassHashCodes.containsKey(obj.getClass())) {\n return 0;\n }\n\n try {\n Class objClass = obj.getClass();\n\n // An Atomic* object's hash code is the same as the referred object.\n if (isAtomic(obj)) {\n Object referredObj = objClass.getMethod(\"get\").invoke(obj);\n return getHash(pre, referredObj, prevDepth);\n }\n\n // An Enum object's hash code will be the hash code of its name.\n if (objClass.isEnum()) {\n return obj.toString().hashCode();\n }\n\n // An array object's hash code will be calculated similarly as in\n // List.hashCode().\n if (objClass.isArray()) {\n return getHashOfArray(pre, obj, prevDepth);\n }\n\n // A Collection object's hash code will be the same as the underlying\n // array's.\n // TODO: Should we handle Sets differently since they don't care about\n // the order of the elements?\n if (obj instanceof Collection) {\n return getHashOfArray(pre, ((Collection) obj).toArray(), prevDepth);\n }\n\n // A Map object's hash code will be the sum of its entries'.\n if (obj instanceof Map) {\n return getHashOfMap(pre, obj, prevDepth);\n }\n\n // The hash code of an object instantiating other JVM class will be the\n // hash code of its string representation.\n String packageName = objClass.getPackage().getName();\n if (packageName.startsWith(\"java.\") || packageName.startsWith(\"sun.\")) {\n return obj.toString().hashCode();\n }\n\n // If the given object instantiates a non-JVM class, try to zoom in.\n return getHashOfAppClass(pre, obj, prevDepth);\n } catch (Throwable t) {\n logger.info(\"Fail to get hash code for class \" + obj.getClass(), t);\n badClassHashCodes.put(obj.getClass(), true);\n }\n return 0;\n }", "@Override\n public int hashCode() {\n final int prime = 31;\n int result = 1;\n result = prime * result + ((getGid() == null) ? 0 : getGid().hashCode());\n result = prime * result + ((getpObjObjectGid() == null) ? 0 : getpObjObjectGid().hashCode());\n result = prime * result + ((getLayoutName() == null) ? 0 : getLayoutName().hashCode());\n result = prime * result + ((getLayoutType() == null) ? 0 : getLayoutType().hashCode());\n result = prime * result + ((getDf() == null) ? 0 : getDf().hashCode());\n result = prime * result + ((getFields() == null) ? 0 : getFields().hashCode());\n result = prime * result + ((getJsondata() == null) ? 0 : getJsondata().hashCode());\n result = prime * result + ((getCreateBy() == null) ? 0 : getCreateBy().hashCode());\n result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());\n result = prime * result + ((getUpdateBy() == null) ? 0 : getUpdateBy().hashCode());\n result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());\n result = prime * result + ((getActive() == null) ? 0 : getActive().hashCode());\n result = prime * result + ((getDelete() == null) ? 0 : getDelete().hashCode());\n return result;\n }", "protected abstract int hashOfObject(Object key);", "java.lang.String getHashData();", "private int getHash() {\n return (name + FluentIterable.from(getDimensions()).transform(new Function<CloudConfigurationDimension, String>() {\n @Override\n public String apply(CloudConfigurationDimension dimension) {\n return getStringRepresentation(dimension);\n }\n }).toString()).hashCode();\n }", "final int hash(E object)\n {\n // Spread bits to regularize both segment and index locations,\n // using variant of single-word Wang/Jenkins hash.\n int h = object.hashCode();\n h += (h << 15) ^ 0xffffcd7d;\n h ^= (h >>> 10);\n h += (h << 3);\n h ^= (h >>> 6);\n h += (h << 2) + (h << 14);\n h = h ^ (h >>> 16);\n return h;\n }", "public int hashCode() {\n if (myhash == -1) {\n myhash = timestamp.hashCode() + signerCertPath.hashCode();\n }\n return myhash;\n }", "@Test\n public void testHashCode() {\n Coctail c1 = new Coctail(\"coctail\", new Ingredient[]{ \n new Ingredient(\"ing1\"), new Ingredient(\"ing2\")});\n \n int expectedHashCode = 7;\n expectedHashCode = 37 * expectedHashCode + Objects.hashCode(\"coctail\");\n expectedHashCode = 37 * expectedHashCode + Arrays.deepHashCode(new Ingredient[]{ \n new Ingredient(\"ing1\"), new Ingredient(\"ing2\")});\n \n assertEquals(expectedHashCode, c1.hashCode());\n }", "@Override\n public int hashCode() {\n int result = hashCode;\n if (result == 0) {\n result = 17;\n result = 31 * result + (data == null ? 0 : data.hashCode());\n result = 31 * result + (succeeded ? 1 : 0);\n result = 31 * result + (errors == null ? 0 : errors.hashCode());\n hashCode = result;\n }\n return result;\n }", "public int hashCode(){\n\t\treturn toString().hashCode();\n\t}", "public native int __hashCode( long __swiftObject );", "@Override\n public int hashCode ()\n {\n int hash = 7;\n hash = 53 * hash + Arrays.hashCode (this.bytes);\n return hash;\n }", "public byte[] hashTransaction() {\n byte[][] txIdArrays = new byte[this.getTransactions().length][];\n for (int i = 0;i < this.getTransactions().length;i++) {\n txIdArrays[i] = this.getTransactions()[i].getTxId();\n }\n return new MerkleTree(txIdArrays).getRoot().getHash();\n }", "public byte[] getHashData(){\r\n byte[] hashData = Serializer.createParcel(\r\n new Object[]{\r\n getParentHash(),\r\n getNonce(),\r\n getTimeStamp(),\r\n BigInteger.valueOf(getIndex()), //Parcel encoding doesnt support longs\r\n BigInteger.valueOf(getDifficulty()), //Parcel encoding doesnt support longs\r\n getMinerAddress(),\r\n getReward(),\r\n getMerkleRoot(),\r\n getAxiomData(),\r\n getBlockData()\r\n });\r\n return hashData;\r\n }", "@Override // com.google.common.base.Equivalence\n public int doHash(Object o) {\n return o.hashCode();\n }", "public int hashCode() {\n return 37 * 17;\n }", "@Override\n public int hashCode() {\n return Objects.hash(this.getValue());\n }", "public int hashCode() {\n return HashFunction.hashCode(new int[] { statusUuid.hashCode(), pathUuid.hashCode(), (int) time });\n }", "public byte[] getHash()\n\t{\n\t\treturn md5.getHash();\n\t}", "@Override\n public int hashCode() {\n final int prime = 31;\n int result = 1;\n result = prime * result + ((getId() == null) ? 0 : getId().hashCode());\n result = prime * result + ((getAdditionalInfo() == null) ? 0 : getAdditionalInfo().hashCode());\n result = prime * result + ((getApiToken() == null) ? 0 : getApiToken().hashCode());\n result = prime * result + ((getPluginClass() == null) ? 0 : getPluginClass().hashCode());\n result = prime * result + ((getConfiguration() == null) ? 0 : getConfiguration().hashCode());\n result = prime * result + ((getName() == null) ? 0 : getName().hashCode());\n result = prime * result + ((getPublicAccess() == null) ? 0 : getPublicAccess().hashCode());\n result = prime * result + ((getSearchText() == null) ? 0 : getSearchText().hashCode());\n result = prime * result + ((getState() == null) ? 0 : getState().hashCode());\n result = prime * result + ((getTenantId() == null) ? 0 : getTenantId().hashCode());\n return result;\n }", "public int hashCode() {\n\t\treturn hash(objects); //return the hash code of the objects\n\t}", "public String getHash() {\n byte[] bArr = new byte[21];\n bArr[0] = (byte) getCTxDestinationType().getValue();\n System.arraycopy(this.mData, 0, bArr, 1, 20);\n return StringToolkit.bytesToString(bArr);\n }", "@Override\n public final JSONCompareResult compareJSON(final JSONObject expected, final JSONObject actual)\n throws JSONException\n {\n final JSONCompareResult result = createResult();\n compareJSON(\"\", expected, actual, result);\n return result;\n }", "@Override\n public int hashCode() {\n return this.toString().hashCode();\n }", "int getHash();", "@Override\n public int hashCode() {\n int result = 17;\n result = 37 * result + from.hashCode();\n result = 37 * result + to.hashCode();\n result = 37 * result + color.hashCode();\n return result;\n }", "@Override\n public int hashCode() {\n return this.data.hashCode();\n }", "public String getHash()\n\t{\n\t\tif(isModified) generateHash();\n\t\treturn hash;\n\t}", "@Override\n public int hashCode() {\n if (this.shape1.uniqueShapeID < this.shape2.uniqueShapeID) {\n return shape1.uniqueShapeID * 65536 + shape2.uniqueShapeID;\n } else {\n return shape2.uniqueShapeID * 65536 + shape1.uniqueShapeID;\n }\n }", "public int hashCode() {\n\t\treturn toString().hashCode();\n\t}", "public int hashCode() {\n int result = 1;\n Object $pageSize = this.getPageSize();\n result = result * 59 + ($pageSize == null ? 43 : $pageSize.hashCode());\n Object $pageNo = this.getPageNo();\n result = result * 59 + ($pageNo == null ? 43 : $pageNo.hashCode());\n Object $sort = this.getSort();\n result = result * 59 + ($sort == null ? 43 : $sort.hashCode());\n Object $orderByField = this.getOrderByField();\n result = result * 59 + ($orderByField == null ? 43 : $orderByField.hashCode());\n return result;\n }", "@Override\n public int hashCode() {\n return getBoundingBox().hashCode();\n }", "@JRubyMethod(name = \"hash\")\n @Override\n public RubyFixnum hash() {\n return getRuntime().newFixnum((int)(((dt.getMillis() / 1000) ^ microseconds()) << 1) >> 1);\n }", "@Override\n public int hashCode() {\n return System.identityHashCode(this);\n }", "@Test\n public void testHashCode() {\n LOGGER.info(\"testHashCode\");\n final String value = \"Hello\";\n final int actual = new AtomString(value).hashCode();\n final int expected = 61 * 7 + Objects.hashCode(value);\n assertEquals(expected, actual);\n }", "public int hashCode() {\n int hc = 0;\n for (int i = 0; i < attributes.length; i += 2) {\n hc += attributes[i].hashCode() ^ attributes[i + 1].hashCode();\n }\n return hc;\n }", "@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(getClass().getSimpleName());\n sb.append(\" [\");\n sb.append(\"Hash = \").append(hashCode());\n sb.append(\", cLsh=\").append(cLsh);\n sb.append(\", cUserid=\").append(cUserid);\n sb.append(\", cJsyy=\").append(cJsyy);\n sb.append(\", dJssj=\").append(dJssj);\n sb.append(\", nJssl=\").append(nJssl);\n sb.append(\", cBz=\").append(cBz);\n sb.append(\", cZt=\").append(cZt);\n sb.append(\", cCjuser=\").append(cCjuser);\n sb.append(\", dCjsj=\").append(dCjsj);\n sb.append(\", cXguser=\").append(cXguser);\n sb.append(\", dXgsj=\").append(dXgsj);\n sb.append(\", serialVersionUID=\").append(serialVersionUID);\n sb.append(\"]\");\n return sb.toString();\n }", "@Override\n public int hashCode() {\n int hash = 5;\n hash = 11 * hash + Objects.hashCode(this.color);\n return hash;\n }", "JsonObject raw();", "public int hashCode() {\n\treturn data.hashCode();\n }", "public int hashCode()\n\t{\n\t\treturn System.identityHashCode(userObject);\n\t}", "public int hashCode() {\n return Objects.hashCode(this);\n }", "@Override\n public int hashCode() {\n return Objects.hash(JMBAG);\n }", "@Override\n public int hashCode() { \n return this.toString().hashCode();\n }", "public int hashCode()\n {\n return toString().hashCode();\n }", "@Override\n public int hashCode() {\n return System.identityHashCode(this);\n }", "public String getHash() {\n return hash;\n }", "@Override\n\tpublic int hashCode() {\n\t\tfinal int prime = 31;\n\t\tint result = 1;\n\t\tresult = prime * result\n\t\t\t\t+ ((composer == null) ? 0 : composer.hashCode());\n\t\tresult = prime * result + meterDenominator;\n\t\tresult = prime * result + meterNumerator;\n\t\tresult = prime * result + ((phrases == null) ? 0 : phrases.hashCode());\n\t\tresult = prime * result + tempoDenominator;\n\t\tresult = prime * result + tempoNumerator;\n\t\tresult = prime * result + tempoSpeed;\n\t\tresult = prime * result + ((title == null) ? 0 : title.hashCode());\n\t\treturn result;\n\t}", "private int getHash(Object key) {\n return key.hashCode();\n }", "public int hashCode() {\r\n\t\treturn this.value().hashCode();\r\n\t}", "public static int defaultHashCode(DataValue obj) {\r\n final int prime = 31;\r\n int result = 1;\r\n result = prime * result + obj.getName().hashCode();\r\n if (obj.getObject() == null) {\r\n result = prime * result;\r\n } else if (obj.getObject().getClass().isArray()) {\r\n result = prime * result + Arrays.hashCode((byte[]) obj.getObject());\r\n } else {\r\n result = prime * result + obj.getObject().hashCode();\r\n }\r\n return result;\r\n }", "public String getHash() {\n return hash;\n }", "public String getHash() {\n return hash;\n }", "public String getHash() {\n return hash;\n }", "public int hashCode() {\n\tint hash = 3;\n\thash = 41 * hash + (this.utcTime != null ? this.utcTime.hashCode() : 0);\n\thash = 41 * hash + (this._long != null ? this._long.hashCode() : 0);\n\thash = 41 * hash + (this.lat != null ? this.lat.hashCode() : 0);\n\thash = 41 * hash + (this.elevation != null ? this.elevation.hashCode() : 0);\n\thash = 41 * hash + (this.heading != null ? this.heading.hashCode() : 0);\n\thash = 41 * hash + (this.speed != null ? this.speed.hashCode() : 0);\n\thash = 41 * hash + (this.posAccuracy != null ? this.posAccuracy.hashCode() : 0);\n\thash = 41 * hash + (this.timeConfidence != null ? this.timeConfidence.hashCode() : 0);\n\thash = 41 * hash + (this.posConfidence != null ? this.posConfidence.hashCode() : 0);\n\thash = 41 * hash + (this.speedConfidence != null ? this.speedConfidence.hashCode() : 0);\n\treturn hash;\n }", "@Override\n public int hashCode()\n {\n return this.value.hashCode();\n }", "@Override\n\t\tpublic int hashCode() {\n\t\t\treturn Integer.parseInt(lat.toString()) ^ Integer.parseInt(lng.toString());\n\t\t\t//return super.hashCode();\n\t\t}", "@Override\r\n public int hashCode() {\r\n return this.toString().hashCode();\r\n }", "@Override\n public int hashCode() {\n return Double.valueOf(lat).hashCode() + Double.valueOf(lon).hashCode();\n }", "@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(getClass().getSimpleName());\n sb.append(\" [\");\n sb.append(\"Hash = \").append(hashCode());\n sb.append(\", cLsh=\").append(cLsh);\n sb.append(\", cZzzjlsh=\").append(cZzzjlsh);\n sb.append(\", cUserid=\").append(cUserid);\n sb.append(\", dJzsj=\").append(dJzsj);\n sb.append(\", cSpbh=\").append(cSpbh);\n sb.append(\", cBz=\").append(cBz);\n sb.append(\", cZt=\").append(cZt);\n sb.append(\", cCjuser=\").append(cCjuser);\n sb.append(\", dCjsj=\").append(dCjsj);\n sb.append(\", cXguser=\").append(cXguser);\n sb.append(\", dXgsj=\").append(dXgsj);\n sb.append(\", serialVersionUID=\").append(serialVersionUID);\n sb.append(\"]\");\n return sb.toString();\n }", "@Override\r\n\tpublic int hashCode() {\n\t\tint result = 17;\r\n\t\tresult = 37*result+(int) (id ^ (id>>>32));\r\n\t\t//result = 37*result+(name==null?0:name.hashCode());\r\n\t\t//result = 37*result+displayOrder;\r\n\t\t//result = 37*result+(this.url==null?0:url.hashCode());\r\n\t\treturn result;\r\n\t}", "@Override\n public int hashCode() {\n return (this.key == null ? 0 : this.key.hashCode()) ^ (this.value == null ? 0 : this.value.hashCode());\n }", "@Override\n\tpublic int hashCode()\n\t{\n\t\tint hash = 5;\n\t\thash = 41 * hash + (int) (Double.doubleToLongBits(this.latitude) ^ (Double.doubleToLongBits(this.latitude) >>> 32));\n\t\thash = 41 * hash + (int) (Double.doubleToLongBits(this.longitude) ^ (Double.doubleToLongBits(this.longitude) >>> 32));\n\t\treturn hash;\n\t}", "@Override\n public int hashCode() {\n return 1;\n }", "public int hashCode()\n {\n int hash = this.getClass().hashCode();\n\n hash = ( hash << 1 | hash >>> 31 ) ^ Arrays.hashCode(genome);\n\n return hash;\n }", "public String getHash()\n {\n return hash;\n }", "@Override\n public int hashCode() {\n return new HashCodeBuilder(17, 37)\n .append(getName())\n .append(getType())\n .toHashCode();\n }", "@java.lang.Override\n public com.google.protobuf.ByteString getHash() {\n return hash_;\n }", "@java.lang.Override\n public com.google.protobuf.ByteString getHash() {\n return hash_;\n }", "@Override\n public int hashCode() {\n int hash = 7;\n hash = 43 * hash + this.id;\n hash = 43 * hash + this.size;\n hash = 43 * hash + Objects.hashCode(this.orientation);\n hash = 43 * hash + Objects.hashCode(this.currentPosition);\n return hash;\n }", "public int getHash() {\n return hash_;\n }", "@Override\n public int hashCode() {\n final int prime = 31;\n int result = 1;\n result = prime * result + ((getId() == null) ? 0 : getId().hashCode());\n result = prime * result + ((getGoodsId() == null) ? 0 : getGoodsId().hashCode());\n result = prime * result + ((getName() == null) ? 0 : getName().hashCode());\n result = prime * result + ((getSeriesId() == null) ? 0 : getSeriesId().hashCode());\n result = prime * result + ((getBrandId() == null) ? 0 : getBrandId().hashCode());\n result = prime * result + (Arrays.hashCode(getGallery()));\n result = prime * result + ((getKeywords() == null) ? 0 : getKeywords().hashCode());\n result = prime * result + ((getBrief() == null) ? 0 : getBrief().hashCode());\n result = prime * result + ((getSortOrder() == null) ? 0 : getSortOrder().hashCode());\n result = prime * result + ((getPicUrl() == null) ? 0 : getPicUrl().hashCode());\n result = prime * result + ((getBuyLink() == null) ? 0 : getBuyLink().hashCode());\n result = prime * result + ((getAddTime() == null) ? 0 : getAddTime().hashCode());\n result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());\n result = prime * result + ((getDeleted() == null) ? 0 : getDeleted().hashCode());\n result = prime * result + ((getDetail() == null) ? 0 : getDetail().hashCode());\n return result;\n }", "public int hashCode()\n {\n return getMap().hashCode();\n }", "public int getHash() {\n return hash_;\n }", "public int hashCode() {\n return hash.hashCode();\n }", "@Override\n public int hashCode() {\n int hash = 17;\n hash = 31 * hash + month;\n hash = 31 * hash + day;\n hash = 31 * hash + year;\n return hash;\n }", "protected int hashOfObject(Object key) {\n\t\t\treturn set.hashOfObject(key);\n\t\t}", "@Override\n public int hashCode()\n {\n return Objects.hash(super.hashCode(), referenceDataAsset, referenceDataConnections);\n }", "public int hashCode() {\n\t\treturn src.hashCode() ^ dst.hashCode() ^ data_len ^ type ^ group ^ data.hashCode();\n\t}", "@java.lang.Override\n public com.google.protobuf.ByteString getHash() {\n return hash_;\n }", "@java.lang.Override\n public com.google.protobuf.ByteString getHash() {\n return hash_;\n }", "public String calculateHash () {\n StringBuilder hashInput = new StringBuilder(previousHash)\n .append(timeStamp)\n .append(magicNumber)\n .append(timeSpentMining);\n for (Transfer transfer : this.transfers) {\n String transferDesc = transfer.getDescription();\n hashInput.append(transferDesc);\n }\n return CryptoUtil.applySha256(hashInput.toString());\n }", "@Override\n public int hashCode();" ]
[ "0.66350603", "0.661742", "0.616033", "0.58851737", "0.54638493", "0.539221", "0.539221", "0.538039", "0.5249038", "0.5191342", "0.5149195", "0.5144825", "0.51387936", "0.51282376", "0.5106996", "0.5106996", "0.5102506", "0.50968534", "0.5061367", "0.5048711", "0.50394285", "0.5029051", "0.50206953", "0.50085974", "0.5000622", "0.49986553", "0.49955842", "0.49890965", "0.49831042", "0.49769545", "0.49697348", "0.49681905", "0.49549618", "0.49544924", "0.4951106", "0.49474803", "0.49447584", "0.49406907", "0.49374732", "0.49299896", "0.492988", "0.49258006", "0.4925329", "0.49211687", "0.49175012", "0.49159408", "0.49130875", "0.49085012", "0.49055335", "0.49012697", "0.4882828", "0.48709235", "0.486837", "0.48652658", "0.48596025", "0.48574996", "0.4856918", "0.48485687", "0.48454753", "0.48451567", "0.48437643", "0.48403156", "0.48386312", "0.48368636", "0.4835231", "0.48347571", "0.48282343", "0.48273104", "0.4826513", "0.4826513", "0.4826513", "0.4826472", "0.48257816", "0.4824826", "0.48235333", "0.48124322", "0.4808693", "0.48077023", "0.48037136", "0.47957107", "0.4790971", "0.47876787", "0.47846013", "0.4780283", "0.47773507", "0.47773507", "0.47772926", "0.4777187", "0.47750774", "0.47727242", "0.47705942", "0.47704017", "0.47699264", "0.47694004", "0.4768532", "0.47669202", "0.47649148", "0.47649148", "0.47645804", "0.4760976" ]
0.7989221
0
Helper method to handle insertion of a new code in the database.
private long insertCodeInDatabase( String codeSetting, String boatName, String teamColor) { // First, check if the code with this city name exists in the db Cursor cursor = mContext.getContentResolver().query( CodeEntry.CONTENT_URI, new String[]{CodeEntry._ID}, CodeEntry.COLUMN_CODE + " = ?", new String[]{codeSetting}, null, null); if (cursor.moveToFirst()) { int codeIdIndex = cursor.getColumnIndex(CodeEntry._ID); return cursor.getLong(codeIdIndex); } else { ContentValues codeValues = new ContentValues(); codeValues.put(CodeEntry.COLUMN_CODE, codeSetting); codeValues.put(CodeEntry.COLUMN_NAME, boatName); codeValues.put(CodeEntry.COLUMN_COLOR, teamColor); Uri codeInsertUri = mContext.getContentResolver() .insert(CodeEntry.CONTENT_URI, codeValues); return ContentUris.parseId(codeInsertUri); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void createCode(Code code)\n throws DAOException;", "@Override\r\n\tpublic void add(Code code) {\n\t\tthis.getHibernateTemplate().save(code);\r\n\t}", "int insert(SysCode record);", "int insert(CodeBuildProcedure record);", "@Insert({\n \"insert into user_recommended_code (recommended_code, user_id, \",\n \"recommended_url, recommended_qrcode, \",\n \"update_time, create_time)\",\n \"values (#{recommendedCode,jdbcType=VARCHAR}, #{userId,jdbcType=VARCHAR}, \",\n \"#{recommendedUrl,jdbcType=VARCHAR}, #{recommendedQrcode,jdbcType=VARCHAR}, \",\n \"#{updateTime,jdbcType=TIMESTAMP}, #{createTime,jdbcType=TIMESTAMP})\"\n })\n int insert(UserRecommendedCode record);", "void insert(GfanCodeBanner record) throws SQLException;", "@Override\n\tpublic void create(String id, String code) {\n\t\tStringBuilder qString = new StringBuilder(\"INSERT INTO required_nomenclature (id_required_nomenclature, code) VALUES (?, ?)\");\n\t jdbcTemplate.update(qString.toString(), id, code);\n\t}", "Code updateCode(Code code)\n throws DAOException;", "protected void insertCode(SketchCode newCode) {\n ensureExistence();\n\n // add file to the code/codeCount list, resort the list\n //if (codeCount == code.length) {\n code = (SketchCode[]) PApplet.append(code, newCode);\n codeCount++;\n //}\n //code[codeCount++] = newCode;\n }", "int insert(MWeixinCodeDTO record);", "@Override\n\tpublic boolean insert(String sql) {\n\t\treturn false;\n\t}", "public void addNewCode(Code code) {\n\t\tthis.addGuess();\n\t\tint index = this.getLastPlayIndex();\n\n\t\tthis.guessList[index].setCode(code);\n\n\t\t// Notify all observers\n\t\tsuper.dataChanged();\n\t}", "int insertSelective(SysCode record);", "int insert(SdkMobileVcode record);", "int insertSelective(CodeBuildProcedure record);", "int insert(Massage record);", "@Override\n\tprotected String sql() throws OperationException {\n\t\treturn sql.insert(tbObj, fieldValue);\n\t}", "int insert(PcQualificationInfo record);", "public CustomSql getCustomSqlInsert();", "private boolean Add_Record(String sCode, String sDBID, PrintWriter pwOut){\n\t\tString sSQL = MySQLs.Get_LaborType_By_ID(sCode);\n\t\t\n\t\ttry{\n\t\t\tResultSet rs = clsDatabaseFunctions.openResultSet(sSQL, getServletContext(), sDBID);\n\t\t\tif (rs.next()){\n\t\t\t\t//This record already exists, so we can't add it:\n\t\t\t\tpwOut.println(\"The \" + sObjectName + \" '\" + sCode + \"' already exists - it cannot be added.<BR>\");\n\t\t\t\trs.close();\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\trs.close();\n\t\t\t\n\t\t}catch(SQLException ex){\n\t \tSystem.out.println(\"[1579270207] Error in \" + this.toString()+ \".Add_Record class!!\");\n\t System.out.println(\"SQLException: \" + ex.getMessage());\n\t System.out.println(\"SQLState: \" + ex.getSQLState());\n\t System.out.println(\"SQL: \" + ex.getErrorCode());\n\t\t\treturn false;\n\t\t}\n\t\tsSQL = MySQLs.Add_New_LaborType_SQL(sCode);\n\t\ttry {\n\t\t\t\n\t\t\tboolean bResult = clsDatabaseFunctions.executeSQL(sSQL, getServletContext(), sDBID); \n\t\t\treturn bResult;\n\t\t}catch (SQLException ex){\n\t \tSystem.out.println(\"[1579270210] Error in \" + this.toString()+ \".Add_Record class!!\");\n\t System.out.println(\"SQLException: \" + ex.getMessage());\n\t System.out.println(\"SQLState: \" + ex.getSQLState());\n\t System.out.println(\"SQL: \" + ex.getErrorCode());\n\t\t\treturn false;\n\t\t}\n\t\t\n\t}", "@Override\n public Object saveCreateCodeTableEntityObject(Class clazz, CodeTableDTO codeTableDTO) throws BusinessException {\n if (clazz == null) {\n throw new BusinessException(\n getMessage(\"error.0003.invalid.code.table\",\n new String[]{\"\"}));\n }\n\n CodeTableEntityAnnotation codeTableAnnotation =\n AnnotationUtils.findAnnotation(clazz, CodeTableEntityAnnotation.class);\n\n if (codeTableAnnotation == null) {\n throw new BusinessException(\n getMessage(\"error.0003.invalid.code.table\",\n new String[]{clazz.getName()}));\n }\n\n Date now = Calendar.getInstance().getTime();\n\n CodeTableDTO modifiedCodeTableDTO;\n Object lookupValue;\n\n if (StringUtils.isNotEmpty(codeTableDTO.getOldCodeValue()) &&\n !StringUtils.equalsIgnoreCase(codeTableDTO.getCodeValue(), codeTableDTO.getOldCodeValue())) {\n modifiedCodeTableDTO = this.findCodeByCode(clazz, codeTableDTO.getOldCodeValue(), true);\n lookupValue = codeTableDTO.getOldCodeValue();\n }\n else if (codeTableDTO.getChangeStatus().equals(BasePersistenceDTO.Status.INSERT)) {\n modifiedCodeTableDTO = this.findCodeByCode(clazz, codeTableDTO.getCodeValue(), true);\n lookupValue = StringUtils.upperCase(codeTableDTO.getCodeValue());\n if (modifiedCodeTableDTO != null) {\n throw new BusinessException(\n getMessage(\"error.0004.duplicate.row\", codeTableDTO.getCodeValue()));\n }\n }\n else {\n modifiedCodeTableDTO = this.findCodeByCode(clazz, codeTableDTO.getCodeValue(), true);\n lookupValue = StringUtils.upperCase(codeTableDTO.getCodeValue());\n }\n try {\n if (!StringUtils.equalsIgnoreCase(codeTableAnnotation.convertCodeToLongOnLookup(), \"no\")) {\n if (lookupValue != null) {\n lookupValue = Long.valueOf((String) lookupValue);\n }\n }\n\n Boolean isNewRow = false;\n Object newObject;\n if (modifiedCodeTableDTO == null) //new row\n {\n newObject = clazz.newInstance();\n isNewRow = true;\n }\n else {\n newObject = codeTableRepository.findById(clazz, lookupValue);\n }\n\n if (lookupValue != null) {\n /* Changing from an old code to a new code */\n if (!StringUtils.equals(codeTableDTO.getOldCodeValue(), codeTableDTO.getCodeValue())) {\n MethodUtils.invokeExactMethod(\n newObject,\n \"set\" + StringUtils.capitalize(codeTableAnnotation.code()), codeTableDTO.getCodeValue());\n\n }\n else {\n MethodUtils.invokeExactMethod(\n newObject,\n \"set\" + StringUtils.capitalize(codeTableAnnotation.code()), lookupValue);\n }\n }\n\n if (codeTableDTO.getDescription() != null) {\n MethodUtils.invokeExactMethod(\n newObject,\n \"set\" + StringUtils.capitalize(codeTableAnnotation.description()), codeTableDTO.getDescription());\n }\n\n if (codeTableDTO.getEffectiveDate() != null) {\n MethodUtils.invokeExactMethod(\n newObject,\n \"set\" + StringUtils.capitalize(codeTableAnnotation.effectiveDate()), codeTableDTO.getEffectiveDate());\n }\n\n if (!StringUtils.isEmpty(codeTableAnnotation.endDate())) {\n if (codeTableDTO.getEndDate() != null) {\n MethodUtils.invokeExactMethod(\n newObject,\n \"set\" + StringUtils.capitalize(codeTableAnnotation.endDate()), codeTableDTO.getEndDate());\n }\n else {\n Object[] args = new Object[]{null};\n Class[] classArgs = new Class[]{Date.class};\n MethodUtils.invokeExactMethod(\n newObject,\n \"set\" + StringUtils.capitalize(codeTableAnnotation.endDate()), args, classArgs);\n }\n }\n\n /*\n find the audit fields\n */\n for (Method method : clazz.getMethods()) {\n if (isNewRow) {\n if (StringUtils.endsWith(method.getName(), \"DateCreated\") &&\n StringUtils.startsWith(method.getName(), \"set\")) {\n MethodUtils.invokeExactMethod(\n newObject, method.getName(), now);\n }\n else if (StringUtils.endsWith(method.getName(), \"CreatedBy\") &&\n StringUtils.startsWith(method.getName(), \"set\")) {\n MethodUtils.invokeExactMethod(\n newObject, method.getName(), getAuditUser());\n }\n }\n else {\n if (StringUtils.endsWith(method.getName(), \"DateModified\") &&\n StringUtils.startsWith(method.getName(), \"set\")) {\n MethodUtils.invokeExactMethod(\n newObject, method.getName(), now);\n }\n else if (StringUtils.endsWith(method.getName(), \"ModifiedBy\") &&\n StringUtils.startsWith(method.getName(), \"set\")) {\n MethodUtils.invokeExactMethod(\n newObject, method.getName(), getAuditUser());\n }\n }\n }\n return newObject;\n }\n catch (InstantiationException e) {\n throw new BusinessException(e.getMessage(), e);\n }\n catch (IllegalAccessException e) {\n throw new BusinessException(e.getMessage(), e);\n }\n catch (NoSuchMethodException e) {\n throw new BusinessException(e.getMessage(), e);\n }\n catch (InvocationTargetException e) {\n throw new BusinessException(e.getMessage(), e);\n }\n }", "int insert(InspectionAgency record);", "int insert(PdfCodeTemporary record);", "public void databaseinsert() {\n\n\t\tStringBuilder sb = new StringBuilder();\n\t\tSite site = new Site(Sid.getText().toString().trim(), Scou.getText().toString().trim());\n\t\tlong rowId = dbHlp.insertDB(site);\n\t\tif (rowId != -1) {\n\t\t\tsb.append(getString(R.string.insert_success));\n\n\t\t} else {\n\n\t\t\tsb.append(getString(R.string.insert_fail));\n\t\t}\n\t\tToast.makeText(Stu_state.this, sb, Toast.LENGTH_SHORT).show();\n\t}", "@Override\r\n\tpublic String insert() {\n\t\treturn \"insert\";\r\n\t}", "public void addcode(String code){//להחליף את סטרינג למחלקה קוד או מזהה מספרי של קוד\r\n mycods.add(code);\r\n }", "int insertSelective(MWeixinCodeDTO record);", "@Override\r\n\tpublic void update(Code code) {\n\t\tthis.getHibernateTemplate().saveOrUpdate(code);\r\n\t}", "void createCachedCode(Code code)\n throws DAOException;", "gov.nih.nlm.ncbi.www.CodeBreakDocument.CodeBreak addNewCodeBreak();", "int insert(ApplicationDO record);", "void insertSelective(GfanCodeBanner record) throws SQLException;", "public void newEntryZipcodes(String zipcode){\n open();\n ContentValues registro = new ContentValues();\n registro.put(Key_zipcode, zipcode);\n myDataBase.insert(nTZipcodes, null, registro);\n close();\n }", "public void insert() throws SQLException;", "int insert(countrylanguage record);", "int insert(TCpyYearCheck record);", "@Override\n\tpublic void insert(String... args) throws SQLException {\n\t\t\n\t}", "public void save(EventCode eventCode)\n {\n SessionFactory fact = null;\n Session sess = null;\n Transaction trans = null;\n try\n {\n fact = HibernateUtil.getSessionFactory();\n if (fact != null)\n {\n sess = fact.openSession();\n if (sess != null)\n {\n trans = sess.beginTransaction();\n sess.saveOrUpdate(eventCode);\n }\n else\n {\n log.error(\"Failed to obtain a session from the sessionFactory\");\n }\n }\n else\n {\n log.error(\"Session factory was null\");\n }\n }\n finally\n {\n if (trans != null)\n {\n try\n {\n trans.commit();\n }\n catch (Throwable t)\n {\n log.error(\"Failed to commit transaction: \" + t.getMessage(), t);\n }\n }\n if (sess != null)\n {\n try\n {\n sess.close();\n }\n catch (Throwable t)\n {\n log.error(\"Failed to close session: \" + t.getMessage(), t);\n }\n }\n }\n }", "public long insertNewRow(){\n ContentValues initialValues = new ContentValues();\n initialValues.put(KEY_PAIN_ASSESSMENT_NUM, \"0\");\n initialValues.put(KEY_ANALGESIC_PRES_NUM, \"0\");\n initialValues.put(KEY_ANALGESIC_ADMIN_NUM, \"0\");\n initialValues.put(KEY_NERVE_BLOCK_NUM, \"0\");\n initialValues.put(KEY_ALTERNATIVE_PAIN_RELIEF_NUM, \"0\");\n long id = db.insert(DATA_TABLE, null, initialValues);\n\n String value = MainActivity.deviceID + \"-\" + id;\n updateFieldData(id, KEY_UNIQUEID, value);\n\n return id;\n }", "public void insert()\n\t{\n\t}", "public org.hl7.fhir.CodeableConcept addNewCode()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.hl7.fhir.CodeableConcept target = null;\n target = (org.hl7.fhir.CodeableConcept)get_store().add_element_user(CODE$6);\n return target;\n }\n }", "int insert(Lbm83ChohyokanriPkey record);", "@InsertProvider(type=UserRecommendedCodeSqlProvider.class, method=\"insertSelective\")\n int insertSelective(UserRecommendedCode record);", "int insert(Assist_table record);", "public void insert() {\n\t\tSession session = DBManager.getSession();\n\t\tsession.beginTransaction();\n\t\tsession.save(this);\n\t\tsession.getTransaction().commit();\n\t}", "private void saveActivationCode() {\n }", "int insert(PmKeyDbObj record);", "@Override\r\n\tpublic int insertCode(Map<String, String[]> map) throws SQLException {\n\t\t\r\n\t\tConnection conn = dataSource.getConnection();\r\n\t\tString insertSQL = \"\";\r\n\t\tPreparedStatement pstmt = null;\r\n\t\tint result = 0; \r\n\t\t\r\n\t\tString type = map.get(\"gbn\")[0];\r\n\t\t\r\n\t\t//type 0 : 상위코드, 1 : 하위코드\r\n\t\tif(type.equals(\"upr\")) {\r\n\t\t\tinsertSQL = \"INSERT INTO tb_code (cd, upr_cd, cd_nm, comment, sort, useyn) VALUES(?, '*', ?, ?, ?, 1)\";\r\n\t\t\tpstmt = conn.prepareStatement(insertSQL);\r\n\t\t\tpstmt.setString(1, map.get(\"cd\")[0]);\r\n\t\t\tpstmt.setString(2, map.get(\"cd_nm\")[0]);\r\n\t\t\tpstmt.setString(3, map.get(\"comment\")[0]);\r\n\t\t\tpstmt.setInt(4, Integer.parseInt(map.get(\"sort\")[0]));\r\n\t\t\tresult = pstmt.executeUpdate();\r\n\t\t} else {\r\n\t\t\tinsertSQL = \"INSERT INTO tb_code (cd, upr_cd, cd_nm, comment, sort, useyn) VALUES(?, ?, ?, ?, ?, 1)\";\r\n\t\t\tpstmt = conn.prepareStatement(insertSQL);\r\n\t\t\tpstmt.setString(1, map.get(\"cd\")[0]);\r\n\t\t\tpstmt.setString(2, map.get(\"upr_cd\")[0]);\r\n\t\t\tpstmt.setString(3, map.get(\"cd_nm\")[0]);\r\n\t\t\tpstmt.setString(4, map.get(\"comment\")[0]);\r\n\t\t\tpstmt.setInt(5, Integer.parseInt(map.get(\"sort\")[0]));\r\n\t\t\tresult = pstmt.executeUpdate();\r\n\t\t}\r\n\r\n\t\tpstmt.close();\r\n\t\tconn.close();\r\n\t\t\r\n\t\treturn result;\r\n\t}", "public void setCode(String code)\n {\n this.code = code;\n }", "public void setCode(String code){\n\t\tthis.code = code;\n\t}", "public void addToCode(String code){\r\n\t\tiCode+=getTabs()+code+\"\\n\";\r\n\t}", "int insert(Prueba record);", "@Override\n\tpublic void preInsert() {\n\n\t}", "public void setCode(String code) {\n this.code = code;\n }", "public void setCode(String code) {\n this.code = code;\n }", "public void setCode(String code) {\n this.code = code;\n }", "public void setCode(String code) {\n this.code = code;\n }", "public void setCode(String code) {\n this.code = code;\n }", "public void setCode(String code) {\n this.code = code;\n }", "@Insert({\n \"insert into generalcourseinformation (courseid, code, \",\n \"name, teacher, credit, \",\n \"week, day_detail1, \",\n \"day_detail2, location, \",\n \"remaining, total, \",\n \"extra, index)\",\n \"values (#{courseid,jdbcType=VARCHAR}, #{code,jdbcType=VARCHAR}, \",\n \"#{name,jdbcType=VARCHAR}, #{teacher,jdbcType=VARCHAR}, #{credit,jdbcType=INTEGER}, \",\n \"#{week,jdbcType=VARCHAR}, #{day_detail1,jdbcType=VARCHAR}, \",\n \"#{day_detail2,jdbcType=VARCHAR}, #{location,jdbcType=VARCHAR}, \",\n \"#{remaining,jdbcType=INTEGER}, #{total,jdbcType=INTEGER}, \",\n \"#{extra,jdbcType=VARCHAR}, #{index,jdbcType=INTEGER})\"\n })\n int insert(GeneralCourse record);", "int insert(Engine record);", "public void genCode(CodeFile code) {\n\t\t\n\t}", "public void setCode(final int code) {\n this.code = code;\n commited = true;\n }", "int insert(PmPost record);", "@Override\n\tpublic String insertStatement() throws Exception {\n\t\treturn null;\n\t}", "int insert(Commet record);", "@Insert({\n \"insert into basic_info_precursor_process_type (code, process_name, \",\n \"types)\",\n \"values (#{code,jdbcType=INTEGER}, #{processName,jdbcType=VARCHAR}, \",\n \"#{types,jdbcType=TINYINT})\"\n })\n int insert(BasicInfoPrecursorProcessType record);", "int insert(ClinicalData record);", "public void addInschrijving(){\n if(typeField.getText().equalsIgnoreCase(\"Toernooi\")){\n try {\n Connection con = Main.getConnection();\n PreparedStatement add = con.prepareStatement(\"INSERT INTO Inschrijvingen (speler, toernooi, heeft_betaald) VALUES (?,?,?);\");\n add.setInt(1, Integer.valueOf(spelerIDField.getText()));\n add.setInt(2, Integer.valueOf(codeField.getText()));\n add.setString(3, heeftBetaaldField.getText());\n add.executeUpdate();\n } catch (Exception e) {\n System.out.println(e);\n }}\n else if(typeField.getText().equalsIgnoreCase(\"Masterclass\")){\n try {\n Connection con = Main.getConnection();\n PreparedStatement add = con.prepareStatement(\"INSERT INTO Inschrijvingen (speler, masterclass, heeft_betaald) VALUES (?,?,?);\");\n add.setInt(1, Integer.valueOf(spelerIDField.getText()));\n add.setInt(2, Integer.valueOf(codeField.getText()));\n add.setString(3, heeftBetaaldField.getText());\n add.executeUpdate();\n } catch (Exception e) {\n System.out.println(e);}\n }\n }", "void createGameCode(GameCode gameCode);", "int insertSelective(SdkMobileVcode record);", "int insert(TblBTSSysFunctionDO record);", "int insert(AdminTab record);", "int insert(FunctionInfo record);", "void insert(BnesBrowsingHis record) throws SQLException;", "int insert(FinancialManagement record);", "Code getCode();", "int insert(HotelType record);", "int insert(Basicinfo record);", "int insert(GirlInfo record);", "public AccessCode addAccessCode(AccessCode accessCode){\r\n\t\tlog.debug(\"Adding new Access Code: \"+accessCode);\r\n\t\treturn acRepo.save(accessCode);\r\n\t}", "int insert(SalGrade record);", "int insert(Course record);", "int insert(Course record);", "int insert(SpecialCircumstance record);", "int insert(CaseLinkman record);", "@Override\n\tpublic void insertProcess() {\n\t\t\n\t}", "@Override\n\tpublic void insert() {\n\t\tSystem.out.println(\"Mysql DB 서버에 접속해서 등록을 하다.\");\n\t}", "int insert(InternalTradeEpa022016 record);", "int insert(CraftAdvReq record);", "int insert(AccuseInfo record);", "int insert(Question27 record);", "int insert(Ltsprojectpo record);", "int insert(CustomerTag record);", "void setCode(String code);", "int insert(Admin record);", "int insert(Admin record);", "int insert(SysType record);", "public void setCode(String code) {\n\t\tCode = code;\n\t}", "int insert(Payment record);" ]
[ "0.70690113", "0.69075435", "0.6742543", "0.66629374", "0.6419214", "0.63226265", "0.62601376", "0.6192513", "0.61750996", "0.6117741", "0.6084253", "0.6055213", "0.6047414", "0.6024536", "0.6000829", "0.5995678", "0.59665096", "0.59411716", "0.5893324", "0.5863746", "0.5849281", "0.5844564", "0.5839752", "0.5821664", "0.58118546", "0.57922816", "0.57838446", "0.5771593", "0.57713753", "0.57709354", "0.57534647", "0.5740871", "0.5735758", "0.57346195", "0.5723413", "0.5714923", "0.5706064", "0.57031155", "0.5685998", "0.5672051", "0.5659585", "0.5646722", "0.56438166", "0.5640944", "0.5635292", "0.5630868", "0.5628949", "0.56256384", "0.56103706", "0.55978346", "0.55941886", "0.55909127", "0.55897796", "0.5587076", "0.5587076", "0.5587076", "0.5587076", "0.5587076", "0.5587076", "0.5586146", "0.55819", "0.55747384", "0.55695426", "0.5569272", "0.55644274", "0.5563653", "0.55558693", "0.5552497", "0.5552377", "0.55489075", "0.5542827", "0.55418926", "0.5535781", "0.55330193", "0.5530189", "0.55293584", "0.5525752", "0.5520464", "0.5519488", "0.55147946", "0.5512926", "0.5512403", "0.55111504", "0.55111504", "0.55016935", "0.549071", "0.5488954", "0.5485264", "0.5483125", "0.5479849", "0.5472745", "0.5472035", "0.5469911", "0.54695994", "0.5467215", "0.5461068", "0.5461068", "0.54608953", "0.5456664", "0.5455366" ]
0.6079049
11
Take the String representing the complete Report in JSON Format and pull out the data we need to construct the Strings needed for the wireframes. Fortunately parsing is easy: constructor takes the JSON string and converts it into an Object hierarchy for us.
private void getBoatDataFromJson(String ReportJsonStr) throws JSONException { // These are the names of the JSON objects that need to be extracted. // Code information elements of "codes" array final String OWM_CODES = "codes"; final String OWM_CODE = "code"; final String OWM_NAME = "name"; final String OWM_COLOR = "color"; // Boat information. Each Report info is an element of the "trackslatest" array. final String OWM_LATEST = "trackslatest"; final String OWM_REPORTDATE = "reportdate"; final String OWM_TIMEOFFIX = "timeoffix"; final String OWM_STATUS = "status"; final String OWM_LATITUDE = "latitude"; final String OWM_LONGITUDE = "longitude"; final String OWM_DTF = "dtf"; final String OWM_DTLC = "dtlc"; final String OWM_LEGSTANDING = "legstanding"; final String OWM_TWENTYFOURHOURRUN = "twentyfourhourrun"; final String OWM_LEGPROGRESS = "legprogress"; final String OWM_DUL = "dul"; final String OWM_BOATHEADINGTRUE = "boatheadingtrue"; final String OWM_SMG = "smg"; final String OWM_SEATEMPERATURE = "seatemperature"; final String OWM_TRUWINDSPEEDAVG = "truwindspeedavg"; final String OWM_SPEEDTHROWATER = "speedthrowater"; final String OWM_TRUEWINDSPEEDMAX = "truewindspeedmax"; final String OWM_TRUEWINDDIRECTION = "truewinddirection"; final String OWM_LATESTSPEEDTHROWATER = "latestspeedthrowater"; final String OWM_MAXAVGSPEED = "maxavgspeed"; JSONObject ReportJson = new JSONObject(ReportJsonStr); JSONArray codeArray = ReportJson.getJSONArray(OWM_CODES); JSONObject dataArray = ReportJson.getJSONObject("data"); String nextUpdate = ReportJson.getString("nextReport"); JSONArray boatArray = dataArray.getJSONArray(OWM_LATEST); Vector<ContentValues> cVVector = new Vector<ContentValues>(codeArray.length()); for(int i = 0; i < codeArray.length(); i++) { // These are the values that will be collected. String code, name, color; int codeId; JSONObject codeJson = codeArray.getJSONObject(i); code = codeJson.getString(OWM_CODE); name = codeJson.getString(OWM_NAME); color = codeJson.getString(OWM_COLOR); ContentValues codeValues = new ContentValues(); codeValues.put(CodeEntry.COLUMN_CODE, code); codeValues.put(CodeEntry.COLUMN_NAME, name); codeValues.put(CodeEntry.COLUMN_COLOR, color); cVVector.add(codeValues); Log.v(LOG_TAG, "Code: "+ code + ", Name: " + name + " Color: " + color); } if (cVVector.size() > 0) { ContentValues[] cvArray = new ContentValues[cVVector.size()]; cVVector.toArray(cvArray); mContext.getContentResolver().bulkInsert(CodeEntry.CONTENT_URI, cvArray); } // Get and insert the new boat information into the database Vector<ContentValues> bVVector = new Vector<ContentValues>(21); for(int i = 0; i < boatArray.length(); i++) { // These are the values that will be collected. String code, reportdate, timeoffix, status, latitude, longitude, dtf, dtlc, legstanding, twentyfourhourrun, legprogress, dul, boatheadingtrue, smg, seatemperature, truwindspeedavg, speedthrowater, truewindspeedmax, truewinddirection, latestspeedthrowater, maxavgspeed; // Get the JSON object representing the day JSONArray dayForecast = boatArray.getJSONArray(i); // Just to be clear how to populate the vector code = dayForecast.getString(0); reportdate = dayForecast.getString(1); timeoffix = dayForecast.getString(2); status = dayForecast.getString(3); longitude = dayForecast.getString(4); latitude = dayForecast.getString(5); dtf = dayForecast.getString(6); dtlc = dayForecast.getString(7); legstanding = dayForecast.getString(8); twentyfourhourrun = dayForecast.getString(9); legprogress = dayForecast.getString(10); dul = dayForecast.getString(11); boatheadingtrue = dayForecast.getString(12); smg = dayForecast.getString(13); seatemperature = dayForecast.getString(14); truwindspeedavg = dayForecast.getString(15); speedthrowater = dayForecast.getString(16); truewindspeedmax = dayForecast.getString(17); truewinddirection = dayForecast.getString(18); latestspeedthrowater = dayForecast.getString(19); maxavgspeed = dayForecast.getString(19); ContentValues boatValues = new ContentValues(); boatValues.put(BoatEntry.COLUMN_BOAT_ID, code); boatValues.put(BoatEntry.COLUMN_TIMEOFFIX, timeoffix); boatValues.put(BoatEntry.COLUMN_DUL, dul); boatValues.put(BoatEntry.COLUMN_REPORTDATE, reportdate); boatValues.put(BoatEntry.COLUMN_BOATHEADINGTRUE, boatheadingtrue); boatValues.put(BoatEntry.COLUMN_STATUS, status); boatValues.put(BoatEntry.COLUMN_SMG, smg); boatValues.put(BoatEntry.COLUMN_LONGITUDE, longitude); boatValues.put(BoatEntry.COLUMN_SEATEMPERATURE, seatemperature); boatValues.put(BoatEntry.COLUMN_LATITUDE, latitude); boatValues.put(BoatEntry.COLUMN_TRUWINDSPEEDAVG, truwindspeedavg); boatValues.put(BoatEntry.COLUMN_DTF, dtf); boatValues.put(BoatEntry.COLUMN_SPEEDTHROWATER, speedthrowater); boatValues.put(BoatEntry.COLUMN_DTLC, dtlc); boatValues.put(BoatEntry.COLUMN_TRUEWINDSPEEDMAX, truewindspeedmax); boatValues.put(BoatEntry.COLUMN_LEG_STANDING, legstanding); boatValues.put(BoatEntry.COLUMN_TRUEWINDDIRECTION, truewinddirection); boatValues.put(BoatEntry.COLUMN_TWENTYFOURHOURRUN, twentyfourhourrun); boatValues.put(BoatEntry.COLUMN_LATESTSPEEDTHROWATER, latestspeedthrowater); boatValues.put(BoatEntry.COLUMN_LEGPROGRESS, legprogress); boatValues.put(BoatEntry.COLUMN_MAXAVGSPEED, maxavgspeed); bVVector.add(boatValues); Log.v(LOG_TAG, "Data: "+ dayForecast.toString()); } if (bVVector.size() > 0) { ContentValues[] cvArray = new ContentValues[bVVector.size()]; bVVector.toArray(cvArray); mContext.getContentResolver().bulkInsert(BoatEntry.CONTENT_URI, cvArray); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Patient (String JSONString) {\n try {\n JSONObject n = new JSONObject(JSONString);\n name = n.get(\"name\").toString();\n fathersName = n.get(\"fathersName\").toString();\n mothersName = n.get(\"mothersName\").toString();\n SimpleDateFormat parser = new SimpleDateFormat(\"dd/MM/yyyy\");\n birthDate = parser.parse(n.get(\"birthDate\").toString());\n sex = n.get(\"sex\").toString();\n pid = n.get(\"pid\").toString();\n doctype = Integer.valueOf(n.get(\"doctype\").toString());\n enrolledSchema = new Schema(n.get(\"enrolledProject\").toString());\n /*JSONArray arry = new JSONArray(n.get(\"enrolledProjects\").toString());\n for (int i = 0; i < arry.length(); i++){\n enrolledProjects.add(new Project(arry.getString(i)));\n }*/\n nationalID = n.get(\"nationalID\").toString();\n }\n catch (JSONException e) {\n e.printStackTrace();\n }\n catch (ParseException e){\n e.printStackTrace();\n }\n }", "private WeatherReport getReport(WeatherReport report, JSONObject reportObject) {\n\t\tJSONObject mainObject;\n\t\tJSONObject sysObject;\n\t\tJSONArray weatherArray;\n\t\ttry {\n\t\t\tmainObject = reportObject.getJSONObject(\"main\");\n\t\t\t\n\t\t\treport.setCurrentTemperature(convertToCelsius(mainObject.getString(\"temp\")));\n\t\t\treport.setHumidity(mainObject.getString(\"humidity\"));\n\t\t\treport.setMinTemperature(convertToCelsius(mainObject.getString(\"temp_min\")));\n\t\t\treport.setMaxTemperature(convertToCelsius(mainObject.getString(\"temp_max\")));\n\t\t\t\n\t\t\tsysObject = reportObject.getJSONObject(\"sys\");\n\t\t\treport.setCountry(sysObject.getString(\"country\"));\n\t\t\t\n\t\t\tweatherArray = reportObject.getJSONArray(\"weather\");\n\t\t\treport.setDescription(weatherArray.getJSONObject(0).getString(\"description\"));\n\t\t\t\n\t\t} catch (JSONException 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\treturn report;\n\t}", "public HealthReportPanel(final String json) {\n\t\t\tLOGGER.debug(\"[DEBUG] - JSON String (Copy entire below line)\");\n\t\t\tLOGGER.debug(json.replace(\"\\n\", \"\"));\n\t\t\tLOGGER.debug(\"Attempting to parse Health Report JSON\");\n\t\t\t\n\t\t\tJsonElement report = new JsonParser().parse(json);\n\t\t\tJsonObject healthcheck = ((JsonObject) report).get(\"healthcheck\").getAsJsonObject();\n\t\t\tBoolean show_system_info = true;\n\t\t\tJsonObject system;\n\t\t\t//Check if the check JSON contains system information and show/hide panels accordingly later.\n\t\t\tsystem = healthcheck.get(\"system\").getAsJsonObject();\n\t\t\t\n\t\t\tfinal JsonObject data = healthcheck.get(\"checkdata\").getAsJsonObject();\n\t\t\t\n\t\t\tHealthReportAWT.this.jssUrl = extractData(healthcheck, \"jss_url\");\n\t\t\t\n\t\t\tif (extractData(system, \"iscloudjss\").contains(\"true\")) {\n\t\t\t\tshow_system_info = false;\n\t\t\t\tisCloudJSS = true;\n\t\t\t}\n\t\t\t\n\t\t\tPanelIconGenerator iconGen = new PanelIconGenerator();\n\t\t\tPanelGenerator panelGen = new PanelGenerator();\n\t\t\t\n\t\t\t//Top Level Frame\n\t\t\tfinal JFrame frame = new JFrame(\"JSS Health Check Report\");\n\t\t\t\n\t\t\t//Top Level Content\n\t\t\tJPanel outer = new JPanel(new BorderLayout());\n\t\t\t\n\t\t\t//Two Blank Panels for the Sides\n\t\t\tJPanel blankLeft = new JPanel();\n\t\t\tblankLeft.add(new JLabel(\" \"));\n\t\t\tJPanel blankRight = new JPanel();\n\t\t\tblankRight.add(new JLabel(\" \"));\n\t\t\tblankLeft.setMinimumSize(new Dimension(100, 100));\n\t\t\tblankRight.setMinimumSize(new Dimension(100, 100));\n\t\t\t//Header\n\t\t\tJPanel header = new JPanel();\n\t\t\theader.add(new JLabel(\"Total Computers: \" + extractData(healthcheck, \"totalcomputers\")));\n\t\t\theader.add(new JLabel(\"Total Mobile Devices: \" + extractData(healthcheck, \"totalmobile\")));\n\t\t\theader.add(new JLabel(\"Total Users: \" + extractData(healthcheck, \"totalusers\")));\n\t\t\tint total_devices = Integer.parseInt(extractData(healthcheck, \"totalcomputers\")) + Integer.parseInt(extractData(healthcheck, \"totalmobile\"));\n\t\t\tSimpleDateFormat df = new SimpleDateFormat(\"dd/MM/yy HH:mm:ss\");\n\t\t\tDate dateobj = new Date();\n\t\t\theader.add(new JLabel(\"JSS Health Check Report Performed On \" + df.format(dateobj)));\n\t\t\t//Foooter\n\t\t\tJPanel footer = new JPanel();\n\t\t\tJButton view_report_json = new JButton(\"View Report JSON\");\n\t\t\tfooter.add(view_report_json);\n\t\t\tJButton view_activation_code = new JButton(\"View Activation Code\");\n\t\t\tfooter.add(view_activation_code);\n\t\t\tJButton test_again = new JButton(\"Run Test Again\");\n\t\t\tfooter.add(test_again);\n\t\t\tJButton view_text_report = new JButton(\"View Text Report\");\n\t\t\tfooter.add(view_text_report);\n\t\t\tJButton about_and_terms = new JButton(\"About and Terms\");\n\t\t\tfooter.add(about_and_terms);\n\t\t\t//Middle Content, set the background white and give it a border\n\t\t\tJPanel content = new JPanel(new GridLayout(2, 3));\n\t\t\tcontent.setBackground(Color.WHITE);\n\t\t\tcontent.setBorder(BorderFactory.createLineBorder(Color.BLACK));\n\t\t\t\n\t\t\t//Setup Outer Placement\n\t\t\touter.add(header, BorderLayout.NORTH);\n\t\t\touter.add(footer, BorderLayout.SOUTH);\n\t\t\touter.add(blankLeft, BorderLayout.WEST);\n\t\t\touter.add(blankRight, BorderLayout.EAST);\n\t\t\touter.add(content, BorderLayout.CENTER);\n\t\t\t\n\t\t\t//Don't show system info if it is hosted.\n\t\t\tJPanel system_info = null;\n\t\t\tJPanel database_health = null;\n\t\t\tif (show_system_info) {\n\t\t\t\t//Read all of the System information variables from the JSON and perform number conversions.\n\t\t\t\tString[][] sys_info = {\n\t\t\t\t\t\t{ \"Operating System\", extractData(system, \"os\") },\n\t\t\t\t\t\t{ \"Java Version\", extractData(system, \"javaversion\") },\n\t\t\t\t\t\t{ \"Java Vendor\", extractData(system, \"javavendor\") },\n\t\t\t\t\t\t{ \"Processor Cores\", extractData(system, \"proc_cores\") },\n\t\t\t\t\t\t{ \"Is Clustered?\", extractData(system, \"clustering\") },\n\t\t\t\t\t\t{ \"Web App Directory\", extractData(system, \"webapp_dir\") },\n\t\t\t\t\t\t{ \"Free Memory\", Double.toString(round((Double.parseDouble(extractData(system, \"free_memory\")) / 1000000000), 2)) + \" GB\" },\n\t\t\t\t\t\t{ \"Max Memory\", Double.toString(round((Double.parseDouble(extractData(system, \"max_memory\")) / 1000000000), 2)) + \" GB\" },\n\t\t\t\t\t\t{ \"Memory currently in use\", Double.toString(round((Double.parseDouble(extractData(system, \"memory_currently_in_use\")) / 1000000000), 2)) + \" GB\" },\n\t\t\t\t\t\t{ \"Total space\", Double.toString(round((Double.parseDouble(extractData(system, \"total_space\")) / 1000000000), 2)) + \" GB\" },\n\t\t\t\t\t\t{ \"Free Space\", Double.toString(round((Double.parseDouble(extractData(system, \"usable_space\")) / 1000000000), 2)) + \" GB\" }\n\t\t\t\t};\n\t\t\t\t\n\t\t\t\t//Generate the system info panel.\n\t\t\t\tString systemInfoIcon = iconGen.getSystemInfoIconType(Integer.parseInt(extractData(healthcheck, \"totalcomputers\")) + Integer.parseInt(extractData(healthcheck, \"totalmobile\")), extractData(system, \"javaversion\"), Double.parseDouble(extractData(system, \"max_memory\")));\n\t\t\t\tsystem_info = panelGen.generateContentPanelSystem(\"System Info\", sys_info, \"JSS Minimum Requirements\", \"http://www.jamfsoftware.com/resources/casper-suite-system-requirements/\", systemInfoIcon);\n\t\t\t\t\n\t\t\t\t//Get all of the DB information.\n\t\t\t\tString[][] db_health = { { \"Database Size\", extractData(system, \"database_size\") + \" MB\" } };\n\t\t\t\tif (extractData(system, \"database_size\").equals(\"0\")) {\n\t\t\t\t\tdb_health[0][0] = \"Unable to connect to database.\";\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tString[][] large_sql_tables = extractArrayData(system, \"largeSQLtables\", \"table_name\", \"table_size\");\n\t\t\t\tString[][] db_health_for_display = ArrayUtils.addAll(db_health, large_sql_tables);\n\t\t\t\t//Generate the DB Health panel.\n\t\t\t\tString databaseIconType = iconGen.getDatabaseInfoIconType(total_devices, Double.parseDouble(extractData(system, \"database_size\")), extractArrayData(system, \"largeSQLtables\", \"table_name\", \"table_size\").length);\n\t\t\t\tdatabase_health = panelGen.generateContentPanelSystem(\"Database Health\", db_health_for_display, \"Too Large SQL Tables\", \"https://google.com\", databaseIconType);\n\t\t\t\tif (!databaseIconType.equals(\"green\")) {\n\t\t\t\t\tHealthReportAWT.this.showLargeDatabase = true;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tint password_strenth = 0;\n\t\t\tif (extractData(data, \"password_strength\", \"uppercase?\").contains(\"true\")) {\n\t\t\t\tpassword_strenth++;\n\t\t\t}\n\t\t\tif (extractData(data, \"password_strength\", \"lowercase?\").contains(\"true\")) {\n\t\t\t\tpassword_strenth++;\n\t\t\t}\n\t\t\tif (extractData(data, \"password_strength\", \"number?\").contains(\"true\")) {\n\t\t\t\tpassword_strenth++;\n\t\t\t}\n\t\t\tif (extractData(data, \"password_strength\", \"spec_chars?\").contains(\"true\")) {\n\t\t\t\tpassword_strenth++;\n\t\t\t}\n\t\t\tString password_strength_desc;\n\t\t\tif (password_strenth == 4) {\n\t\t\t\tpassword_strength_desc = \"Excellent\";\n\t\t\t} else if (password_strenth == 3 || password_strenth == 2) {\n\t\t\t\tpassword_strength_desc = \"Good\";\n\t\t\t} else if (password_strenth == 1) {\n\t\t\t\tHealthReportAWT.this.strongerPassword = true;\n\t\t\t\tpassword_strength_desc = \"Poor\";\n\t\t\t} else {\n\t\t\t\tHealthReportAWT.this.strongerPassword = true;\n\t\t\t\tpassword_strength_desc = \"Needs Updating\";\n\t\t\t}\n\t\t\t\n\t\t\tif (extractData(data, \"loginlogouthooks\", \"is_configured\").contains(\"false\")) {\n\t\t\t\tHealthReportAWT.this.loginInOutHooks = true;\n\t\t\t}\n\t\t\t\n\t\t\ttry {\n\t\t\t\tif (Integer.parseInt(extractData(data, \"device_row_counts\", \"computers\").trim()) != Integer.parseInt(extractData(data, \"device_row_counts\", \"computers_denormalized\").trim())) {\n\t\t\t\t\tHealthReportAWT.this.computerDeviceTableCountMismatch = true;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif (Integer.parseInt(extractData(data, \"device_row_counts\", \"mobile_devices\").trim()) != Integer.parseInt(extractData(data, \"device_row_counts\", \"mobile_devices_denormalized\").trim())) {\n\t\t\t\t\tHealthReportAWT.this.mobileDeviceTableCountMismatch = true;\n\t\t\t\t}\n\t\t\t} catch (Exception e) {\n\t\t\t\tSystem.out.println(\"Unable to parse device row counts.\");\n\t\t\t}\n\t\t\t\n\t\t\tif ((extractData(system, \"mysql_version\").contains(\"5.6.16\") || extractData(system, \"mysql_version\").contains(\"5.6.20\")) && (extractData(system, \"os\").contains(\"OS X\") || extractData(system, \"os\").contains(\"Mac\") || extractData(system, \"os\").contains(\"OSX\"))) {\n\t\t\t\tHealthReportAWT.this.mysqlOSXVersionBug = true;\n\t\t\t}\n\t\t\t\n\t\t\t//Get all of the information for the JSS ENV and generate the panel.\n\t\t\tString[][] env_info = {\n\t\t\t\t\t{ \"Checkin Frequency\", extractData(data, \"computercheckin\", \"frequency\") + \" Minutes\" },\n\t\t\t\t\t{ \"Log Flushing\", extractData(data, \"logflushing\", \"log_flush_time\") },\n\t\t\t\t\t{ \"Log In/Out Hooks\", extractData(data, \"loginlogouthooks\", \"is_configured\") },\n\t\t\t\t\t{ \"Computer EA\", extractData(data, \"computerextensionattributes\", \"count\") },\n\t\t\t\t\t{ \"Mobile Deivce EA\", extractData(data, \"mobiledeviceextensionattributes\", \"count\") },\n\t\t\t\t\t{ \"Password Strength\", password_strength_desc },\n\t\t\t\t\t{ \"SMTP Server\", extractData(data, \"smtpserver\", \"server\") },\n\t\t\t\t\t{ \"Sender Email\", extractData(data, \"smtpserver\", \"sender_email\") },\n\t\t\t\t\t{ \"GSX Connection\", extractData(data, \"gsxconnection\", \"status\") }\n\t\t\t};\n\t\t\tString[][] vpp_accounts = extractArrayData(data, \"vppaccounts\", \"name\", \"days_until_expire\");\n\t\t\tString[][] ldap_servers = extractArrayData(data, \"ldapservers\", \"name\", \"type\", \"address\", \"id\");\n\t\t\tString envIconType = iconGen.getJSSEnvIconType(Integer.parseInt(extractData(healthcheck, \"totalcomputers\")), Integer.parseInt(extractData(data, \"computercheckin\", \"frequency\")), Integer.parseInt(extractData(data, \"computerextensionattributes\", \"count\")), Integer.parseInt(extractData(data, \"mobiledeviceextensionattributes\", \"count\")));\n\t\t\tJPanel env = panelGen.generateContentPanelEnv(\"JSS Environment\", env_info, vpp_accounts, ldap_servers, \"\", \"\", envIconType);\n\t\t\t\n\t\t\t//Get all of the group information from the JSON, merge the arrays, and then generate the groups JPanel.\n\t\t\tString[][] groups_1 = ArrayUtils.addAll(extractArrayData(data, \"computergroups\", \"name\", \"nested_groups_count\", \"criteria_count\", \"id\"), extractArrayData(data, \"mobiledevicegroups\", \"name\", \"nested_groups_count\", \"criteria_count\", \"id\"));\n\t\t\tString[][] groups_2 = ArrayUtils.addAll(groups_1, extractArrayData(data, \"usergroups\", \"name\", \"nested_groups_count\", \"criteria_count\", \"id\"));\n\t\t\tString groupIconType = iconGen.getGroupIconType(\"groups\", countJSONObjectSize(data, \"computergroups\") + countJSONObjectSize(data, \"mobiledevicegroups\") + countJSONObjectSize(data, \"usergroups\"));\n\t\t\tJPanel groups = panelGen.generateContentPanelGroups(\"Groups\", groups_2, \"\", \"\", groupIconType);\n\t\t\tif (groupIconType.equals(\"yellow\") || groupIconType.equals(\"red\")) {\n\t\t\t\tHealthReportAWT.this.showGroupsHelp = true;\n\t\t\t}\n\t\t\t\n\t\t\t//Get all of the information for the printers, policies and scripts, then generate the panel.\n\t\t\tString[][] printers = extractArrayData(data, \"printer_warnings\", \"model\");\n\t\t\tString[][] policies = extractArrayData(data, \"policies_with_issues\", \"name\", \"ongoing\", \"checkin_trigger\");\n\t\t\tString[][] scripts = extractArrayData(data, \"scripts_needing_update\", \"name\");\n\t\t\tString[][] certs = {\n\t\t\t\t\t{ \"SSL Cert Issuer\", extractData(data, \"tomcat\", \"ssl_cert_issuer\") },\n\t\t\t\t\t{ \"SLL Cert Expires\", extractData(data, \"tomcat\", \"cert_expires\") },\n\t\t\t\t\t{ \"MDM Push Cert Expires\", extractData(data, \"push_cert_expirations\", \"mdm_push_cert\") },\n\t\t\t\t\t{ \"Push Proxy Expires\", extractData(data, \"push_cert_expirations\", \"push_proxy\") },\n\t\t\t\t\t{ \"Change Management Enabled?\", extractData(data, \"changemanagment\", \"isusinglogfile\") },\n\t\t\t\t\t{ \"Log File Path:\", extractData(data, \"changemanagment\", \"logpath\") }\n\t\t\t};\n\t\t\tString policiesScriptsIconType = iconGen.getPoliciesAndScriptsIconType(extractArrayData(data, \"policies_with_issues\", \"name\", \"ongoing\", \"checkin_trigger\").length, extractArrayData(data, \"scripts_needing_update\", \"name\").length);\n\t\t\tJPanel policies_scripts = panelGen.generateContentPanelPoliciesScripts(\"Policies, Scripts, Certs and Change\", policies, scripts, printers, certs, \"\", \"\", policiesScriptsIconType);\n\t\t\tif (extractArrayData(data, \"policies_with_issues\", \"name\", \"ongoing\", \"checkin_trigger\").length > 0) {\n\t\t\t\tHealthReportAWT.this.showPolicies = true;\n\t\t\t}\n\t\t\tif (extractArrayData(data, \"scripts_needing_update\", \"name\").length > 0) {\n\t\t\t\tHealthReportAWT.this.showScripts = true;\n\t\t\t}\n\t\t\tif (extractData(data, \"changemanagment\", \"isusinglogfile\").contains(\"false\")) {\n\t\t\t\tHealthReportAWT.this.showChange = true;\n\t\t\t}\n\t\t\tHealthReportAWT.this.showCheckinFreq = iconGen.showCheckinFreq;\n\t\t\tHealthReportAWT.this.showExtensionAttributes = iconGen.showCheckinFreq;\n\t\t\tHealthReportAWT.this.showSystemRequirements = iconGen.showSystemRequirements;\n\t\t\tHealthReportAWT.this.showScalability = iconGen.showScalability;\n\t\t\t//Update Panel Gen Variables\n\t\t\tupdatePanelGenVariables(panelGen);\n\t\t\t\n\t\t\t//Generate the Help Section.\n\t\t\tcontent.add(panelGen.generateContentPanelHelp(\"Modifications to Consider\", \"\", \"\", \"blank\"));\n\t\t\t//If contains system information, add those panels, otherwise just continue adding the rest of the panels.\n\t\t\tif (show_system_info) {\n\t\t\t\tcontent.add(system_info);\n\t\t\t\tcontent.add(database_health);\n\t\t\t}\n\t\t\tcontent.add(env);\n\t\t\tcontent.add(groups);\n\t\t\tcontent.add(policies_scripts);\n\t\t\t\n\t\t\t//View report action listner.\n\t\t\t//Opens a window with the health report JSON listed\n\t\t\tview_report_json.addActionListener(e -> {\n\t\t\t\tJPanel middlePanel = new JPanel();\n\t\t\t\tmiddlePanel.setBorder(new TitledBorder(new EtchedBorder(), \"Health Report JSON\"));\n\t\t\t\t// create the middle panel components\n\t\t\t\tJTextArea display = new JTextArea(16, 58);\n\t\t\t\tdisplay.setEditable(false);\n\t\t\t\t//Make a new GSON object so the text can be Pretty Printed.\n\t\t\t\tGson gson = new GsonBuilder().setPrettyPrinting().create();\n\t\t\t\tString pp_json = gson.toJson(json.trim());\n\t\t\t\tdisplay.append(json);\n\t\t\t\tJScrollPane scroll = new JScrollPane(display);\n\t\t\t\tscroll.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS);\n\t\t\t\t//Add Textarea in to middle panel\n\t\t\t\tmiddlePanel.add(scroll);\n\t\t\t\t\n\t\t\t\tJFrame frame1 = new JFrame();\n\t\t\t\tframe1.add(middlePanel);\n\t\t\t\tframe1.pack();\n\t\t\t\tframe1.setLocationRelativeTo(null);\n\t\t\t\tframe1.setVisible(true);\n\t\t\t});\n\t\t\t//Action listener for the Terms, About and Licence button.\n\t\t\t//Opens a new window with the AS IS License, 3rd Party Libs used and a small about section\n\t\t\tabout_and_terms.addActionListener(e -> {\n\t\t\t\tJPanel middlePanel = new JPanel();\n\t\t\t\tmiddlePanel.setBorder(new TitledBorder(new EtchedBorder(), \"About, Licence and Terms\"));\n\t\t\t\t// create the middle panel components\n\t\t\t\tJTextArea display = new JTextArea(16, 58);\n\t\t\t\tdisplay.setEditable(false);\n\t\t\t\tdisplay.append(StringConstants.ABOUT);\n\t\t\t\tdisplay.append(\"\\n\\nThird Party Libraries Used:\");\n\t\t\t\tdisplay.append(\" Apache Commons Codec, Google JSON (gson), Java X JSON, JDOM, JSON-Simple, MySQL-connector\");\n\t\t\t\tdisplay.append(StringConstants.LICENSE);\n\t\t\t\tJScrollPane scroll = new JScrollPane(display);\n\t\t\t\tscroll.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS);\n\t\t\t\t//Add Textarea in to middle panel\n\t\t\t\tmiddlePanel.add(scroll);\n\t\t\t\t\n\t\t\t\tJFrame frame12 = new JFrame();\n\t\t\t\tframe12.add(middlePanel);\n\t\t\t\tframe12.pack();\n\t\t\t\tframe12.setLocationRelativeTo(null);\n\t\t\t\tframe12.setVisible(true);\n\t\t\t});\n\t\t\t\n\t\t\t//Listener for a button click to open a window containing the activation code.\n\t\t\tview_activation_code.addActionListener(e -> JOptionPane.showMessageDialog(frame, extractData(data, \"activationcode\", \"code\") + \"\\nExpires: \" + extractData(data, \"activationcode\", \"expires\")));\n\t\t\t\n\t\t\tview_text_report.addActionListener(e -> {\n\t\t\t\tJPanel middlePanel = new JPanel();\n\t\t\t\tmiddlePanel.setBorder(new TitledBorder(new EtchedBorder(), \"Text Health Report\"));\n\t\t\t\t// create the middle panel components\n\t\t\t\tJTextArea display = new JTextArea(16, 58);\n\t\t\t\tdisplay.setEditable(false);\n\t\t\t\t//Make a new GSON object so the text can be Pretty Printed.\n\t\t\t\tdisplay.append(new HealthReportHeadless(json).getReportString());\n\t\t\t\tJScrollPane scroll = new JScrollPane(display);\n\t\t\t\tscroll.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS);\n\t\t\t\t//Add Textarea in to middle panel\n\t\t\t\tmiddlePanel.add(scroll);\n\t\t\t\t\n\t\t\t\tJFrame frame13 = new JFrame();\n\t\t\t\tframe13.add(middlePanel);\n\t\t\t\tframe13.pack();\n\t\t\t\tframe13.setLocationRelativeTo(null);\n\t\t\t\tframe13.setVisible(true);\n\t\t\t});\n\t\t\t\n\t\t\t//Listener for the Test Again button. Opens a new UserPrompt object and keeps the Health Report open in the background.\n\t\t\ttest_again.addActionListener(e -> {\n\t\t\t\ttry {\n\t\t\t\t\tnew UserPrompt();\n\t\t\t\t} catch (Exception ex) {\n\t\t\t\t\tex.printStackTrace();\n\t\t\t\t}\n\t\t\t});\n\t\t\t\n\t\t\tframe.add(outer);\n\t\t\tframe.setExtendedState(JFrame.MAXIMIZED_BOTH);\n\t\t\tframe.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);\n\t\t\tframe.setVisible(true);\n\t\t\t\n\t\t\tif (EnvironmentUtil.isMac() && EnvironmentUtil.isVM()) {\n\t\t\t\tJOptionPane.showMessageDialog(new JFrame(), \"The tool has detected that it is running in a OSX Virtual Machine.\\nThe opening of links is not supported on OSX VMs.\\nPlease open the tool on a non-VM computer and run it again OR\\nyou can also copy the JSON from the report to a non-VM OR view the text report.\\nIf you are not running a VM, ignore this message.\", \"VM Detected\", JOptionPane.ERROR_MESSAGE);\n\t\t\t}\n\t\t\t\n\t\t}", "public Metadata(String _JSONString) {\n mJSONObject = new JSONObject();\n mJSONObject = (JSONObject) JSONValue.parse(_JSONString);\n\n // TODO: Maybe raise a 'malformed json string exception'\n if (mJSONObject == null) {\n \tLOGGER.info(\"Invalid JSON String received. new object was created, but its NULL.\");\n }\n }", "private JSONDocument parseString(String data){\n JSONDocument temp = null;\n int pointer = 0;\n boolean firstValidCharReached = false;\n do{\n char c = data.charAt(pointer ++);\n switch (c) {\n case '{':\n HashMap thm = this.parseMap(this.getFull(data.substring(pointer),0));\n temp = new JSONDocument(thm);\n firstValidCharReached = true;\n break;\n case '[':\n ArrayList tal = this.parseList(this.getFull(data.substring(pointer),1));\n temp = new JSONDocument(tal);\n firstValidCharReached = true;\n break;\n }\n }while (!firstValidCharReached);\n return temp;\n }", "@SuppressLint(\"SetTextI18n\")\n private void processJsonData(String report)\n {\n try {\n JSONObject mainObject = new JSONObject(report);\n JSONArray reportArray = mainObject.optJSONArray(\"report\");\n\n JSONObject jsonIndex = reportArray.getJSONObject(0);\n JSONArray detailArray = jsonIndex.getJSONArray(\"detail\");\n JSONObject detailObject = detailArray.getJSONObject(0);\n\n if(!detailObject.getString(\"monthlyTaka\").equals(\"0\"))\n monthlyTaka = detailObject.getString(\"monthlyTaka\");\n else monthlyTaka = \"0\";\n\n if(!detailObject.getString(\"monthlyCost\").equals(\"0\"))\n monthlyCost = detailObject.getString(\"monthlyCost\");\n else monthlyCost = \"0\";\n\n if(!detailObject.getString(\"monthlyMeal\").equals(\"0\"))\n monthlyMeal = detailObject.getString(\"monthlyMeal\");\n else monthlyMeal = \"0\";\n\n if(!detailObject.getString(\"remaining\").equals(\"0\"))\n remain = detailObject.getString(\"remaining\");\n else remain = \"0\";\n\n if(!detailObject.getString(\"mealRate\").equals(\"0\"))\n mealRate = detailObject.getString(\"mealRate\");\n else mealRate = \"0\";\n\n String name,meal,taka,cost,status;\n\n for(int i=1;i<reportArray.length();i++)\n {\n int count=0;\n JSONObject index = reportArray.getJSONObject(i);\n JSONArray infoArray = index.getJSONArray(\"info\");\n while(count<infoArray.length())\n {\n JSONObject object = infoArray.getJSONObject(count);\n\n name = object.getString(\"name\");\n if(!object.getString(\"meal\").equals(\"null\"))\n meal = object.getString(\"meal\");\n else meal = \"0\";\n if(!object.getString(\"taka\").equals(\"null\"))\n taka = object.getString(\"taka\");\n else taka = \"0\";\n if(!object.getString(\"cost\").equals(\"null\"))\n cost = object.getString(\"cost\");\n else cost = \"0\";\n if(!object.getString(\"status\").equals(\"null\"))\n status = object.getString(\"status\");\n else status = \"0\";\n modelList.add(new CostModel(name,meal,taka,cost,status));\n count++;\n }\n }\n\n ReportAdapter adapter = new ReportAdapter(this, modelList, mealRate, sharedPreferenceData.getmyCurrentSession());\n listView.setAdapter(adapter);\n\n txtTotalTaka.setText(monthlyTaka);txtTotalMeal.setText(monthlyMeal);txtTotalCost.setText(monthlyCost);\n txtRemaining.setText(remain);txtMealRate.setText(mealRate+\" per meal\");\n\n }catch (JSONException e)\n {\n Log.d(\"Exception \",e.toString());\n }\n }", "public InitialData(String jsonString)\n {\n //convert JSON to GSON\n JsonObject jsonObject = new JsonParser().parse(jsonString.trim()).getAsJsonObject();\n JsonObject packet = jsonObject.getAsJsonObject(\"packet\");\n \n //convert GSON to this object\n this.agentsName = packet.get(\"agentsName\").getAsString();\n this.placesName = packet.get(\"placesName\").getAsString();\n this.placesX = packet.get(\"placesX\").getAsInt();\n this.placesY = packet.get(\"placesY\").getAsInt();\n this.numberOfPlaces = packet.get(\"numberOfPlaces\").getAsInt();\n this.numberOfAgents = packet.get(\"numberOfAgents\").getAsInt();\n this.placesX = packet.get(\"placesX\").getAsInt();\n this.placeOverloadsSetDebugData = packet.get(\"placeOverloadsSetDebugData\").getAsBoolean();\n this.placeOverloadsGetDebugData = packet.get(\"placeOverloadsGetDebugData\").getAsBoolean();\n this.agentOverloadsSetDebugData = packet.get(\"agentOverloadsSetDebugData\").getAsBoolean();\n this.agentOverloadsGetDebugData = packet.get(\"agentOverloadsGetDebugData\").getAsBoolean();\n \n //get object type of overloaded debug data for agents and places, must extend Number\n String pDataType = packet.get(\"placeDataType\").getAsString();\n String aDataType = packet.get(\"agentDataType\").getAsString();\n \n if(pDataType.trim().isEmpty())\n {\n this.placeDataType = null;\n }\n else\n {\n try \n {\n placeDataType = (Class<? extends Number>) Class.forName(\"java.lang.\" + pDataType);\n } \n catch (ClassNotFoundException | ClassCastException ex) \n {\n System.out.println(\"No such class: \" + pDataType);\n this.placeDataType = null;\n }\n }\n \n if(aDataType.trim().isEmpty())\n {\n this.agentDataType = null;\n }\n else\n {\n try \n {\n agentDataType = (Class<? extends Number>) Class.forName(\"java.lang.\" + pDataType);\n } \n catch (ClassNotFoundException | ClassCastException ex) \n {\n System.out.println(\"No such class: \" + aDataType);\n this.agentDataType = null;\n }\n }\n \n }", "public static void normalize(JSONObject report)\n\t{\n\t\tnormalizeJsonPart(\"verinfo\", report, \"analysis\", \"general\", \"static\");\n\t\tnormalizeJsonPart(\"yarahits\", report, \"analysis\", \"general\", \"static\");\n\t\tnormalizeJsonPart(\"exports\", report, \"analysis\", \"general\", \"static\");\n\t\tnormalizeJsonPart(\"certificate\", report, \"analysis\", \"general\");\n\t\t\n\t\tnormalizeJsonPart(\"tls_callbacks\", report, \"analysis\", \"general\", \"static\");\n\t\tnormalizeJsonPart(\"targets\", report, \"analysis\", \"runtime\");\n\t\tnormalizeJsonPart(\"domains\", report, \"analysis\", \"runtime\", \"network\");\n\t\tnormalizeJsonPart(\"hosts\", report, \"analysis\", \"runtime\", \"network\");\n\t\tnormalizeJsonPart(\"suricata_alerts\", report, \"analysis\", \"runtime\", \"network\");\n\t\tnormalizeJsonPart(\"httprequests\", report, \"analysis\", \"runtime\", \"network\");\n\t\tnormalizeJsonPart(\"portinfo\", report, \"analysis\", \"runtime\", \"network\");\n\t\t\n\t\tnormalizeJsonPart(\"warnings\", report, \"analysis\", \"final\");\n\t\tnormalizeJsonPart(\"yarascanner\", report, \"analysis\", \"final\");\n\t\tnormalizeJsonPart(\"engines\", report, \"analysis\", \"final\", \"multiscan\");\n\t\tnormalizeJsonPart(\"business_threats\", report, \"analysis\", \"final\");\n\t\t\n\t\t// TODO: unite?\n\t\tnormalizeJsonArray(\"target\", \"mutants\", report, \"analysis\", \"runtime\", \"targets\");\n\t\tnormalizeJsonArray(\"target\", \"createdfiles\", report, \"analysis\", \"runtime\", \"targets\");\n\t\tnormalizeJsonArray(\"target\", \"handles\", report, \"analysis\", \"runtime\", \"targets\");\n\t\tnormalizeJsonArray(\"target\", \"hooks\", report, \"analysis\", \"runtime\", \"targets\");\n\t\tnormalizeJsonArray(\"target\", \"runtime_signatures\", report, \"analysis\", \"runtime\", \"targets\");\n\t\tnormalizeJsonArray(\"target\", \"network\", report, \"analysis\", \"runtime\", \"targets\");\n\t\t\n\t\tnormalizeJsonArray(\"host\", \"associated_domains\", report, \"analysis\", \"runtime\", \"network\", \"hosts\");\n\t\tnormalizeJsonArray(\"host\", \"associated_urls\", report, \"analysis\", \"runtime\", \"network\", \"hosts\");\n\t\tnormalizeJsonArray(\"host\", \"associated_runtime\", report, \"analysis\", \"runtime\", \"network\", \"hosts\");\n\t\tnormalizeJsonArray(\"host\", \"associated_sha256s\", report, \"analysis\", \"runtime\", \"network\", \"hosts\");\n\t\t\n\t\tstraightenArrayToIncludeOnlyObjects(\"domain\", report, \"db\", \"analysis\", \"runtime\", \"network\", \"domains\");\n\t\t\n\t\tconvertArrayFieldToText(\"target\", \"parentuid\", report, \"analysis\", \"runtime\", \"targets\");\n\t}", "@Test\n @SmallTest\n public void testReadFromJsonString() throws Throwable {\n final String jsonObjectString =\n \"{'crash-local-id':'123456abc','crash-capture-time':1234567890,\"\n + \"'crash-keys':{'app-package-name':'org.test.package'}}\";\n\n CrashInfo parsed = CrashInfo.readFromJsonString(jsonObjectString);\n CrashInfo expected =\n createCrashInfo(\"123456abc\", 1234567890, null, -1, \"org.test.package\", null);\n Assert.assertThat(parsed, equalsTo(expected));\n }", "public JSONString(String stringIn)\n {\n this.string = stringIn;\n }", "public abstract void parseReport();", "@Override\n public void parse(String json) {\n JSONObject object = new JSONObject(json);\n id = object.getInt(\"dataset id\");\n name = object.getString(\"dataset name\");\n maxNumOfLabels = object.getInt(\"maximum number of labels per instance\");\n\n JSONArray labelsJSON = object.getJSONArray(\"class labels\");\n labels = new ArrayList<>();\n for (int i = 0; i < labelsJSON.length(); i++) {\n labels.add(new Label(labelsJSON.getJSONObject(i).toString()));\n }\n\n JSONArray instancesJSON = object.getJSONArray(\"instances\");\n instances = new ArrayList<>();\n for (int i = 0; i < instancesJSON.length(); i++) {\n instances.add(new Instance(instancesJSON.getJSONObject(i).toString()));\n }\n }", "public String parse(String jsonLine) throws JSONException {\n JSONObject jsonObject = new JSONObject(jsonLine);\n jsonObject = new JSONObject(jsonObject.getString(\"output\"));\n String result = jsonObject.getString(\"result\");\n return result;\n }", "public JFreeReport parseReport(final String file)\r\n throws IOException, ResourceException\r\n {\r\n if (file == null)\r\n {\r\n throw new NullPointerException(\"File may not be null\");\r\n }\r\n\r\n return parseReport(new File(file));\r\n }", "public static Schematic schematicFromJson(String json) {\n if (gson == null) {\n initializeGson();\n }\n\n return gson.fromJson(json, new TypeToken<Schematic>(){}.getType());\n }", "public static SofortInfo fromJson(String jsonString) throws JsonProcessingException {\n return JSON.getMapper().readValue(jsonString, SofortInfo.class);\n }", "private Field(String jsonString) {\n this.jsonString = jsonString;\n }", "private String parseResponse(String jsonString) throws JSONException,\n IllegalArgumentException, CalculationException {\n\n JSONObject json = new JSONObject(jsonString);\n int errorCode = json.getInt(\"error\");\n String errorString = json.getString(\"error_str\");\n if (errorCode != 200) {\n // These are Google Maps API error codes. Assuming that root cause is invalid parameters.\n if (errorCode > 600) {\n log.warn(\"parseResponse() - Error status returned by Train Route API: \" + errorString);\n throw new IllegalArgumentException();\n } else {\n throw new CalculationException(errorString, errorCode);\n }\n }\n\n JSONObject route = json.getJSONArray(\"Routes\").getJSONObject(0);\n // Removed setting of setLegDetail - as a performance tuning we are.\n // not returning leg details from train route api for the moment - SM (10/2009)\n // setLegDetail(route.getJSONArray(\"Steps\").toString());\n return route.getJSONObject(\"Distance\").getString(\"meters\");\n }", "public static void main(String[] str) {\n String str1 = \"[{\\\"随机欢迎语\\\":[\\\"aaa\\\",\\\"bbbbb\\\",\\\"ccccc\\\"],\\\"no\\\":\\\"1\\\"},{\\\"商品标题\\\":\\\"商品标题\\\",\\\"no\\\":\\\"2\\\"},{\\\"商品卖点\\\":\\\"商品卖点\\\",\\\"no\\\":\\\"3\\\"},{\\\"商品描述\\\":\\\"商品描述\\\",\\\"no\\\":\\\"2\\\"},{\\\"包装清单\\\":\\\"包装清单\\\",\\\"no\\\":\\\"2\\\"},{\\\"随机结束语\\\":[\\\"1111\\\",\\\"2222\\\",\\\"33333\\\"],\\\"no\\\":\\\"2\\\"}]\";\n //System.out.println(JSONObject.);\n JSONArray objects = JSONObject.parseArray(str1);\n List<JSONObject> jsonObjects = JSONObject.parseArray(str1, JSONObject.class);\n for (JSONObject object : jsonObjects) {\n for (Map.Entry<String, Object> en : object.entrySet()) {\n System.out.println(en.getValue());\n }\n }\n\n }", "public static String GetJSONString(String resourceString) {\n String retVal = \"\";\n resourceString = resourceString.replaceAll(\"<API_.*?>\", \"\").replaceAll(\"</API_.*?>\", \"\");\n try {\n String json = XML.toJSONObject(resourceString).toString();\n json = \"{\" + json.substring(1, json.length() - 1).replaceAll(\"\\\\{\", \"\\\\[{\").replaceAll(\"\\\\}\", \"\\\\]}\") + \"}\";\n retVal = json;\n } catch (Exception ex) {\n ApiLog.One.WriteException(ex);\n }\n return retVal;\n }", "public JSONResponse(String jsonString) {\n this.jsonString = jsonString;\n }", "@Override\n\tpublic JSON parse(String in) throws IOException {\n\t\tMyJSON js = new MyJSON();\n\t\t//count brackets make sure they match\n\t\tif(!syntaxOkay(in)){\n\t\t\tthrow new IllegalStateException(\"Mismatched brackets error\");\n\t\t}\n\t\t//get rid of spaces to make things easier\n\t\tString withoutSpaces = remove(in, ' ');\n\t\t//handles edge case of an empty object\n\t\tString withoutBraces = remove(withoutSpaces, '{');\n\t\twithoutBraces = remove(withoutBraces, '}');\n\t\tif(withoutBraces.length() == 0){\n\t\t\treturn js;\n\t\t}\n\t\tint colonIndex = in.indexOf(\":\");\n\t\tString key = in.substring(0, colonIndex);\n\t\tString value = in.substring(colonIndex + 1);\n\n\t\tif(value.contains(\":\")){\n\t\t\t//this means the value is an object so we figure out how many strings to add to the object\n\t\t\tString[] values = value.split(\",\");\n\t\t\t//creates a temp for the new object\n\t\t\tMyJSON temp = new MyJSON();\n\t\t\tfillObject(values, temp);\n\t\t\tkey = removeOutsides(key);\n\t\t\tjs.setObject(key, temp);\n\t\t}else{\n\t\t\t//the base case that actually puts things as a JSON object\n\t\t\tkey = removeOutsides(key);\n\t\t\tvalue = removeOutsides(value);\n\t\t\tjs.setString(key, value);\n\t\t}\n\n\t\treturn js;\n\t}", "public static JinyouTestOne fromJson(String jsonString) throws IOException {\n return JSON.getGson().fromJson(jsonString, JinyouTestOne.class);\n }", "public void createFromJSONString(String jsonData) throws JSONException {\n JSONObject placeJSON = new JSONObject(jsonData);\n\n // set id of place object\n this.setId(placeJSON.getString(\"_id\"));\n // set title of place object\n this.setTitle(placeJSON.getString(\"title\"));\n // set lat of place object\n this.setLat(placeJSON.getString(\"lat\"));\n // set lon of place object\n this.setLon(placeJSON.getString(\"lon\"));\n }", "public static Sandwich parseSandwichJson(String json) {\n\n try {\n JSONObject jsonObj = new JSONObject(json);\n JSONObject name = jsonObj.getJSONObject(\"name\");\n mainName = name.getString(\"mainName\");\n alsoKnownAs = new ArrayList<>(addToList(name.getJSONArray(\"alsoKnownAs\")));\n // https://stackoverflow.com/questions/13790726/the-difference-between-getstring-and-optstring-in-json/13790789#13790789\n placeOfOrigin = jsonObj.optString(\"placeOfOrigin\");\n description = jsonObj.optString(\"description\");\n image = jsonObj.optString(\"image\");\n ingredients = new ArrayList<>(addToList(jsonObj.getJSONArray(\"ingredients\")));\n\n } catch (JSONException e) {\n Log.e(TAG, e.getMessage());\n\n }\n return new Sandwich(mainName, alsoKnownAs, placeOfOrigin, description, image, ingredients);\n }", "private WeekData extract_year_data(String json_string){\n try {\n JSONObject jsonObj = new JSONObject(json_string);\n WeekData wd = new WeekData();\n wd.setYear(jsonObj.getInt(\"year\"));\n wd.setWeek(jsonObj.getJSONArray(\"week\"));\n wd.setDays(jsonObj.getJSONArray(\"days\"));\n\n return wd;\n } catch (JSONException e) {\n e.printStackTrace();\n }\n return null;\n }", "@Test\n public void testWithoutNewWarnings() {\n String request = \"{\\\"canRunOnFailed\\\":false,\\\"defaultEncoding\\\":\\\"\\\",\\\"failedTotalAll\\\":\\\"\\\",\\\"failedTotalHigh\\\":\\\"\\\",\\\"failedTotalLow\\\":\\\"\\\",\\\"failedTotalNormal\\\":\\\"\\\",\\\"healthy\\\":\\\"0\\\",\\\"pattern\\\":\\\"\\\",\\\"shouldDetectModules\\\":false,\\\"thresholdLimit\\\":\\\"low\\\",\\\"unHealthy\\\":\\\"50\\\",\\\"unstableTotalAll\\\":\\\"\\\",\\\"unstableTotalHigh\\\":\\\"\\\",\\\"unstableTotalLow\\\":\\\"\\\",\\\"unstableTotalNormal\\\":\\\"\\\"}\";\n\n JSONObject input = JSONObject.fromObject(request);\n JSONObject output = PluginDescriptor.convertHierarchicalFormData(input);\n\n assertEquals(\"Wrong JSON \", input, output);\n }", "public static Trajectory trajectoryFromPath(String trajectoryJSON){\n Trajectory trajectory = new Trajectory();\n try {\n Path trajectoryPath = Filesystem.getDeployDirectory().toPath().resolve(trajectoryJSON);\n trajectory = TrajectoryUtil.fromPathweaverJson(trajectoryPath);\n } catch (IOException ex) {\n DriverStation.reportError(\"Unable to open trajectory: \" + trajectoryJSON, ex.getStackTrace());\n }\n return trajectory;\n\n }", "public JSONDocument parse (String data){\n JSONDocument temp = null;\n if (data != null && !data.isEmpty()){\n temp = this.parseString(this.cleanString(data));\n }else throw new IllegalArgumentException(\"data cannot be null or empty\");\n return temp;\n }", "@Test\n public void testWithNewWarnings() {\n String request = \"{\\\"canComputeNew\\\":{\\\"failedNewAll\\\":\\\"\\\",\\\"failedNewHigh\\\":\\\"1\\\",\\\"failedNewLow\\\":\\\"\\\",\\\"failedNewNormal\\\":\\\"\\\",\\\"unstableNewAll\\\":\\\"1\\\",\\\"unstableNewHigh\\\":\\\"\\\",\\\"unstableNewLow\\\":\\\"\\\",\\\"unstableNewNormal\\\":\\\"\\\",\\\"useDeltaValues\\\":false},\\\"canRunOnFailed\\\":false,\\\"defaultEncoding\\\":\\\"\\\",\\\"failedTotalAll\\\":\\\"\\\",\\\"failedTotalHigh\\\":\\\"\\\",\\\"failedTotalLow\\\":\\\"\\\",\\\"failedTotalNormal\\\":\\\"\\\",\\\"healthy\\\":\\\"0\\\",\\\"pattern\\\":\\\"\\\",\\\"shouldDetectModules\\\":false,\\\"thresholdLimit\\\":\\\"low\\\",\\\"unHealthy\\\":\\\"50\\\",\\\"unstableTotalAll\\\":\\\"\\\",\\\"unstableTotalHigh\\\":\\\"\\\",\\\"unstableTotalLow\\\":\\\"\\\",\\\"unstableTotalNormal\\\":\\\"\\\"}\";\n\n JSONObject input = JSONObject.fromObject(request);\n JSONObject output = PluginDescriptor.convertHierarchicalFormData(input);\n\n String expected = \"{\\\"canComputeNew\\\":true,\\\"failedNewAll\\\":\\\"\\\",\\\"failedNewHigh\\\":\\\"1\\\",\\\"failedNewLow\\\":\\\"\\\",\\\"failedNewNormal\\\":\\\"\\\",\\\"unstableNewAll\\\":\\\"1\\\",\\\"unstableNewHigh\\\":\\\"\\\",\\\"unstableNewLow\\\":\\\"\\\",\\\"unstableNewNormal\\\":\\\"\\\",\\\"useDeltaValues\\\":false,\\\"canRunOnFailed\\\":false,\\\"defaultEncoding\\\":\\\"\\\",\\\"failedTotalAll\\\":\\\"\\\",\\\"failedTotalHigh\\\":\\\"\\\",\\\"failedTotalLow\\\":\\\"\\\",\\\"failedTotalNormal\\\":\\\"\\\",\\\"healthy\\\":\\\"0\\\",\\\"pattern\\\":\\\"\\\",\\\"shouldDetectModules\\\":false,\\\"thresholdLimit\\\":\\\"low\\\",\\\"unHealthy\\\":\\\"50\\\",\\\"unstableTotalAll\\\":\\\"\\\",\\\"unstableTotalHigh\\\":\\\"\\\",\\\"unstableTotalLow\\\":\\\"\\\",\\\"unstableTotalNormal\\\":\\\"\\\"}\";\n assertEquals(\"Wrong JSON \", JSONObject.fromObject(expected), output);\n }", "public final void fromJson( final String jsonData )\n\t{\n\t\tthis.data = new JSONObject( jsonData );\n\t\tthis.href = this.data.optString( \"href\" );\n\t}", "public ReportResponse(List<ReportData> reportData) {\n this.reportData = reportData;\n }", "public JFreeReport parseReport(final URL file)\r\n throws IOException, ResourceException\r\n {\r\n return parseReport(file, file);\r\n }", "public static List<Planet> extractPlanetFromJson(String jsonString) {\n List<Planet> planets = new ArrayList<>();\n\n try {\n JSONArray planetsArray = new JSONArray(jsonString);\n\n for (int i = 0; i < planetsArray.length(); i++){\n JSONObject currentPlanet = planetsArray.getJSONObject(i);\n\n\n int id = currentPlanet.getInt(\"id\");\n String name = currentPlanet.getString(\"name\");\n int distance = currentPlanet.getInt(\"distance\");\n\n Planet planet = new Planet(id, name, distance);\n planets.add(planet);\n }\n\n } catch (JSONException e) {\n System.out.println(\"Problem parsing the character JSON results\");\n }\n return planets;\n }", "void extractDataFromJson(String commentData);", "@Override\n public void init(String jsonString) throws PluginException {\n try {\n config = new JsonSimpleConfig(jsonString);\n reset();\n } catch (IOException e) {\n log.error(\"Error reading config: \", e);\n }\n }", "public String createJSON(IInternalContest contest, Run run) {\n\n StringBuilder stringBuilder = new StringBuilder();\n\n appendPair(stringBuilder, \"id\", run.getNumber());\n stringBuilder.append(\", \");\n\n appendPair(stringBuilder, \"submission_id\", run.getNumber());\n stringBuilder.append(\", \");\n\n if (run.isJudged()) {\n ElementId judgementId = run.getJudgementRecord().getJudgementId();\n Judgement judgement = contest.getJudgement(judgementId);\n\n appendPair(stringBuilder, \"judgement_type_id\", judgement.getAcronym());\n } else {\n\n appendPairNullValue(stringBuilder, \"judgement_type_id\");\n }\n\n // start_time TIME yes no provided by CCS absolute time when judgement started\n // start_contest_time RELTIME yes no provided by CCS contest relative time when judgement started\n // end_time TIME yes yes provided by CCS absolute time when judgement completed\n // end_contest_time RELTIME yes yes provided by CCS contest relative time when judgement completed \n\n // [{\"id\":\"189549\",\"submission_id\":\"wf2017-32163123xz3132yy\",\"judgement_type_id\":\"CE\",\"start_time\":\"2014-06-25T11:22:48.427+01\",\n // \"start_contest_time\":\"1:22:48.427\",\"end_time\":\"2014-06-25T11:23:32.481+01\",\"end_contest_time\":\"1:23:32.481\"},\n // {\"id\":\"189550\",\"submission_id\":\"wf2017-32163123xz3133ub\",\"judgement_type_id\":null,\"start_time\":\"2014-06-25T11:24:03.921+01\",\n // \"start_contest_time\":\"1:24:03.921\",\"end_time\":null,\"end_contest_time\":null}\n // ]\n\n Calendar wallElapsed = calculateElapsedWalltime(contest, run.getElapsedMS());\n\n stringBuilder.append(\", \");\n appendPair(stringBuilder, \"start_time\", wallElapsed); // absolute time when judgement started ex. 2014-06-25T11:24:03.921+01\n\n stringBuilder.append(\", \");\n appendPair(stringBuilder, \"start_contest_time\", XMLUtilities.formatSeconds(run.getElapsedMS())); // contest relative time when judgement started. ex. 1:24:03.921\n\n stringBuilder.append(\", \");\n appendPairNullValue(stringBuilder, \"end_time\"); // TODO CLICS DATA ADD - add code to save in JudgementRecord in Executable\n\n stringBuilder.append(\", \");\n appendPairNullValue(stringBuilder, \"end_contest_time\"); // TODO CLICS DATA ADD add code to save in JudgementRecord - in Executable\n\n return stringBuilder.toString();\n }", "private String parseResultParagraph(String jsonString) {\n JSONArray obj = new JSONArray(jsonString);\n JSONArray obj2 = new JSONArray(obj.get(0).toString());\n JSONArray obj_final = new JSONArray(obj2.get(0).toString());\n return (String) (obj_final.get(0));\n }", "private static void normalizeJsonPart(String element, JSONObject report, String... path)\n\t{\n\t\ttry {\n\t\t\t// go to the element\n\t\t\tJSONObject temp = report;\n\t\t\tfor (String key : path) {\n\t\t\t\ttemp = temp.getJSONObject(key);\n\t\t\t\tif (temp == null)\n\t\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t// if it is null - put a dummy object\n\t\t\tif (temp.optJSONObject(element) == null) {\n\t\t\t\ttemp.putOpt(element, dummy);\n\t\t\t}\n\t\t} catch (JSONException e) {\n\t\t\tErrorLogger.getInstance().getLogger().fine(e.getMessage());\n\t\t\treturn;\n\t\t}\n\t}", "public ReportSummary(final String configFilePath) {\n\t\tInputStream is = getClass().getClassLoader().getResourceAsStream(configFilePath);\n\t\tProperties configProp = new Properties();\n\t\ttry {\n\t\t\tconfigProp.load(is);\n\t\t\toutPathDir = configProp.getProperty(\"jtreportDir\");\n\t\t\tvelocityTemplatePath = configProp.getProperty(\"veolocityTemplatePath\");\n\t\t\tString istemplateWithKey = configProp.getProperty(\"templateWithKey\");\n\t\t\ttemplateWithKey = StringUtils.equalsIgnoreCase(istemplateWithKey, \"true\") ? true : false;\n\t\t\tString margeReport = configProp.getProperty(\"margeReport\");\n\t\t\tmargeSurefireReport = StringUtils.equalsIgnoreCase(margeReport, \"true\") ? true : false;\n\t\t\tString printerTypeString = configProp.getProperty(\"printerType\");\n\t\t\tString reportPrinterFormat = configProp.getProperty(\"reportPrinterFormat\");\n\n\t\t\tString[] splitPrinterFormat = StringUtils.split(reportPrinterFormat, \",\");\n\t\t\tif ((splitPrinterFormat != null) && (splitPrinterFormat.length > 0)) {\n\t\t\t\treportPrinterType = new ArrayList<ReportTypePrinterEnum>();\n\t\t\t\tfor (String printerFormat : splitPrinterFormat) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tReportTypePrinterEnum printerTypeEnum = ReportTypePrinterEnum.valueOf(printerFormat);\n\t\t\t\t\t\treportPrinterType.add(printerTypeEnum);\n\t\t\t\t\t} catch (IllegalArgumentException e) {\n\t\t\t\t\t\tL.warn(\"ReportTypePrinterEnum value [\" + printerFormat + \"] not found.\");\n\t\t\t\t\t\tL.debug(\"ReportTypePrinterEnum value [\" + printerFormat + \"] not found.\", e);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (reportPrinterType.size() == 0) {\n\t\t\t\treportPrinterType.add(ReportTypePrinterEnum.PDF);\n\t\t\t}\n\t\t\tif (StringUtils.equalsIgnoreCase(printerTypeString, PrinterGlobalTypeEnum.CUSTOM.name())) {\n\t\t\t\tprinterType = PrinterGlobalTypeEnum.CUSTOM;\n\t\t\t}\n\t\t\tif (StringUtils.equalsIgnoreCase(printerTypeString, PrinterGlobalTypeEnum.VELOCITY.name())) {\n\t\t\t\tprinterType = PrinterGlobalTypeEnum.VELOCITY;\n\t\t\t}\n\t\t\tString customPrinterClass = configProp.getProperty(\"customPrinterClass\");\n\t\t\tif (StringUtils.isNotBlank(customPrinterClass)) {\n\t\t\t\ttry {\n\t\t\t\t\tcustomJtPrinter = (IPrinterStrategy) Class.forName(customPrinterClass).newInstance();\n\t\t\t\t} catch (ClassNotFoundException e) {\n\t\t\t\t\tL.error(\"Error Class [\" + customPrinterClass + \"] not found!\", e);\n\t\t\t\t} catch (InstantiationException e) {\n\t\t\t\t\tL.error(\"Instantiation Exception for class [\" + customPrinterClass + \"]\", e);\n\t\t\t\t} catch (IllegalAccessException e) {\n\t\t\t\t\tL.error(\"Illegal acces for class [\" + customPrinterClass + \"]\", e);\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\tL.error(\"Load jterport properties file error.\", e);\n\t\t}\n\n\t}", "public static String formatJSONStringFromResponse(String apiString) {\n String remove_new_line = apiString.replace(\"\\\\n\", \"\\\\\");\n String remove_begin_slash = remove_new_line.replace(\"\\\"{\", \"{\");\n String remove_end_slash = remove_begin_slash.replace(\"}\\\"\", \"}\");\n String remove_extra_slashes = remove_end_slash.replace(\"\\\\\", \"\");\n return remove_extra_slashes;\n }", "public void parser(JSONObject jo) {\n\n\t\n\t\tcontractId = JsonUtil.getJsonString(jo, \"contractId\");\n\t\tdate1 = JsonUtil.getJsonString(jo, \"date1\");\n\t\tstartDate = JsonUtil.getJsonString(jo, \"startDate\");\n\t\tendDate = JsonUtil.getJsonString(jo,\"endDate\");\n\t\tsupplierName = JsonUtil.getJsonString(jo,\"supplierName\");\n\t\ttxt7 = JsonUtil.getJsonString(jo,\"txt7\");\n\t\t\n\t\t\n\t\n\t}", "public Report() {\r\n }", "public static JsonElement stringToJSON2(String json) {\n try {\n JsonElement parser = new JsonPrimitive(json);\n System.out.println(parser.getAsString());\n //JsonObject Jso = new JsonObject();\n //Jso = (JsonObject) parser.p(json);\n return parser;\n } catch (Exception e) {\n return new JsonObject();\n }\n }", "public Report() {\n\t\tsuper();\n\t}", "public String parseJSON(String urlString, String zipString, JsonElement root){\n String Data = \"nullJSONData\";\n\n JsonObject rootobj = root.getAsJsonObject(); //May be an array, may be an object. \n \n \n // if url string is for zipcode website\n // parse rootobj for zipcode \n if (urlString == \"http://freegeoip.net/json/\"){\n String zipcode = rootobj.get(\"zip_code\").getAsString(); //just grab the zipcode \n \n Data = \"The zipcode is \" + zipcode;\n }\n \n \n // if message from user contained a zip code\n // parse rootobj for weather data\n if (zipString != \"null Zip\"){\n \n String message = rootobj.get(\"message\").getAsString(); //just grab the message\n Double listCount = rootobj.get(\"cnt\").getAsDouble(); //just grab the message\n JsonArray JSONdataArray = rootobj.get(\"list\").getAsJsonArray(); //grab list array, which is \n \n // the first item in the array is a JSON Object\n // this first object has the tempurate stored in a nested object called main\n JsonObject firstObject = JSONdataArray.get(0).getAsJsonObject();\n JsonObject mainObject = firstObject.get(\"main\").getAsJsonObject();\n String temperature = mainObject.get(\"temp\").getAsString();\n Data = \"The tempurature is \" + temperature + \" degrees Fahrenheit.\"; \n \n }\n \n\n // parse rootobj for number of humans in space\n if (urlString == \"http://api.open-notify.org/astros.json/\"){\n \n String number = rootobj.get(\"number\").getAsString(); //just grab the message\n Data = \"There are currently \" + number + \" humans ins space.\"; \n\n \n } \n \n return Data;\n \n }", "Gist deserializeGistFromJson(String json);", "public static List<Ship> extractShipsFromJson(String jsonString) {\n List<Ship> ships = new ArrayList<>();\n\n try {\n JSONArray shipsArray = new JSONArray(jsonString);\n\n for (int i = 0; i < shipsArray.length(); i++){\n JSONObject currentShip = shipsArray.getJSONObject(i);\n\n\n int id = currentShip.getInt(\"id\");\n String name = currentShip.getString(\"name\");\n int speed = currentShip.getInt(\"speed\");\n String type = currentShip.getString(\"type\");\n int maxCargoWeight = currentShip.getInt(\"maxCargoWeight\");\n\n Ship ship = new Ship(id, name, speed, type, maxCargoWeight);\n ships.add(ship);\n }\n\n } catch (JSONException e) {\n System.out.println(\"Problem parsing the character JSON results\");\n }\n return ships;\n }", "protected <T> Object fromJson(String jsonString, Class<T> classInstance) {\n\n\t\tSystem.out.println(\"jsonString = \" + jsonString);\n\t\treturn gson.fromJson(jsonString, classInstance);\n\n\t}", "@SuppressWarnings(\"unchecked\")\n\t\tpublic GNDDocument(String content) throws JsonParseException,\n\t\t\t\tJsonMappingException, IOException, ParseException\n\t\t{\n\t\t\tObjectMapper mapper = new ObjectMapper();\n\t\t\tMap<String, Object> root = mapper.readValue(content, Map.class);\n\t\t\tLinkedHashMap<String, Object> meta = (LinkedHashMap<String, Object>) root\n\t\t\t\t\t.get(\"metadata\");\n\t\t\t_name = (String) meta.get(\"name\");\n\t\t\t_platform = (String) meta.get(\"platform\");\n\t\t\t_platformType = (String) meta.get(\"platform_type\");\n\t\t\t_sensor = (String) meta.get(\"sensor\");\n\t\t\t_sensorType = (String) meta.get(\"sensor_type\");\n\t\t\t_trial = (String) meta.get(\"trial\");\n\n\t\t\t// ok, and populate the tracks\n\t\t\tArrayList<String> dTypes = (ArrayList<String>) meta.get(\"data_type\");\n\t\t\tif (dTypes.contains(\"lat\") && dTypes.contains(\"lon\")\n\t\t\t\t\t&& dTypes.contains(\"time\"))\n\t\t\t{\n\t\t\t\t// ok, go for it.\n\t\t\t\tArrayList<Double> latArr = (ArrayList<Double>) root.get(\"lat\");\n\t\t\t\tArrayList<Double> lonArr = (ArrayList<Double>) root.get(\"lon\");\n\t\t\t\tArrayList<String> timeArr = (ArrayList<String>) root.get(\"time\");\n\t\t\t\tArrayList<Double> eleArr = null;\n\t\t\t\tArrayList<Double> crseArr = null;\n\t\t\t\tArrayList<Double> spdArr = null;\n\n\t\t\t\tif (dTypes.contains(\"elevation\"))\n\t\t\t\t\teleArr = (ArrayList<Double>) root.get(\"elevation\");\n\t\t\t\tif (dTypes.contains(\"course\"))\n\t\t\t\t\tcrseArr = (ArrayList<Double>) root.get(\"course\");\n\t\t\t\tif (dTypes.contains(\"speed\"))\n\t\t\t\t\tspdArr = (ArrayList<Double>) root.get(\"speed\");\n\n\t\t\t\t_track = new Track();\n\t\t\t\t_track.setName(_name);\n\n\t\t\t\tint ctr = 0;\n\t\t\t\tfor (Iterator<String> iterator = timeArr.iterator(); iterator.hasNext();)\n\t\t\t\t{\n\t\t\t\t\tString string = iterator.next();\n\t\t\t\t\tdouble lat = latArr.get(ctr);\n\t\t\t\t\tdouble lon = lonArr.get(ctr);\n\n\t\t\t\t\tdouble depth = 0, course = 0, speed = 0;\n\t\t\t\t\tif (eleArr != null)\n\t\t\t\t\t\tdepth = -eleArr.get(ctr);\n\n\t\t\t\t\tif (crseArr != null)\n\t\t\t\t\t\tcourse = crseArr.get(ctr);\n\t\t\t\t\tif (spdArr != null)\n\t\t\t\t\t\tspeed = spdArr.get(ctr);\n\n\t\t\t\t\tDate hd = timeFrom(string);\n\t\t\t\t\tHiResDate dt = new HiResDate(hd);\n\t\t\t\t\tWorldLocation theLoc = new WorldLocation(lat, lon, depth);\n\t\t\t\t\tFix thisF = new Fix(dt, theLoc, course, speed);\n\t\t\t\t\t_track.addFix(thisF);\n\n\t\t\t\t\tctr++;\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t}", "@Override\n\t//Start, end, headache count, average severity, duration\n\tpublic String buildReport() {\n\t\tsetHeadacheInfo(); \n\t\tStringBuilder hsReport = new StringBuilder(); \n\t\thsReport.append(\"\\nReport Start Date: \"); \n\t\thsReport.append(getStartDate().toString() + \"\\n\"); \n\t\thsReport.append(\"Report End Date: \"); \n\t\thsReport.append(getEndDate().toString() + \"\\n\"); \n\t\thsReport.append(\"Headache Count: \"); \n\t\thsReport.append(getHeadacheList().size() + \"\\n\"); \n\t\thsReport.append(\"Average Severty: \"); \n\t\thsReport.append(getAverageSeverity() + \"\\n\"); \n\t\thsReport.append(\"Average Duration (hours): \"); \n\t\thsReport.append(getAverageDuration() + \"\\n\"); \n\t\treturn hsReport.toString(); \n\t}", "public ResourcePortfolio(String inputs) {\r\n\t\tGson gson = new Gson();\t\r\n\t\tMap<String, Object> map = gson.fromJson(inputs,Map.class);\r\n\t\t//check for typos anyway\r\n\t\tfor(String key: map.keySet()) {\r\n\t\t\tif(!keys.contains(key)) {\r\n\t\t\t\tSystem.err.println(\"Key \"+key+\" Is not a resource!!!\");\r\n\t\t\t}\r\n\t\t}\r\n\t\tthis.labor = MiscUtilities.extractDouble(map.get(\"L\"));\r\n\t\tthis.materials = MiscUtilities.extractDouble(map.get(\"M\"));\r\n\t\tthis.influence = MiscUtilities.extractDouble(map.get(\"I\"));\r\n\t\tthis.wealth = MiscUtilities.extractDouble(map.get(\"W\"));\r\n\t\tthis.education = MiscUtilities.extractDouble(map.get(\"E\"));\r\n\t}", "<T> T fromJson(String source, Class<T> type);", "public Info(String json) {\n super(json);\n }", "public static String aPluginConfiguration() {\n return \"{\\\"Application\\\":\\\"PIS\\\",\\\"ASPSP\\\":[\" +\n \"{\\\"AspspId\\\":\\\"1409\\\",\\\"Name\\\":[\\\"La Banque Postale\\\"],\\\"CountryCode\\\":\\\"FR\\\",\\\"BIC\\\":\\\"PSSTFRPP\\\"},\" +\n \"{\\\"AspspId\\\":\\\"1601\\\",\\\"Name\\\":[\\\"BBVA\\\"],\\\"CountryCode\\\":\\\"ES\\\",\\\"BIC\\\":\\\"BBVAESMM\\\"},\" +\n \"{\\\"AspspId\\\":\\\"1410\\\", \\\"BIC\\\":\\\"PSSTFRPT\\\", \\\"CountryCode\\\":\\\"FR\\\", \\\"Name\\\":[ \\\"La Banque\\\"], \\\"Details\\\":[ { \\\"Api\\\":\\\"POST /payments\\\", \\\"Fieldname\\\":\\\"DebtorAccount\\\", \\\"Type\\\":\\\"MANDATORY\\\", \\\"ProtocolVersion\\\":\\\"BG_V_1_3_0\\\" }, { \\\"Api\\\":\\\"POST /payments\\\", \\\"Fieldname\\\":\\\"PaymentProduct\\\", \\\"Type\\\":\\\"SUPPORTED\\\", \\\"Value\\\":\\\"Instant\\\", \\\"ProtocolVersion\\\":\\\"BG_V_1_3_0\\\" } ] }\"+\n \"],\\\"MessageCreateDateTime\\\":\\\"2019-11-15T16:52:37.092+0100\\\",\\\"MessageId\\\":\\\"6f31954f-7ad6-4a63-950c-a2a363488e\\\"}\";\n }", "public void convert() throws IOException {\n URL url = new URL(SERVICE + City + \",\" + Country + \"&\" + \"units=\" + Type + \"&\" + \"APPID=\" + ApiID);\n BufferedReader reader = new BufferedReader(new InputStreamReader(url.openStream()));\n String line = reader.readLine();\n // Pobieranie JSON\n\n // Wyciąganie informacji z JSON\n //*****************************************************************\n //Temp\n if (!StringUtils.isBlank(line)) {\n int startIndex = line.indexOf(\"{\\\"temp\\\"\") + 8;\n int endIndex = line.indexOf(\",\\\"feels_like\\\"\");\n temperature = line.substring(startIndex, endIndex);\n // System.out.println(temperature);\n }\n //Min temp\n if (!StringUtils.isBlank(line)) {\n int startIndex = line.indexOf(\",\\\"temp_min\\\"\") + 12;\n int endIndex = line.indexOf(\",\\\"temp_max\\\"\");\n temperatureMin = line.substring(startIndex, endIndex);\n // System.out.println(temperatureMin);\n }\n //Max temp\n if (!StringUtils.isBlank(line)) {\n int startIndex = line.indexOf(\"\\\"temp_max\\\":\") + 11;\n int endIndex = line.indexOf(\",\\\"pressure\\\"\");\n temperatureMax = line.substring(startIndex, endIndex);\n //System.out.println(temperatureMax);\n }//todo dodaj więcej informacji takich jak cisnienie i takie tam\n //*****************************************************************\n }", "private JSONObject parseJSONResponse(String responseString) throws Exception {\n\t\tJSONObject responseJSON = null;\n\t\t\n\t\ttry {\n\t\t\tif(responseString != null){\n\t\t\t\tresponseJSON = (JSONObject)parser.parse(responseString);\n\t\t\t}\n\t\t} catch (ParseException pe) {\n\t\t\tpe.printStackTrace();\n\t\t\tlog.severe(\"Exception when parsing json response: \" + pe.getMessage());\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\tlog.severe(\"Exception when parsing json response: \" + e.getMessage());\n\t\t}\n\t\t\n\t\treturn responseJSON;\n\t}", "private void testJsonObject(String jsonString, Citation entity) {\n JSONObject testObject = new JSONObject(jsonString);\n\n String pid = testObject.getString(\"pid\");\n String url = testObject.getString(\"url\");\n String erc = testObject.getString(\"erc\");\n String who = testObject.getString(\"who\");\n String what = testObject.getString(\"what\");\n String time = testObject.getString(\"date\");\n\n Assert.assertEquals(entity.getPurl(), pid);\n Assert.assertEquals(entity.getUrl(), url);\n Assert.assertEquals(entity.getErc(), erc);\n Assert.assertEquals(entity.getWho(), who);\n Assert.assertEquals(entity.getWhat(), what);\n Assert.assertEquals(entity.getDate(), time);\n }", "public static Sandwich parseSandwichJson(String json) throws JSONException {\n final String NAME = \"name\";\n final String IMAGE = \"image\";\n final String MAINNAME = \"mainName\";\n final String ORIGIN = \"placeOfOrigin\";\n final String ALIASES = \"alsoKnownAs\";\n final String DESCRIPTION = \"description\";\n final String INGREDIENTS = \"ingredients\";\n\n /* Parsing JSON Object into separate variables */\n JSONObject sandwichJson = new JSONObject(json);\n JSONObject nameJson = sandwichJson.getJSONObject(NAME);\n String mainName = nameJson.getString(MAINNAME);\n JSONArray alsoKnownAs = nameJson.getJSONArray(ALIASES);\n List<String> alsoKnownAsList = jsonArraytoList(alsoKnownAs);\n String origin = sandwichJson.getString(ORIGIN);\n String description = sandwichJson.getString(DESCRIPTION);\n String image = sandwichJson.getString(IMAGE);\n JSONArray ingredients = sandwichJson.getJSONArray(INGREDIENTS);\n List<String> ingredientsList = jsonArraytoList(ingredients);\n\n return new Sandwich(mainName, alsoKnownAsList, origin, description, image, ingredientsList);\n }", "@Test\n public void testGetJsonPayload() {\n System.out.println(\"getJsonPayload\");\n String expResult = (\"{\\n\"\n + \" \\\"iss\\\": \\\"https://ConsumerSystemURL\\\",\\n\"\n + \" \\\"sub\\\": \\\"1\\\",\\n\"\n + \" \\\"aud\\\": \\\"https://authorize.fhir.nhs.net/token\\\",\\n\"\n + \" \\\"exp\\\": 1503995882,\\n\"\n + \" \\\"iat\\\": 1503995582,\\n\"\n + \" \\\"reason_for_request\\\": \\\"directcare\\\",\\n\"\n + \" \\\"requesting_device\\\": {\\n\"\n + \" \\\"resourceType\\\": \\\"Device\\\",\\n\"\n + \" \\\"id\\\": \\\"1\\\",\\n\"\n + \" \\\"identifier\\\": [\\n\"\n + \" {\\n\"\n + \" \\\"system\\\": \\\"GPConnectTestSystem\\\",\\n\"\n + \" \\\"value\\\": \\\"Client\\\"\\n\"\n + \" }\\n\"\n + \" ],\\n\"\n + \" \\\"type\\\": {\\n\"\n + \" \\\"coding\\\": [\\n\"\n + \" {\\n\"\n + \" \\\"system\\\": \\\"DeviceIdentifierSystem\\\",\\n\"\n + \" \\\"code\\\": \\\"DeviceIdentifier\\\"\\n\"\n + \" }\\n\"\n + \" ]\\n\"\n + \" },\\n\"\n + \" \\\"model\\\": \\\"v1\\\",\\n\"\n + \" \\\"version\\\": \\\"1.1\\\"\\n\"\n + \" },\\n\"\n + \" \\\"requesting_organization\\\": {\\n\"\n + \" \\\"resourceType\\\": \\\"Organization\\\",\\n\"\n + \" \\\"id\\\": \\\"1\\\",\\n\"\n + \" \\\"identifier\\\": [\\n\"\n + \" {\\n\"\n + \" \\\"system\\\": \\\"http://fhir.nhs.net/Id/ods-organization-code\\\",\\n\"\n + \" \\\"value\\\": \\\"GPCA0001\\\"\\n\"\n + \" }\\n\"\n + \" ],\\n\"\n + \" \\\"name\\\": \\\"GP Connect Assurance\\\"\\n\"\n + \" },\\n\"\n + \" \\\"requesting_practitioner\\\": {\\n\"\n + \" \\\"resourceType\\\": \\\"Practitioner\\\",\\n\"\n + \" \\\"id\\\": \\\"1\\\",\\n\"\n + \" \\\"identifier\\\": [\\n\"\n + \" {\\n\"\n + \" \\\"system\\\": \\\"http://fhir.nhs.net/sds-user-id\\\",\\n\"\n + \" \\\"value\\\": \\\"GCASDS0001\\\"\\n\"\n + \" },\\n\"\n + \" {\\n\"\n + \" \\\"system\\\": \\\"LocalIdentifierSystem\\\",\\n\"\n + \" \\\"value\\\": \\\"1\\\"\\n\"\n + \" }\\n\"\n + \" ],\\n\"\n + \" \\\"name\\\": {\\n\"\n + \" \\\"family\\\": [\\n\"\n + \" \\\"AssurancePractitioner\\\"\\n\"\n + \" ],\\n\"\n + \" \\\"given\\\": [\\n\"\n + \" \\\"AssuranceTest\\\"\\n\"\n + \" ],\\n\"\n + \" \\\"prefix\\\": [\\n\"\n + \" \\\"Mr\\\"\\n\"\n + \" ]\\n\"\n + \" },\\n\"\n + \" \\\"practitionerRole\\\": [\\n\"\n + \" {\\n\"\n + \" \\\"role\\\": {\\n\"\n + \" \\\"coding\\\": [\\n\"\n + \" {\\n\"\n + \" \\\"system\\\": \\\"http://fhir.nhs.net/ValueSet/sds-job-role-name-1\\\",\\n\"\n + \" \\\"code\\\": \\\"AssuranceJobRole\\\"\\n\"\n + \" }\\n\"\n + \" ]\\n\"\n + \" }\\n\"\n + \" }\\n\"\n + \" ]\\n\"\n + \" },\\n\"\n + \" \\\"requested_scope\\\": \\\"patient/*.read\\\",\\n\"\n + \" \\\"requested_record\\\": {\\n\"\n + \" \\\"resourceType\\\": \\\"Patient\\\",\\n\"\n + \" \\\"identifier\\\": [\\n\"\n + \" {\\n\"\n + \" \\\"system\\\": \\\"https://fhir.nhs.uk/Id/nhs-number\\\",\\n\"\n + \" \\\"value\\\": \\\"9476719931\\\"\\n\"\n + \" }\\n\"\n + \" ]\\n\"\n + \" }\\n\"\n + \"}\\n\").replaceAll(\"\\n\", \"\\r\\n\");\n String result = instance.getJsonPayload();\n assertEquals(expResult, result);\n }", "public static Example stringToJSON(String s){\n Gson gson = new Gson();\n JsonReader reader = new JsonReader(new StringReader(s));\n reader.setLenient(true);\n\n Example ex = gson.fromJson(reader, Example.class);\n\n return ex;\n }", "public void loadFromSource(Object aSrc)\n{\n WebURL url = WebURL.getURL(aSrc);\n String jsonText = url.getText();\n loadFromString(jsonText);\n}", "protected static String importScheduleJSON() throws Exception {\n // check for a valid file path\n CSVReader readMeeting = new CSVReader(\n new FileReader(\"D://fromJSON.csv\"));\n ArrayList<Room> rooms = new ArrayList<Room>();\n String[] nextLine;\n // ignoring first line\n readMeeting.readNext();\n while ((nextLine = readMeeting.readNext()) != null) {\n SimpleDateFormat dateFormat = new SimpleDateFormat(\n \"yyyy-MM-dd hh:mm:ss.SSS\");\n Meeting meeting = new Meeting(new java.sql.Timestamp(dateFormat\n .parse(nextLine[1]).getTime()), new java.sql.Timestamp(\n dateFormat.parse(nextLine[2]).getTime()), nextLine[3]);\n // meetings.add(meeting);\n Room room = new Room(nextLine[1], Integer.parseInt(nextLine[0]),\n nextLine[2], nextLine[3]);\n room.addMeeting(meeting);\n rooms.add(room);\n\n }\n readMeeting.close();\n logger.info(\"Scheduling details imported from json\");\n return \"\";\n\n }", "public JFreeReport parseReport(final InputSource input, final URL contentBase)\r\n throws IOException, ResourceException\r\n {\r\n \r\n if (input.getCharacterStream() != null)\r\n {\r\n // Sourceforge Bug #1712734. We cannot safely route the character-stream through libloader.\r\n // Therefore we skip libloader and parse the report directly. This is for backward compatibility,\r\n // all other xml-based objects will still rely on LibLoader.\r\n\r\n return parseReportDirectly (input, contentBase);\r\n }\r\n\r\n final byte[] bytes = extractData(input);\r\n final ResourceManager resourceManager = new ResourceManager();\r\n resourceManager.registerDefaults();\r\n\r\n final ResourceKey contextKey;\r\n if (contentBase != null)\r\n {\r\n contextKey = resourceManager.createKey(contentBase);\r\n }\r\n else\r\n {\r\n contextKey = null;\r\n }\r\n final HashMap map = new HashMap();\r\n\r\n final Iterator it = this.helperObjects.keySet().iterator();\r\n while (it.hasNext())\r\n {\r\n final String name = (String) it.next();\r\n map.put(new FactoryParameterKey(name), helperObjects.get(name));\r\n }\r\n\r\n final ResourceKey key = resourceManager.createKey(bytes, map);\r\n final Resource resource = resourceManager.create(key, contextKey, JFreeReport.class);\r\n return (JFreeReport) resource.getResource();\r\n }", "private void parseJSON(String response)\n {\n try\n {\n // Using orj.json, get the file string and convert it to an object\n JSONObject object = (JSONObject) new JSONTokener(response).nextValue();\n\n // The Winnipeg Transit JSON results usually have nested values\n // We can identify the request by the first key of the first level\n\n // The method names() will retrieve an JSONArray with the key names\n JSONArray objectNames = object.names();\n\n // Retrieve the first key of the first level\n String firstKey = objectNames.getString(0);\n\n if (firstKey.equals(\"status\"))\n {\n parseStatus(object.getJSONObject(firstKey));\n }\n else if (firstKey.equals(\"stop-schedule\"))\n {\n parseStopSchedule(object.getJSONObject(firstKey));\n }\n }\n catch (JSONException e)\n {\n e.printStackTrace();\n }\n }", "void testFormatter(String s){\n\t\tInputStream istream = new java.io.ByteArrayInputStream(s.getBytes());\n\t\tMessageContext mc = new MessageContext();\n\t\tJSONOMBuilder ob = new JSONOMBuilder();\n\t\tOMSourcedElement omse;\n\t\ttry {\n\t\t\tomse = (OMSourcedElement) ob.processDocument(istream, \"application/json\", mc);\n\t\t} catch (AxisFault e) {\n\t\t\te.printStackTrace();\n\t\t\treturn;\n\t\t}\n // go for the formatte\n\t\tJSONMessageFormatter of = new JSONMessageFormatter();\n\t\tmc.setDoingREST(true);\n\t\tOMDataSource datasource = omse.getDataSource();\n\t\tString str = of.getStringToWrite(datasource);\n\t\tSystem.out.println(str);\n\t}", "private void extractDataFromJson(String forumData) {\n\t\t\tif (!isCancelled()) {\n\t\t\t\tString forumHeading = \"\", forumDescription = \"\";\n\n\t\t\t\t// extracting forum details\n\t\t\t\tVector<String> storeExtractedValues = new Vector<String>();\n\t\t\t\tCconnectToServer extractData = new CconnectToServer();\n\n\t\t\t\tstoreExtractedValues = extractData.extractDataFromJson(\n\t\t\t\t\t\tforumData, \"Title\");\n\t\t\t\tforumHeading = storeExtractedValues.get(0);\n\n\t\t\t\tstoreExtractedValues = extractData.extractDataFromJson(\n\t\t\t\t\t\tforumData, \"Description\");\n\t\t\t\tforumDescription = storeExtractedValues.get(0);\n\n\t\t\t\tresult[0] = forumHeading;\n\t\t\t\tresult[1] = forumDescription;\n\t\t\t}\n\t\t}", "public JsonDataset(String content) {\r\n\t\tlogger.trace(\"JsonDataset(String) - start\");\r\n\t\tthis.content = content;\r\n\t\tstatus.add(DatasetStatus.STATUS_CONTENT);\r\n\t\tlogger.debug(\"JsonDataset(String) - content\");\r\n\t\tlogger.trace(\"JsonDataset(String) - end\");\r\n\t}", "public SymbolTable<String, SymbolData> parse() throws Exception {\n SymbolTable<String, SymbolData> symbolTable = new SymbolTable<String, SymbolData>();\n String currentJson = \"\";\n Optional<Symbol> currentSymbol = Optional.absent();\n for (String line : inputSource.readLines()) {\n //log.debug(line);\n Optional<Symbol> symbolHeader = headerParser.parseLine(line);\n // encountered a header line\n if(symbolHeader.isPresent()) {\n\n // put the accumalated json string in the map.\n if(currentSymbol.isPresent()) {\n symbolTable.put(currentSymbol.get().getName(), new SymbolData(currentSymbol.get(), currentJson));\n }\n\n // start with the new header.\n currentSymbol = symbolHeader;\n currentJson = \"\";\n continue;\n }\n\n if(!currentSymbol.isPresent()) continue;\n // detect dependencies line by line.\n for (Position dependency : referenceDetector.detectAllReferences(line)) {\n graph.addEdge(currentSymbol.get().getName(), dependency.getReferenceName().substring(1));\n }\n currentJson+=line;\n }\n\n // any remnant json has to go to the last symbol.\n if(currentSymbol.isPresent()) {\n symbolTable.put(currentSymbol.get().getName(), new SymbolData(currentSymbol.get(), currentJson));\n }\n\n\n\n return transform(symbolTable);\n\n }", "public Incident(String str) throws MalformedIncidentException {\n\n // Null/Empty check\n if (str == null || str.length() == 0) {\n throw new MalformedIncidentException(\"The incident was \" + ((str == null) ? \"a null\" : \"an empty\") + \" string.\");\n }\n\n // Is the input the right size?\n String[] components = str.split(\",\");\n if(components.length != 17) {\n throw new MalformedIncidentException(str + \"\\n(There were not 17 CSV columns)\");\n }\n\n // Bind properties to object\n try {\n\n this.coordinates = new Coordinates(Double.parseDouble(components[15]), Double.parseDouble(components[1]));\n this.date = new DateTime(PDDConfig.getInstance().PhillyCrimeDataDateFormat.parse(components[5]));\n this.code = Integer.parseInt(components[11]);\n this.description = components[12];\n\n } catch (NumberFormatException nfe) {\n throw new MalformedIncidentException(str + \"\\n(One of the numbers/coordinates could not be parsed).\" + nfe.getLocalizedMessage());\n } catch (ParseException pe) {\n throw new MalformedIncidentException(str + \"\\n(The date was not supplied in the correct format. The date string was \" + components[5] + \".\");\n }\n }", "public Measurement decode(JSONObject json) throws JSONException, TypeException {\n // {\"attrCount\":1,\"attributes\":[{\"fieldNo\":0,\"name\":\"elapsedTime\",\"type\":\"FLOAT\",\"value\":16.60585}],\"dataSourceID\":\"3911619c-5dad-4c08-94ac-0c0713718e75\",\"dataSourceSeqNo\":8,\"groupID\":\"2\",\"hasNames\":true,\"measurementClass\":\"Measurement\",\"messageType\":\"MEASUREMENT\",\"probeID\":\"f646d57d-1630-43fe-9df9-5df11836eb11\",\"probeName\":\"MacBook-Pro-2.local.elapsedTime\",\"probeSeqNo\":7,\"serviceID\":\"12345\",\"tDelta\":2001,\"timestamp\":1592505174167}\n\n if (debug) System.err.println(\"MeasurementDecoderJSON: json = \" + json);\n\n\n this.json = json;\n \n /* read measurement */\n\n // read seq no\n long seqNo = json.getLong(\"probeSeqNo\");\n\t\t\n // options byte\n boolean options = json.getBoolean(\"hasNames\");\n\n // check the options\n boolean hasNames = options;\n\n\n // read probe id\n String probeIDStr = json.getString(\"probeID\");\n ID probeID = ID.fromString(probeIDStr);\n\t\n //read measurement type\n String mType = json.getString(\"measurementClass\");\n\n // read timestamp\n long ts = json.getLong(\"timestamp\");\n\n // read measurement time delta\n long mDelta = json.getLong(\"tDelta\");\n\n // read the service ID of the probe\n String serviceIDStr = json.getString(\"serviceID\");\n\n ID serviceID;\n\n if (serviceIDStr.contains(\"-\")) {\n // looks like a UUID\n serviceID = ID.fromString(serviceIDStr);\n } else {\n // looks like a number\n long serviceIDMSB = 0;\n long serviceIDLSB = json.getLong(\"serviceID\");\n\n serviceID = new ID(serviceIDMSB, serviceIDLSB);\n }\n\t\t\n // read the group ID of the probe\n String groupIDStr = json.getString(\"groupID\");\n\n ID groupID;\n \n if (groupIDStr.contains(\"-\")) {\n // looks like a UUID\n groupID = ID.fromString(groupIDStr);\n } else {\n // looks like a number\n long groupIDMSB = 0;\n long groupIDLSB = json.getLong(\"groupID\");\n\n groupID = new ID(groupIDMSB, groupIDLSB);\n }\n\t\t\n\n // decode probe name\n String probeName = null;\n\n // check if names are sent\n if (hasNames) {\n probeName = json.getString(\"probeName\");\n } else {\n probeName = \"\";\n }\n\t\t\n // System.err.print(probeID + \": \" + mType + \" @ \" + ts + \". \");\n\n // read attributes\n\t\t\n // read count\n int attrCount = json.getInt(\"attrCount\");\n \n List<ProbeValue> attrValues = new ArrayList<ProbeValue>();\n\n // System.err.print(\" [\" + attrCount + \"] \");\n\n JSONArray attributes = json.getJSONArray(\"attributes\");\n\n // skip through all the attributes\n for (int attr=0; attr < attrCount; attr++) {\n // {\"fieldNo\":0,\"name\":\"elapsedTime\",\"type\":\"FLOAT\",\"value\":16.60585}\n JSONObject jsonAttr = attributes.getJSONObject(attr);\n \n // read attr key\n int key = jsonAttr.getInt(\"fieldNo\");\n \n Object value = null;\n\n // System.err.print(key);\n // System.err.print(\" -> \");\n\n // get the attribute name\n String name = null;\n\n // check if names are sent\n if (hasNames) {\n name = jsonAttr.getString(\"name\");\n } else {\n name = \"\";\n }\n\t\t \n // read on ProbeAttributeType code\n String typeStr = jsonAttr.getString(\"type\");\n ProbeAttributeType type = decodeType(typeStr);\n\n // System.err.print(type);\n // System.err.print(\", \");\n\n // now get value\n value = decodeValue(type, jsonAttr.get(\"value\"));\n\n // System.err.print(\"<\");\n // System.err.print(value);\n // System.err.print(\">\");\n\n // save this value\n attrValues.add(new ProbeValueWithName(name, key, value));\n }\n\n // System.err.println();\n\treturn new ConsumerMeasurementWithMetaDataAndProbeName(seqNo, probeID, mType, ts, mDelta, serviceID, groupID, attrValues, probeName);\n\t\t\n }", "private Media getDataFromJson(String resultJsonString)\n throws JSONException {\n\n JSONObject videoObject = new JSONObject(resultJsonString);\n\n // Extract the fields we need from the JSON object and\n // construct a Media object\n String dbId = videoObject.getString(\"_id\");\n String videoTitle = videoObject.getString(\"title\");\n String videoId = videoObject.getString(\"videoId\");\n //TODO: This should change depending on the media \"type\"\n String thumbUrl = videoObject.getString(\"extra\");\n\n return (new Media(videoId, videoTitle, thumbUrl, dbId));\n }", "@Test\n public void readSystemObjectClassDoctorFeedback() throws UnsupportedEncodingException, IOException {\n ISystemObject object = Factory.createObject(\"DoctorFeedback\");\n testJson = gson.toJson(object);\n\n //convert string to input stream\n InputStream inputStream = new ByteArrayInputStream(testJson.getBytes(Charset.forName(\"UTF-8\")));\n //convert inputstream to jsonReader\n JsonReader reader = new JsonReader(new InputStreamReader(inputStream, \"UTF-8\"));\n\n //read json string into resultant\n ISystemObject actual = DataHandler.readSystemObjectClass(reader);\n\n //compare results \n assertEquals(\"Fails to return DoctorFeedback properly\", object.getClass(), actual.getClass());\n }", "public GenericReportResponse getMininmalSprintReport(BasicReportRequestParams params, JiraRestClient restClient,\n JiraClient jiraClient) {\n logger.debug(\"getMininmalSprintReport\");\n String sprint = params.getSprintName();\n String project = params.getSubProjectName();\n Integer maxResults = 1000;\n Integer startAt = 0;\n int rvId = 0;\n int sprintId = 0;\n if (project == null || sprint == null) {\n logger.error(\"Error: Missing required paramaters\");\n throw new DataException(HttpStatus.BAD_REQUEST.toString(), \"Missing required paramaters\");\n }\n List<SprintReport> sprintReportList = new ArrayList<>();\n SprintReport sprintReport;\n Iterable<Issue> retrievedIssue = restClient.getSearchClient()\n .searchJql(\" sprint = '\" + sprint + \"' AND project = '\" + project + \"'\", 1000, 0, null).claim()\n .getIssues();\n Pattern pattern = Pattern.compile(\"\\\\[\\\".*\\\\[id=(.*),rapidViewId=(.*),.*,name=(.*),startDate=(.*),.*\\\\]\");\n Matcher matcher = pattern\n .matcher(retrievedIssue.iterator().next().getFieldByName(\"Sprint\").getValue().toString());\n if (matcher.find()) {\n sprintId = Integer.parseInt(matcher.group(1));\n rvId = Integer.parseInt(matcher.group(2));\n }\n while (retrievedIssue.iterator().hasNext()) {\n for (Issue issueValue : retrievedIssue) {\n Promise<Issue> issue = restClient.getIssueClient().getIssue(issueValue.getKey());\n sprintReport = new SprintReport();\n try {\n sprintReport.setIssueKey(issue.get().getKey());\n sprintReport.setIssueType(issue.get().getIssueType().getName());\n sprintReport.setStatus(issue.get().getStatus().getName());\n sprintReport.setIssueSummary(issue.get().getSummary());\n if (issue.get().getAssignee() != null) {\n sprintReport.setAssignee(issue.get().getAssignee().getDisplayName());\n } else {\n sprintReport.setAssignee(\"unassigned\");\n }\n if (issue.get().getTimeTracking() != null) {\n if (issue.get().getTimeTracking().getOriginalEstimateMinutes() != null) {\n sprintReport.setEstimatedHours(new DecimalFormat(\"##.##\")\n .format(issue.get().getTimeTracking().getOriginalEstimateMinutes() / 60D));\n } else {\n sprintReport.setEstimatedHours(\"0\");\n }\n if (issue.get().getTimeTracking().getTimeSpentMinutes() != null) {\n sprintReport.setLoggedHours(new DecimalFormat(\"##.##\")\n .format(issue.get().getTimeTracking().getTimeSpentMinutes() / 60D));\n } else {\n sprintReport.setLoggedHours(\"0\");\n }\n }\n sprintReportList.add(sprintReport);\n } catch (InterruptedException | ExecutionException e) {\n logger.error(\"Error:\" + e.getMessage());\n throw new DataException(HttpStatus.INTERNAL_SERVER_ERROR.toString(), e.getMessage());\n }\n }\n startAt += 1000;\n maxResults += 1000;\n retrievedIssue = restClient.getSearchClient()\n .searchJql(\" sprint = '\" + sprint + \"' AND project = '\" + project + \"'\", maxResults, startAt, null)\n .claim().getIssues();\n }\n for (int i = 0; i < 2; i++) {\n sprintReport = new SprintReport();\n sprintReport.setAssignee(\" \");\n sprintReport.setEstimatedHours(\" \");\n sprintReport.setIssueKey(\" \");\n sprintReport.setIssueSummary(\" \");\n sprintReport.setIssueType(\" \");\n sprintReport.setLoggedHours(\" \");\n sprintReport.setStatus(\" \");\n sprintReportList.add(sprintReport);\n }\n sprintReport = new SprintReport();\n sprintReport.setAssignee(\" \");\n sprintReport.setEstimatedHours(\" \");\n sprintReport.setIssueSummary(\" \");\n sprintReport.setIssueType(\" \");\n sprintReport.setLoggedHours(\" \");\n sprintReport.setStatus(\" \");\n sprintReport.setIssueKey(\"Removed Issues\");\n sprintReportList.add(sprintReport);\n sprintReport = new SprintReport();\n sprintReport.setAssignee(\" \");\n sprintReport.setEstimatedHours(\" \");\n sprintReport.setIssueKey(\" \");\n sprintReport.setIssueSummary(\" \");\n sprintReport.setIssueType(\" \");\n sprintReport.setLoggedHours(\" \");\n sprintReport.setStatus(\" \");\n sprintReportList.add(sprintReport);\n try {\n RemovedIssues removedIssues = removedIssuesService.get(jiraClient.getRestClient(), rvId, sprintId);\n for (SprintIssue issueValue : removedIssues.getPuntedIssues()) {\n Promise<Issue> issue = restClient.getIssueClient().getIssue(issueValue.getKey());\n sprintReport = new SprintReport();\n try {\n\n sprintReport.setIssueKey(issue.get().getKey());\n sprintReport.setIssueType(issue.get().getIssueType().getName());\n sprintReport.setStatus(issue.get().getStatus().getName());\n sprintReport.setIssueSummary(issue.get().getSummary());\n if (issue.get().getAssignee() != null) {\n sprintReport.setAssignee(issue.get().getAssignee().getDisplayName());\n } else {\n sprintReport.setAssignee(\"unassigned\");\n }\n if (issue.get().getTimeTracking() != null) {\n if (issue.get().getTimeTracking().getOriginalEstimateMinutes() != null) {\n sprintReport.setEstimatedHours(new DecimalFormat(\"##.##\")\n .format(issue.get().getTimeTracking().getOriginalEstimateMinutes() / 60D));\n } else {\n sprintReport.setEstimatedHours(\"0\");\n }\n if (issue.get().getTimeTracking().getTimeSpentMinutes() != null) {\n sprintReport.setLoggedHours(new DecimalFormat(\"##.##\")\n .format(issue.get().getTimeTracking().getTimeSpentMinutes() / 60D));\n } else {\n sprintReport.setLoggedHours(\"0\");\n }\n }\n sprintReportList.add(sprintReport);\n } catch (InterruptedException | ExecutionException e) {\n logger.error(\"Error:\" + e.getMessage());\n throw new DataException(HttpStatus.INTERNAL_SERVER_ERROR.toString(), e.getMessage());\n }\n }\n for (int i = 0; i < 2; i++) {\n sprintReport = new SprintReport();\n sprintReport.setAssignee(\" \");\n sprintReport.setEstimatedHours(\" \");\n sprintReport.setIssueKey(\" \");\n sprintReport.setIssueSummary(\" \");\n sprintReport.setIssueType(\" \");\n sprintReport.setLoggedHours(\" \");\n sprintReport.setStatus(\" \");\n sprintReportList.add(sprintReport);\n }\n sprintReport = new SprintReport();\n sprintReport.setIssueKey(\"Issues Added during Sprint\");\n sprintReport.setAssignee(\" \");\n sprintReport.setEstimatedHours(\" \");\n sprintReport.setIssueSummary(\" \");\n sprintReport.setIssueType(\" \");\n sprintReport.setLoggedHours(\" \");\n sprintReport.setStatus(\" \");\n sprintReportList.add(sprintReport);\n sprintReport = new SprintReport();\n sprintReport.setAssignee(\" \");\n sprintReport.setEstimatedHours(\" \");\n sprintReport.setIssueKey(\" \");\n sprintReport.setIssueSummary(\" \");\n sprintReport.setIssueType(\" \");\n sprintReport.setLoggedHours(\" \");\n sprintReport.setStatus(\" \");\n sprintReportList.add(sprintReport);\n for (String issueValue : removedIssues.getIssuesAdded()) {\n Promise<Issue> issue = restClient.getIssueClient().getIssue(issueValue);\n sprintReport = new SprintReport();\n try {\n\n sprintReport.setIssueKey(issue.get().getKey());\n sprintReport.setIssueType(issue.get().getIssueType().getName());\n sprintReport.setStatus(issue.get().getStatus().getName());\n sprintReport.setIssueSummary(issue.get().getSummary());\n if (issue.get().getAssignee() != null) {\n sprintReport.setAssignee(issue.get().getAssignee().getDisplayName());\n } else {\n sprintReport.setAssignee(\"unassigned\");\n }\n if (issue.get().getTimeTracking() != null) {\n if (issue.get().getTimeTracking().getOriginalEstimateMinutes() != null) {\n sprintReport.setEstimatedHours(new DecimalFormat(\"##.##\")\n .format(issue.get().getTimeTracking().getOriginalEstimateMinutes() / 60D));\n } else {\n sprintReport.setEstimatedHours(\"0\");\n }\n if (issue.get().getTimeTracking().getTimeSpentMinutes() != null) {\n sprintReport.setLoggedHours(new DecimalFormat(\"##.##\")\n .format(issue.get().getTimeTracking().getTimeSpentMinutes() / 60D));\n } else {\n sprintReport.setLoggedHours(\"0\");\n }\n }\n sprintReportList.add(sprintReport);\n } catch (InterruptedException | ExecutionException e) {\n logger.error(\"Error:\" + e.getMessage());\n throw new DataException(HttpStatus.INTERNAL_SERVER_ERROR.toString(), e.getMessage());\n }\n }\n } catch (JiraException e) {\n logger.error(\"Error:\" + e.getMessage());\n throw new DataException(HttpStatus.INTERNAL_SERVER_ERROR.toString(), e.getMessage());\n }\n String filename = project + \"_\" + sprint + \"_minimal_report.csv\";\n filename = filename.replace(\" \", \"_\");\n ConvertToCSV exportToCSV = new ConvertToCSV();\n exportToCSV.exportToCSV(env.getProperty(\"csv.filename\") + filename, sprintReportList);\n GenericReportResponse response = new GenericReportResponse();\n response.setDownloadLink(env.getProperty(\"csv.aliaspath\") + filename);\n response.setReportAsJson(JSONUtils.toJson(sprintReportList));\n return response;\n }", "@Get\n\tpublic Representation represent() throws JSONException {\n\n\t\tJSONObject jBody = new JSONObject();\n\t\tJSONObject ReportOutput = new JSONObject();\n\t\tString Message = \"\";\n\t\tint Status = 0;\n\t\ttry {\n\n\t\t\tString ServerKey = \"\";\n\t\t\tif (getRequest().getAttributes().get(\"ServerKey\") != null) ServerKey = (String) getRequest().getAttributes().get(\"ServerKey\");\n\t\t\tServerAuth serverAuth = new ServerAuth();\n\t\t\tboolean Authenticated = serverAuth.authenticate(ServerKey);\n\n\t\t\tif (Authenticated) {\n\t\t\t\tString ReactionList = \"\";\n\t\t\t\tif (getRequest().getAttributes().get(\"reactionlist\") != null) ReactionList = (String) getRequest().getAttributes().get(\"reactionlist\");\n\t\t\t\tReactionList = ReactionList.replace(\"%7E\",\"~\"); //unencode tilda character\n\t\t\t\tString[] reactions = ReactionList.split(\"~\");\n\t\t\t\tString Reaction = \"\";\n\t\t\t\tfor (int r = 0; r < reactions.length; r++) {\n\t\t\t\t\tReaction += \"patient.reaction.reactionmeddrapt:\\\"\" + reactions[r] + \"\\\"\";\n\t\t\t\t\tif (r < reactions.length - 1) {\n\t\t\t\t\t\tReaction += \"+AND+\";\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tString ServiceURI = \"/event.json?search=\" + Reaction + \"&count=patient.drug.openfda.substance_name.exact\";\n\t\t\t\tif (logger.isDebugEnabled()){\n\t\t\t\t\tlogger.debug(\"ServiceURI: \" + ServiceURI);\n\t\t\t\t}\n\n\t\t\t\tJSONArray cols = new JSONArray();\n\t\t\t\tJSONArray rows = new JSONArray();\n\t\t\t\tOpenFDAClient restClient = new OpenFDAClient();\n\t\t\t\tJSONObject json = restClient.getService(ServiceURI);\n\t\t\t\tif (!json.isNull(\"results\")){\n\t\t\t\t\tJSONArray results = json.getJSONArray(\"results\");\n\t\t\t\t\tcols.put(\"Drug Name\");\n\t\t\t\t\tcols.put(\"Occurrences\");\n\t\t\t\t\tfor (int i = 0; i < results.length(); i++) {\n\t\t\t\t\t\tJSONArray row = new JSONArray();\n\t\t\t\t\t\tJSONObject result = results.getJSONObject(i);\n\t\t\t\t\t\tString Drug = result.getString(\"term\");\n\t\t\t\t\t\tint Occurrences = result.getInt(\"count\");\n\t\t\t\t\t\trow.put(Drug);\n\t\t\t\t\t\trow.put(Occurrences);\n\t\t\t\t\t\trows.put(row);\n\t\t\t\t\t}\n\t\t\t\t\tReportOutput.put(\"cols\", cols);\n\t\t\t\t\tReportOutput.put(\"rows\", rows);\n\t\t\t\t} else {\n\t\t\t\t\tReportOutput.put(\"cols\", cols);\n\t\t\t\t\tReportOutput.put(\"rows\", rows);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tStatus = 1;\n\t\t\t\tMessage = \"invalid authentication token\";\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tStatus = 1;\n\t\t\tMessage = \"an error has occurred: \" + e;\n\t\t}\n\n\t\tjBody.put(\"ReportOutput\", ReportOutput);\n\t\tResponseJson jResponse = new ResponseJson();\n\t\tRepresentation rep = null;\n\t\tjResponse.setStatusCode(Status);\n\t\tjResponse.setStatusMessage(Message);\n\t\tjResponse.setBody(jBody);\n\t\trep = new JsonRepresentation(jResponse.getResponse(jResponse));\n\t\treturn rep;\n\t}", "public StubReport() {\n\t\t\thashMapDB = new HashMap<String, HashMap<Integer, String>>();\n\t\t\tparkReportData = new HashMap<Integer, String>();\n\n\t\t\tparkReportData = new HashMap<Integer, String>();\n\t\t\tparkReportData.put(1, \"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0\");\n\t\t\tparkReportData.put(2,\n\t\t\t\t\t\"12 88 28 60 28 0 76 40 20 32 76 0 16 96 0 96 0 0 60 56 28 56 28 0 60 28 0 56 0 0 92 28 0 44 28 0\");\n\t\t\tparkReportData.put(3, \"1 2 3 4 5 6 1 23 2 8 9 2 3 2 4 3 2 2 1 1 1 5 32 6 12 7 23 8 12 5 32 6 12 5 23 7\");\n\t\t\thashMapDB.put(\"Haifa Park\", parkReportData);\n\t\t\tparkReportData = new HashMap<Integer, String>();\n\t\t\tparkReportData.put(4, \"1 1 1 1 1 1 1 1 1 1 1 1 0 0 1 1 1 1 1 0 0 0 0 0 0 0 0 0 0 0 1 1 1 0 0 1\");\n\t\t\tparkReportData.put(5, \"1 2 7 4 7 6 7 7 0 8 7 0 7 7 7 0 7 0 7 5 7 5 7 6 7 7 7 8 7 5 7 6 7 5 7 7\");\n\t\t\tparkReportData.put(6,\n\t\t\t\t\t\"11 22 33 44 55 66 17 23 5 8 4 2 3 2 54 34 2 32 1 61 1 75 32 46 12 67 23 82 12 56 32 36 12 85 232 7\");\n\t\t\thashMapDB.put(\"Tel-Aviv Park\", parkReportData);\n\n\t\t\tparkReportData = new HashMap<Integer, String>();\n\t\t\tparkReportData.put(7, \"1 1 1 1 1 1 1 1 1 1 1 1 0 0 1 1 1 1 1 0 0 0 0 0 0 0 0 0 0 0 1 1 1 0 0 1\");\n\t\t\tparkReportData.put(8, \"1 2 3 4 5 6 0 0 0 8 9 0 3 0 4 0 6 0 0 5 5 5 0 6 0 7 0 8 0 5 0 6 0 5 0 7\");\n\t\t\tparkReportData.put(9, \"1 2 3 4 5 6 1 23 2 8 9 2 3 2 4 3 2 2 1 1 1 5 32 6 12 7 23 8 12 5 32 6 12 5 23 7\");\n\t\t\thashMapDB.put(\"Safed Park\", parkReportData);\n\t\t}", "void createReport(Report report);", "void mo1290a(String str) {\n JSONObject jSONObject;\n C0568g.m2441a(this.a, System.currentTimeMillis());\n try {\n jSONObject = new JSONObject(str);\n jSONObject = jSONObject.has(\"lbsInfo\") ? jSONObject.optJSONObject(\"lbsInfo\") : null;\n } catch (JSONException e) {\n jSONObject = null;\n }\n if (jSONObject != null) {\n Object a = C0568g.m2439a(this.a, jSONObject);\n if (this.f1790d != null && !TextUtils.isEmpty(a)) {\n this.f1790d.m2436a(0, a);\n this.f1790d = null;\n }\n }\n }", "public void fromJSON(String json) throws JSONException;", "public TestRunJsonParser(){\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}", "public LabTest makeMethod(JsonObject jsonObject) {\n LabTest labTest = new LabTest();\n labTest.setNameOfTest(String.valueOf(jsonObject.get(\"nameOfTest\")).replace('\"', ' ').trim());\n labTest.setNameOfUser(String.valueOf(jsonObject.get(\"nameOfUser\")).replace('\"', ' ').trim());\n labTest.setUserClass(String.valueOf(jsonObject.get(\"userClass\")).replace('\"', ' ').trim());\n labTest.setNameOfMethod(String.valueOf(jsonObject.get(\"nameOfMethod\")).replace('\"', ' ').trim());\n labTest.setMatrix(String.valueOf(jsonObject.get(\"matrix\")).replace('\"', ' ').trim());\n labTest.setCapillary(String.valueOf(jsonObject.get(\"capillary\")).replace('\"', ' ').trim());\n labTest.setCapillaryTotalLength(String.valueOf(jsonObject.get(\"capillaryTotalLength\")).replace('\"', ' ').trim());\n labTest.setCapillaryEffectiveLength(String.valueOf(jsonObject.get(\"capillaryEffectiveLength\")).replace('\"', ' ').trim());\n labTest.setFrequency(String.valueOf(jsonObject.get(\"frequency\")).replace('\"', ' ').trim());\n labTest.setInjectionMethod(String.valueOf(jsonObject.get(\"injectionMethod\")).replace('\"', ' ').trim());\n labTest.setInjectionChoice(String.valueOf(jsonObject.get(\"injectionChoice\")).replace('\"', ' ').trim());\n labTest.setInjectionChoiceValue(String.valueOf(jsonObject.get(\"injectionChoiceValue\")).replace('\"', ' ').trim());\n labTest.setInjectionChoiceUnit(String.valueOf(jsonObject.get(\"injectionChoiceUnit\")).replace('\"', ' ').trim());\n labTest.setInjectionTime(String.valueOf(jsonObject.get(\"injectionTime\")).replace('\"', ' ').trim().split(\" \")[0]);\n labTest.setCurrent(\"-15 µA\"); // Actually this is not important.\n labTest.setHvValue(String.valueOf(jsonObject.get(\"hvValue\")).replace('\"', ' ').trim().split(\" \")[0]);\n\n ObservableList<Analyte> analytes = FXCollections.observableArrayList();\n JsonElement analyteJson = jsonObject.get(\"analytes\");\n JsonArray jsonArray = analyteJson.getAsJsonArray();\n for (int i = 0; i < jsonArray.size(); i++) {\n JsonObject subObject = jsonArray.get(i).getAsJsonObject();\n String analyteName = String.valueOf(subObject.get(\"analyte\").getAsJsonObject().get(\"value\")).replace('\"', ' ').trim();\n Integer analyteValue = Integer.valueOf(String.valueOf(subObject.get(\"concentration\").getAsJsonObject().get(\"value\")).replace('\"', ' ').trim());\n Analyte analyte = new Analyte(analyteName, String.valueOf(analyteValue));\n analytes.add(analyte);\n }\n labTest.setAnalytes(analytes);\n\n labTest.setAnalyteUnit(String.valueOf(jsonObject.get(\"analyteUnit\")).replace('\"', ' ').trim());\n\n ObservableList<Analyte> bges = FXCollections.observableArrayList();\n JsonElement bgeJson = jsonObject.get(\"bge\");\n JsonArray bgeArray = bgeJson.getAsJsonArray();\n for (int i = 0; i < bgeArray.size(); i++) {\n JsonObject subObject = bgeArray.get(i).getAsJsonObject();\n String bgeName = String.valueOf(subObject.get(\"analyte\").getAsJsonObject().get(\"value\")).replace('\"', ' ').trim();\n Integer bgeValue = Integer.valueOf(String.valueOf(subObject.get(\"concentration\").getAsJsonObject().get(\"value\")).replace('\"', ' ').trim());\n Analyte bge = new Analyte(bgeName, String.valueOf(bgeValue));\n bges.add(bge);\n }\n labTest.setBge(bges);\n\n labTest.setBgeUnit(String.valueOf(jsonObject.get(\"bgeUnit\")).replace('\"', ' ').trim());\n labTest.setDescription(String.valueOf(jsonObject.get(\"description\")).replace('\"', ' ').trim());\n labTest.setTestTime(String.valueOf(jsonObject.get(\"testTime\")).replace('\"', ' ').trim());\n JsonArray testArray = jsonObject.get(\"testData\").getAsJsonArray();\n ArrayList<String> testData = new ArrayList<String>();\n if (testArray.size() > 0) {\n for (int i = 0; i < testArray.size(); i++) {\n String string = String.valueOf(testArray.get(i));\n testData.add(string);\n }\n }\n labTest.setTestData(testData);\n return labTest;\n }", "public static Kaizen fromJson(String jsonString) {\n return new Gson().fromJson(jsonString, Kaizen.class);\n }", "public String convertToJSON()\n\t{\n\t\tString json = \"\";\n\n\t\t//Engine and Rule info\n\t\tjson = \t\" \\\"infEngine\\\" : \\\"\"+ inferenceEngine +\"\\\", \" +\n\t\t\t\t\" \\\"infEngURI\\\" : \\\"\"+ infEngURI +\"\\\", \" +\n\t\t\t\t\" \\\"declRule\\\" : \\\"\"+ declarativeRule +\"\\\", \" +\n\t\t\t\t\" \\\"declRuleURI\\\" : \\\"\"+ decRuleURI +\"\\\" \";\n\n\t\t//Antecedent info\n\t\tif(antecedentRawStrings != null)\n\t\t{\n\n\t\t\tString jsonArray = \" [ \";\n\n\t\t\tint i;\n\t\t\tfor(i=0; i < antecedentRawStrings.length -1 ; i++)\n\t\t\t{\n\t\t\t\tString currAntecedentRawString = JSONUtils.toValidJSONString(antecedentRawStrings[i]);\n\t\t\t\tjsonArray += \"{ \\\"antecedentRawString\\\" : \\\"\"+ currAntecedentRawString +\"\\\" , \\\"antecedentURI\\\" : \\\"\"+ antecedentURIs[i] +\"\\\" \";\n\t\t\t\tif(antecedentCachedThumbURL[i] != null)\n\t\t\t\t\tjsonArray +=\", \\\"antecedentCachedThumbURL\\\" : \\\"\"+antecedentCachedThumbURL[i]+\"\\\" , \\\"antecedentConclusionURL\\\" : \\\"\"+antecedentConclusionURL[i]+\"\\\" }, \";\n\t\t\t\telse\n\t\t\t\t\tjsonArray +=\", \\\"antecedentCachedThumbURL\\\" : null , \\\"antecedentConclusionURL\\\" : \\\"\"+antecedentConclusionURL[i]+\"\\\" }, \";\n\t\t\t}\n\n\t\t\tString currAntecedentRawString = JSONUtils.toValidJSONString(antecedentRawStrings[i]);\n\t\t\t//insert last element and close the array.\n\t\t\tjsonArray += \"{ \\\"antecedentRawString\\\" : \\\"\"+ currAntecedentRawString +\"\\\" , \\\"antecedentURI\\\" : \\\"\"+ antecedentURIs[i] +\"\\\" \";\n\t\t\tif(antecedentCachedThumbURL[i] != null)\n\t\t\t\tjsonArray +=\", \\\"antecedentCachedThumbURL\\\" : \\\"\"+antecedentCachedThumbURL[i]+\"\\\" , \\\"antecedentConclusionURL\\\" : \\\"\"+antecedentConclusionURL[i]+\"\\\" } ]\";\n\t\t\telse\n\t\t\t\tjsonArray +=\", \\\"antecedentCachedThumbURL\\\" : null , \\\"antecedentConclusionURL\\\" : \\\"\"+antecedentConclusionURL[i]+\"\\\" } ]\";\n\n\n\t\t\tjson += \", \\\"antecedents\\\" : \"+ jsonArray;//+\", \";\n\n\t\t}\n\t\telse \n\t\t\tjson += \", \\\"antecedents\\\" : null\";//+\", \";\n\n\t\t//Metadata\n\t\t//json += \", \\\"metadata\\\" : \"+ ;\n\n\t\t//Assertions\n\t\t//json += \", \\\"assertions\\\" : \"+ ;\n\n\t\treturn \"{ \"+ json +\" }\";\n\t}", "@SuppressWarnings({ \"unchecked\", \"rawtypes\" })\r\n\t@Override\r\n\tpublic ResponseDto create(String controllerJson) {\n\t\tMap<String, Object> data = new HashMap<>();\r\n\t\t\r\n\t\tResponseDto response = new ResponseDto();\r\n\t\t\r\n\t\tMap<Object, Object> inputDataMap = new LinkedHashMap<>();\r\n\t\tinputDataMap.put(\"inputString\", controllerJson);\r\n\r\n\t\tGson gson = new Gson();\r\n\t\tContainerDTO dto = gson.fromJson(controllerJson.toString(), ContainerDTO.class);\r\n\t\tList<ContainerDetailsDTO> list = new ArrayList<>();\r\n\t\t// System.out.println(dto.getDELIVERY().getITEM());\r\n\t\tif (dto.getDELIVERY().getITEM() instanceof LinkedTreeMap) {\r\n\t\t\tLinkedTreeMap<String, String> item2 = (LinkedTreeMap) dto.getDELIVERY().getITEM();\r\n\t\t\tContainerDetailsDTO d = getLinkedTreeMapToContainerDetailsDto(item2);\r\n\t\t\tlist.add(d);\r\n\t\t\t// System.out.println(d.getAREACODE());\r\n\t\t} else if (dto.getDELIVERY().getITEM() instanceof ArrayList) {\r\n\t\t\tList<LinkedTreeMap> item2 = (List<LinkedTreeMap>) dto.getDELIVERY().getITEM();\r\n\t\t\tfor (LinkedTreeMap i : item2) {\r\n\t\t\t\tContainerDetailsDTO d = getLinkedTreeMapToContainerDetailsDto(i);\r\n\t\t\t\tlist.add(d);\r\n\t\t\t}\r\n\t\t}\r\n\t\tdto.getDELIVERY().setITEM(list);\r\n\t\tinputDataMap.put(\"processObject\", dto);\r\n\t\t// LOGGER.error(\"INSIDE CREATE CONTAINER SERVIE WITH REQUEST PAYLOAD =>\r\n\t\t// \" + dto);\r\n\t\tif (!ServicesUtil.isEmpty(dto) && !ServicesUtil.isEmpty(dto.getDELIVERY())) {\r\n\t\t\tList<ContainerDetailsDTO> containerDetailsDTOs = (List<ContainerDetailsDTO>) dto.getDELIVERY().getITEM();\r\n\r\n\t\t\ttry {\r\n\r\n\t\t\t\tlong timeStamp = System.currentTimeMillis();\r\n\t\t\t\tString jobIdentity = \"DnProcessJob\" + timeStamp;\r\n\t\t\t\tString group = \"group\" + timeStamp;\r\n\t\t\t\tString triggerName = \"DnProcessTrigger\" + timeStamp;\r\n\t\t\t\tString jobName = \"Job\" + timeStamp;\r\n\t\t\t\tDate currdate = new Date();\r\n\r\n\t\t\t\tJobDetail job = JobBuilder.newJob(ContainerToDeliveryNoteProcessingJob.class)\r\n\t\t\t\t\t\t.withIdentity(jobIdentity, group).build();\r\n\r\n\t\t\t\tSimpleTrigger trigger = (SimpleTrigger) TriggerBuilder.newTrigger().withIdentity(triggerName, group)\r\n\t\t\t\t\t\t.startNow().build();\r\n\t\t\t\tScheduler scheduler = new StdSchedulerFactory().getScheduler();\r\n\r\n\t\t\t\tContainerRecordsDo recordsDo = new ContainerRecordsDo();\r\n\t\t\t\trecordsDo.setPayload(controllerJson.trim());\r\n\t\t\t\trecordsDo.setCreatedAt(currdate);\r\n\r\n\t\t\t\t// containerRecordService.create(recordsDo);\r\n\r\n\t\t\t\tcontainerRecordsDAO.getSession().persist(recordsDo);\r\n\r\n\t\t\t\tcontainerRecordsDAO.getSession().flush();\r\n\t\t\t\tcontainerRecordsDAO.getSession().clear();\r\n\t\t\t\tcontainerRecordsDAO.getSession().getTransaction().commit();\r\n\t\t\t\t\r\n\t\t\t\t// adding data to scheduler context\r\n\t\t\t\tdata.put(\"data\", dto);\r\n\t\t\t\tdata.put(\"timeStamp\", currdate);\r\n\t\t\t\tdata.put(\"containerRecordId\", recordsDo.getId());\r\n\t\t\t\tdata.put(\"jobName\", jobName);\r\n\r\n\t\t\t\tcomp.backgroudDnProcessing(data);\r\n\t\t\t\t\r\n\t\t\t\t// adding data to scheduler context\r\n\t\t\t\tscheduler.getContext().put(\"data\", dto);\r\n\t\t\t\tscheduler.getContext().put(\"timeStamp\", currdate);\r\n\t\t\t\tscheduler.getContext().put(\"containerRecordId\", recordsDo.getId());\r\n\t\t\t\tscheduler.getContext().put(\"jobName\", jobName);\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t/*\r\n\t\t\t\t * int i=1; for (ContainerDetailsDTO d : containerDetailsDTOs) {\r\n\t\t\t\t * containerDao.create(d, new ContainerDetailsDo());\r\n\t\t\t\t * \r\n\t\t\t\t * if(i % BATCH_SIZE ==0) { containerDao.getSession().flush();\r\n\t\t\t\t * containerDao.getSession().clear(); }\r\n\t\t\t\t * \r\n\t\t\t\t * i++;\r\n\t\t\t\t * \r\n\t\t\t\t * }\r\n\t\t\t\t * \r\n\t\t\t\t * // flushing the session data\r\n\t\t\t\t * containerDao.getSession().flush();\r\n\t\t\t\t * containerDao.getSession().clear();\r\n\t\t\t\t */\r\n\r\n\t\t\t\t/*scheduler.start();\r\n\t\t\t\tscheduler.scheduleJob(job, trigger);*/\r\n\t\t\t\ttry {\r\n\t\t\t\t\tThread.sleep(2000);\r\n\t\t\t\t} catch (InterruptedException 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\t\t\t\t\r\n\t\t\t\tLOGGER.error(\"INSIDE CREATE CONTAINER SERVICE : JOB STARTED ID [ \"+jobName+\" ]\");\r\n\t\t\t\t\r\n\t\t\t\t//scheduler.standby();\r\n\t\t\t\t// scheduler.shutdown(true);\r\n\r\n\t\t\t\t/*\r\n\t\t\t\t * Object data = createEntryInDeliveryHeader(dto); LOGGER.\r\n\t\t\t\t * error(\"INSIDE CREATE CONTAINER SERVIE WITH RESPONSE PAYLOAD <= \"\r\n\t\t\t\t * + data);\r\n\t\t\t\t */\r\n\t\t\t\tresponse.setStatus(true);\r\n\t\t\t\tresponse.setCode(HttpStatus.SC_OK);\r\n\t\t\t\tresponse.setMessage(Message.SUCCESS + \"\");\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tresponse.setStatus(false);\r\n\t\t\t\tresponse.setCode(HttpStatus.SC_INTERNAL_SERVER_ERROR);\r\n\t\t\t\tresponse.setMessage(Message.FAILED + \" : \" + e.toString());\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tresponse.setStatus(true);\r\n\t\t\tresponse.setMessage(Message.SUCCESS.getValue());\r\n\t\t\tresponse.setCode(HttpStatus.SC_OK);\r\n\t\t}\r\n\r\n\t\treturn response;\r\n\t}", "public void init() {\n\n mJokes = new ArrayList<>();\n\n StringBuilder sBuilder = new StringBuilder();\n\n try {\n\n InputStream in = getClass().getResourceAsStream(\"/jokes.json\");\n BufferedReader reader = new BufferedReader(new InputStreamReader(in));\n\n String mLine = reader.readLine();\n while (mLine != null) {\n //process line\n sBuilder.append(mLine);\n mLine = reader.readLine();\n }\n\n reader.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n\n String jsonString = sBuilder.toString();\n\n if( jsonString != null ){\n\n JsonParser parser = new JsonParser();\n JsonObject jsonObject = parser.parse(jsonString).getAsJsonObject();\n\n JsonArray jokesArray = jsonObject.getAsJsonArray(\"jokes\");\n\n for (JsonElement element : jokesArray) {\n String joke = element.getAsJsonObject().get(\"joke\").getAsString();\n mJokes.add(joke);\n }\n }\n\n }", "public static String reParseJson(String old){\n int start = old.indexOf(\"{\");\n int end = old.lastIndexOf(\"}\");\n return old.substring(start,end+1);\n\n }", "private String parseResultSingle(String jsonString) {\n String ans = \"\";\n JSONArray obj = new JSONArray(jsonString);\n\n // meaning\n JSONArray obj2 = new JSONArray(obj.get(0).toString());\n JSONArray meaning = new JSONArray(obj2.get(0).toString());\n\n ans += (String) (\"\\n\" + meaning.get(1) + \" | \" + meaning.get(0) + \"\\n\");\n // different meaning\n JSONArray obj3 = new JSONArray(obj.get(1).toString());\n for (Object o : obj3) {\n JSONArray example = new JSONArray(o.toString());\n ans += (String) (\"\\n- \" + example.get(0) + \": \");\n JSONArray exampleWords = new JSONArray(example.get(1).toString());\n for (Object o2 : exampleWords) {\n ans += (String) (o2.toString() + \", \");\n }\n ans = ans.substring(0, ans.length() - 2);\n ans += (String) (\"\\n\");\n }\n return ans;\n }", "private void buildReport() {\n StringBuilder stringBuilder = new StringBuilder();\n\n // Header of report\n stringBuilder.append(\"Games\\tCPU wins\\t\"\n + \"Human wins\\tDraw avg\\tMax rounds\\n\");\n stringBuilder.append(\"=============================================\\n\");\n\n // shows the number of overall games\n stringBuilder.append(dbConnection.executeQuery(\"SELECT COUNT(game_id) FROM game\", \"count\"));\n stringBuilder.append(\"\\t\");\n // shows the number of times the computer won\n stringBuilder.append(dbConnection.executeQuery(\"SELECT COUNT(game_id) FROM game WHERE winner = 'CPU'\", \"count\"));\n stringBuilder.append(\"\\t\");\n // shows the number of times the human player won\n stringBuilder.append(dbConnection.executeQuery(\"SELECT COUNT(game_id) FROM game WHERE winner = 'human'\", \"count\"));\n stringBuilder.append(\"\\t\");\n // shows the average number of draws per game\n stringBuilder.append((int)Float.parseFloat(dbConnection.executeQuery(\"SELECT AVG(draws) FROM game\", \"avg\")));\n stringBuilder.append(\"\\t\");\n // shows the maximum number of rounds played\n stringBuilder.append(dbConnection.executeQuery(\"SELECT MAX(rounds) FROM game\", \"max\"));\n\n // Converts stringBuilder to a String\n reportContent = stringBuilder.toString();\n }", "@Test\n public void testReportProducesValidJson() throws Exception {\n testReportProducesCorrectOutput(\"json\");\n }", "public JFreeReport parseReport(final URL file, final URL contentBase)\r\n throws ResourceException\r\n {\r\n return parse(file, contentBase);\r\n }", "public static ArticleInfo fromJson(String jsonString) throws IOException {\n return JSON.getGson().fromJson(jsonString, ArticleInfo.class);\n }", "public Organization(String jsonString) throws JSONException\n\t{\n\t\tthis(new JSONObject(jsonString));\n\t}", "private void fillString() {\n information = new String[4];\n information[0] = htmlConverter.fromHtml(event.getSummary()).toString();\n information[1] = event.getBeginTime() + \" - \" + event.getEndTime();\n information[2] = htmlConverter.fromHtml(event.getLocation()).toString();\n information[3] = htmlConverter.fromHtml(event.getDescription()).toString();\n }", "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}", "public String loadJSONFromAsset() {\n String json = null;\n try {\n json = new String(buffer, \"UTF-8\");\n } catch (UnsupportedEncodingException e1) {\n e1.printStackTrace();\n }\n\n return json;\n }", "public static JSONObject getJObjWebdata(String jsonData) {\n JSONObject dataJObject = null;\n try {\n dataJObject = (new JSONObject(jsonData))\n .getJSONObject(IWebService.KEY_RES_DATA);\n // dataJObject = (new JSONObject(jsonData)).getJSONObject(\"root\")\n // .getJSONObject(\"Data\");\n } catch (Exception e) {\n e.printStackTrace();\n }\n return dataJObject;\n }", "public static WeatherInfo extractWeather(String response) {\n JsonParser parser = new JsonParser();\n JsonElement jsonElement = parser.parse(response);\n JsonObject rootObject = jsonElement.getAsJsonObject();\n JsonObject location = rootObject.getAsJsonObject(\"location\");\n String city = location.get(\"name\").getAsString();\n String country = location.get(\"country\").getAsString();\n JsonObject current = rootObject.getAsJsonObject(\"current\");\n Double temp = current.get(\"temp_c\").getAsDouble();\n JsonObject condition = current.getAsJsonObject(\"condition\");\n String conditionText = condition.get(\"text\").getAsString();\n return new WeatherInfo(city, country, conditionText, temp);\n}", "public static BusinessRuleFromTemplate jsonToBusinessRule(JsonObject jsonObject) {\n String businessRuleJsonString = jsonObject.get(\"businessRuleFromTemplate\").toString();\n Gson gson = new GsonBuilder().disableHtmlEscaping().setPrettyPrinting().create();\n BusinessRuleFromTemplate businessRuleFromTemplate = gson.fromJson(businessRuleJsonString, BusinessRuleFromTemplate.class);\n\n return businessRuleFromTemplate;\n }", "public synchronized MonitoringDevice fromJSON(String json){\n\t\t\n\t\tObjectMapper mapper = new ObjectMapper();\n\t\t\n\t\t//Convert object to JSON string and pretty print\n\t\tMonitoringDevice mDeviceTemp = null;\n\t\t\n\t\ttry {\n\t\t\n\t\t\tmDeviceTemp = mapper.readValue(json, MonitoringDevice.class);\n\t\t\t\n\t\t\tlogger.debug(\"Json object read:\" + mDeviceTemp.toJson());\n\t\t\t\n\t\t\tlogger.debug(\"Monitoring device id given:\" + mDeviceTemp.getId() );\n\t\t\tlogger.debug(\"Monitoring address given:\" + mDeviceTemp.getIp_address() );\n\t\t\t\n\t\t\tDeviceTypeContainer deviceTypeContainer = (DeviceTypeContainer) this.getReferenceContainer(\"DeviceType\");\t\t\t\n\t\t\tDeviceType deviceTypeTmp = (DeviceType) deviceTypeContainer.getObject(mDeviceTemp.getType().getId());\n\t\t\t\n\t\t\tif (deviceTypeTmp != null) {\n\t\t\t\tmDeviceTemp.setType(deviceTypeTmp);\n\t\t\t} else {\n\t\t\t\tdeviceTypeContainer.fromJSON(mDeviceTemp.getType().toJson());\n\t\t\t}\n\t\t\t\n\t\t\tSignalContainer signalContainer = (SignalContainer) this.getReferenceContainer(\"Signal\");\n\t\t\tfor (int i=0; i < mDeviceTemp.inputOutputPorts.size(); i++){\n\t\t\t\tInputOutputPort inputOutputPort = mDeviceTemp.inputOutputPorts.get(i);\n\t\t\t\tSignal signal = (Signal) signalContainer.getObject(inputOutputPort.getSignalType().getId());\n\t\t\t\t\n\t\t\t\tif (signal == null){\n\t\t\t\t\tsignalContainer.fromJSON(inputOutputPort.getSignalType().toJson());\n\t\t\t\t} else { \n\t\t\t\t\tinputOutputPort.setSignalType(signal);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tmDeviceTemp.updateIndexes();\n\n\t\t} catch (JsonParseException e) {\n\t\t\tlogger.error(e.getMessage());\n\t\t\te.printStackTrace();\n\t\t} catch (JsonMappingException e) {\n\t\t\tlogger.error(e.getMessage());\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\tlogger.error(e.getMessage());\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\treturn mDeviceTemp;\n\t}" ]
[ "0.6049338", "0.5819382", "0.57839257", "0.56065434", "0.55449235", "0.5384753", "0.53315663", "0.53164977", "0.52452475", "0.52030826", "0.5139327", "0.5041327", "0.50381595", "0.49879283", "0.49564725", "0.49136272", "0.49022713", "0.48922512", "0.48778403", "0.48418897", "0.48391786", "0.48321044", "0.48279625", "0.48014826", "0.4798924", "0.47952238", "0.47701532", "0.4765951", "0.47472894", "0.47467095", "0.47405413", "0.47339198", "0.47149342", "0.47094592", "0.469587", "0.46807876", "0.46559545", "0.46509653", "0.46489087", "0.46484983", "0.4647189", "0.463695", "0.4633088", "0.46236366", "0.4617184", "0.46126896", "0.46104127", "0.45990556", "0.45876682", "0.45816627", "0.4579978", "0.4572763", "0.45638916", "0.45629856", "0.45629323", "0.45536312", "0.45535553", "0.4547362", "0.4541042", "0.4535583", "0.45313877", "0.45233387", "0.45137018", "0.45098", "0.45053416", "0.44980296", "0.44961733", "0.4492135", "0.44836378", "0.44781065", "0.44736734", "0.44610852", "0.4460435", "0.4459165", "0.44556913", "0.44545186", "0.44494182", "0.44494003", "0.4448345", "0.4447404", "0.44413126", "0.44412613", "0.44285774", "0.4427928", "0.44252148", "0.44199726", "0.44190675", "0.44181842", "0.441658", "0.4409527", "0.44071227", "0.4405779", "0.43931836", "0.43849495", "0.4382172", "0.43813178", "0.43641207", "0.43625176", "0.43622422", "0.4360944" ]
0.5815297
2
/ returns a matrix view into this (outerproduct of a vector) matrix. idea is to optimize the matrix iterator with knowledge of the underlying data
public Matrix getMatrixView(int [] rowIndices, int [] colIndices) { return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static Matrix vectorize(Matrix input) {\n int m = input.getRowDimension();\n int n = input.getColumnDimension();\n\n Matrix result = new Matrix(m * n, 1);\n for (int p = 0; p < n; p++) {\n for (int q = 0; q < m; q++) {\n result.set(p * m + q, 0, input.get(q, p));\n }\n }\n return result;\n }", "Matrix mult(Matrix M){\n if(this.getSize() != M.getSize()){\n throw new RuntimeException(\"Matrix\");\n\n } \n int newMatrixSize = this.getSize();\n Matrix newM = M.transpose();\n Matrix resultMatrix = new Matrix(newMatrixSize);\n double resultMatrix_Entry = 0;\n for(int i = 1; i <= newMatrixSize; i++){\n for(int j = 1; j<= newMatrixSize; j++){\n List itRow_A = this.rows[i - 1];\n List itRow_B = newM.rows[j-1];\n itRow_A.moveFront();\n itRow_B.moveFront();\n while((itRow_A.index() != -1) && (itRow_B.index() != -1)){\n Entry c_A = (Entry)itRow_A.get();\n Entry c_B = (Entry) itRow_B.get();\n if(c_A.column == c_B.column){\n resultMatrix_Entry += (c_A.value)*(c_B.value);\n itRow_A.moveNext();\n itRow_B.moveNext();\n\n } else if(c_A.column > c_B.column){\n itRow_B.moveNext();\n\n }else{\n itRow_A.moveNext();\n }\n\n }\n resultMatrix.changeEntry(i, j, resultMatrix_Entry);\n resultMatrix_Entry = 0;\n }\n }\n return resultMatrix;\n\n }", "public Matrix ref() {\n\t\tMatrix m = copy();\n\t\tint pivotRow = 0;\n\t\tfor (int col = 0; col < m.N; col++) {\n\t\t\tif (pivotRow < m.M) {\n\t\t\t\tint switchTo = m.M - 1;\n\t\t\t\twhile (pivotRow != switchTo && \n\t\t\t\t\t\tm.ROWS[pivotRow][col].equals(new ComplexNumber(0))) {\n\t\t\t\t\tm = m.rowSwitch(pivotRow, switchTo);\n\t\t\t\t\tswitchTo--;\n\t\t\t\t}\n\t\t\t\tif (!m.ROWS[pivotRow][col].equals(new ComplexNumber(0))) {\n\t\t\t\t\t// We got a non-zero pivot\n\t\t\t\t\tfor (int lowerRow = pivotRow + 1; lowerRow < m.M;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlowerRow++) {\n\t\t\t\t\t\tComplexNumber factor1 = new ComplexNumber(-1);\n\t\t\t\t\t\tComplexNumber factor2 = m.ROWS[lowerRow][col];\n\t\t\t\t\t\tComplexNumber factor3 = m.ROWS[pivotRow][col];\n\t\t\t\t\t\tComplexNumber factor4 = new ComplexNumber(1);\n\t\t\t\t\t\tComplexNumber factor5 = factor1.multiply(factor2);\n\t\t\t\t\t\tComplexNumber factor6 = factor4.divide(factor3);\n\t\t\t\t\t\tComplexNumber weight = factor5.multiply(factor6);\n\n\t\t\t\t\t\tm = m.rowAdd(lowerRow, pivotRow, weight);\n\t\t\t\t\t}\n\t\t\t\t\tpivotRow++;\n\t\t\t\t\t/* Keep the same pivot row if we currently have a\n\t\t\t\t\t * zero-pivot. Move on to see if there's a pivot in the\n\t\t\t\t\t * next column.\n\t\t\t\t\t */\n\t\t\t\t}\t\n\t\t\t}\n\t\t}\n\t\treturn m;\n\t}", "public Vector product(Vector vec) {\n\t\t// Create data structure for containing the result vector\n\t\tdouble[] r = new double[vec.len];\n\n\t\t// Iteratively assign each element of the new vector to be the sum of row*vec\n\t\tfor(int i=0; i < rank; i++) {\n\t\t\tfor(int j=0; j < rank; j++) {\n\t\t\t\tr[i] += retrieveElement(i, j) * vec.v[j]; \n\t\t\t}\n\t\t}\t\n\t\treturn new Vector(r);\n\t}", "Matrix dot(Matrix m){\n if(this.cols != m.rows) throw new RuntimeException(String.format(\"Wrong dimensions\"));\n double[][] tmp_this = this.asArray();\n double[][] tmp_m = m.asArray();\n Matrix matrix_to_return = new Matrix(this.rows, m.cols);\n for(int i=0; i<matrix_to_return.rows; i++){\n for(int j=0; j<matrix_to_return.cols; j++){\n for(int k=0; k<matrix_to_return.rows; k++)\n matrix_to_return.data[i*this.cols + j] += tmp_this[i][k] * tmp_m[k][j];\n }\n }\n return matrix_to_return;\n }", "public Matrix xMatrixTranspose(){\n if(!this.pcaDone)this.pca();\n double denom = this.nItems;\n if(!super.nFactorOption)denom -= 1.0;\n Matrix mat = dataMinusMeansTranspose.times(1.0/Math.sqrt(denom));\n return mat;\n }", "@Override\n public Matrix idct(final MatrixView in) {\n check(in);\n double[][] out = new double[in.getRows()][in.getColumns()];\n double tmp1, tmp2, tmp3, tmp4;\n double tmpm0 = 0, tmpm1 = 0, tmpm2 = 0, tmpm3 = 0, tmpm4 = 0, tmpm5 = 0, tmpm6 = 0, tmpm7 = 0;\n double tmpm20, tmpm21, tmpm22, tmpm23, tmpm24, tmpm25, tmpm26, tmpm27 = 0;\n double[] outtmpmyi = null;\n\n for (int my = 0; my < in.getRows(); my += SIZE) {\n for (int mx = 0; mx < in.getColumns(); mx += SIZE) {\n for (int i = 0; i < 8; i++) {\n outtmpmyi = out[my + i];\n\n tmpm0 = in.getDouble(my + i, mx + 0);\n tmpm1 = in.getDouble(my + i, mx + 1);\n tmpm2 = in.getDouble(my + i, mx + 2);\n tmpm3 = in.getDouble(my + i, mx + 3);\n tmpm4 = in.getDouble(my + i, mx + 4);\n tmpm5 = in.getDouble(my + i, mx + 5);\n tmpm6 = in.getDouble(my + i, mx + 6);\n tmpm7 = in.getDouble(my + i, mx + 7);\n\n tmp1 = (tmpm1 * Z7) - (tmpm7 * Z1);\n tmp4 = (tmpm7 * Z7) + (tmpm1 * Z1);\n tmp2 = (tmpm5 * Z3) - (tmpm3 * Z5);\n tmp3 = (tmpm3 * Z3) + (tmpm5 * Z5);\n\n tmpm20 = (tmpm0 + tmpm4) * Z4;\n tmpm21 = (tmpm0 - tmpm4) * Z4;\n tmpm22 = (tmpm2 * Z6) - (tmpm6 * Z2);\n tmpm23 = (tmpm6 * Z6) + (tmpm2 * Z2);\n tmpm4 = tmp1 + tmp2;\n tmpm25 = tmp1 - tmp2;\n tmpm26 = tmp4 - tmp3;\n tmpm7 = tmp4 + tmp3;\n\n tmpm5 = (tmpm26 - tmpm25) * Z0;\n tmpm6 = (tmpm26 + tmpm25) * Z0;\n tmpm0 = tmpm20 + tmpm23;\n tmpm1 = tmpm21 + tmpm22;\n tmpm2 = tmpm21 - tmpm22;\n tmpm3 = tmpm20 - tmpm23;\n\n outtmpmyi[mx + 0] = tmpm0 + tmpm7;\n outtmpmyi[mx + 7] = tmpm0 - tmpm7;\n outtmpmyi[mx + 1] = tmpm1 + tmpm6;\n outtmpmyi[mx + 6] = tmpm1 - tmpm6;\n outtmpmyi[mx + 2] = tmpm2 + tmpm5;\n outtmpmyi[mx + 5] = tmpm2 - tmpm5;\n outtmpmyi[mx + 3] = tmpm3 + tmpm4;\n outtmpmyi[mx + 4] = tmpm3 - tmpm4;\n\n }\n\n for (int i = 0; i < 8; i++) {\n\n tmpm0 = out[my + 0][mx + i];\n tmpm1 = out[my + 1][mx + i];\n tmpm2 = out[my + 2][mx + i];\n tmpm3 = out[my + 3][mx + i];\n tmpm4 = out[my + 4][mx + i];\n tmpm5 = out[my + 5][mx + i];\n tmpm6 = out[my + 6][mx + i];\n tmpm7 = out[my + 7][mx + i];\n\n tmp1 = (tmpm1 * Z7) - (tmpm7 * Z1);\n tmp4 = (tmpm7 * Z7) + (tmpm1 * Z1);\n tmp2 = (tmpm5 * Z3) - (tmpm3 * Z5);\n tmp3 = (tmpm3 * Z3) + (tmpm5 * Z5);\n\n tmpm20 = (tmpm0 + tmpm4) * Z4;\n tmpm21 = (tmpm0 - tmpm4) * Z4;\n tmpm22 = (tmpm2 * Z6) - (tmpm6 * Z2);\n tmpm23 = (tmpm6 * Z6) + (tmpm2 * Z2);\n tmpm4 = tmp1 + tmp2;\n tmpm25 = tmp1 - tmp2;\n tmpm26 = tmp4 - tmp3;\n tmpm7 = tmp4 + tmp3;\n\n tmpm5 = (tmpm26 - tmpm25) * Z0;\n tmpm6 = (tmpm26 + tmpm25) * Z0;\n tmpm0 = tmpm20 + tmpm23;\n tmpm1 = tmpm21 + tmpm22;\n tmpm2 = tmpm21 - tmpm22;\n tmpm3 = tmpm20 - tmpm23;\n\n out[my + 0][mx + i] = tmpm0 + tmpm7;\n out[my + 7][mx + i] = tmpm0 - tmpm7;\n out[my + 1][mx + i] = tmpm1 + tmpm6;\n out[my + 6][mx + i] = tmpm1 - tmpm6;\n out[my + 2][mx + i] = tmpm2 + tmpm5;\n out[my + 5][mx + i] = tmpm2 - tmpm5;\n out[my + 3][mx + i] = tmpm3 + tmpm4;\n out[my + 4][mx + i] = tmpm3 - tmpm4;\n }\n }\n }\n\n return new DoubleMatrix(in.getRows(), in.getColumns(), out);\n }", "public Matrix getV() {\n return v.like().assign(v);\n }", "public Vector tensorProduct( final Vector a);", "Matrix scalarMult(double x){\n int newMatrixSize = this.getSize();\n Matrix newM = new Matrix(newMatrixSize);\n for(int i = 1; i <= newMatrixSize; i++){\n List itRow = rows[i - 1];\n itRow.moveFront();\n while(itRow.index() != -1){\n Entry c = (Entry)itRow.get();\n newM.changeEntry(i, c.column, (x*c.value));\n itRow.moveNext();\n }\n }\n\n return newM;\n }", "public Matrix getInversematrixS()\n {\n // Build alpha * I\n double [][] alphainvmatrix;\n alphainvmatrix = new double[x + 1][x + 1];\n for(int i = 0; i < x + 1; i++)\n {\n alphainvmatrix[i][i] = alpha;\n\n }\n Matrix alphamatrixnew = new Matrix(alphainvmatrix);\n\n // calculate summation\n Matrix sum = new Matrix(x + 1, 1);\n int i = 1;\n while (i <= arraylistofprices.size() - 1) {\n phimatrix(i);\n\n sum.plusEquals(phi);\n\n i++;\n }\n Matrix summation = sum.times(phiT);\n summation.timesEquals(beta); \n\n // alpha * I + beta * sum\n Matrix sInv = alphamatrixnew.plus(summation);\n return sInv;\n }", "public Matrix rref() {\n\t\tMatrix m = ref();\n\t\tint pivotRow = m.M - 1;\n\t\tArrayList<Integer> pivotColumns = m.pivotColumns();\n\t\tCollections.reverse(pivotColumns);\n\t\tfor (int i = 0; i < pivotColumns.size(); i++) {\n\t\t\tint pivotCol = pivotColumns.get(i);\n\t\t\twhile (pivotRow >= 0 && m.ROWS[pivotRow][pivotCol].equals(new ComplexNumber(0))) {\n\t\t\t\tpivotRow--;\n\t\t\t}\n\t\t\tfor (int upperRow = pivotRow - 1; upperRow > -1; upperRow--) {\n\t\t\t\tComplexNumber factor1 = new ComplexNumber(-1);\n\t\t\t\tComplexNumber factor2 = m.ROWS[upperRow][pivotCol];\n\t\t\t\tComplexNumber factor3 = m.ROWS[pivotRow][pivotCol];\n\t\t\t\tComplexNumber factor4 = new ComplexNumber(1);\n\t\t\t\tComplexNumber factor5 = factor1.multiply(factor2);\n\t\t\t\tComplexNumber factor6 = factor4.divide(factor3);\n\t\t\t\tComplexNumber weight = factor5.multiply(factor6);\n\n\t\t\t\tm = m.rowAdd(upperRow, pivotRow, weight);\n\t\t\t}\n\t\t\tpivotRow--;\n\t\t}\n\t\treturn m;\n\t}", "Matrix mul(double w){\n Matrix matrix_to_return = new Matrix(this.rows, this.cols);\n for(int i=0; i<this.rows * this.cols; i++){\n matrix_to_return.data[i] = this.data[i] * w;\n }\n return matrix_to_return;\n }", "Matrix transpose(){\n int newMatrixSize = this.getSize();\n Matrix newM = new Matrix(newMatrixSize);\n for(int i = 1; i <= newMatrixSize; i++){\n List itRow = rows[i - 1];\n // if(!itRow[i].isEmpty()){\n itRow.moveFront();\n // itRow[i].moveFront();\n while(itRow.index() != -1){\n Entry c = (Entry)itRow.get();\n newM.changeEntry(c.column, i, c.value);\n itRow.moveNext();\n }\n }\n return newM;\n }", "@Override\n\tpublic IVector toVector(boolean liveView) {\n\t\tif (this.getColsCount() != 1 && this.getRowsCount() != 1) {\n\t\t\tthrow new IncompatibleOperandException(\n\t\t\t\t\t\"Matrix can be represented as vector only if number of rows or columns is 1\");\n\t\t}\n\t\treturn new VectorMatrixView(this);\n\n\t}", "public long[][] smultiply(int i){\n\t\tint sl = this.mat.length; //jumps to method sideLength to obtain the side length n of the matrix A\n\t\t//the global record contains an array of columns, where each column is an array of row elements. i.e.\n\t\t//the record contains the transpose of matrix A, where every row in the record is a column in A\n\t\t//a temporary 2D array tempMatA, and is made equal to the transpose of A\n\t\tlong[][] tempMatA = transpose(this.mat);\n\t\tlong[][] tempMat2 = new long[sl][sl]; //creates a temporary 2D matrix of the same size as tempMatA\n\t\tlong[][] outMat = new long[sl][sl];\n\t\t\n\t\tif (i > 1){\n\t\t\t//see for loop explanation in class \"Matrix3x3flat\"+\n\t\t\tfor (int j = 1; j < i; j ++){ //loops until j == input variable i.\n\t\t\t\t//j == 1 because matrix multiplication will occur on the first loop, so if i == 2, tempMat2 == A^3, not A^2\n\t\t\t\tfor (int a = 0; a < 3; a++){ //loops until a == side length of A\n\t\t\t\t\tfor (int b = 0; b < 3; b++){ //loops until b == side length of A\n\t\t\t\t\t\tfor (int c = 0; c < 3; c++){ //loops until c == side length of A\n\t\t\t\t\t\t\ttempMat2[a][b] = tempMat2[a][b] + (tempMatA[a][c] * tempMatA[c][b]);\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\t//returns tempMat2 as output matrix\n\t\t\toutMat = copy(tempMat2, outMat);\n\t\t}\n\t\t//returns A as output matrix, since A^1 = A\n\t\telse if (i == 1){\n\t\t\toutMat = copy(tempMatA, outMat);\n\t\t}\n\t\t//returns a 3x3 matrix filled with ones if i == 0\n\t\t//A^0 = 1\n\t\telse if (i == 0){\n\t\t\tfor (int m = 0; m < 3; m++){\n\t\t\t\tfor (int n = 0; n < 3; n++){\n\t\t\t\t\tif (m == n){\n\t\t\t\t\t\toutMat[m][n] = 1;\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\toutMat[m][n] = 0;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t//return matrix must be re-transposed to return a the proper format of 2D array for the global array\n\t\toutMat = transpose(outMat);\n\t\treturn outMat;\n\t}", "Matrix mul(Matrix m){\n if(m.cols != this.cols || m.rows != this.rows) throw new RuntimeException(String.format(\"Wrong dimensions\"));\n Matrix matrix_to_return = new Matrix(m.rows, m.cols);\n for(int i=0; i<m.rows * m.cols; i++){\n matrix_to_return.data[i] = this.data[i] * m.data[i];\n }\n return matrix_to_return;\n }", "public Matrix xMatrix(){\n if(!this.pcaDone)this.pca();\n double denom = this.nItems;\n if(!super.nFactorOption)denom -= 1.0;\n Matrix mat = dataMinusMeans.times(1.0/Math.sqrt(denom));\n return mat;\n }", "public Matrix copy() {\n Matrix m = new Matrix(rows, cols);\n for (int i=0; i<rows; i++) {\n for (int j=0; j<cols; j++) {\n m.getMatrix().get(i)[j] = this.get(i, j);\n }\n }\n return m;\n }", "public Matrix inverse(){\r\n \tint n = this.nrow;\r\n \tif(n!=this.ncol)throw new IllegalArgumentException(\"Matrix is not square\");\r\n \tdouble[] col = new double[n];\r\n \tdouble[] xvec = new double[n];\r\n \tMatrix invmat = new Matrix(n, n);\r\n \tdouble[][] invarray = invmat.getArrayReference();\r\n \tMatrix ludmat;\r\n\r\n\t \tludmat = this.luDecomp();\r\n \tfor(int j=0; j<n; j++){\r\n \t\tfor(int i=0; i<n; i++)col[i]=0.0D;\r\n \t\tcol[j]=1.0;\r\n \t\txvec=ludmat.luBackSub(col);\r\n \t\tfor(int i=0; i<n; i++)invarray[i][j]=xvec[i];\r\n \t}\r\n \t\treturn invmat;\r\n \t}", "@Nonnull\n public Matrix getU ()\n {\n final Matrix aNewMatrix = new Matrix (m_nCols, m_nCols);\n final double [] [] aNewArray = aNewMatrix.internalGetArray ();\n for (int nRow = 0; nRow < m_nCols; nRow++)\n {\n final double [] aSrcRow = m_aLU[nRow];\n final double [] aDstRow = aNewArray[nRow];\n for (int nCol = 0; nCol < m_nCols; nCol++)\n if (nRow <= nCol)\n aDstRow[nCol] = aSrcRow[nCol];\n else\n aDstRow[nCol] = 0.0;\n }\n return aNewMatrix;\n }", "public Matrix copy(){\r\n \t if(this==null){\r\n \t return null;\r\n \t }\r\n \t else{\r\n \t int nr = this.nrow;\r\n \t int nc = this.ncol;\r\n \t Matrix b = new Matrix(nr,nc);\r\n \t double[][] barray = b.getArrayReference();\r\n \t b.nrow = nr;\r\n \t b.ncol = nc;\r\n \t for(int i=0; i<nr; i++){\r\n \t\tfor(int j=0; j<nc; j++){\r\n \t\tbarray[i][j]=this.matrix[i][j];\r\n \t\t}\r\n \t }\r\n \t for(int i=0; i<nr; i++)b.index[i] = this.index[i];\r\n \t return b;\r\n \t}\r\n \t}", "Matrix copy() {\n Matrix newMatrix = new Matrix(matrixSize);\n for (int i = 0; i < matrixSize; i++) {\n if (!rows[i].isEmpty()) {\n rows[i].moveFront();\n while (rows[i].index() != -1) {\n Entry entry = (Entry)rows[i].get();\n newMatrix.changeEntry(i + 1, entry.column, entry.value);\n rows[i].moveNext();\n }\n }\n }\n return newMatrix;\n }", "public Row3 smultiply(int i){\n\t\tRow3 tempRec = this.mat; //creates a temporary duplicate of the global record\n\t\tlong[][] tempMatA = new long[3][3]; //creates the matrix A as a 2D array\n\t\ttempMatA[0][0] = tempRec.r1.col1;\n\t\ttempMatA[0][1] = tempRec.r1.col2;\n\t\ttempMatA[0][2] = tempRec.r1.col3;\n\t\ttempMatA[1][0] = tempRec.r2.col1;\n\t\ttempMatA[1][1] = tempRec.r2.col2;\n\t\ttempMatA[1][2] = tempRec.r2.col3;\n\t\ttempMatA[2][0] = tempRec.r3.col1;\n\t\ttempMatA[2][1] = tempRec.r3.col2;\n\t\ttempMatA[2][2] = tempRec.r3.col3;\n\t\t\n\t\tlong[][] tempMat2 = new long[3][3]; //creates a 2D array of the same size as A\n\t\tlong[][] outMat = new long[3][3];\n\t\t\n\t\tif (i > 1){\n\t\t\t//see for loop explanation in class \"Matrix3x3flat\"\n\t\t\tfor (int j = 1; j < i; j ++){ //loops until j == input variable i.\n\t\t\t\t//j == 1 because matrix multiplication will occur on the first loop, so if i == 2, tempMat2 == A^3, not A^2\n\t\t\t\tfor (int a = 0; a < 3; a++){ //loops until a == side length of A\n\t\t\t\t\tfor (int b = 0; b < 3; b++){ //loops until b == side length of A\n\t\t\t\t\t\tfor (int c = 0; c < 3; c++){ //loops until c == side length of A\n\t\t\t\t\t\t\ttempMat2[a][b] = tempMat2[a][b] + (tempMatA[a][c] * tempMatA[c][b]);\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\t//returns tempMat2 as output matrix\n\t\t\toutMat = copy(tempMat2, outMat);\n\t\t}\n\t\t//returns A as output matrix, since A^1 = A\n\t\telse if (i == 1){\n\t\t\toutMat = copy(tempMatA, outMat);\n\t\t}\n\t\t//returns a 3x3 matrix filled with ones if i == 0\n\t\t//A^0 = 1\n\t\telse if (i == 0){\n\t\t\tfor (int m = 0; m < 3; m++){\n\t\t\t\tfor (int n = 0; n < 3; n++){\n\t\t\t\t\tif (m == n){\n\t\t\t\t\t\toutMat[m][n] = 1;\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\toutMat[m][n] = 0;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t//after matrix multiplication is performed, the respective elements of the 2D array tempMatA are stored in\n\t\t//the temporary register tempRec2, which is then returned\n\t\tcolRow3 a1 = new colRow3(outMat[0][0], outMat[0][1], outMat[0][2]);\n\t\tcolRow3 b1 = new colRow3(outMat[1][0], outMat[1][1], outMat[1][2]);\n\t\tcolRow3 c1 = new colRow3(outMat[2][0], outMat[2][1], outMat[2][2]);\n\t\tRow3 tempRec2 = new Row3(a1, b1, c1);\n\t\treturn tempRec2;\n\t}", "public JTensor cinv() {\n JTensor r = new JTensor();\n TH.THTensor_(cinv)(r, this);\n return r;\n }", "Matrix sumRows(){\n Matrix matrix_to_return = new Matrix(1, this.cols);\n double[][] tmp = this.asArray();\n int k=0;\n for(int i=0; i<this.cols; i++){\n for(int j=0; j<this.rows; j++) {\n matrix_to_return.data[k] += tmp[j][i];\n }\n k++;\n }\n return matrix_to_return;\n }", "public void vectorProductToSelf(Vector3 vector) {\n\t\tthis.setAsSelf(this.vectorProduct(vector));\n\t}", "public MAT(Vector v) {\n super(dimension(v), dimension(v));\n final int n = this.nRows();\n\n int k = 1;\n for (int i = 1; i <= n; ++i) {\n for (int j = i; j <= n; ++j) {\n double vk = v.get(k++);\n if (j != i) {\n vk /= Constant.ROOT_2;\n }\n\n set(i, j, vk);\n set(j, i, vk);\n }\n }\n }", "public BigInteger[] asVector() {\n if (nrOfRows != 1 && nrOfCols != 1) {\n throw new MalformedMatrixException(\"Matrix is not a vector\");\n }\n\n if (nrOfRows == 1) {\n return inner[0];\n }\n\n BigInteger[] res = new BigInteger[nrOfRows];\n\n for (int row = 0; row < nrOfRows; row++) {\n res[row] = inner[row][0];\n }\n\n return res;\n }", "public Matrix getTranspose() {\r\n double[][] jadi = new double[matrix[0].length][matrix.length];\r\n for (int i = 0; i < jadi.length; i++) {\r\n for (int j = 0; j < jadi[0].length; j++) {\r\n jadi[i][j] = matrix[j][i];\r\n }\r\n }\r\n return new Matrix(jadi);\r\n }", "private SparseMatrix<Float64> makeC(SparseMatrix<Float64> matrix) {\n\t\t// normalize products for each customer\n\t\tList<SparseVector<Float64>> normRows =\n\t\t\tnew ArrayList<SparseVector<Float64>>();\n\t\tfor (int i = 0; i < matrix.getNumberOfRows(); i++) {\n\t\t\tSparseVector<Float64> row = matrix.getRow(i);\n\t\t\tFloat64 sum =\n\t\t\t\trow\n\t\t\t\t\t.times(new AllSame<Float64>(row.getDimension(), Float64.ONE));\n\t\t\tSparseVector<Float64> norm = row.times(sum.inverse());\n\t\t\tnormRows.add(norm);\n\t\t}\n\t\treturn SparseMatrix.valueOf(normRows);\n\t}", "public abstract Vector4fc mulProject(IMatrix4f mat);", "public Matriz punto(Matriz B) {\n\t\tMatriz A = this;\n\t\tif (A.getColumnas() != B.getFilas()) { throw new RuntimeException(\"Dimensiones no compatibles.\"); }\n\t\t\n\t\tMatriz C = new Matriz(A.getFilas(), B.getColumnas());\n\t\tfor (int i = 0 ; i < C.getFilas() ; i++) {\n\t\t\tfor (int j = 0 ; j < C.getColumnas() ; j++) {\n\t\t\t\tfor (int k = 0 ; k < A.getColumnas() ; k++) {\n\t\t\t\t\tC.setValor(i, j, C.getValor(i, j) + (A.getValor(i, k) * B.getValor(k, j)));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn C;\n\t}", "public Matrix asMatrix() {\n Matrix result;\n try {\n result = new Matrix(COMPONENTS, 1);\n asMatrix(result);\n } catch (final WrongSizeException ignore) {\n // never happens\n result = null;\n }\n return result;\n }", "public static double[][] matrixInversion(double[][] a) {\r\n\t\t// Code for this function and the functions it calls was adapted from\r\n\t\t// http://mrbool.com/how-to-use-java-for-performing-matrix-operations/26800\r\n\t\t\r\n\t\treturn (divideBy(transpose(cofactor(a)), determinant(a)));\r\n\t}", "public abstract Vector4fc mul(IMatrix4f mat);", "@Nonnull\n @ReturnsMutableCopy\n public Matrix getL ()\n {\n final Matrix aNewMatrix = new Matrix (m_nRows, m_nCols);\n final double [] [] aNewArray = aNewMatrix.internalGetArray ();\n for (int nRow = 0; nRow < m_nRows; nRow++)\n {\n final double [] aSrcRow = m_aLU[nRow];\n final double [] aDstRow = aNewArray[nRow];\n for (int nCol = 0; nCol < m_nCols; nCol++)\n if (nRow > nCol)\n aDstRow[nCol] = aSrcRow[nCol];\n else\n if (nRow == nCol)\n aDstRow[nCol] = 1.0;\n else\n aDstRow[nCol] = 0.0;\n }\n return aNewMatrix;\n }", "private Matrix33d getMatrix() {\n final Matrix33d m = new Matrix33d();\n m.setMatrixColumn(new Vector3d(V1), 0);\n m.setMatrixColumn(new Vector3d(V2), 1);\n m.setMatrixColumn(new Vector3d(V3), 2);\n return m;\n }", "public Matrix transpose(){\r\n \tMatrix tmat = new Matrix(this.ncol, this.nrow);\r\n \tdouble[][] tarray = tmat.getArrayReference();\r\n \tfor(int i=0; i<this.ncol; i++){\r\n \t\tfor(int j=0; j<this.nrow; j++){\r\n \t\ttarray[i][j]=this.matrix[j][i];\r\n \t\t}\r\n \t}\r\n \treturn tmat;\r\n \t}", "public Matrix transpose() {\n\t\tMatrix a = copy();\n\t\tComplexNumber[][] values = new ComplexNumber[a.N][];\n\t\tfor (int col = 0; col < a.N; col++) {\n\t\t\tvalues[col] = new ComplexNumber[a.M];\n\t\t\tfor (int row = 0; row < a.M; row++) {\n\t\t\t\tvalues[col][row] = a.ROWS[row][col]; \t\n\t\t\t}\n\t\t}\n\t\treturn new Matrix(values);\n\t}", "@Override\n public Matrix like() {\n return new PivotedMatrix(base.like());\n }", "public Matrix copy() {\n Matrix X = new Matrix(m,n);\n double[][] C = X.getArray();\n for (int i = 0; i < m; i++) {\n for (int j = 0; j < n; j++) {\n C[i][j] = data[i][j];\n }\n }\n return X;\n }", "public Matrix transpose() {\n Matrix A = new Matrix(columnCount, rowCount);\n for (int i = 0; i < rowCount; i++)\n for (int j = 0; j < columnCount; j++)\n A.data[j][i] = this.data[i][j];\n return A;\n }", "abstract public Matrix4fc getViewMatrix();", "public abstract Vector4fc mul(IMatrix4x3f mat);", "public static Matrix product(Matrix m) {\n int rows_c = m.rows(), cols_c = m.cols();\n Matrix d;\n if (rows_c == 1) {\n return m;\n } else {\n d = MatrixFactory.getMatrix(1, cols_c, m);\n for (int col = 1; col <= cols_c; col++) {\n double prodCol = 1D;\n for (int row = 1; row <= rows_c; row++) {\n prodCol = prodCol * m.get(row, col);\n }\n d.set(1, col, prodCol);\n }\n }\n return d;\n }", "public Matrix transpose() {\n Matrix result = new Matrix(cols, rows);\n for (int i=0; i<rows; i++) {\n for (int j=0; j<cols; j++) {\n result.matrix.get(j)[i] = matrix.get(i)[j];\n }\n }\n return result;\n }", "public Matrix RSW2ECI()\n\t{\n\t\tVectorN r = this.getR();\n\t\t//VectorN v = this.getV();\n\t\tVectorN h = this.getH();\n\t\tVectorN rhat = r.unitVector();\n\t\tVectorN what = h.unitVector();\n\t\tVectorN s = what.crossProduct(rhat);\n\t\tVectorN shat = s.unitVector();\n\t\tMatrix out = new Matrix(3, 3);\n\t\tout.setColumn(0, rhat);\n\t\tout.setColumn(1, shat);\n\t\tout.setColumn(2, what);\n\t\treturn out;\n\t}", "public abstract <M extends AbstractMatrix> M elementwiseProduct(M b);", "public Matrix mult(Matrix MatrixB) {\n\t\tDouble[][] newValue = new Double[row][MatrixB.col()];\r\n\t\tVector[] MatBcol = MatrixB.getCol();\r\n\t\t\r\n\r\n\t\tfor (int x = 0; x < row; x++) {\r\n\t\t\tfor (int y = 0; y < MatrixB.col(); y++) {\r\n\t\t\t\tVector rowVecI = rowVec[x];\r\n\t\t\t\tVector colVecI = MatBcol[y];\r\n\t\t\t\tnewValue[x][y] = rowVecI.DotP(colVecI);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn new Matrix(newValue);\r\n\t}", "private static void multMatVect(double[] v, double[][] A, double m1,\n double[][] B, double m2) {\n double[] vv = new double[3];\n for(int i = 0; i < 3; i++)\n vv[i] = v[i];\n ArithmeticMod.matVecModM(A, vv, vv, m1);\n for(int i = 0; i < 3; i++)\n v[i] = vv[i];\n\n for(int i = 0; i < 3; i++)\n vv[i] = v[i + 3];\n ArithmeticMod.matVecModM(B, vv, vv, m2);\n for(int i = 0; i < 3; i++)\n v[i + 3] = vv[i];\n }", "public double[] getVectorCurrentRow() {\r\n double[] retVec = new double[this.getColumnCount()];\r\n int currRow = getCurrentRow();\r\n for (int i = 0; i < this.getColumnCount(); i++) {\r\n retVec[i] = this.getLogicalValueAt(currRow, i);\r\n }\r\n return retVec;\r\n }", "public Matrix multiplyTransposeSelf(Matrix m) {\n\t\tMatrix newMatrix = new Matrix(nbColumns, m.getNbColumns());\n\t\tmultiplyTransposeA(this, m, newMatrix);\n\n\t\treturn newMatrix;\n\t}", "public Matrix copy() {\n\t\tComplexNumber[][] rows = new ComplexNumber[M][];\n\t\tfor (int row = 0; row < M; row++) {\n\t\t\trows[row] = new ComplexNumber[N];\n\t\t\tfor (int col = 0; col < N; col++) {\n\t\t\t\trows[row][col] = ROWS[row][col];\n\t\t\t}\n\t\t}\n\t\treturn new Matrix(rows);\n\t}", "public Matrix transpose() {\n Matrix A = new Matrix(N, M);\n for (int i = 0; i < M; i++)\n for (int j = 0; j < N; j++)\n A.data[j][i] = this.data[i][j];\n return A;\n }", "public double[][] forwardElim()\n\t{\n\t\tint pivR = 0;\n\t\tfor(int h = 0; h < cols && pivR < rows; h++) //for each col of A\n\t\t{\n\t\t\tif(rowSwap(pivR, h))\n\t\t\t{\n\t\t\t\tfor(int i = pivR+1; i < rows; i++) //for each row below pivot\n\t\t\t\t{\t\t\n\t\t\t\t\tdouble L = (A[i][h])/(A[pivR][h]); //sets the (+) L-factor\n\t\t\t\t\tfor(int j = h; j < cols; j++) //work on elmts of (A's) row\n\t\t\t\t\t{\n\t\t\t\t\t\tA[i][j] = A[i][j] - ((A[pivR][j])*L); //mutates matrix elmt\n\t\t\t\t\t}\n\t\t\t\t\tA[i][cols] = A[i][cols] - ((A[pivR][cols])*L); //vector b (in col n)\n\t\t\t\t}\n\t\t\t\tpivR++;\n\t\t\t}\n\n\t\t}\n\n\t\treturn A;\n\t}", "public Vector<T> crossProduct(Vector<T> aVector) throws VectorSizeException;", "Matrix( Vector a, Vector b )\n {\n x = b.times(a.x);\n y = b.times(a.y);\n z = b.times(a.z);\n }", "public interface VectorOperations extends MatrixOperations\n{\n /**\n * \n * Multiplies the vectors in a specific way, not sure of the term\n * \n * @param a\n * @param b\n * @return\n */\n public static Vector tensorProduct( final Vector a , final Vector b)\n {\n return a.tensorProduct(b);\n }\n \n /**\n * \n * Makes the tensor product of this and a\n * \n * @param a\n * @return\n */\n public Vector tensorProduct( final Vector a);\n \n /**\n * \n * Pretty much like List.sublist\n * \n * @param indexFrom\n * @param indexTo\n * @return\n */\n public Vector get( final int indexFrom, final int indexTo );\n \n /**\n * \n * @return size of the vector\n */\n public int size();\n}", "public double [][] reduceVectors(RealMatrix inputMatrix) {\n double [][] d1 = inputMatrix.getData();\n double [][] outputArray = new double [d1.length][4];\n for (int i = 0; i < outputArray.length; i++) {\n for (int j = 0; j < outputArray[0].length; j++) {\n outputArray[i][j] = d1[i][j];\n }\n }\n return outputArray;\n }", "public Matrix multiplyOtherMatrixToFront(Matrix other) {\n Matrix output = Matrix(rows, other.columns);\n for (int a = 0; a < rows; a++)\n {\n for (int b = 0; b < other.columns; b++)\n {\n for (int k = 0; k < columns; k++)\n {\n output[a][b] = output[a][b] + output[a][k] * other.output[k][b];\n }\n }\n }\n return output;\n }", "@Override\n\tpublic IVector nVectorProduct(IVector vector) throws OperationNotSupportedException{\n\t\tif(this.getDimension() != 3){\n\t\t\tthrow new OperationNotSupportedException();\n\t\t}\n\t\tdouble[] dims = new double[3];\n\t\t\n\t\tdims[0] = this.get(1)*vector.get(2) - vector.get(1)*this.get(2);\n\t\tdims[1] = (-1)*this.get(0)*vector.get(2)+vector.get(0)*this.get(2);\n\t\tdims[2] = this.get(0)*vector.get(1)-vector.get(0)*this.get(1);\n\t\t\n\t\tIVector newVector = new Vector(dims);\n\t\t\n\t\treturn newVector;\n\t\t\n\t\t\n\t}", "@Override\n public DoubleVector multiply(DoubleVector s) {\n DoubleVector smallestVector = s.getLength() < getLength() ? s : this;\n DoubleVector vec = new SparseDoubleVector(s.getDimension(),\n smallestVector.getLength());\n DoubleVector largerVector = smallestVector == this ? s : this;\n Iterator<DoubleVectorElement> it = smallestVector.iterateNonZero();\n while (it.hasNext()) {\n DoubleVectorElement next = it.next();\n double otherValue = largerVector.get(next.getIndex());\n vec.set(next.getIndex(), next.getValue() * otherValue);\n }\n\n return vec;\n }", "public double[] mult(double[] vector) {\n\t\tif(this.cols != vector.length) return null;\n\t\tdouble[] result = new double[this.rows];\n\t\tfor(int i=0; i<this.rows; i++) {\n\t\t\tfor(int j=0; j<this.cols; j++) {\n\t\t\t\tresult[i] += data[i][j] * vector[j];\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}", "Matrix sub(double w){\n Matrix matrix_to_return = new Matrix(this.rows, this.cols);\n for(int i=0; i<this.rows * this.cols; i++){\n matrix_to_return.data[i] = this.data[i] - w;\n }\n return matrix_to_return;\n }", "private static Matrix makeXMat(int nDataPoints, int nTerms, Vector xV){\n Matrix matrix = new Matrix(nDataPoints, nTerms);\n for (int row = 1; row <= nDataPoints; row++){\n matrix.putValue(row,1, new BigDecimal(1.0));\n for (int col = 2; col <= nTerms; col++)\n matrix.putValue(row , col, \n matrix.getValue(row, col - 1).multiply(\n xV.getValue(row)));\n }\n return matrix;\n }", "public Matrix inverse() throws JPARSECException {\n return solve(identity(m,m));\n }", "private IMatrix cofactor() {\n\t\tint n = this.getColsCount();\n\t\tIMatrix algCompl = newInstance(n, n);\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tfor (int j = 0; j < n; j++) {\n\t\t\t\tdouble value = Math.pow(-1, i + j);\n\t\t\t\tIMatrix sub = this.subMatrix(i, j, true);\n\t\t\t\tDouble det = sub.determinant();\n\t\t\t\tvalue *= det;\n\t\t\t\talgCompl.set(i, j, value);\n\t\t\t}\n\t\t}\n\t\treturn algCompl;\n\t}", "protected Matrix4 computeTransform() {\n return super.computeTransform();\n }", "public Matrix multiply(BigInteger c, BigInteger modulo) {\n Stream<BigInteger[]> stream = Arrays.stream(inner);\n if (concurrent) {\n stream = stream.parallel();\n }\n\n BigInteger[][] res = stream.map(r -> rowMultiplyConstant(r, c, modulo)).toArray(BigInteger[][]::new);\n\n return new Matrix(res);\n }", "@Nonnull\n @ReturnsMutableCopy\n public Matrix solve (@Nonnull final Matrix aMatrix)\n {\n if (aMatrix.getRowDimension () != m_nRows)\n throw new IllegalArgumentException (\"Matrix row dimensions must agree.\");\n if (!isNonsingular ())\n throw new IllegalStateException (\"Matrix is singular.\");\n\n // Copy right hand side with pivoting\n final int nCols = aMatrix.getColumnDimension ();\n final Matrix aNewMatrix = aMatrix.getMatrix (m_aPivot, 0, nCols - 1);\n final double [] [] aNewArray = aNewMatrix.internalGetArray ();\n\n // Solve L*Y = B(piv,:)\n for (int k = 0; k < m_nCols; k++)\n {\n final double [] aNewk = aNewArray[k];\n for (int i = k + 1; i < m_nCols; i++)\n {\n final double [] aLUi = m_aLU[i];\n final double [] aNewi = aNewArray[i];\n for (int j = 0; j < nCols; j++)\n aNewi[j] -= aNewk[j] * aLUi[k];\n }\n }\n // Solve U*X = Y;\n for (int k = m_nCols - 1; k >= 0; k--)\n {\n final double [] aLUk = m_aLU[k];\n final double [] aNewk = aNewArray[k];\n for (int j = 0; j < nCols; j++)\n aNewk[j] /= aLUk[k];\n for (int i = 0; i < k; i++)\n {\n final double [] aLUi = m_aLU[i];\n final double [] aNewi = aNewArray[i];\n for (int j = 0; j < nCols; j++)\n aNewi[j] -= aNewk[j] * aLUi[k];\n }\n }\n return aNewMatrix;\n }", "public Matrix getSubMatrix(int i, int j, int k, int l){\r\n \tif(i>k)throw new IllegalArgumentException(\"row indices inverted\");\r\n \tif(j>l)throw new IllegalArgumentException(\"column indices inverted\");\r\n \tint n=k-i+1, m=l-j+1;\r\n \tMatrix subMatrix = new Matrix(n, m);\r\n \tdouble[][] sarray = subMatrix.getArrayReference();\r\n \tfor(int p=0; p<n; p++){\r\n \t\tfor(int q=0; q<m; q++){\r\n \t\tsarray[p][q]= this.matrix[i+p][j+q];\r\n \t\t}\r\n \t}\r\n \treturn subMatrix;\r\n \t}", "VectorType11 getVector();", "public Matrix getD() {\n Matrix x = new DenseMatrix(n, n);\n x.assign(0);\n x.viewDiagonal().assign(d);\n for (int i = 0; i < n; i++) {\n double v = e.getQuick(i);\n if (v > 0) {\n x.setQuick(i, i + 1, v);\n } else if (v < 0) {\n x.setQuick(i, i - 1, v);\n }\n }\n return x;\n }", "public Matrix mult (Matrix otherMatrix) {\n Matrix resultMatrix = new Matrix(nRows, otherMatrix.nColumns);\n\n ExecutorService executor = Executors.newFixedThreadPool(16);\n\n IntStream.range(0, nRows).forEach(rowIndex -> {\n executor.execute(() -> {\n IntStream.range(0, otherMatrix.nColumns).forEach(otherMatrixColIndex -> {\n double sum = IntStream.range(0, this.nColumns)\n .mapToDouble(colIndex -> this.data[rowIndex][colIndex] * otherMatrix.data[colIndex][otherMatrixColIndex])\n .sum();\n\n resultMatrix.setValue(rowIndex, otherMatrixColIndex, sum);\n });\n });\n });\n\n executor.shutdown();\n\n try {\n if (executor.awaitTermination(60, TimeUnit.MINUTES)){\n return resultMatrix;\n } else {\n System.out.println(\"Could not finish matrix multiplication\");\n }\n } catch (InterruptedException e) {\n System.out.println(\"Could not finish matrix multiplication, thread interrupted.\");\n }\n\n return null;\n }", "public void rightMultiply(Matrix other){\n \tdouble[][] temp = new double[4][4];\n\n //record copy of this matrix \n\tfor (int i = 0; i < 4; i++) {\n\t for (int j = 0; j < 4; j++) {\n\t\ttemp[i][j] = array[i][j];\n\t }\n\t}\n\t//user copy of matrix to left multiply while writing dot products into matrix values\n\tfor (int i = 0; i < 4; i++) {\n\t for (int j = 0; j < 4; j++) {\n\t\tarray[i][j] = 0;\n\t\tfor (int k = 0 ; k < 4 ; k++) {\n \t\t array[i][j] += other.array[i][k] * temp[k][j];\n\t\t}\n\t }\n\t}\n }", "public static double[] sequentialMultiplyMatrixVector(double[][] m, double[] v) {\n double[] result = new double[v.length];\n for(int rowM = 0; rowM < v.length; rowM++) {\n double c = 0.0;\n for (int columnM = 0; columnM < v.length; columnM++)\n c+= m[rowM][columnM] * v[columnM]; /* columnA = rowB */\n result[rowM] = c;\n }\n return result;\n }", "public PMVMatrix(boolean useBackingArray) {\n projectFloat = new ProjectFloat();\n \n // I Identity\n // T Texture\n // P Projection\n // Mv ModelView\n // Mvi Modelview-Inverse\n // Mvit Modelview-Inverse-Transpose\n if(useBackingArray) {\n matrixBufferArray = new float[6*16];\n matrixBuffer = null;\n // matrixBuffer = FloatBuffer.wrap(new float[12*16]);\n } else {\n matrixBufferArray = null;\n matrixBuffer = Buffers.newDirectByteBuffer(6*16 * Buffers.SIZEOF_FLOAT);\n matrixBuffer.mark();\n }\n \n matrixIdent = slice2Float(matrixBuffer, matrixBufferArray, 0*16, 1*16); // I\n matrixTex = slice2Float(matrixBuffer, matrixBufferArray, 1*16, 1*16); // T\n matrixPMvMvit = slice2Float(matrixBuffer, matrixBufferArray, 2*16, 4*16); // P + Mv + Mvi + Mvit \n matrixPMvMvi = slice2Float(matrixBuffer, matrixBufferArray, 2*16, 3*16); // P + Mv + Mvi\n matrixPMv = slice2Float(matrixBuffer, matrixBufferArray, 2*16, 2*16); // P + Mv\n matrixP = slice2Float(matrixBuffer, matrixBufferArray, 2*16, 1*16); // P\n matrixMv = slice2Float(matrixBuffer, matrixBufferArray, 3*16, 1*16); // Mv\n matrixMvi = slice2Float(matrixBuffer, matrixBufferArray, 4*16, 1*16); // Mvi\n matrixMvit = slice2Float(matrixBuffer, matrixBufferArray, 5*16, 1*16); // Mvit\n \n if(null != matrixBuffer) {\n matrixBuffer.reset();\n } \n ProjectFloat.gluMakeIdentityf(matrixIdent);\n \n vec3f = new float[3];\n matrixMult = new float[16];\n matrixTrans = new float[16];\n matrixRot = new float[16];\n matrixScale = new float[16];\n matrixOrtho = new float[16];\n matrixFrustum = new float[16];\n ProjectFloat.gluMakeIdentityf(matrixTrans, 0);\n ProjectFloat.gluMakeIdentityf(matrixRot, 0);\n ProjectFloat.gluMakeIdentityf(matrixScale, 0);\n ProjectFloat.gluMakeIdentityf(matrixOrtho, 0);\n ProjectFloat.gluMakeZero(matrixFrustum, 0);\n \n matrixPStack = new ArrayList<float[]>();\n matrixMvStack= new ArrayList<float[]>();\n \n // default values and mode\n glMatrixMode(GL_PROJECTION);\n glLoadIdentity();\n glMatrixMode(GL_MODELVIEW);\n glLoadIdentity();\n glMatrixMode(GL.GL_TEXTURE);\n glLoadIdentity();\n setDirty();\n update();\n }", "Matrix timesT( Matrix b )\n {\n return new Matrix( b.timesV(x), b.timesV(y), b.timesV(z) );\n }", "protected void compute_mvpMatrix(float[] VPMatrix) {\n Matrix.multiplyMM(tempMatrix, 0, modelMatrix, 0, accumulatedRotation, 0);\n\n // ... e applica la matrice che contiene il risultato della matrice view e di proiezione\n Matrix.multiplyMM(mvpMatrix, 0, VPMatrix, 0, tempMatrix, 0);\n }", "public VectorN getV()\n\t{\n\t\tVectorN out = new VectorN(3);\n\t\tout.x[0] = this.rv.x[3];\n\t\tout.x[1] = this.rv.x[4];\n\t\tout.x[2] = this.rv.x[5];\n\t\treturn out;\n\t}", "public Matrix multiply(Matrix other) {\n if (this.cols != other.rows)\n throw new RuntimeException(\"Illegal matrix dimensions\");\n\n Matrix result = new Matrix(this.rows, other.cols); //Matrix full of zeros\n for (int i = 0; i < this.rows; i++) {\n for (int j = 0; j < other.cols; j++) {\n for (int k = 0; k < this.cols; k++) {\n result.data[i][j] += (this.data[i][k] * other.data[k][j]);\n }\n }\n }\n\n return result;\n }", "Matrix<T> getTransposed();", "public Transform compose(Transform other){\n float[][] ans = new float[4][4];\n for(int row = 0; row < 4; row++){\n for(int col = 0; col < 4; col++){\n for(int i = 0; i < 3; i++){\n ans[row][col] += this.values[row][i] * other.values[i][col];\n }\n }\n ans[row][3] += this.values[row][3];\n }\n return new Transform(ans);\n }", "public int[][] getMat() {\n // Note: java has no return read-only so we won't return matrix;\n // b\\c that would expose internal representation. Instead we will\n // copy each row into a new matrix, and return that.\n return Helper.cloneMatrix(matrix);\n }", "public Matrix extract(){\r\n\t\t\r\n\t\tDouble[][] newVal = new Double[col][row - 1];\r\n\t\t\r\n\t\tfor(Double[] row: AllVal){\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}", "Matrix add(Matrix m){\n if(m.cols != this.cols || m.rows != this.rows) throw new RuntimeException(String.format(\"Wrong dimensions\"));\n Matrix matrix_to_return = new Matrix(m.rows, m.cols);\n for(int i=0; i<m.rows * m.cols; i++){\n matrix_to_return.data[i] = this.data[i] + m.data[i];\n }\n return matrix_to_return;\n }", "public Matrix inverse() {\n int n = L.getNrows();\n Matrix inv = Matrix.identity(n);\n solve(inv);\n return inv;\n }", "public Vector crossProduct(Vector t){\n Vector v=new Vector(head.y.get()*t.head.getZ().get()-\n t.head.getY().get()*head.z.get(),head.z.get()*t.head.getX().get()-\n t.head.getZ().get()*head.x.get(),head.x.get()*t.head.getY().get()-\n t.head.getX().get()*head.y.get());\n return v;\n }", "Matrix add(double w){\n Matrix matrix_to_return = new Matrix(this.rows, this.cols);\n for(int i=0; i<this.rows * this.cols; i++){\n matrix_to_return.data[i] = w + this.data[i];\n }\n return matrix_to_return;\n }", "public IDoubleArray getSolutionVector();", "Matrix InverseT()\n {\n Matrix ad = new Matrix( y.cross(z), z.cross(x), x.cross(y) );\n float inv_det = 1.0f / ( x.dot( ad.x ) );\n ad.timesEqual( inv_det );\n return ad;\n }", "@Override\n\tpublic IMatrix nMultiply(IMatrix other) {\n\n\t\tif (this.getColsCount() != other.getRowsCount()) {\n\t\t\tthrow new IncompatibleOperandException(\n\t\t\t\t\t\"For matrix multiplication first matrix must have same number of columns as number of rows of the other matrix!\");\n\t\t}\n\t\tint m = this.getRowsCount();\n\t\tint n = other.getColsCount();\n\t\tint innerDimension = this.getColsCount();\n\t\tdouble[][] p = new double[m][n];\n\n\t\tfor (int i = 0; i < m; i++) {\n\t\t\tfor (int j = 0; j < n; j++) {\n\t\t\t\tdouble sum = 0;\n\t\t\t\tfor (int k = 0; k < innerDimension; k++) {\n\t\t\t\t\tsum += this.get(i, k) * other.get(k, j);\n\t\t\t\t}\n\t\t\t\tp[i][j] = sum;\n\t\t\t}\n\t\t}\n\t\treturn new Matrix(m, n, p, true);\n\t}", "public ArrayList<ArrayList<T>> getMatrix() {\n\t\treturn matrix;\n\t}", "public T dotProduct(Vector<T> aVector) throws VectorSizeException;", "public Matrix getValue();", "public Matrix inverseMatrix(Matrix L, Matrix U, Matrix P, int n)\n {\n\tMatrix Uinv = new Matrix(n,n);\n\tMatrix Linv = new Matrix(n,n);\n\tfor (int k = 0; k < n; k++)\n\t{\n\t\tVector temp = new Vector(n);\n\t\tfor (int i = 0; i < n; i++)\n\t\t{\n\t\t\tif (i == k)\n\t\t\t\ttemp.vector[i] = 1;\n\t\t\telse\n\t\t\t\ttemp.vector[i] = 0;\n\t\t}\n\t\t// forward substitution for L y = b.\n\t\tfor (int i = 1; i < n; i++)\n\t\t\tfor (int j = 0; j < i; j++)\n\t\t\t\ttemp.vector[i] -= L.matrix[i][j] * temp.vector[j];\n\n\t\tfor (int i = 0; i < n; i++)\n\t\t{\n\t\t\tLinv.matrix[i][k] = temp.vector[i];\n\t\t}\n\n\t}\n\n\tfor (int k = 0; k < n; k++)\n\t{\n\t\tVector temp = new Vector(n);\n\t\tfor (int i = 0; i < n; i++)\n\t\t{\n\t\t\tif (i == k)\n\t\t\t\ttemp.vector[i] = 1;\n\t\t\telse\n\t\t\t\ttemp.vector[i] = 0;\n\t\t}\n\t\t// back substitution for U x = y. \n\t\tfor (int i = n - 1; i >= 0; i--) {\n\t\t\tfor (int j = i + 1; j < n; j++) \n temp.vector[i] -= U.matrix[i][j] * temp.vector[j];\n\t\t\ttemp.vector[i] /= U.matrix[i][i];\n\t\t}\n\n\t\tfor (int i = 0; i < n; i++)\n\t\t{\n\t\t\tUinv.matrix[i][k] = temp.vector[i];\n\t\t}\n\n\t}\n Matrix LinP = new Matrix();\n\tLinP = LinP.multiplication(Linv, P);\n Matrix results = new Matrix();\n results = results.multiplication(Uinv, LinP);\n\treturn results;\n\n }", "private static SbVec4f\nmultVecMatrix4(final SbMatrix m, final SbVec4f v)\n//\n////////////////////////////////////////////////////////////////////////\n{\n int i;\n final SbVec4f v2 = new SbVec4f();\n\n for (i = 0; i < 4; i++)\n v2.getValueRead()[i] = (v.getValueRead()[0] * m.getValue()[0][i] +\n v.getValueRead()[1] * m.getValue()[1][i] +\n v.getValueRead()[2] * m.getValue()[2][i] +\n v.getValueRead()[3] * m.getValue()[3][i]);\n\n return v2;\n}", "public E[][] getMatrix() {\r\n\t\t@SuppressWarnings(\"unchecked\")\r\n\t\tE[][] matrix = (E[][]) new Object[mColumnCount][mRowCount];\r\n\t\tfor(int i=0; i<mColumnCount; i++)\r\n\t\t\tfor(int j=0; j<mRowCount; j++)\r\n\t\t\t\tmatrix[i][j] = getFromArray(i, j);\r\n\t\treturn matrix;\r\n\t}", "public T transpose() {\n T ret = createMatrix(mat.getNumCols(), mat.getNumRows(), mat.getType());\n\n ops.transpose(mat, ret.mat);\n\n return ret;\n }", "Matrix add(Matrix M) {\n if(getSize() != M.getSize()) {\n throw new RuntimeException(\"Matrix Error: Matrices not same size\");\n }\n if (M.equals(this)) return M.scalarMult(2);\n int c = 0, e2 = 0;\n double v1 = 0, v2 = 0;\n List temp1, temp2;\n Matrix addM = new Matrix(getSize());\n for(int i = 1; i <= rows.length; i++) {\n temp1 = M.rows[i-1];\n temp2 = this.rows[i-1];\n if(temp1.isEmpty() && !temp2.isEmpty()) {\n temp2.moveFront();\n while(temp2.index() != -1) {\n addM.changeEntry(i, ((Entry)temp2.get()).column, ((Entry)temp2.get()).value);\n temp2.moveNext();\n }\n }else if(!temp1.isEmpty() && temp2.isEmpty()) {\n temp1.moveFront();\n while(temp1.index() != -1) {\n addM.changeEntry(i, ((Entry)temp1.get()).column, ((Entry)temp1.get()).value);\n temp1.moveNext();\n }\n }else if(!temp1.isEmpty() && !temp2.isEmpty()) {\n temp2.moveFront();\n temp1.moveFront();\n while(temp1.index() != -1 && temp2.index() != -1) {\n if(((Entry)temp1.get()).column == ((Entry)temp2.get()).column) {\n v1 = ((Entry)temp1.get()).value;\n v2 = ((Entry)temp2.get()).value;\n c = ((Entry)temp2.get()).column;\n addM.changeEntry(i, c, (v1+v2));\n temp1.moveNext();\n if(!this.equals(M))\n temp2.moveNext();\n ///if temp1 < temp2\n //this < M\n }else if(((Entry)temp1.get()).column < ((Entry)temp2.get()).column) {\n v1 = ((Entry)temp1.get()).value;\n c = ((Entry)temp1.get()).column;\n addM.changeEntry(i, c, v1);\n temp1.moveNext();\n //if temp1>temp2\n }else if(((Entry)temp1.get()).column > ((Entry)temp2.get()).column) {\n v2 = ((Entry)temp2.get()).value;\n c = ((Entry)temp2.get()).column;\n addM.changeEntry(i, c, v2);\n temp2.moveNext();\n }\n }\n while(temp1.index() != -1) {\n addM.changeEntry( i, ((Entry)temp1.get()).column, ((Entry)temp1.get()).value);\n temp1.moveNext();\n }\n while(temp2.index() != -1) {\n addM.changeEntry(i, ((Entry)temp2.get()).column, ((Entry)temp2.get()).value);\n temp2.moveNext();\n }\n }\n }\n return addM;\n }" ]
[ "0.6497121", "0.6180669", "0.61370146", "0.6006709", "0.59740376", "0.59494334", "0.59330106", "0.58929306", "0.5860322", "0.58512795", "0.58130145", "0.5789216", "0.57726187", "0.57617015", "0.57597893", "0.5733124", "0.5698257", "0.5658153", "0.56579477", "0.56456727", "0.5640636", "0.5609084", "0.5599855", "0.5585163", "0.55802083", "0.55438966", "0.5537078", "0.5526395", "0.55153614", "0.54734766", "0.54723495", "0.54511654", "0.5412361", "0.537826", "0.5371326", "0.5371246", "0.5364298", "0.5357794", "0.53494173", "0.5337129", "0.53342223", "0.5331431", "0.5298936", "0.5298193", "0.52977", "0.5297362", "0.5295563", "0.5288776", "0.52614045", "0.5258634", "0.52571654", "0.52555776", "0.5252183", "0.5251184", "0.5246321", "0.5245311", "0.5236087", "0.5229442", "0.5229029", "0.5217371", "0.5213079", "0.52020955", "0.5190919", "0.5181908", "0.51785386", "0.51570916", "0.5156173", "0.5152554", "0.5128345", "0.511403", "0.5113085", "0.51016754", "0.50938183", "0.50936407", "0.5073394", "0.5065032", "0.5062146", "0.5060809", "0.50603926", "0.50559866", "0.5055037", "0.5052289", "0.50494236", "0.50421506", "0.50375146", "0.5032673", "0.5030551", "0.5029044", "0.50259167", "0.5022901", "0.5018948", "0.50147074", "0.50111854", "0.5008604", "0.50070024", "0.50036705", "0.50020826", "0.499985", "0.49989364", "0.49986055", "0.49919298" ]
0.0
-1
This method was generated by MyBatis Generator. This method returns the value of the database column user_praise_icon.state_praise
public Integer getStatePraise() { return statePraise; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Integer getStateIcon() {\n return stateIcon;\n }", "java.lang.String getSqlState();", "public void setStatePraise(Integer statePraise) {\n this.statePraise = statePraise;\n }", "public Integer getState() {\r\n return state;\r\n }", "public Integer getState() {\r\n return state;\r\n }", "public Integer getState() {\n return state;\n }", "public Integer getState() {\n return state;\n }", "public Integer getState() {\n return state;\n }", "public Integer getState() {\n return state;\n }", "public Integer getState() {\n return state;\n }", "public Integer getState() {\n return state;\n }", "public Integer getPhysicalstate() {\r\n return physicalstate;\r\n }", "public Image getState () {\n\t\treturn images[state];\n\t}", "public String getSelectedState()\n {\n return rentalModel.getSelectedRental().getStateName();\n }", "public State getCircleState()\n {\n return iconPartStates[3];\n }", "public int getState() {return state;}", "public int getState() {return state;}", "public int getState(){\n return state;\n }", "public String getStateCode() {\n return (String)getAttributeInternal(STATECODE);\n }", "public String getState() { return state; }", "public String getState(){\n return state;\n }", "public String state() {\n return this.state;\n }", "public String state() {\n return this.state;\n }", "PowerState getState();", "public Integer getRptstate() {\n return rptstate;\n }", "public int getState(){\n\t\treturn state;\n\t}", "String state() throws RemoteException;", "public String getState() {\n return this.state;\n }", "public String getState() {\n return this.state;\n }", "public int getState() {\n return state;\n }", "public int getSmileyStatus() {\n return smileyStatus;\n }", "public Integer getaState() {\n return aState;\n }", "public static ImageIcon importState() {\n if(isImChose) {\n if(isImPress)\n return imPre;\n if(isImHover)\n return imChoHov;\n return imCho;\n }\n if(isImPress)\n return imPre;\n if(isImHover)\n return imHov;\n return imDef; \n }", "public String getState() {\n\t\treturn this.state_rep;\n\t}", "public String getState() {\n return this.state;\n }", "public String getState() {\n return this.state;\n }", "public String getState() {\n return this.state;\n }", "public String getState() {\n return this.state;\n }", "public String getState() {\n return state;\n }", "public String getState()\n {\n \treturn state;\n }", "public Long getState() {\n return state;\n }", "public int getState() {\n \t\treturn state;\n \t}", "public String getState()\r\n\t{\r\n\t\treturn state;\r\n\t}", "public String getState()\r\n\t{\r\n\t\treturn state;\r\n\t}", "@java.lang.Override\n public int getStateValue() {\n return state_;\n }", "@java.lang.Override\n public int getStateValue() {\n return state_;\n }", "@java.lang.Override\n public int getStateValue() {\n return state_;\n }", "public IdeState getIdeState()\r\n\t{\r\n\t\treturn ideState;\r\n\t}", "@java.lang.Override\n public com.google.cloud.datafusion.v1beta1.Instance.State getState() {\n com.google.cloud.datafusion.v1beta1.Instance.State result =\n com.google.cloud.datafusion.v1beta1.Instance.State.forNumber(state_);\n return result == null\n ? com.google.cloud.datafusion.v1beta1.Instance.State.UNRECOGNIZED\n : result;\n }", "@java.lang.Override\n public int getStateValue() {\n return state_;\n }", "@java.lang.Override\n public int getStateValue() {\n return state_;\n }", "@java.lang.Override\n public int getStateValue() {\n return state_;\n }", "@objid (\"331f64c4-884c-4de9-a104-ba68088d9e2b\")\n BpmnDataState getDataState();", "public java.lang.String getSqlState() {\n java.lang.Object ref = sqlState_;\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 sqlState_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "int getStateValue();", "int getStateValue();", "int getStateValue();", "public java.lang.String getStateCode() {\n\t\treturn _tempNoTiceShipMessage.getStateCode();\n\t}", "@java.lang.Override public int getStateValue() {\n return state_;\n }", "public int getState() {\n return state;\n }", "public int getState() {\n return state;\n }", "@Override\n\tpublic String State() throws RemoteException {\n\t\tSystem.out.println(\"Trying to get State\");\n\t\treturn null;\n\t}", "public String getState() {\n return this.State;\n }", "public String get_state() throws Exception {\n\t\treturn this.state;\n\t}", "public String get_state() throws Exception {\n\t\treturn this.state;\n\t}", "public String getStateReasonCode() {\n return this.stateReasonCode;\n }", "public String getState() \n\t{\n\t\treturn state;\n\t}", "public ImageStateType getImageState()\n throws IOException, EndOfStreamException\n {\n return ImageStateType.fromInt(getMagicValue());\n }", "public void setStateIcon(Integer stateIcon) {\n this.stateIcon = stateIcon;\n }", "@java.lang.Override\n public com.google.cloud.datafusion.v1beta1.Instance.State getState() {\n com.google.cloud.datafusion.v1beta1.Instance.State result =\n com.google.cloud.datafusion.v1beta1.Instance.State.forNumber(state_);\n return result == null\n ? com.google.cloud.datafusion.v1beta1.Instance.State.UNRECOGNIZED\n : result;\n }", "public String getState() {\r\n\t\treturn state;\t\t\r\n\t}", "public int getState() {\n return state.getValue();\n }", "public String getState() {\n return state;\n }", "public String getState() {\n return state;\n }", "public String getState() {\n return state;\n }", "public String getState() {\n return state;\n }", "public String getState() {\n return state;\n }", "public String getState() {\n return state;\n }", "public String getState() {\n return state;\n }", "public String getState() {\n return state;\n }", "public String getState() {\n return state;\n }", "public String getState() {\n return state;\n }", "public String getState() {\n return state;\n }", "public String getState() {\n return state;\n }", "public String getState() {\n return state;\n }", "@java.lang.Override public int getStateValue() {\n return state_;\n }", "public java.lang.String getSqlState() {\n java.lang.Object ref = sqlState_;\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 sqlState_ = s;\n return s;\n }\n }", "public String getState() {\r\n\t\treturn state;\r\n\t}", "public String getState() {\r\n\t\treturn state;\r\n\t}", "public String getState() {\r\n\t\treturn state;\r\n\t}", "public String getSiretState() {\r\n\t\treturn siretState;\r\n\t}", "com.google.protobuf.ByteString\n getSqlStateBytes();", "public int getState() {\n return _state;\n }", "public String getState()\n\t{\n\t\treturn state;\n\t}", "public int getState();", "public int getState();", "public int getState();", "public int getState();", "public String getState() {\n\t\treturn state.toString();\n\t}", "java.lang.String getStateReason();" ]
[ "0.6111511", "0.55202895", "0.54424787", "0.53497726", "0.53497726", "0.530306", "0.530306", "0.530306", "0.530306", "0.530306", "0.530306", "0.5261663", "0.52133965", "0.5206568", "0.51833844", "0.51760197", "0.51760197", "0.5160879", "0.5133494", "0.5129769", "0.5129535", "0.51290196", "0.51290196", "0.512326", "0.5117777", "0.5113784", "0.5095488", "0.50925785", "0.50925785", "0.5080905", "0.50738436", "0.5066269", "0.5057519", "0.505182", "0.5046185", "0.5046185", "0.5046185", "0.5046185", "0.50444525", "0.5044351", "0.5040932", "0.5029262", "0.50230867", "0.50230867", "0.50139683", "0.50139683", "0.50139683", "0.5013819", "0.50126225", "0.5010746", "0.5010746", "0.5010746", "0.5010171", "0.50077313", "0.5004147", "0.5004147", "0.5004147", "0.50037473", "0.5001706", "0.50013024", "0.50013024", "0.5001141", "0.49927017", "0.49919608", "0.49919608", "0.49913403", "0.49908325", "0.49892202", "0.49879307", "0.4987105", "0.49861336", "0.4984395", "0.4984045", "0.4984045", "0.4984045", "0.4984045", "0.4984045", "0.4984045", "0.4984045", "0.4984045", "0.4984045", "0.4984045", "0.4984045", "0.4984045", "0.4984045", "0.4982001", "0.49798337", "0.49732924", "0.49732924", "0.49732924", "0.49691087", "0.49683356", "0.49614537", "0.49549803", "0.4940051", "0.4940051", "0.4940051", "0.4940051", "0.49389338", "0.4938827" ]
0.6319123
0
This method was generated by MyBatis Generator. This method sets the value of the database column user_praise_icon.state_praise
public void setStatePraise(Integer statePraise) { this.statePraise = statePraise; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setStateIcon(Integer stateIcon) {\n this.stateIcon = stateIcon;\n }", "private void setState(int ICONIFIED) {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "public Integer getStatePraise() {\n return statePraise;\n }", "protected void setIcon(UiAction uiAction, ResultSet rs, int rowNumber) throws SQLException{\n\t\t\n\t\tString icon = rs.getString(UiActionTable.COLUMN_ICON);\n\t\t\n\t\tif(icon == null){\n\t\t\t//do nothing when nothing found in database\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tuiAction.setIcon(icon);\n\t}", "public void setState(org.landxml.schema.landXML11.StateType.Enum state)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(STATE$14);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(STATE$14);\r\n }\r\n target.setEnumValue(state);\r\n }\r\n }", "public void setUserState(Byte userState) {\r\n this.userState = userState;\r\n }", "public void setPowerState(Map<String,PowerState> devicesPowerState) throws NotExistingEntityException, FailedOperationException, MethodNotImplementedException;", "public void setState(Integer state) {\r\n this.state = state;\r\n }", "public void setState(Integer state) {\r\n this.state = state;\r\n }", "public void setRptstate(Integer rptstate) {\n this.rptstate = rptstate;\n }", "public void setState(Integer state) {\n this.state = state;\n }", "public void setState(Integer state) {\n this.state = state;\n }", "public void setState(Integer state) {\n this.state = state;\n }", "public void setState(Integer state) {\n this.state = state;\n }", "public void setState(Integer state) {\n this.state = state;\n }", "public void setState(Integer state) {\n this.state = state;\n }", "public void setState(Integer state) {\n\t\tthis.state = state;\n\t}", "public void changePowerUp(boolean powerUpQuestion)\n {\n this.currentState = ClientStateName.POWERUP;\n setChanged();\n notifyObservers(currentState);\n }", "public void setPenState(boolean state) {\r\n\t\tthis.penState=state;\r\n\t}", "public void setPhysicalstate(Integer physicalstate) {\r\n this.physicalstate = physicalstate;\r\n }", "@Override\n public void setIcon(boolean iconified) throws PropertyVetoException{\n if ((getParent() == null) && (desktopIcon.getParent() == null)){\n if (speciallyIconified == iconified)\n return;\n\n Boolean oldValue = speciallyIconified ? Boolean.TRUE : Boolean.FALSE; \n Boolean newValue = iconified ? Boolean.TRUE : Boolean.FALSE;\n fireVetoableChange(IS_ICON_PROPERTY, oldValue, newValue);\n\n speciallyIconified = iconified;\n }\n else\n super.setIcon(iconified);\n }", "public void xsetState(org.landxml.schema.landXML11.StateType state)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.landxml.schema.landXML11.StateType target = null;\r\n target = (org.landxml.schema.landXML11.StateType)get_store().find_attribute_user(STATE$14);\r\n if (target == null)\r\n {\r\n target = (org.landxml.schema.landXML11.StateType)get_store().add_attribute_user(STATE$14);\r\n }\r\n target.set(state);\r\n }\r\n }", "public void set_state(String state) throws Exception{\n\t\tthis.state = state;\n\t}", "public Integer getStateIcon() {\n return stateIcon;\n }", "void setState(org.landxml.schema.landXML11.StateType.Enum state);", "void xsetState(org.landxml.schema.landXML11.StateType state);", "private void showStateIcon(final ImageView imageView, TableRow row1, TableRow row2,\n StateListDrawable stateListDrawable, int state, String desc, Set<Drawable> stateIcons) {\n\n stateListDrawable.setState(new int[]{state});\n Drawable stateD = stateListDrawable.getCurrent();\n if (!stateIcons.contains(stateD)) {\n stateIcons.add(stateD);\n ImageButton stateImageView = new ImageButton(imageView.getContext());\n Drawable[] drawables = new Drawable[]{stateD, getResources().getDrawable(R.drawable.button_border_sel)};\n\n LayerDrawable layerDrawable = new LayerDrawable(drawables);\n stateImageView.setImageDrawable(layerDrawable);\n //\tstateImageView.setBackgroundResource(R.drawable.button_border_sel);\n stateImageView.setPadding(10, 10, 10, 10);\n stateImageView.setMinimumHeight(8);\n stateImageView.setMinimumWidth(8);\n stateImageView.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n imageView.setImageDrawable(((ImageView) v).getDrawable());\n }\n });\n\n TextView stateTextView = new TextView(imageView.getContext());\n stateTextView.setText(desc);\n stateTextView.setTextSize(12);\n stateTextView.setGravity(Gravity.CENTER);\n\n row1.addView(stateTextView);\n row2.addView(stateImageView);\n }\n }", "public void setCircleState(State state)\n {\n iconPartStates[3] = state;\n this.paintImmediately(this.getVisibleRect());\n }", "public void setPowerup(Powerup p)\n\t{\n\t\titsPowerup = p;\n\t}", "public void setState(int state);", "public void setState(int state);", "public void setaState(Integer aState) {\n this.aState = aState;\n }", "protected void setGripperState(int grip) {\r\n if(grip == KSGripperStates.GRIP_OPEN)\r\n gripperState = grip;\r\n else if(grip == KSGripperStates.GRIP_CLOSED)\r\n gripperState = grip;\r\n }", "public String setPowerState(String deviceId, PowerState powerState, SdnControllerConsumerInterface consumer) throws NotExistingEntityException, FailedOperationException, MethodNotImplementedException;", "public void setState(AeBpelState aState) throws AeBusinessProcessException;", "void setState(int state);", "public void setIsSuccessInSolving(Integer isSuccessInSolving)\n/* */ {\n/* 219 */ this.isSuccessInSolving = isSuccessInSolving;\n/* */ }", "protected void setPhysicalState(PhysicalState state) {\n\t\tthis.physicalState = state;\n\t}", "public void setState(String state) {\n // checkValidState(state);\n if ((!States.special.contains(this.state)\n || !this.inSpecialState)\n && this.state != state) {\n this.spriteNum = 0;\n this.curSpriteFrame = 0;\n this.state = state;\n }\n \n }", "public void setState(String state, String actor, String action)\r\n/* 30: */ {\r\n/* 31: 32 */ setActor(actor);\r\n/* 32: 33 */ setAction(action);\r\n/* 33: 34 */ if ((state != null) && (state.equals(\"want\"))) {\r\n/* 34: 35 */ setImage(new ImageIcon(PictureAnchor.class.getResource(\"thumbUp.jpg\")));\r\n/* 35: 37 */ } else if ((state != null) && (state.equals(\"notWant\"))) {\r\n/* 36: 38 */ setImage(new ImageIcon(PictureAnchor.class.getResource(\"thumbDown.jpg\")));\r\n/* 37: */ }\r\n/* 38: */ }", "public void setState( EAIMMCtxtIfc theCtxt, java.lang.String theState) throws EAIException;", "public void setItemState(boolean isOn){\n\t\tthis.isWarningOn=isOn;\n\t\tbtn.setEnabled(!isOn);\n\t\tbtn.setBackground(this.getBackground());\n\t\twnd.setState(isOn);\n\t\tif (isOn)\n\t\t\twnd.setLabel(WarningText);\n\t\telse \n\t\t\twnd.setLabel((VariantPointConstants.isvShowLowStock() && quantity <= LowStockThreshold) \n\t\t\t\t\t? LowStockText : NormalText);\n\t}", "public void setState(int state) {\n \t\tthis.state = state;\n \t}", "public void stateDetail(String state) throws StateNotFoundException, MySqlException {\n\t\t pers.stateDetail(state);\n\t}", "public void setState(String state){\n this.state = state;\n }", "public void setState(String state);", "public void setInternalArcState(State state)\n {\n iconPartStates[2] = state;\n this.paintImmediately(this.getVisibleRect());\n }", "public void setDefilade(int defiladeState);", "public void setIconLiftRes(int resId) {\n\t\tif (View.VISIBLE == icon_lift.getVisibility()) {\n\t\t\ticon_lift.setImageResource(resId);\n\t\t}\n\t}", "public void setCellState(int newState) {\n this.myState = newState;\n }", "public static void SetState (int state) {\n\t\t source = state;\n\t\t}", "public void setState(int state) {\n m_state = state;\n }", "public void setClosedIcon(String closedIcon)\n {\n this.closedIcon = closedIcon;\n }", "public void setSiretState(String siretState) {\r\n\t\tthis.siretState = siretState;\r\n\t}", "public void setState(boolean isOn, boolean isClicked) {\n\n // YOUR CODE HERE\n \n BufferedImage img0 = ImageIO.read(new File(\"./Icons/Light-0.png\"));\n icon0 = new ImageIcon(img0);\n \n \n \n\n BufferedImage img1 = ImageIO.read(new File(\"./Icons/Light-1.png\"));\n icon1=new ImageIcon(img1);\n \n \n \n\n BufferedImage img2 = ImageIO.read(new File(\"./Icons/Light-2.png\"));\n icon2=new ImageIcon(img2);\n \n \n\n BufferedImage img3 = ImageIO.read(new File(\"./Icons/Light-3.png\"));\n icon3=new ImageIcon(img3);\n \n \n \n\n\n if(isOn == true){\n lbl.setIcon(icon0);\n state = 1; \n }else{ \n lbl.setIcon(icon1);\n state = 0;\n }\n if(isClicked == true){\n //0 means light off\n //1 means light on\n //2 means light on for solution\n //3 means light on for optimal solution\n if(state == 0 ){\n lbl.setIcon(icon0);\n state = 1;\n }\n if(state == 1){\n lbl.setIcon(icon1);\n state = 0; \n }\n if(state == 2 ){\n lbl.setIcon(icon2);\n state = 1;\n }\n if(state == 3){\n lbl.setIcon(icon3);\n state = 1;\n }\n }\n\n }", "private void setDGState(int dgCode, boolean state){\r\n source.setDGState(dgCode, state);\r\n }", "public void updateCode(String uid) throws Exception {\n\t\tString sql = \"update user set state = ? , code = ? where uid = ?\";\r\n\t\tObject[] params = { Constant.USER_IS_ACTIVE,null,uid };\r\n\t\tdb.doPstm(sql, params);\r\n\t\tdb.closed();\r\n\t}", "void setInactive(boolean aInactive) {\n/* 4829 */ this.inactive = aInactive;\n/* */ }", "public void setState (int philosphoer, String state){\n currentState[philosphoer] = state;\n }", "public void setState(int state) {\n\t\t\tmState = state;\n\t\t}", "private void updateButtonStateEpson(boolean state) {\n }", "protected void setCode(UiAction uiAction, ResultSet rs, int rowNumber) throws SQLException{\n\t\t\n\t\tString code = rs.getString(UiActionTable.COLUMN_CODE);\n\t\t\n\t\tif(code == null){\n\t\t\t//do nothing when nothing found in database\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tuiAction.setCode(code);\n\t}", "protected void onChange_InfectionRisk() {\n onChange_InfectionRisk_xjal( InfectionRisk );\n }", "public void setState(Long state) {\n this.state = state;\n }", "public void setState(boolean isClosed) {\n\t\tthis.isClosed = isClosed;\n\t}", "public void setRibbonIcon(Icon ribbonIcon)\n\t{\n\t\tthis.ribbonIcon = ribbonIcon;\n\t}", "public void setElevatorState(int elevatorState) {\n this.elevatorState = elevatorState;\n }", "private void setState( int state )\n {\n m_state.setState( state );\n }", "public void changeImageMule(){\n\t\tsetIcon(imgm);\n\t}", "private void setMPState(String state) {\n this.mpState = state;\n }", "OnosYangOpType yangStatePacOpType();", "OnosYangOpType yangStatePacOpType();", "public void setMyState(MesiStates theMesiState)\n\t{\n\t\tmyMesiState = theMesiState;\n\t}", "public void setPasswordState(String passwordState) {\r\n\t\tthis.passwordState = passwordState;\r\n\t}", "public void changeInstanceState(boolean state) throws RemoteException;", "public void changeImage(){\n if(getImage()==storeItemImg) setImage(selected);\n else setImage(storeItemImg);\n }", "public void setState(org.apache.axis.types.UnsignedInt state) {\n this.state = state;\n }", "public void setState(String state)\r\n\t{\r\n\t\tthis.state=state;\r\n\t}", "public void setrowStatus(Integer value){\n\t}", "public void setIconState(int index) {\n\r\n switch (index) {\r\n case 0:\r\n im_service.setImageResource(R.drawable.shouye2);\r\n tv_service.setTextColor(getResources().getColor(R.color.green));\r\n break;\r\n case 1:\r\n im_chart.setImageResource(R.drawable.faxian2);\r\n tv_chart.setTextColor(getResources().getColor(R.color.green));\r\n break;\r\n\r\n case 2:\r\n im_share.setImageResource(R.drawable.fenxiang2);\r\n tv_share.setTextColor(getResources().getColor(R.color.green));\r\n break;\r\n case 3:\r\n im_me.setImageResource(R.drawable.wo2);\r\n tv_me.setTextColor(getResources().getColor(R.color.green));\r\n break;\r\n }\r\n }", "public void setRevealed(int revealed) { revealedShips = revealed;}", "public void setPowerState(boolean power) {\n\t\tSharedPreferences settings = parentContext.getSharedPreferences(PREFERENCE_FILE, 0);\n\t\tSharedPreferences.Editor editor = settings.edit();\n\t\teditor.putBoolean(TOGGLE_KEY, power);\n\t\teditor.commit();\n\t}", "public void SetState(int s) {\n this.state=LS[s];\n }", "@Override\n\tpublic void setMeetinExperienceFlagFromPH(int appointmentId, int meetingExpFromPH) {\n\t\ttry{\n\t\t\tjdbcTemplate.update(UPDATE_HASMEETINGEXPERIENCE_FROM_PH, (ps)->{\n\t\t\t\tps.setInt(1, meetingExpFromPH);\n\t\t\t\tps.setInt(2, appointmentId);\n\t\t\t});\n\t\t}catch(DataAccessException e){\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void setExternalArcState(State state)\n {\n iconPartStates[0] = state;\n this.paintImmediately(this.getVisibleRect());\n }", "public static void\nsetImageOverride(SoState state,\n boolean override)\n//\n////////////////////////////////////////////////////////////////////////\n{\n SoTextureOverrideElement elt;\n elt = (SoTextureOverrideElement )getElement(state, classStackIndexMap.get(SoTextureOverrideElement.class));\n if (override)\n elt.flags |= Flags.TEXTURE_IMAGE.getValue();\n else\n elt.flags &= ~Flags.TEXTURE_IMAGE.getValue();\n}", "public static ImageIcon importState() {\n if(isImChose) {\n if(isImPress)\n return imPre;\n if(isImHover)\n return imChoHov;\n return imCho;\n }\n if(isImPress)\n return imPre;\n if(isImHover)\n return imHov;\n return imDef; \n }", "public void changeState() {\r\n if(state == KioskState.CLOSED) {\r\n state = KioskState.OPEN;\r\n } else {\r\n state = KioskState.CLOSED;\r\n }\r\n }", "public void setFlag(Drawable flag){\n ImageView mFlagImageView = findViewById(R.id.guesshint_image_flag);\n mFlagImageView.setImageDrawable(flag);\n }", "void setState(boolean state);", "@Transactional(propagation = Propagation.REQUIRED)\n\tpublic void updateProviderFirmStatusOverride(Integer providerFirmId, String overrideComment, LookupSPNStatusOverrideReason reason, LookupSPNWorkflowState state, String modifiedBy, LookupSPNStatusActionMapper lookupSPNStatusActionMapper, List<Integer> spnIds, String validityDate) throws Exception {\n\t\tspnProviderFirmStateDao.updateProviderFirmStatusOverride(providerFirmId, overrideComment, reason, state, modifiedBy, lookupSPNStatusActionMapper, spnIds, validityDate);\n\t\tif (state != null && state.getId() != null) {\n\t\t\tif (WF_STATUS_PF_FIRM_OUT_OF_COMPLIANCE.equals((String) state.getId())) {\n\t\t\t\tInteger actionMapid = ActionMapperEnum.getActiomMapperEnum(MODIFIED_BY_USER, WF_STATUS_SP_SPN_OUT_OF_COMPLIANCE, ACTION_TYPE_PROVIDER_FIRM).getValue();\n\t\t\t\tLookupSPNStatusActionMapper spOCCActionMapper = new LookupSPNStatusActionMapper(actionMapid);\n\t\t\t\tLookupSPNWorkflowState spState = new LookupSPNWorkflowState();\n\t\t\t\tspState.setId(WF_STATUS_SP_SPN_OUT_OF_COMPLIANCE);\n\t\t\t\tspnServiceProviderStateDao.updateAllServiceProStatusOverrideForFirmOverride(providerFirmId, overrideComment, reason, spState, modifiedBy, spOCCActionMapper, null, spnIds);\n\t\t\t} else if (WF_STATUS_PF_SPN_REMOVED_FIRM.equals((String) state.getId())) {\n\t\t\t\tInteger actionMapid = ActionMapperEnum.getActiomMapperEnum(MODIFIED_BY_USER, WF_STATUS_SP_SPN_REMOVED, ACTION_TYPE_PROVIDER_FIRM).getValue();\n\t\t\t\tLookupSPNStatusActionMapper spOCCActionMapper = new LookupSPNStatusActionMapper(actionMapid);\n\t\t\t\tLookupSPNWorkflowState spState = new LookupSPNWorkflowState();\n\t\t\t\tspState.setId(WF_STATUS_SP_SPN_OUT_OF_COMPLIANCE);\n\t\t\t\tspnServiceProviderStateDao.updateAllServiceProStatusOverrideForFirmOverride(providerFirmId, overrideComment, reason, spState, modifiedBy, spOCCActionMapper, null, spnIds);\n\t\t\t}else if (WF_STATUS_PF_SPN_MEMBER.equals((String) state.getId())){\n\t\t\t\t//Run On demand Job to comply the \n\t\t\t\tfor(Integer spn:spnIds){\n\t\t\t\t\tonDemandMemberMaintenanceService.complyProviderFirm(spn, providerFirmId);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t}", "public void setState(String state) {\n this.state = state;\n }", "public void setState(String state) {\n this.state = state;\n }", "public void changeIcon(){\r\n\t\tif (pacman.direction.equals(\"up\")){\r\n\t\t\tif (mouthOpen)\r\n\t\t\t\tpacmansprite.setIcon(new ImageIcon(\"src/pacman_img/UpClosed.png\"));\r\n\t\t\telse\r\n\t\t\t\tpacmansprite.setIcon(new ImageIcon(\"src/pacman_img/UpOpened.png\"));\r\n\t\t}\r\n\t\tif (pacman.direction.equals(\"down\")){\r\n\t\t\tif (mouthOpen)\r\n\t\t\t\tpacmansprite.setIcon(new ImageIcon(\"src/pacman_img/DownClosed.png\"));\r\n\t\t\telse\r\n\t\t\t\tpacmansprite.setIcon(new ImageIcon(\"src/pacman_img/DownOpened.png\"));\r\n\t\t}\r\n\t\tif (pacman.direction.equals(\"left\")){\r\n\t\t\tif (mouthOpen)\r\n\t\t\t\tpacmansprite.setIcon(new ImageIcon(\"src/pacman_img/LeftClosed.png\"));\r\n\t\t\telse\r\n\t\t\t\tpacmansprite.setIcon(new ImageIcon(\"src/pacman_img/LeftOpened.png\"));\r\n\t\t}\r\n\t\tif (pacman.direction.equals(\"right\")){\r\n\t\t\tif (mouthOpen)\r\n\t\t\t\tpacmansprite.setIcon(new ImageIcon(\"src/pacman_img/RightClosed.png\"));\r\n\t\t\telse\r\n\t\t\t\tpacmansprite.setIcon(new ImageIcon(\"src/pacman_img/RightOpened.png\"));\r\n\t\t}\r\n\t\t\r\n\t\tmouthOpen = !mouthOpen;\r\n\t}", "@Override\n public int getPinState(){\n return 0;\n }", "public void setState(com.microsoft.schemas.xrm._2014.contracts.OrganizationState.Enum state)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(STATE$8, 0);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(STATE$8);\r\n }\r\n target.setEnumValue(state);\r\n }\r\n }", "public void setGPIO(String name, Boolean value) {\n\n Gpio_Set_Request request = Gpio_Set_Request.newBuilder().setName(name).setRequestedState(value).build();\n\n Gpio_Set_Reply response;\n \n try {\n \tresponse = blockingStub.gpioSet(request);\n } catch (StatusRuntimeException e) {\n logger.log(Level.WARNING, \"RPC failed \" + e.getStatus().getDescription() + \" \" + e.getMessage());\n\n // Get the description\n JsonParser parser = new JsonParser();\n JsonObject jsonDescription = parser.parse(e.getStatus().getDescription()).getAsJsonObject();\n \n //Convert to int and string\n int errorCode = jsonDescription.get(\"errorCode\").getAsInt();\n String errorMessage = jsonDescription.get(\"errorMessage\").getAsString();\n \n System.out.println(Integer.toString(errorCode) + \" : \" + errorMessage);\n return;\n }\n }", "@Override\n\tpublic void setState(STATE state) {\n\n\t}", "public void setState(String State) {\n this.State = State;\n }", "public IBusinessObject setStateObject(IRState state)\n throws OculusException;" ]
[ "0.59522235", "0.56985074", "0.52730227", "0.5205684", "0.50399685", "0.4993953", "0.49748954", "0.49668908", "0.49668908", "0.4963616", "0.49599147", "0.49599147", "0.49599147", "0.49599147", "0.49599147", "0.49599147", "0.49412903", "0.4900928", "0.4883435", "0.48505908", "0.47761858", "0.47589457", "0.47231156", "0.47159177", "0.4708705", "0.4698882", "0.46864384", "0.46806213", "0.46552622", "0.46400574", "0.46400574", "0.46303576", "0.46290085", "0.4626474", "0.45830256", "0.45761994", "0.4574255", "0.4567489", "0.45570096", "0.45536038", "0.45524412", "0.4546565", "0.4540874", "0.45200756", "0.45135614", "0.45115283", "0.4504101", "0.45024946", "0.45008573", "0.4498421", "0.44952086", "0.4492209", "0.4490969", "0.44872215", "0.44864142", "0.44722527", "0.44701147", "0.44680533", "0.4466331", "0.4466157", "0.44659218", "0.44643128", "0.4459778", "0.44571415", "0.44545364", "0.44518176", "0.4449363", "0.4448587", "0.44427", "0.44420537", "0.44408518", "0.44408518", "0.44405556", "0.44218028", "0.440577", "0.44055158", "0.43842417", "0.43818188", "0.43758103", "0.43756866", "0.43740043", "0.43695214", "0.4367749", "0.43659654", "0.4365009", "0.4358213", "0.43575883", "0.43573844", "0.43538365", "0.43530834", "0.43491495", "0.43488768", "0.43488768", "0.43379322", "0.4335222", "0.43325073", "0.43241483", "0.4321264", "0.43188024", "0.4314894" ]
0.6569826
0
This method was generated by MyBatis Generator. This method returns the value of the database column user_praise_icon.state_icon
public Integer getStateIcon() { return stateIcon; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ImageIcon getIcon() {\n\t\tswitch (state[2]) {\n\t\tcase \" Sunny\":\n\t\t\treturn new ImageIcon(\"weatherIcons/sunny.png\");\n\t\tcase \" Cloudy\":\n\t\t\treturn new ImageIcon(\"weatherIcons/cloudy.png\");\n\t\tcase \" Light Clouds\":\n\t\t\treturn new ImageIcon(\"weatherIcons/light clouds.png\");\n\t\tcase \" Windy\":\n\t\t\treturn new ImageIcon(\"weatherIcons/windy.png\");\n\t\tcase \" Heavy Rain\":\n\t\t\treturn new ImageIcon(\"weatherIcons/heavy rain.png\");\n\t\tcase \" Light Rain Showers\":\n\t\t\treturn new ImageIcon(\"weatherIcons/rain showers_light rain.png\");\n\t\tcase \" Snow\":\n\t\t\treturn new ImageIcon(\"weatherIcons/snow.png\");\n\t\tcase \" Lightning\":\n\t\t\treturn new ImageIcon(\"weatherIcons/lightning.png\");\n\t\tdefault:\n\t\t\treturn new ImageIcon(\"weatherIcons/default.png\");\n\t\t}\n\t}", "public void setStateIcon(Integer stateIcon) {\n this.stateIcon = stateIcon;\n }", "public String getIcon(){\n\t\t\t\t\n\t\treturn inCity.getWeather().get(0).getIcon();\n\t}", "@Override\n public Image getFlagImage() {\n Image image = AwsToolkitCore.getDefault().getImageRegistry().get(AwsToolkitCore.IMAGE_FLAG_PREFIX + id);\n if ( image == null ) {\n image = AwsToolkitCore.getDefault().getImageRegistry().get(AwsToolkitCore.IMAGE_AWS_ICON);\n }\n return image;\n }", "public FSIcon getIcon() {\n return icon;\n }", "public String getIconString() {\n return theIconStr;\n }", "protected Icon getIcon() {\n return getConnection().getIcon(getIconUri());\n }", "public String getIcon() {\n return icon;\n }", "public String getIcon() {\n return icon;\n }", "public String getIcon() {\n return icon;\n }", "public String getIcon() {\n return icon;\n }", "public com.google.protobuf.ByteString\n getIconBytes() {\n java.lang.Object ref = icon_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n icon_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public com.google.protobuf.ByteString\n getIconBytes() {\n java.lang.Object ref = icon_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n icon_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public com.google.protobuf.ByteString\n getIconBytes() {\n java.lang.Object ref = icon_;\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 icon_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public com.google.protobuf.ByteString\n getIconBytes() {\n java.lang.Object ref = icon_;\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 icon_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public java.lang.String getIcon() {\n java.lang.Object ref = icon_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n icon_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getIcon() {\n java.lang.Object ref = icon_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n icon_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public int getIconId(){\n return mIconId;\n }", "public EntityIcon getIcon() {\r\n return icon;\r\n }", "java.lang.String getIcon();", "java.lang.String getIcon();", "public String getIconCls() {\n\t\tif (null != this.iconCls) {\n\t\t\treturn this.iconCls;\n\t\t}\n\t\tValueExpression _ve = getValueExpression(\"iconCls\");\n\t\tif (_ve != null) {\n\t\t\treturn (String) _ve.getValue(getFacesContext().getELContext());\n\t\t} else {\n\t\t\treturn null;\n\t\t}\n\t}", "@Override\r\n\tpublic Image getColumnImage(Object element, int columnIndex) {\n\t\tif (columnIndex == 0) {\r\n\t\t\treturn ImageHelper.LoadImage(Activator.PLUGIN_ID, \"icons/state_red_hover.gif\");\r\n\t\t}else if (columnIndex == 1) {\r\n\t\t\treturn ImageHelper.LoadImage(Activator.PLUGIN_ID, \"icons/refreshtab.gif\");\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "@Override\n\tpublic Image getIconImage() {\n\t\tImage retValue = Toolkit.getDefaultToolkit().getImage(\"C:/BuildShop/IMG/Logo64x64.png\");\n\t\treturn retValue;\n\t}", "public String getIcon() {\n\t\treturn \"icon\";\n\t}", "public int getIconImageNumber(){return iconImageNumber;}", "public java.lang.String getIcon() {\n java.lang.Object ref = icon_;\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 icon_ = s;\n }\n return s;\n }\n }", "public java.lang.String getIcon() {\n java.lang.Object ref = icon_;\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 icon_ = s;\n }\n return s;\n }\n }", "@Nullable\n // Safe as we want to provide all getters being public for POJOs\n @SuppressWarnings({\"unused\", \"WeakerAccess\"})\n public final String getIconId() {\n return iconId;\n }", "@Override\n\tImageIcon getImage() {\n\t\treturn img;\n\t}", "public State getCircleState()\n {\n return iconPartStates[3];\n }", "private void setState(int ICONIFIED) {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "public String getUserIcon() {\n return userIcon;\n }", "String getIcon();", "String getIcon();", "public Image getState () {\n\t\treturn images[state];\n\t}", "public String getStatusIcon() {\n return (isDone? \"v\" : \"x\");\n }", "public ResourceLocation getIcon() {\n return icon;\n }", "com.google.protobuf.ByteString\n getIconBytes();", "com.google.protobuf.ByteString\n getIconBytes();", "public String getXpeIcon() {\n return (String) getAttributeInternal(XPEICON);\n }", "public byte[] getIcon()\r\n {\r\n return icon;\r\n }", "public static ImageIcon importState() {\n if(isImChose) {\n if(isImPress)\n return imPre;\n if(isImHover)\n return imChoHov;\n return imCho;\n }\n if(isImPress)\n return imPre;\n if(isImHover)\n return imHov;\n return imDef; \n }", "public int getBatteryIconsmall() {\n int icon_small = 0;\n mBatteryState.init();\n icon_small = mBatteryState.getIcon_small();\n mBatteryState.deinit();\n return icon_small;\n }", "@Nullable\n final public String getIconImageUrl() {\n return mIconImageUrl;\n }", "public IIcon getIcon(int p_149691_1_, int p_149691_2_)\n {\n return p_149691_1_ == 1 ? this.field_150035_a : (p_149691_1_ == 0 ? Blocks.planks.getBlockTextureFromSide(p_149691_1_) : (p_149691_1_ != 2 && p_149691_1_ != 4 ? this.blockIcon : this.field_150034_b));\n }", "public String getStatusIcon() {\n return (isDone ? \"/\" : \"X\"); // Return / or X symbols\n }", "public char getIcon() {\n return this.icon;\n }", "public Icon getIcon();", "public String getStatusIcon() {\n return (isDone ? \"✓\" : \"✘\"); //return tick or X symbols\n }", "public Icon getIcon() {\n \t\treturn null;\n \t}", "@Override\n\tpublic long getIconId() {\n\t\treturn _scienceApp.getIconId();\n\t}", "public String getStatusIcon() {\n return (isDone ? \"[X]\" : \"[ ]\");\n }", "@Override\n public String getFlagIconPath() {\n return flagIconPath;\n }", "private String getStatusIcon() {\n return this.isDone ? \"X\" : \"\";\n }", "public ImageDescriptor getIcon();", "public String getStatusIcon() {\n return (isDone ? \"X\" : \" \");\n }", "public Bitmap getIcon() {\n return mBundle.getParcelable(KEY_ICON);\n }", "protected String getStatusIcon() {\n return isDone ? \"x\" : \" \";\n }", "private String getStatusIcon() {\n return (isDone ? \"+\" : \"-\");\n }", "public String getStatusIcon(){\n return (isDone ? \"\\u2713\" : \"\\u2718\");\n }", "@NotNull\n SVGResource getIcon();", "public IIcon getIcon(int p_149691_1_, int p_149691_2_)\n {\n return func_149887_c(p_149691_2_) ? this.field_149893_M[0] : this.field_149893_M[p_149691_2_ & 7];\n }", "@Override\n public Image getIconImage() {\n Image retValue = Toolkit.getDefaultToolkit().getImage(ClassLoader.getSystemResource(\"images/icon.png\"));\n return retValue;\n }", "public org.netbeans.modules.j2ee.dd.api.common.Icon getIcon(){return null;}", "public int getIconIndex() {\n return iconIndex;\n }", "public String getWeatherIcon() {\n\t\treturn weatherIcon;\n\t}", "public URI getIconUri() {\n return this.iconUri;\n }", "public Icon getIcon() {\n\t\treturn null;\n\t}", "public int getIcon()\n\t{\n\t\treturn getClass().getAnnotation(AccuAction.class).icon();\n\t}", "public Image getImage() {\r\n\t\tif (isShieldActivated()) {\r\n\t\t\treturn GameGUI.SPACESHIP_IMAGE_SHIELD;\r\n\t\t}\r\n\t\treturn GameGUI.SPACESHIP_IMAGE;\r\n\t}", "public Icon getIcon()\n {\n return this.blockIcon;\n }", "@Nullable\n public final Drawable getIcon() {\n return mIcon;\n }", "public Icon getImageIcon() {\r\n\t\treturn lblImageViewer.getIcon();\r\n\t}", "protected void setIcon(UiAction uiAction, ResultSet rs, int rowNumber) throws SQLException{\n\t\t\n\t\tString icon = rs.getString(UiActionTable.COLUMN_ICON);\n\t\t\n\t\tif(icon == null){\n\t\t\t//do nothing when nothing found in database\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tuiAction.setIcon(icon);\n\t}", "private void showStateIcon(final ImageView imageView, TableRow row1, TableRow row2,\n StateListDrawable stateListDrawable, int state, String desc, Set<Drawable> stateIcons) {\n\n stateListDrawable.setState(new int[]{state});\n Drawable stateD = stateListDrawable.getCurrent();\n if (!stateIcons.contains(stateD)) {\n stateIcons.add(stateD);\n ImageButton stateImageView = new ImageButton(imageView.getContext());\n Drawable[] drawables = new Drawable[]{stateD, getResources().getDrawable(R.drawable.button_border_sel)};\n\n LayerDrawable layerDrawable = new LayerDrawable(drawables);\n stateImageView.setImageDrawable(layerDrawable);\n //\tstateImageView.setBackgroundResource(R.drawable.button_border_sel);\n stateImageView.setPadding(10, 10, 10, 10);\n stateImageView.setMinimumHeight(8);\n stateImageView.setMinimumWidth(8);\n stateImageView.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n imageView.setImageDrawable(((ImageView) v).getDrawable());\n }\n });\n\n TextView stateTextView = new TextView(imageView.getContext());\n stateTextView.setText(desc);\n stateTextView.setTextSize(12);\n stateTextView.setGravity(Gravity.CENTER);\n\n row1.addView(stateTextView);\n row2.addView(stateImageView);\n }\n }", "public IIcon method_2681() {\r\n return this.field_2146;\r\n }", "public AwesomeIcon icon() {\n\t\treturn icon;\n\t}", "@Nullable\n @Override\n public Icon getIcon(boolean unused) {\n RowIcon rowIcon = new RowIcon(2);\n\n rowIcon.setIcon(ElixirIcons.MODULE, 0);\n rowIcon.setIcon(PlatformIcons.ANONYMOUS_CLASS_ICON, 1);\n\n return rowIcon;\n }", "public String getStatusIcon() {\n return (isDone ? \"\\u2713\" : \"\\u2718\"); //return tick or X symbols\n }", "public String getStatusIcon() {\n return (isDone ? \"\\u2713\" : \"\\u2718\"); //return tick or X symbols\n }", "public String getStatusIcon() {\n return (isDone ? \"\\u2713\" : \"\\u2718\"); //return tick or X symbols\n }", "public String getStatusIcon() {\n return isDone\n ? \"\\u2713\"\n : \"\\u2718\";\n }", "public URL getIcon()\r\n {\r\n\treturn icon;\r\n }", "public ImageIcon getImage() {\n\t\treturn pigsty;\n\t}", "@Override\n public ImageDescriptor getFlagImageDescriptor() {\n ImageDescriptor descriptor = AwsToolkitCore.getDefault().getImageRegistry()\n .getDescriptor(AwsToolkitCore.IMAGE_FLAG_PREFIX + id);\n if ( descriptor == null ) {\n descriptor = AwsToolkitCore.getDefault().getImageRegistry().getDescriptor(AwsToolkitCore.IMAGE_AWS_ICON);\n }\n return descriptor;\n }", "@Override\n public Image getIconImage() {\n Image retValue = Toolkit.getDefaultToolkit().\n getImage(ClassLoader.getSystemResource(\"Imagenes/Sisapre001.png\"));\n return retValue;\n }", "public State getInternalArcState()\n {\n return iconPartStates[2];\n }", "public String getBusyIconCls() {\n\t\tif (null != this.busyIconCls) {\n\t\t\treturn this.busyIconCls;\n\t\t}\n\t\tValueExpression _ve = getValueExpression(\"busyIconCls\");\n\t\tif (_ve != null) {\n\t\t\treturn (String) _ve.getValue(getFacesContext().getELContext());\n\t\t} else {\n\t\t\treturn null;\n\t\t}\n\t}", "public Icon getIcon() {\n if (model != null)\n return model.getIcon(21, 16, \"model\"); //$NON-NLS-1$\n return null;\n }", "@Override\n public Image getIconImage() {\n Image retValue = Toolkit.getDefaultToolkit().\n getImage(ClassLoader.getSystemResource(\"Images/mainIcon.png\"));\n\n\n return retValue;\n }", "public String getStatusIcon() {\n return (isDone ? \"X\" : \" \"); //mark done task with X\n }", "public char getPermanentIcon() {\n\t\tif(!playerMapped)\r\n\t\t\treturn ' ';\r\n\t\treturn permanentIcon;\t//TODO: this the part that will need to change if the permanent icon isn't the right one to display.)\r\n\t}", "public static IIcon method_2666() {\r\n return class_1192.field_6027.field_2131;\r\n }", "public char getCurrentIcon(){\n\t\treturn icon;\r\n\t}", "public String getStatusIcon() {\r\n return (isDone ? \"\\u2718\" : \" \");\r\n }", "@Nullable\n public Drawable getIcon() {\n return mPrimaryIcon;\n }", "public Image getIcon(int type) {\n if ((type == BeanInfo.ICON_COLOR_16x16) || (type == BeanInfo.ICON_MONO_16x16))\n return defaultIcon;\n else\n return defaultIcon32;\n }", "public BaseElement getUserProfileIcon() {\n\t\treturn userProfileIcon;\n\t}", "public Icon icon() {\n\t\treturn new ImageIcon(image());\n\t}" ]
[ "0.6409053", "0.62717676", "0.5982516", "0.59111917", "0.58991325", "0.5852553", "0.58479226", "0.5830094", "0.5830094", "0.5830094", "0.5830094", "0.58245903", "0.58245903", "0.57900614", "0.57900614", "0.57407904", "0.57407904", "0.5739174", "0.5725232", "0.5692183", "0.5692183", "0.56917506", "0.5690739", "0.56901115", "0.56765056", "0.5673433", "0.56460345", "0.56460345", "0.56278485", "0.5585543", "0.55699426", "0.5564847", "0.5557713", "0.5555329", "0.5555329", "0.55530083", "0.55369455", "0.55367833", "0.5531875", "0.5531875", "0.55202204", "0.5518974", "0.5500078", "0.54957885", "0.54952925", "0.5493731", "0.548922", "0.54837584", "0.5474123", "0.54720545", "0.54651177", "0.54580396", "0.54507345", "0.5431078", "0.542699", "0.54159373", "0.53955233", "0.5386178", "0.53826284", "0.53794897", "0.5378182", "0.53755575", "0.5361179", "0.5360201", "0.53539056", "0.535077", "0.5344283", "0.5342086", "0.5339906", "0.533927", "0.5334169", "0.5333169", "0.53300506", "0.53297323", "0.53295076", "0.5328277", "0.53229445", "0.5322612", "0.5317237", "0.5312724", "0.5312724", "0.5312724", "0.53077334", "0.5294833", "0.52947766", "0.52889454", "0.52862424", "0.5276227", "0.5268986", "0.52677757", "0.52641755", "0.5259599", "0.52504814", "0.5248087", "0.52478105", "0.52471143", "0.5242057", "0.52384734", "0.5230917", "0.5228553" ]
0.7258576
0
This method was generated by MyBatis Generator. This method sets the value of the database column user_praise_icon.state_icon
public void setStateIcon(Integer stateIcon) { this.stateIcon = stateIcon; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void setState(int ICONIFIED) {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "protected void setIcon(UiAction uiAction, ResultSet rs, int rowNumber) throws SQLException{\n\t\t\n\t\tString icon = rs.getString(UiActionTable.COLUMN_ICON);\n\t\t\n\t\tif(icon == null){\n\t\t\t//do nothing when nothing found in database\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tuiAction.setIcon(icon);\n\t}", "public Integer getStateIcon() {\n return stateIcon;\n }", "@Override\n public void setIcon(boolean iconified) throws PropertyVetoException{\n if ((getParent() == null) && (desktopIcon.getParent() == null)){\n if (speciallyIconified == iconified)\n return;\n\n Boolean oldValue = speciallyIconified ? Boolean.TRUE : Boolean.FALSE; \n Boolean newValue = iconified ? Boolean.TRUE : Boolean.FALSE;\n fireVetoableChange(IS_ICON_PROPERTY, oldValue, newValue);\n\n speciallyIconified = iconified;\n }\n else\n super.setIcon(iconified);\n }", "private void setIcon(String icon, boolean isSmall) {\n org.netbeans.modules.j2ee.dd.api.common.Icon oldIcon = getIcon();\n if (oldIcon==null) {\n if (icon!=null) {\n try {\n org.netbeans.modules.j2ee.dd.api.common.Icon newIcon = (org.netbeans.modules.j2ee.dd.api.common.Icon) createBean(\"Icon\");\n if (isSmall) newIcon.setSmallIcon(icon);\n else newIcon.setLargeIcon(icon);\n setIcon(newIcon);\n } catch(ClassNotFoundException ex){}\n }\n } else {\n if (icon==null) {\n if (isSmall) {\n oldIcon.setSmallIcon(null);\n if (oldIcon.getLargeIcon()==null) setIcon(null);\n } else {\n oldIcon.setLargeIcon(null);\n if (oldIcon.getSmallIcon()==null) setIcon(null);\n }\n } else {\n if (isSmall) oldIcon.setSmallIcon(icon);\n else oldIcon.setLargeIcon(icon);\n }\n } \n }", "public void setIcon(Image i) {icon = i;}", "public void setClosedIcon(String closedIcon)\n {\n this.closedIcon = closedIcon;\n }", "private void setIconImage(ImageIcon imageIcon) {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "private void setIconImage(ImageIcon imageIcon) {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "public void changeIcon(Icon icon) {\r\n this.iconId = icon.getId();\r\n }", "private void showStateIcon(final ImageView imageView, TableRow row1, TableRow row2,\n StateListDrawable stateListDrawable, int state, String desc, Set<Drawable> stateIcons) {\n\n stateListDrawable.setState(new int[]{state});\n Drawable stateD = stateListDrawable.getCurrent();\n if (!stateIcons.contains(stateD)) {\n stateIcons.add(stateD);\n ImageButton stateImageView = new ImageButton(imageView.getContext());\n Drawable[] drawables = new Drawable[]{stateD, getResources().getDrawable(R.drawable.button_border_sel)};\n\n LayerDrawable layerDrawable = new LayerDrawable(drawables);\n stateImageView.setImageDrawable(layerDrawable);\n //\tstateImageView.setBackgroundResource(R.drawable.button_border_sel);\n stateImageView.setPadding(10, 10, 10, 10);\n stateImageView.setMinimumHeight(8);\n stateImageView.setMinimumWidth(8);\n stateImageView.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n imageView.setImageDrawable(((ImageView) v).getDrawable());\n }\n });\n\n TextView stateTextView = new TextView(imageView.getContext());\n stateTextView.setText(desc);\n stateTextView.setTextSize(12);\n stateTextView.setGravity(Gravity.CENTER);\n\n row1.addView(stateTextView);\n row2.addView(stateImageView);\n }\n }", "public void setIcon(FSIcon icon) {\n this.icon = icon;\n }", "public void setRibbonIcon(Icon ribbonIcon)\n\t{\n\t\tthis.ribbonIcon = ribbonIcon;\n\t}", "public void setIconState(int index) {\n\r\n switch (index) {\r\n case 0:\r\n im_service.setImageResource(R.drawable.shouye2);\r\n tv_service.setTextColor(getResources().getColor(R.color.green));\r\n break;\r\n case 1:\r\n im_chart.setImageResource(R.drawable.faxian2);\r\n tv_chart.setTextColor(getResources().getColor(R.color.green));\r\n break;\r\n\r\n case 2:\r\n im_share.setImageResource(R.drawable.fenxiang2);\r\n tv_share.setTextColor(getResources().getColor(R.color.green));\r\n break;\r\n case 3:\r\n im_me.setImageResource(R.drawable.wo2);\r\n tv_me.setTextColor(getResources().getColor(R.color.green));\r\n break;\r\n }\r\n }", "public void changeImageMule(){\n\t\tsetIcon(imgm);\n\t}", "@Override\n\tpublic void setIcon(int resId) {\n\t\t\n\t}", "public void setImage(ImageIcon image){\n\t\tthis.image = image;\n\t}", "public void ChangeIcons(int iButton){\n\t\tif(iButton == 0){\n\t\t\tjbFavorites.setSelected(true);\n\t\t\tjbSongs.setSelected(false);\n\t\t\tjbPartyList.setSelected(false);\n\t\t}\n\t\tif(iButton == 1){\n\t\t\tjbFavorites.setSelected(false);\n\t\t\tjbSongs.setSelected(true);\n\t\t\tjbPartyList.setSelected(false);\n\t\t}\n\t\t\n\t\tif(iButton == 2){\n\t\t\tjbFavorites.setSelected(false);\n\t\t\tjbSongs.setSelected(false);\n\t\t\tjbPartyList.setSelected(true);\n\t\t}\n\t\tif(iButton == 3){\n\t\t\tjbFavorites.setSelected(false);\n\t\t\tjbSongs.setSelected(false);\n\t\t\tjbPartyList.setSelected(false);\n\t\t}\n\t}", "public void changeIcon(){\r\n\t\tif (pacman.direction.equals(\"up\")){\r\n\t\t\tif (mouthOpen)\r\n\t\t\t\tpacmansprite.setIcon(new ImageIcon(\"src/pacman_img/UpClosed.png\"));\r\n\t\t\telse\r\n\t\t\t\tpacmansprite.setIcon(new ImageIcon(\"src/pacman_img/UpOpened.png\"));\r\n\t\t}\r\n\t\tif (pacman.direction.equals(\"down\")){\r\n\t\t\tif (mouthOpen)\r\n\t\t\t\tpacmansprite.setIcon(new ImageIcon(\"src/pacman_img/DownClosed.png\"));\r\n\t\t\telse\r\n\t\t\t\tpacmansprite.setIcon(new ImageIcon(\"src/pacman_img/DownOpened.png\"));\r\n\t\t}\r\n\t\tif (pacman.direction.equals(\"left\")){\r\n\t\t\tif (mouthOpen)\r\n\t\t\t\tpacmansprite.setIcon(new ImageIcon(\"src/pacman_img/LeftClosed.png\"));\r\n\t\t\telse\r\n\t\t\t\tpacmansprite.setIcon(new ImageIcon(\"src/pacman_img/LeftOpened.png\"));\r\n\t\t}\r\n\t\tif (pacman.direction.equals(\"right\")){\r\n\t\t\tif (mouthOpen)\r\n\t\t\t\tpacmansprite.setIcon(new ImageIcon(\"src/pacman_img/RightClosed.png\"));\r\n\t\t\telse\r\n\t\t\t\tpacmansprite.setIcon(new ImageIcon(\"src/pacman_img/RightOpened.png\"));\r\n\t\t}\r\n\t\t\r\n\t\tmouthOpen = !mouthOpen;\r\n\t}", "public void setOpenIcon(String openIcon)\n {\n this.openIcon = openIcon;\n }", "public void setImage(ImageIcon image) {\n this.image = image;\n }", "public void setIncorrectAvatar(){\n\t\tavatar.setIcon(new ImageIcon(\"img/Incorrect.png\"));\n\t}", "public void setState(boolean isOn, boolean isClicked) {\n\n // YOUR CODE HERE\n \n BufferedImage img0 = ImageIO.read(new File(\"./Icons/Light-0.png\"));\n icon0 = new ImageIcon(img0);\n \n \n \n\n BufferedImage img1 = ImageIO.read(new File(\"./Icons/Light-1.png\"));\n icon1=new ImageIcon(img1);\n \n \n \n\n BufferedImage img2 = ImageIO.read(new File(\"./Icons/Light-2.png\"));\n icon2=new ImageIcon(img2);\n \n \n\n BufferedImage img3 = ImageIO.read(new File(\"./Icons/Light-3.png\"));\n icon3=new ImageIcon(img3);\n \n \n \n\n\n if(isOn == true){\n lbl.setIcon(icon0);\n state = 1; \n }else{ \n lbl.setIcon(icon1);\n state = 0;\n }\n if(isClicked == true){\n //0 means light off\n //1 means light on\n //2 means light on for solution\n //3 means light on for optimal solution\n if(state == 0 ){\n lbl.setIcon(icon0);\n state = 1;\n }\n if(state == 1){\n lbl.setIcon(icon1);\n state = 0; \n }\n if(state == 2 ){\n lbl.setIcon(icon2);\n state = 1;\n }\n if(state == 3){\n lbl.setIcon(icon3);\n state = 1;\n }\n }\n\n }", "public ImageIcon getIcon() {\n\t\tswitch (state[2]) {\n\t\tcase \" Sunny\":\n\t\t\treturn new ImageIcon(\"weatherIcons/sunny.png\");\n\t\tcase \" Cloudy\":\n\t\t\treturn new ImageIcon(\"weatherIcons/cloudy.png\");\n\t\tcase \" Light Clouds\":\n\t\t\treturn new ImageIcon(\"weatherIcons/light clouds.png\");\n\t\tcase \" Windy\":\n\t\t\treturn new ImageIcon(\"weatherIcons/windy.png\");\n\t\tcase \" Heavy Rain\":\n\t\t\treturn new ImageIcon(\"weatherIcons/heavy rain.png\");\n\t\tcase \" Light Rain Showers\":\n\t\t\treturn new ImageIcon(\"weatherIcons/rain showers_light rain.png\");\n\t\tcase \" Snow\":\n\t\t\treturn new ImageIcon(\"weatherIcons/snow.png\");\n\t\tcase \" Lightning\":\n\t\t\treturn new ImageIcon(\"weatherIcons/lightning.png\");\n\t\tdefault:\n\t\t\treturn new ImageIcon(\"weatherIcons/default.png\");\n\t\t}\n\t}", "public void setXpeIcon(String value) {\n setAttributeInternal(XPEICON, value);\n }", "public void changeImage(){\n if(getImage()==storeItemImg) setImage(selected);\n else setImage(storeItemImg);\n }", "public void setIconLiftRes(int resId) {\n\t\tif (View.VISIBLE == icon_lift.getVisibility()) {\n\t\t\ticon_lift.setImageResource(resId);\n\t\t}\n\t}", "public void setIcon(Integer icon) {\n switch (icon) {\n case 0:\n this.icon = Icon.Schutzengel;\n break;\n case 1:\n this.icon = Icon.Person;\n break;\n case 2:\n this.icon = Icon.Institution;\n break;\n case 3:\n this.icon = Icon.Krankenhaus;\n break;\n case 4:\n this.icon = Icon.Polizei;\n break;\n default:\n this.icon = Icon.Feuerwehr;\n break;\n }\n }", "public void setIcon(boolean b){\n \ttry{\n \t\tsuper.setIcon(b);\n \t}\n \tcatch(java.lang.Exception ex){\n \t\tSystem.out.println (ex);\n \t}\n \tif(!b){\n \t\tgetRootPane().setDefaultButton(jButton1);\n \t}\n }", "public StateChangeMdiIcon inactive() {\n defaultIcon.inactive();\n statesMap.values().forEach(MdiIcon::inactive);\n return this;\n }", "@Source(\"update.gif\")\n\tpublic DataResource updateIconDisabledResource();", "public void setUserIcon(String userIcon) {\n this.userIcon = userIcon == null ? null : userIcon.trim();\n }", "private void setIcon() {\n \n setIconImage(Toolkit.getDefaultToolkit().getImage(getClass().getResource(\"iconabc.png\")));\n }", "public void setUpFavouriteIcon() {\n if (isUserOwner()) {\n view.hideFavouriteIcon();\n } else if (currentAdvertIsFavourite()) {\n view.setIsAFavouriteIcon();\n } else {\n view.setIsNotAFavouriteIcon();\n }\n }", "public void lightIcons() {\n teamPhoto.setImage((new Image(\"/Resources/Images/emptyTeamLogo.png\")));\n copyIcon.setImage((new Image(\"/Resources/Images/black/copy_black.png\")));\n helpPaneIcon.setImage((new Image(\"/Resources/Images/black/help_black.png\")));\n if (user.getUser().getProfilePhoto() == null) {\n accountPhoto.setImage((new Image(\"/Resources/Images/black/big_profile_black.png\")));\n }\n }", "public void setCircleState(State state)\n {\n iconPartStates[3] = state;\n this.paintImmediately(this.getVisibleRect());\n }", "public void setIconId(int iconId) {\r\n this.iconId = iconId;\r\n }", "private void setImageButtonImage(int typeIconId) {\n ImageButton btn = (ImageButton) findViewById(R.id.btn_typeIcon);\n\n TypeIcon typeIcon = MainActivity.getTypeIconById(typeIconId);\n\n // Gets the id of the actual image to display, using the name of the TypeIcon\n String name = typeIcon.getDrawablePath();\n final int id = getResources().getIdentifier(name, \"drawable\", getPackageName());\n btn.setImageResource(id);\n\n iconId = typeIconId;\n }", "public void setSmallIcon(ImageDescriptor icon) {\n if (icon != iconSmall) {\n ImageDescriptor oldIcon = iconSmall;\n iconSmall = icon;\n listeners.firePropertyChange(PROPERTY_SMALL_ICON, oldIcon, icon);\n }\n }", "public void setIcon(int resId) {\n mIconId = resId;\n if (mIconView != null) {\n if (resId > 0) {\n mIconView.setImageResource(mIconId);\n } else if (resId == 0) {\n mIconView.setVisibility(View.GONE);\n }\n }\n }", "public void setIcon(URL icon)\r\n {\r\n\tthis.icon = icon;\r\n }", "public Builder setIcon(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000002;\n icon_ = value;\n onChanged();\n return this;\n }", "public void setState(org.landxml.schema.landXML11.StateType.Enum state)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(STATE$14);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(STATE$14);\r\n }\r\n target.setEnumValue(state);\r\n }\r\n }", "@Override\n\tpublic void setIcon(Drawable icon) {\n\t\t\n\t}", "@Override\r\n\tpublic Image getColumnImage(Object element, int columnIndex) {\n\t\tif (columnIndex == 0) {\r\n\t\t\treturn ImageHelper.LoadImage(Activator.PLUGIN_ID, \"icons/state_red_hover.gif\");\r\n\t\t}else if (columnIndex == 1) {\r\n\t\t\treturn ImageHelper.LoadImage(Activator.PLUGIN_ID, \"icons/refreshtab.gif\");\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "public void setIconIndex(int value) {\n this.iconIndex = value;\n }", "public void setIcon(String icon) {\n this.icon = icon;\n }", "public void setIcon(String icon) {\n this.icon = icon;\n }", "public void setIcon(Bitmap icon) {\n\t\tmIcon = icon;\n\t}", "private void setICon() {\r\n \r\n setIconImage(Toolkit.getDefaultToolkit().getImage(getClass().getResource(\"IconImage_1.png\")));\r\n }", "private void iconImage() {\n setIconImage(Toolkit.getDefaultToolkit().getImage(getClass().getResource(\"icon.jpg\")));\n }", "private void changeIcon(SingleDocumentModel model) {\n\t\tif (model.isModified()) {\n\t\t\tsetIconAt(models.indexOf(model), createIcon(\"icons/red.png\"));\n\t\t}else {\n\t\t\tsetIconAt(models.indexOf(model), createIcon(\"icons/green.png\"));\n\t\t}\n\t}", "@Override\n public void setIconURI(String arg0)\n {\n \n }", "public void setState(String state, String actor, String action)\r\n/* 30: */ {\r\n/* 31: 32 */ setActor(actor);\r\n/* 32: 33 */ setAction(action);\r\n/* 33: 34 */ if ((state != null) && (state.equals(\"want\"))) {\r\n/* 34: 35 */ setImage(new ImageIcon(PictureAnchor.class.getResource(\"thumbUp.jpg\")));\r\n/* 35: 37 */ } else if ((state != null) && (state.equals(\"notWant\"))) {\r\n/* 36: 38 */ setImage(new ImageIcon(PictureAnchor.class.getResource(\"thumbDown.jpg\")));\r\n/* 37: */ }\r\n/* 38: */ }", "public void setIcon(final String icon) {\n\t\tthis.icon = icon;\n\t}", "@Override\n public Image getFlagImage() {\n Image image = AwsToolkitCore.getDefault().getImageRegistry().get(AwsToolkitCore.IMAGE_FLAG_PREFIX + id);\n if ( image == null ) {\n image = AwsToolkitCore.getDefault().getImageRegistry().get(AwsToolkitCore.IMAGE_AWS_ICON);\n }\n return image;\n }", "public Builder setIcon(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000004;\n icon_ = value;\n onChanged();\n return this;\n }", "private void setIcon(){\n this.setIconImage(new ImageIcon(getClass().getResource(\"/Resources/Icons/Icon.png\")).getImage());\n }", "public void changeIconDropStatus() { dropped = !dropped; }", "protected void setImageUrl(UiAction uiAction, ResultSet rs, int rowNumber) throws SQLException{\n\t\t\n\t\tString imageUrl = rs.getString(UiActionTable.COLUMN_IMAGE_URL);\n\t\t\n\t\tif(imageUrl == null){\n\t\t\t//do nothing when nothing found in database\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tuiAction.setImageUrl(imageUrl);\n\t}", "public void setWeatherIcon(String iconID) {\n final ImageView weatherImageView = findViewById(R.id.weatherIconImgV);\n int icon = getDrawableByIcon(iconID);\n\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {\n weatherImageView.setImageDrawable(getResources().getDrawable(icon, getApplicationContext().getTheme()));\n } else {\n weatherImageView.setImageDrawable(getResources().getDrawable(icon));\n }\n }", "public void setUserState(Byte userState) {\r\n this.userState = userState;\r\n }", "public void setIcon(Icon image)\n {\n getComponent().setIcon(image);\n invalidateSize();\n }", "public void setActBarConnectIcon(){\n \tif(ConnectIcon == null && BatteryIcon != null)\n \t\treturn;\n \t\n \tif(NetworkModule.IsConnected()==NetworkModule.CONN_CLOSED)\n \t{\n \t\tConnectIcon.setIcon(R.drawable.network_disconnected);\n \t}\n \telse\n \t{\n \t\tConnectIcon.setIcon(R.drawable.network_connected);\n \t}\n }", "public static void\nsetImageOverride(SoState state,\n boolean override)\n//\n////////////////////////////////////////////////////////////////////////\n{\n SoTextureOverrideElement elt;\n elt = (SoTextureOverrideElement )getElement(state, classStackIndexMap.get(SoTextureOverrideElement.class));\n if (override)\n elt.flags |= Flags.TEXTURE_IMAGE.getValue();\n else\n elt.flags &= ~Flags.TEXTURE_IMAGE.getValue();\n}", "public /* synthetic */ void mo38881a(int i) {\n this.f30743n0.setImageResource(i);\n }", "public void setState( EAIMMCtxtIfc theCtxt, java.lang.String theState) throws EAIException;", "public void setComponentState(State state)\n {\n iconPartStates[0] = state;\n iconPartStates[1] = state;\n iconPartStates[2] = state;\n iconPartStates[3] = state;\n this.paintImmediately(this.getVisibleRect());\n }", "public final void setIcon(Icon icon) {\r\n if (icon instanceof ImageIcon) {\r\n super.setIcon(new DropDownIcon((ImageIcon) icon));\r\n }\r\n else {\r\n super.setIcon(icon);\r\n }\r\n }", "private void setIcon() {\n setIconImage(Toolkit.getDefaultToolkit().getImage(getClass().getResource(\"img/icon.png\")));\n }", "public void setIconMode(IconMode currentInventoryMode);", "public void setState(Integer state) {\r\n this.state = state;\r\n }", "public void setState(Integer state) {\r\n this.state = state;\r\n }", "private void updateBaseIcon() {\n this.squareIcon.setDecoratedIcon( getSelectedBaseIcon() );\n this.radialIcon.setDecoratedIcon( getSelectedBaseIcon() );\n }", "public void darkIcons() {\n teamPhoto.setImage((new Image(\"/Resources/Images/emptyTeamLogo.png\")));\n copyIcon.setImage((new Image(\"/Resources/Images/white/copy_white.png\")));\n helpPaneIcon.setImage((new Image(\"/Resources/Images/white/help_white.png\")));\n if (user.getUser().getProfilePhoto() == null) {\n accountPhoto.setImage((new Image(\"/Resources/Images/white/big_profile_white.png\")));\n }\n }", "public void setState(Integer state) {\n\t\tthis.state = state;\n\t}", "public void setState(Integer state) {\n this.state = state;\n }", "public void setState(Integer state) {\n this.state = state;\n }", "public void setState(Integer state) {\n this.state = state;\n }", "public void setState(Integer state) {\n this.state = state;\n }", "public void setState(Integer state) {\n this.state = state;\n }", "public void setState(Integer state) {\n this.state = state;\n }", "private void setIcon() {\n setIconImage(Toolkit.getDefaultToolkit().getImage(getClass().getResource(\"icon.png\")));\n }", "public void setIcone(String icone) {\n this.icone = icone;\n }", "public void setImage(String path) {\n\t\timageIcon = new ImageIcon(Helper.getFileURL(path));\n\t}", "private void SetIcon() {\n \n setIconImage(Toolkit.getDefaultToolkit().getImage(getClass().getResource(\"appIcon.png\")));\n }", "public static ImageIcon importState() {\n if(isImChose) {\n if(isImPress)\n return imPre;\n if(isImHover)\n return imChoHov;\n return imCho;\n }\n if(isImPress)\n return imPre;\n if(isImHover)\n return imHov;\n return imDef; \n }", "private void setIcon() {\n setIconImage(Toolkit.getDefaultToolkit().getImage(getClass().getResource(\"podologia32x32.png\")));\n }", "public void setInternalArcState(State state)\n {\n iconPartStates[2] = state;\n this.paintImmediately(this.getVisibleRect());\n }", "private void setIcon() {\n this.setIconImage(Toolkit.getDefaultToolkit().getImage(getClass().getResource(\"logo.ico\")));\n }", "public void setIcon(char c) {\r\n\ticon = c;\r\n\t}", "private void updateBusyIcon() {\n this.jLabelIcon.setIcon( getSelectedBusyICon() );\n }", "@Source(\"images/Default_user_icon.png\")\n @ImageOptions(flipRtl = true)\n ImageResource defaultUserAvatar();", "private void setUpImage() {\n Bitmap icon = BitmapFactory.decodeResource( this.getResources(), R.drawable.hotel_icon );\n map.addImage( MARKER_IMAGE_ID, icon );\n }", "private void SetIcon() {\n setIconImage(Toolkit.getDefaultToolkit().getImage(getClass().getResource(\"Icon.png.png\")));\n }", "public FSIcon getIcon() {\n return icon;\n }", "private void setImage() {\n\t\t\n\t\tfor(int i=0; i<user.getIsVisited().length; i++) {\n\t\t\tif(user.getIsVisited()[i])\n\t\t\t\tspots[i].setBackgroundResource(R.drawable.num1_certified + i*2);\n\t\t\telse\n\t\t\t\tspots[i].setBackgroundResource(R.drawable.num1 + i*2);\n\t\t}\n\t}", "private void setIcon() {\n setIconImage(Toolkit.getDefaultToolkit().getImage(getClass().getResource(\"croissant.png\")));\n }", "private void changePlayPauseIcon(int which) {\n switch (which) {\n case 1://play\n mBinding.imageViewPlay.setImageResource(R.drawable.play_circle_icon);\n break;\n case 2://pause\n mBinding.imageViewPlay.setImageResource(R.drawable.pause_circle_icon);\n break;\n }\n }", "public void setPressedIcon(Icon pressed) {\n\t\tmouseHoverAwareAction.setPressedIcon(pressed);\n\t}" ]
[ "0.65458846", "0.63512105", "0.5944798", "0.58683705", "0.5712532", "0.5657244", "0.5609402", "0.560877", "0.560877", "0.5573218", "0.55125624", "0.54809344", "0.5461843", "0.54532486", "0.54396343", "0.5361617", "0.53427434", "0.52818304", "0.5269085", "0.5244674", "0.52192295", "0.52045274", "0.52010006", "0.51961786", "0.5152314", "0.5149263", "0.51435304", "0.51361746", "0.51360375", "0.51258546", "0.511248", "0.51056415", "0.50830424", "0.5081355", "0.5069133", "0.5068463", "0.50628275", "0.50444186", "0.502708", "0.50244886", "0.5018867", "0.5015041", "0.5007008", "0.5006827", "0.49991387", "0.49911016", "0.49841446", "0.49841446", "0.49829298", "0.4979223", "0.49709472", "0.4957674", "0.4950157", "0.4938364", "0.49338517", "0.49287507", "0.4927926", "0.49224702", "0.49210945", "0.49176505", "0.4916324", "0.49100825", "0.4908366", "0.4897184", "0.48926944", "0.48878083", "0.4887258", "0.48845077", "0.48819253", "0.4873195", "0.4869042", "0.48690343", "0.48690343", "0.48555025", "0.48544422", "0.4853904", "0.48536047", "0.48536047", "0.48536047", "0.48536047", "0.48536047", "0.48536047", "0.4843388", "0.48425746", "0.48411506", "0.48342597", "0.48326626", "0.48320714", "0.48262003", "0.4825277", "0.48223212", "0.48162714", "0.48150316", "0.481357", "0.4802295", "0.48002216", "0.4798167", "0.47978508", "0.47902966", "0.47881803" ]
0.7369846
0
This method was generated by MyBatis Generator. This method returns the value of the database column user_praise_icon.userid
public Integer getUserid() { return userid; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Integer getUserid() {\r\n\t\treturn userid;\r\n\t}", "public Integer getUserid() {\n\t\treturn this.userid;\n\t}", "java.lang.String getUserId();", "java.lang.String getUserId();", "java.lang.String getUserId();", "public Long getUserid() {\r\n return userid;\r\n }", "public Integer getUserID() {\n return userID;\n }", "public String getUserId() {\r\n\t\treturn this.userid.getText();\r\n\t}", "public Integer getUser_id() {\n\t\treturn user_id;\n\t}", "public Integer userID() {\n return this.userID;\n }", "Integer getUserId();", "@Override\n\tpublic long getUserId() {\n\t\treturn _dataset.getUserId();\n\t}", "public java.lang.String getUserid() {\n return userid;\n }", "public String getUserid() {\n return userid;\n }", "public String getUserid() {\n return userid;\n }", "public java.lang.String getUserid() {\n return userid;\n }", "public String getUserId() {\r\n return (String) getAttributeInternal(USERID);\r\n }", "String getUserId();", "String getUserId();", "@UserIdInt\n public int getUserId() {\n return mUserId;\n }", "public int getUserID() {\n return userID_;\n }", "public int getUserID() {\n return userID_;\n }", "public int getUserID() {\n return userID_;\n }", "public int getUserID() {\n return userID_;\n }", "public int getUserID() {\n return userID_;\n }", "public int getUserID() {\n return userID_;\n }", "public int getUserID() {\n return userID_;\n }", "public int getUserID() {\n return userID_;\n }", "public int getUserID() {\n return userID_;\n }", "public int getUserID() {\n return userID_;\n }", "public int getUserID() {\n return userID_;\n }", "public int getUserID() {\n return userID_;\n }", "public int getUserID() {\n return userID_;\n }", "public int getUserID() {\n return userID_;\n }", "public int getUserID() {\n return userID_;\n }", "public int getUserID() {\n return userID_;\n }", "public int getUserID() {\n return userID_;\n }", "public int getUserID() {\n return userID;\n }", "public int getUserID() {\n return userID;\n }", "public int getUserID() {\n return userID;\n }", "public Integer getIdUser() {\r\n\t\treturn idUser;\r\n\t}", "public java.lang.String getUserid() {\n return userid;\n }", "public String getUserid() {\n\t\treturn userid;\n\t}", "public Number getUserIdFk() {\r\n return (Number) getAttributeInternal(USERIDFK);\r\n }", "public Integer getUserId() {\r\n return userId;\r\n }", "public Integer getUserId() {\r\n return userId;\r\n }", "public int getUserID() {\n return userID_;\n }", "public int getUserID() {\n return userID_;\n }", "public String getUserIcon() {\n return userIcon;\n }", "public int getUserID() {\n return userID_;\n }", "public int getUserID() {\n return userID_;\n }", "public int getUserID() {\n return userID_;\n }", "public int getUserID() {\n return userID_;\n }", "public int getUserID() {\n return userID_;\n }", "public int getUserID() {\n return userID_;\n }", "public int getUserID() {\n return userID_;\n }", "public int getUserID() {\n return userID_;\n }", "public int getUserID() {\n return userID_;\n }", "public int getUserID() {\n return userID_;\n }", "public int getUserID() {\n return userID_;\n }", "public int getUserID() {\n return userID_;\n }", "public int getUserID() {\n return userID_;\n }", "public int getUserID() {\n return userID_;\n }", "public int getUserID() {\n return userID_;\n }", "public BigDecimal getUserId() {\r\n return userId;\r\n }", "public int getUserID()\n {\n return userID;\n }", "public long getUserId();", "public long getUserId();", "public long getUserId();", "public long getUserId();", "@Override\n\tpublic long getUserId() {\n\t\treturn _dictData.getUserId();\n\t}", "public Integer getUserId() {\r\n\t\treturn userId;\r\n\t}", "public Integer getUserId() {\r\n\t\treturn userId;\r\n\t}", "public Integer getUserId() {\r\n\t\treturn userId;\r\n\t}", "public int getUserId() {\r\n return this.UserId;\r\n }", "@Override\n\tpublic String getUserId() {\n\t\treturn super.getUserId();\n\t}", "public Integer getUserId() {\n return userId;\n }", "public Integer getUserId() {\n return userId;\n }", "public Integer getUserId() {\n return userId;\n }", "public Integer getUserId() {\n return userId;\n }", "public Integer getUserId() {\n return userId;\n }", "public Integer getUserId() {\n return userId;\n }", "public Integer getUserId() {\n return userId;\n }", "public Integer getUserId() {\n return userId;\n }", "public Integer getUserId() {\n return userId;\n }", "public Integer getUserId() {\n return userId;\n }", "public Integer getUserId() {\n return userId;\n }", "public Integer getUserId() {\n return userId;\n }", "public Integer getUserId() {\n return userId;\n }" ]
[ "0.6334902", "0.6322686", "0.6209787", "0.6209787", "0.6209787", "0.6204892", "0.6109799", "0.6095493", "0.60577655", "0.60331917", "0.60149413", "0.5991522", "0.59893703", "0.59681356", "0.59681356", "0.59491354", "0.5943941", "0.5938969", "0.5938969", "0.59248334", "0.5923695", "0.5923695", "0.59234124", "0.59234124", "0.59234124", "0.59234124", "0.59234124", "0.59234124", "0.59234124", "0.59234124", "0.59234124", "0.59234124", "0.59234124", "0.59234124", "0.59234124", "0.59234124", "0.59234124", "0.59122026", "0.59122026", "0.59122026", "0.58982074", "0.58978593", "0.5892236", "0.58887404", "0.5858507", "0.5858507", "0.5853171", "0.5853171", "0.58522236", "0.5851776", "0.5851776", "0.5851776", "0.5851776", "0.5851776", "0.5851776", "0.5851776", "0.5851776", "0.5851776", "0.5851776", "0.5851776", "0.5851776", "0.5851776", "0.5851776", "0.5851776", "0.5849607", "0.5838689", "0.5821456", "0.5821456", "0.5821456", "0.5821456", "0.5815851", "0.58103085", "0.58103085", "0.58103085", "0.5795291", "0.5788959", "0.5780043", "0.5780043", "0.5780043", "0.5780043", "0.5780043", "0.5780043", "0.5780043", "0.5780043", "0.5780043", "0.5780043", "0.5780043", "0.5780043", "0.5780043" ]
0.63820845
7
This method was generated by MyBatis Generator. This method sets the value of the database column user_praise_icon.userid
public void setUserid(Integer userid) { this.userid = userid; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setUserid(Integer userid) {\r\n\t\tthis.userid = userid;\r\n\t}", "public void setIdUser(Integer idUser) {\r\n\t\tthis.idUser = idUser;\r\n\t}", "public void setUserid(Long userid) {\r\n this.userid = userid;\r\n }", "public void setId_user(int id_user) {\r\n this.id_user = id_user;\r\n }", "public void setId_user(int id_user) {\n this.id_user = id_user;\n }", "public void setIdUser(int value) {\n this.idUser = value;\n }", "public void setUserid(java.lang.String userid) {\n this.userid = userid;\n }", "public void setIdUser(String idUser) {\n\t\tthis.idUser = idUser;\n\t}", "public void setUserid(java.lang.String value) {\n this.userid = value;\n }", "public void setIduser(int aIduser) {\n iduser = aIduser;\n }", "public void setUserID(int value) {\n this.userID = value;\n }", "public void setUserId(int value) {\n this.userId = value;\n }", "public void setUserID(long userID) {\n UserID = userID;\n }", "private void setUserId(int value) {\n \n userId_ = value;\n }", "public void setUserID(Integer userID) {\n this.userID = userID;\n }", "public void setUserid(String userid) {\n this.userid = userid == null ? null : userid.trim();\n }", "public void setUserid(String userid) {\n this.userid = userid == null ? null : userid.trim();\n }", "public void setImage(String userId){\n\t\tImageIcon icon = new ImageIcon(\"image/\" + userId + \".png\");\n\t\ticon.setImage(icon.getImage().getScaledInstance(icon.getIconWidth(),\n\t\ticon.getIconHeight(), Image.SCALE_DEFAULT));\n\t\tplayerImage = icon.getImage();\n\t\tpaint(this.getGraphics());\n\t}", "public void setUser1X_ID (int User1X_ID);", "public void setUserIcon(String userIcon) {\n this.userIcon = userIcon == null ? null : userIcon.trim();\n }", "public void setUserId(long userId);", "public void setUserId(long userId);", "public void setUserId(long userId);", "public void setUserId(long userId);", "public void setUserID(int userID) {\n this.userID = userID;\n }", "public void setUserID(int userID) {\n this.userID = userID;\n }", "public void setUserId(long value) {\r\n this.userId = value;\r\n }", "void setUserId(int newId) {\r\n\t\t\tuserId = newId;\r\n\t\t}", "public void setUser1Y_ID (int User1Y_ID);", "@Override\n\tpublic void setUserId(long userId);", "@Override\n\tpublic void setUserId(long userId);", "private void setUserId(long value) {\n \n userId_ = value;\n }", "public void setUserId(long value) {\n this.userId = value;\n }", "public void setModifiyUserId(Integer modifiyUserId) {\n this.modifiyUserId = modifiyUserId;\n }", "public void setUserTypeId(Integer userTypeId)\n {\n this.userTypeId = userTypeId;\n }", "public void setUserId(String value) {\r\n setAttributeInternal(USERID, value);\r\n }", "private void setUserId(long value) {\n\n userId_ = value;\n }", "public void setUserId(Integer userId) {\r\n this.userId = userId;\r\n }", "public void setUserId(Integer userId) {\r\n this.userId = userId;\r\n }", "@Override\n\tvoid setId(final UserId userId);", "void setUserId(Long userId);", "public void setUserId(Integer userId) {\n this.userId = userId;\n }", "public void setUserId(Integer userId) {\n this.userId = userId;\n }", "public void setUserId(Integer userId) {\n this.userId = userId;\n }", "public void setUserId(Integer userId) {\n this.userId = userId;\n }", "public void setUserId(Integer userId) {\n this.userId = userId;\n }", "public void setUserId(Integer userId) {\n this.userId = userId;\n }", "public void setUserId(Integer userId) {\n this.userId = userId;\n }", "public void setUserId(Integer userId) {\n this.userId = userId;\n }", "public void setUserId(Integer userId) {\n this.userId = userId;\n }", "public void setUserId(Integer userId) {\n this.userId = userId;\n }", "public void setUserId(Integer userId) {\n this.userId = userId;\n }", "public void setUserId(Integer userId) {\n this.userId = userId;\n }", "public void setUserId(Integer userId) {\n this.userId = userId;\n }", "public void setUserId(Integer userId) {\n this.userId = userId;\n }", "public void setUserId(Integer userId) {\n this.userId = userId;\n }", "public void setUserId(Integer userId) {\n this.userId = userId;\n }", "public void setUserId(Integer userId) {\n this.userId = userId;\n }", "public void setUserId(Integer userId) {\n this.userId = userId;\n }", "public void setUserId(Integer userId) {\n this.userId = userId;\n }", "public void setUserId(Integer userId) {\n this.userId = userId;\n }", "public void setUserId(Integer userId) {\n this.userId = userId;\n }", "public void setUserId(Integer userId) {\n this.userId = userId;\n }", "public void setUserId(Integer userId) {\n this.userId = userId;\n }", "public void setUserId(Integer userId) {\n this.userId = userId;\n }", "public void setUserId(Integer userId) {\n this.userId = userId;\n }", "public void setUserId(Integer userId) {\r\n\t\tthis.userId = userId;\r\n\t}", "public void setUserId(Integer userId) {\r\n\t\tthis.userId = userId;\r\n\t}", "public void setUserId(Integer userId) {\r\n\t\tthis.userId = userId;\r\n\t}", "public void setUserId( Integer userId ) {\n this.userId = userId;\n }", "public void setUserTypeId(final Integer userTypeId) {\n this.userTypeId = userTypeId;\n }", "public void setUserId(BigDecimal userId) {\r\n this.userId = userId;\r\n }", "@Override\n public void setUserId(long userId) {\n _usersCatastropheOrgs.setUserId(userId);\n }", "void setUserId(@UserIdInt int userId) {\n mUserId = userId;\n }", "public void setUser2_ID(int User2_ID) {\n\t\tif (User2_ID <= 0)\n\t\t\tset_Value(\"User2_ID\", null);\n\t\telse\n\t\t\tset_Value(\"User2_ID\", new Integer(User2_ID));\n\t}", "public void setUserId(Integer userId) {\n\t\tthis.userId = userId;\n\t}", "public void setUserId(int userId)\r\n\t{\r\n\t\tthis.userId = userId;\r\n\t}", "public void setUserId(int userId) {\n this.userId = userId;\n }", "public void setUserId(int userId) {\n this.userId = userId;\n }", "public void setUserId(int userId) {\n this.userId = userId;\n }", "public void setUserID(java.lang.String value) {\n this.userID = value;\n }", "@Override\n\tpublic Boolean setUserId(String openId, UserAccountType type, Long userId) {\n\t\tString key = CacheConstants.KEY_PRE_XLUSERID_BY_OPENID_TYPE + openId + \":\" + type.name();\n\t\treturn cache.set(key, userId, CacheConstants.EXPIRE_XLUSERID_BY_OPENID_TYPE) > 0;\n\t}", "@Override\n\tpublic void setUserId(long userId) {\n\t\t_paper.setUserId(userId);\n\t}", "private void setGoogleCitationUserId(int rowIndex, String userId) {\n\t\ttable.setString(rowIndex, USER_ID_COLUMN_NAME, userId);\n\t}", "public void setUserId(int userId) {\r\n\t\tthis.userId = userId;\r\n\t}", "@Override\n\tpublic void setUserId(long userId) {\n\t\t_changesetEntry.setUserId(userId);\n\t}", "public void setUserID(String userID) {\n this.userID = userID;\n }", "public Integer getUserid() {\n return userid;\n }", "public Integer getUserid() {\n return userid;\n }" ]
[ "0.64543194", "0.6345905", "0.6328577", "0.62971354", "0.62856126", "0.6227247", "0.6191758", "0.61642206", "0.607832", "0.60239893", "0.6016034", "0.6003531", "0.59197783", "0.5905488", "0.58655536", "0.58479846", "0.58479846", "0.5841694", "0.583592", "0.58155966", "0.5767483", "0.5767483", "0.5767483", "0.5767483", "0.5767259", "0.5767259", "0.5717702", "0.57025546", "0.57019776", "0.5699081", "0.5699081", "0.56945455", "0.5676343", "0.5664201", "0.56514037", "0.56472677", "0.56333625", "0.56224656", "0.56224656", "0.5616545", "0.56069416", "0.554562", "0.554562", "0.554562", "0.554562", "0.554562", "0.554562", "0.554562", "0.554562", "0.554562", "0.554562", "0.554562", "0.554562", "0.554562", "0.554562", "0.554562", "0.554562", "0.554562", "0.554562", "0.554562", "0.554562", "0.554562", "0.554562", "0.554562", "0.554562", "0.554562", "0.55454", "0.55454", "0.55454", "0.5543458", "0.5521007", "0.5513744", "0.5513391", "0.5513334", "0.5503834", "0.5494713", "0.5490271", "0.5485692", "0.5485692", "0.5485692", "0.5483594", "0.5458773", "0.54583704", "0.54572016", "0.5454359", "0.54497033", "0.5449083", "0.54332095", "0.54332095" ]
0.64397895
8
This method was generated by MyBatis Generator. This method returns the value of the database column user_praise_icon.vid
public Integer getVid() { return vid; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getVid() {\r\n return vid;\r\n }", "public String getViveId()\n\t{\n\t\treturn viveId;\n\t}", "public void setVid(int value) {\r\n this.vid = value;\r\n }", "public void setVid(Integer vid) {\n this.vid = vid;\n }", "SdkMobileVcode selectByPrimaryKey(Integer vid);", "public java.lang.String getVid() {\r\n return localVid;\r\n }", "public int getvID() {\n return vID;\n }", "public String getVpdiCode() {\n return vpdiCode;\n }", "int getVida()\n\t{\n\t\treturn vida;\n\t}", "public int getLiveIconVisibility() {\n return this.mLiveIconVisibility;\n }", "public void setPSIV( PrivateSpaceIconView psIcon) {\n\t\tLog.v(TAG, \"setPSIV\");\n\t\tthis.psiv=psIcon;\n\t}", "public String getVideourl() {\n return videourl;\n }", "@Nullable\n // Safe as we want to provide all getters being public for POJOs\n @SuppressWarnings({\"unused\", \"WeakerAccess\"})\n public final String getIconId() {\n return iconId;\n }", "public ImageIdentifier getInventoryPicture()\n\t {\n\t return inventoryPicture;\n\t }", "String getVideoId() {\r\n return videoId;\r\n }", "Videoinfo selectByPrimaryKey(Integer videoid);", "public String getVatId()\n {\n return vatId;\n }", "public IPV getPV(){\n return pvMap.get(IPVWidgetModel.PROP_PVNAME);\n }", "String getVideoId() {\n return videoId;\n }", "public java.lang.String getVideoUserUserTypeGuid() {\n return videoUserUserTypeGuid;\n }", "SysPic selectByPrimaryKey(Integer id);", "public IVA getIva() {\n return iva;\n }", "public static VollotileCode getVollotileCode(){\n\t\tif(code == null) initCode();\n\t\treturn code;\n\t}", "protected ImageView getImageView(){\n\t\treturn iv1;\n\t}", "public String idVRML(int col){\r\n return viewer.idVRML(col);\r\n }", "public java.lang.String getVideoUserGuid() {\n return videoUserGuid;\n }", "PicInfo selectByPrimaryKey(Integer r_p_i);", "public Image getCellVoltageTabContentAsImage() {\r\n\t\treturn this.cellVoltageTabItem.getContentAsImage();\r\n\t}", "public int getVideobitrate() {\n return videobitrate;\n }", "public int getIconId(){\n return mIconId;\n }", "@Override\r\n\tpublic VIPUser getVIPUser(String userid) {\n\t\ttry{\r\n\t\t\tString sql = \"select * from vipuser where id=?\";\r\n\t\t\tObject[] args = new Object[]{userid};\r\n\t\t\tVIPUser vu = (VIPUser)daoTemplate.find(sql, args, new VIPUserRowMapper());\r\n\t\t\treturn vu;\r\n\t\t}catch (Exception e){\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "EnterprisePicture selectByPrimaryKey(Integer id);", "public int getVaoID() {\n\t\treturn vaoID;\n\t}", "@Override\n\tpublic long getIconId() {\n\t\treturn _scienceApp.getIconId();\n\t}", "@DhtmlColumn(columnIndex = 4, headerName = \"图标\")\n\tpublic String getImagePath() {\n\t\treturn imagePath;\n\t}", "public java.util.Map<java.lang.CharSequence,java.lang.Object> getVoiDpreds() {\n return voiDpreds;\n }", "public void showimg()\n {\n try{\n String s1=VoterSignUpForm.id;\n System.out.println(s1);\n Class.forName(\"com.mysql.jdbc.Driver\");//.newInstance();\n Connection conn = DriverManager.getConnection(\"jdbc:mysql://localhost:3306/votingsystem\", \"root\", \"\" );\n Statement st=conn.createStatement();\n ResultSet rs=st.executeQuery(\"select image from voterimg where id='\"+s1+\"'\");\n byte[] bytes = null;\n if(rs.next()){\n //String name=rs.getString(\"name\");\n //text1.setText(name);\n //String address=rs.getString(\"address\");\n //text2.setText(address);\n // name.setText(rs.getString(\"name\"));\n bytes = rs.getBytes(\"image\");\n Image image = img.getToolkit().createImage(bytes);\n ImageIcon icon=new ImageIcon(image);\n img.setIcon(icon);\n }\n }catch(Exception e)\n {}\n }", "public IIcon method_2681() {\r\n return this.field_2146;\r\n }", "public int getIconImageNumber(){return iconImageNumber;}", "public String getViptype() {\n return viptype;\n }", "public void setvID(int vID) {\n this.vID = vID;\n }", "public java.util.Map<java.lang.CharSequence,java.lang.Object> getVoiDpreds() {\n return voiDpreds;\n }", "public DichVuBean getDV_iD(String iDDV) throws ClassNotFoundException, SQLException{\n\t\treturn dichVuDAO.getDV_iD(iDDV);\n\t}", "public java.lang.String getVideoUserDomainCode() {\n return videoUserDomainCode;\n }", "public String getVPath() {\n return vPath;\n }", "public String getGifticon() {\r\n return gifticon;\r\n }", "public IntColumn getPdbxDatabaseIdPubMed() {\n return delegate.getColumn(\"pdbx_database_id_PubMed\", DelegatingIntColumn::new);\n }", "public String vmImage() {\n return this.vmImage;\n }", "TVideo selectByPrimaryKey(String uid);", "public String getIvaFlag() {\n return (String) getAttributeInternal(IVAFLAG);\n }", "public Vediotape getVedio () {\n\t\treturn vedio;\n\t}", "public int getFlvValue() {\n return flvValue;\n }", "@Override\r\n\tpublic Image getColumnImage(Object element, int columnIndex) {\n\t\tif (columnIndex == 0) {\r\n\t\t\treturn ImageHelper.LoadImage(Activator.PLUGIN_ID, \"icons/state_red_hover.gif\");\r\n\t\t}else if (columnIndex == 1) {\r\n\t\t\treturn ImageHelper.LoadImage(Activator.PLUGIN_ID, \"icons/refreshtab.gif\");\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "public java.lang.Integer getVaccinId () {\n\t\treturn vaccinId;\n\t}", "public static IIcon method_2666() {\r\n return class_1192.field_6027.field_2131;\r\n }", "public String getStaticPicture();", "int getFlagImage() {\n return this.flagImage;\n }", "public String getImgId() {\n return imgId;\n }", "public String getXpeIcon() {\n return (String) getAttributeInternal(XPEICON);\n }", "public String getIsontv() {\r\n return isontv;\r\n }", "@Nullable\n public String getOldAvatarId()\n {\n return getOldValue();\n }", "public String getUserProfileImg() {\n return userProfileImg;\n }", "public java.lang.String getVideoUserDomainGuid() {\n return videoUserDomainGuid;\n }", "public Long getImgId() {\r\n return imgId;\r\n }", "public String getImageId() {\n return this.ImageId;\n }", "public String getUserIcon() {\n return userIcon;\n }", "public StrColumn getLabelAltIdV() {\n return (StrColumn) (isText ? textFields.computeIfAbsent(\"label_alt_id_v\", StrColumn::new) :\n getBinaryColumn(\"label_alt_id_v\"));\n }", "public Byte getVipLevel() {\n return vipLevel;\n }", "@Override\n\tpublic UscAdvertIncome getVideoAdvertiser(Integer id) throws Exception {\n\t\tUscAdvertIncome videoAdvertiser=uscAdvertIncomeMapper.getAdvertiserByPrimaryKey(id);\n\t\treturn videoAdvertiser;\n\t}", "@Override\r\n\tpublic int getImage() {\n\t\treturn Parametre.BALLE;\r\n\t}", "public String getCurrentUserPicture() {\n\t\treturn currentUser.getPicture();\n\t}", "java.lang.String getGameIconUrl();", "public String getLoggedPlayerAvatar() {\r\n return ctrlDomain.getLoggedPlayerAvatar();\r\n }", "public java.lang.String getVideoGuid() {\n return videoGuid;\n }", "public char getPermanentIcon() {\n\t\tif(!playerMapped)\r\n\t\t\treturn ' ';\r\n\t\treturn permanentIcon;\t//TODO: this the part that will need to change if the permanent icon isn't the right one to display.)\r\n\t}", "public Integer getIconImageResourceId() {\n return null;\n }", "public Integer getFavortieid() {\n return favortieid;\n }", "public List<Voto> getVotos(){\n\t\treturn em.createQuery(\"SELECT c from Voto c\", Voto.class).getResultList();\n\t}", "public boolean getVictory()\n\t{\n\t\treturn blnPlayerVictory;\n\t\t\n\t}", "public Viseme getCurrentViseme();", "public Vertice GetExtremoInicial(){\r\n return this.Vi;\r\n }", "public String getUserImg() {\r\n return userImg;\r\n }", "java.lang.String getIcon();", "java.lang.String getIcon();", "public char getIcon() {\n return this.icon;\n }", "@Override\n public Image getFlagImage() {\n Image image = AwsToolkitCore.getDefault().getImageRegistry().get(AwsToolkitCore.IMAGE_FLAG_PREFIX + id);\n if ( image == null ) {\n image = AwsToolkitCore.getDefault().getImageRegistry().get(AwsToolkitCore.IMAGE_AWS_ICON);\n }\n return image;\n }", "public String getArmorPicture() {\r\n\t\treturn super.getItemPicture();\r\n\t}", "public Cursor getLogoImagePath() {\n\n\t\ttry {\n\t\t\tString sql = \"SELECT LogoPath FROm Logos\";\n\n\t\t\tCursor mCur = mDb.rawQuery(sql, null);\n\t\t\treturn mCur;\n\n\t\t} catch (SQLException mSQLException) {\n\t\t\tLog.e(TAG, \"getTestData >>\" + mSQLException.toString());\n\t\t\tthrow mSQLException;\n\t\t}\n\t}", "public int getImageId(){\n \t\treturn imageId;\n \t}", "public String getVigencia() { return this.vigencia; }", "int getVbNum();", "String avatarImageSelected();", "public Integer getVenuesId() {\n return venuesId;\n }", "public byte[] getEmoticonStaticByte()\n {\n return emoticonStaticByte;\n }", "public String getSqPic() { return sqPic; }", "public String getEnableVideoPreviewImage() {\n return this.enableVideoPreviewImage;\n }", "public String getVolumeId() {\n return this.volumeId;\n }", "@Override\n\tpublic Integer getV() {\n\t\treturn this.v;\n\t}", "@Override\n public String getPicPhoto() {\n return pic_filekey;\n }", "public ImageView getId_image_item_shown() {\n return mHolder.id_image_item_shown;\n }" ]
[ "0.58853453", "0.53260696", "0.53231126", "0.5302682", "0.530157", "0.5251369", "0.52483356", "0.5114756", "0.5098665", "0.5017494", "0.50008065", "0.4980124", "0.49148622", "0.4886003", "0.48853824", "0.48823", "0.48450667", "0.48405597", "0.48104924", "0.48087147", "0.48016042", "0.47914135", "0.47880548", "0.4742806", "0.4735133", "0.4715938", "0.4715247", "0.47058752", "0.47041184", "0.4701361", "0.46845725", "0.46838897", "0.46710044", "0.46692124", "0.46677163", "0.4666537", "0.46644366", "0.46640944", "0.46533987", "0.46413684", "0.46371788", "0.46274197", "0.45868075", "0.4580651", "0.45785877", "0.45762974", "0.45685259", "0.45564127", "0.4550859", "0.4546157", "0.45233843", "0.45023394", "0.45008296", "0.44982666", "0.44942608", "0.44901577", "0.44849706", "0.44819418", "0.44794422", "0.44750553", "0.44692385", "0.4459914", "0.44589937", "0.4458358", "0.44543475", "0.44524395", "0.4452043", "0.4452029", "0.44406337", "0.44391048", "0.44375175", "0.4423451", "0.4421784", "0.44141918", "0.44128382", "0.4392928", "0.4388581", "0.43882862", "0.43825978", "0.437834", "0.437376", "0.43723914", "0.43704328", "0.43704328", "0.4364866", "0.43626204", "0.4362492", "0.43609655", "0.43579578", "0.4354858", "0.43543088", "0.4353913", "0.43530303", "0.43459013", "0.43377373", "0.4333122", "0.43312773", "0.43255806", "0.4325021", "0.43234077" ]
0.60628146
0
This method was generated by MyBatis Generator. This method sets the value of the database column user_praise_icon.vid
public void setVid(Integer vid) { this.vid = vid; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setPSIV( PrivateSpaceIconView psIcon) {\n\t\tLog.v(TAG, \"setPSIV\");\n\t\tthis.psiv=psIcon;\n\t}", "public void setVid(int value) {\r\n this.vid = value;\r\n }", "public void setIva(int iva) {\n\t\tproducto.setIva(iva);\n\t}", "public void setvID(int vID) {\n this.vID = vID;\n }", "public Integer getVid() {\n return vid;\n }", "public int getVid() {\r\n return vid;\r\n }", "public void setVid(java.lang.String param) {\r\n localVidTracker = param != null;\r\n\r\n this.localVid = param;\r\n }", "public static void setVolatileUrlDrawable(ImageView icon,\n\t\t\tAccountClient starvingTheFoxPlayer) {\n\t\t\n\t}", "public void setImage(String userId){\n\t\tImageIcon icon = new ImageIcon(\"image/\" + userId + \".png\");\n\t\ticon.setImage(icon.getImage().getScaledInstance(icon.getIconWidth(),\n\t\ticon.getIconHeight(), Image.SCALE_DEFAULT));\n\t\tplayerImage = icon.getImage();\n\t\tpaint(this.getGraphics());\n\t}", "public void setIconLiftRes(int resId) {\n\t\tif (View.VISIBLE == icon_lift.getVisibility()) {\n\t\t\ticon_lift.setImageResource(resId);\n\t\t}\n\t}", "public void setVidas (int vidas)\r\n\t{\r\n\t\tthis.vidas= vidas;\r\n\t}", "public void setVide() {\n\t\tvide = true;\n\t}", "@Override\n public boolean setViewValue(View view, Cursor cursor, int columnIndex) {\n iv = (ImageView)view;\n String uri = cursor.getString(columnIndex);\n iv.setImageURI(Uri.parse(uri));\n return true;\n\n }", "SdkMobileVcode selectByPrimaryKey(Integer vid);", "public void setUpFavouriteIcon() {\n if (isUserOwner()) {\n view.hideFavouriteIcon();\n } else if (currentAdvertIsFavourite()) {\n view.setIsAFavouriteIcon();\n } else {\n view.setIsNotAFavouriteIcon();\n }\n }", "void setVida(int vida)\n\t{\n\t\t// variable declarada anteriormente igual a la declarada en el set\n\t\tthis.vida = vida;\n\t}", "public void setFavoriteFlag(int flag, long videoID) {\n try {\n SQLiteDatabase database = this.getReadableDatabase();\n database.enableWriteAheadLogging();\n ContentValues contents = new ContentValues();\n contents.put(VideoTable.KEY_VIDEO_IS_FAVORITE, flag);\n database.update(VideoTable.VIDEO_TABLE, contents, VideoTable.KEY_VIDEO_ID + \"=?\", new String[]{\"\" + videoID});\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "private void setIva(IVA iva) throws IvaInvalidoException {\n if (iva == null) {\n throw new IvaInvalidoException(\"El IVA debe ser válido.\");\n }\n this.iva = iva;\n }", "public void setProfileImg() {\n }", "@Override\n public void videoStarted() {\n super.videoStarted();\n img_playback.setImageResource(R.drawable.ic_pause);\n if (isMuted) {\n muteVideo();\n img_vol.setImageResource(R.drawable.ic_mute);\n } else {\n unmuteVideo();\n img_vol.setImageResource(R.drawable.ic_unmute);\n }\n }", "private void changePlayPauseIcon(int which) {\n switch (which) {\n case 1://play\n mBinding.imageViewPlay.setImageResource(R.drawable.play_circle_icon);\n break;\n case 2://pause\n mBinding.imageViewPlay.setImageResource(R.drawable.pause_circle_icon);\n break;\n }\n }", "protected void setIcon(UiAction uiAction, ResultSet rs, int rowNumber) throws SQLException{\n\t\t\n\t\tString icon = rs.getString(UiActionTable.COLUMN_ICON);\n\t\t\n\t\tif(icon == null){\n\t\t\t//do nothing when nothing found in database\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tuiAction.setIcon(icon);\n\t}", "public void setVideourl(String videourl) {\n this.videourl = videourl;\n }", "void setVideoResourceId(@RawRes int resId);", "public void setStaticPicture(String path);", "@Override\n\tpublic void setIcon(int resId) {\n\t\t\n\t}", "public String getViveId()\n\t{\n\t\treturn viveId;\n\t}", "public void setIcon(Image i) {icon = i;}", "protected void setPic() {\n }", "public void showimg()\n {\n try{\n String s1=VoterSignUpForm.id;\n System.out.println(s1);\n Class.forName(\"com.mysql.jdbc.Driver\");//.newInstance();\n Connection conn = DriverManager.getConnection(\"jdbc:mysql://localhost:3306/votingsystem\", \"root\", \"\" );\n Statement st=conn.createStatement();\n ResultSet rs=st.executeQuery(\"select image from voterimg where id='\"+s1+\"'\");\n byte[] bytes = null;\n if(rs.next()){\n //String name=rs.getString(\"name\");\n //text1.setText(name);\n //String address=rs.getString(\"address\");\n //text2.setText(address);\n // name.setText(rs.getString(\"name\"));\n bytes = rs.getBytes(\"image\");\n Image image = img.getToolkit().createImage(bytes);\n ImageIcon icon=new ImageIcon(image);\n img.setIcon(icon);\n }\n }catch(Exception e)\n {}\n }", "public /* synthetic */ void mo38881a(int i) {\n this.f30743n0.setImageResource(i);\n }", "void setIVA(float iva);", "public int getvID() {\n return vID;\n }", "public static void setAttachedPicture( Model model, org.ontoware.rdf2go.model.node.Resource instanceResource, org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.set(model, instanceResource, ATTACHEDPICTURE, value);\r\n\t}", "public void setValue(int v){\n\t\tif (colorSliderArrow.getValue() != v){\r\n\t\t\tcolorSliderArrow.setValue(v);\t\t\t\r\n\t\t}\r\n\t}", "@Override\n\tpublic void setLogo(int resId) {\n\t\t\n\t}", "public void setVideobitrate(int videobitrate) {\n this.videobitrate = videobitrate;\n }", "public static void setAttachedPicture(Model model, org.ontoware.rdf2go.model.node.Resource instanceResource, DataObject value) {\r\n\t\tBase.set(model, instanceResource, ATTACHEDPICTURE, value);\r\n\t}", "public void setInventoryPicture(ImageIdentifier inventoryPicture)\n\t {\n\t this.inventoryPicture=inventoryPicture;\n\t }", "private void change_im_val(int boo, ImageView im_obj){\r\n if(boo == 200){ //IMAGEN SI EL VEHICULO ES CORRECTO\r\n im_obj.setImage(new Image(getClass().getResourceAsStream(\"/Images/img57a.png\")));\r\n }else{ //IMAGEN PARA LA BUSQUEDA DE UN VEHICULO\r\n im_obj.setImage(new Image(getClass().getResourceAsStream(\"/Images/img61a.png\")));\r\n }\r\n }", "public void setVolunteerImage(int id, File file) throws DALException, FileNotFoundException {\n facadeDAO.setVolunteerImage(id, file);\n }", "public void setM_PriceList_Version_ID (int M_PriceList_Version_ID);", "public void setViveId(String viveId)\n\t{\n\t\tthis.viveId = viveId;\n\t}", "private void setVideo(){\n /* if(detailsBean==null){\n showToast(\"没有获取到信息\");\n return;\n }\n UserManager.getInstance().setDetailsBean(detailsBean);\n upCallShowSetVideoData = new UpCallShowSetVideoData();\n upCallShowSetVideoData.smobile = Preferences.getString(Preferences.UserMobile,null);\n upCallShowSetVideoData.iringid = detailsBean.iringid;\n if (callShowSetVideoProtocol == null) {\n callShowSetVideoProtocol = new CallShowSetVideoProtocol(null, upCallShowSetVideoData, handler);\n callShowSetVideoProtocol.showWaitDialog();\n }\n callShowSetVideoProtocol.stratDownloadThread(null, ServiceUri.Spcl, upCallShowSetVideoData, handler,true);*/\n }", "private void setPhotoAttcher() {\n\n }", "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n if (resultCode == RESULT_OK) {\n Bundle extras = data.getExtras();\n Bitmap bmp = (Bitmap) extras.get(\"data\");\n iv.setImageBitmap(bmp);\n }\n super.onActivityResult(requestCode, resultCode, data);\n }", "public void setIncorrectAvatar(){\n\t\tavatar.setIcon(new ImageIcon(\"img/Incorrect.png\"));\n\t}", "@Override\n\tprotected void onResume() {\n\t\tsuper.onResume();\n\t\t//\n\t\tivPhoto.setImageURI(Uri.parse(sp.getUserImage()));\n\t\tif (!sp.getIsLogin()){\n\t\t\tnickName.setText(getString(R.string.tourist));\n\t\t}else {\n\t\t\tnickName.setText(sp.getUserName());\n\t\t}\n\n\t\t//}\n\t}", "public void setIdVozilo(long value) {\n this.idVozilo = value;\n }", "public void setThumbsUp(int v) {\n if (MetadataUGWD_Type.featOkTst && ((MetadataUGWD_Type)jcasType).casFeat_thumbsUp == null)\n jcasType.jcas.throwFeatMissing(\"thumbsUp\", \"de.aitools.ie.uima.type.argumentation.MetadataUGWD\");\n jcasType.ll_cas.ll_setIntValue(addr, ((MetadataUGWD_Type)jcasType).casFeatCode_thumbsUp, v);}", "public void bulleVerte() {\r\n\t\tIcon icon = null;\r\n\t\ticon = new ImageIcon(\"../_Images/Bouton/bulle_verte.png\");\r\n\t\tif (icon != null)\r\n\t\t\tbulleAide.setIcon(icon);\r\n\t}", "public void setIdVoteType( int idVoteType )\n {\n _nIdVoteType = idVoteType;\n }", "public void setTextureVertice(int i, Vertice uv) {\n\t\t(textureVertices.get(i)).set(uv);\n\t}", "public void setIconReightRes(int resId) {\n\t\tif (View.VISIBLE == icon_reight.getVisibility()) {\n\t\t\ticon_reight.setImageResource(resId);\n\t\t}\n\t}", "public static void setVidPid(int dwVID, int dwPID) throws FTD2XXException {\n if (Platform.isLinux() || Platform.isMac()) {\n LOGGER.info(\"Setting custom VID/PID to {}/{}.\", toHex4(dwVID), toHex4(dwPID));\n\n ensureFTStatus(ftd2xx.FT_SetVIDPID(dwVID, dwPID));\n }\n else {\n LOGGER.info(\"Ignoring request to set VID/PID. Windows not supported.\");\n }\n }", "private void setImage() {\n\t\t\n\t\tfor(int i=0; i<user.getIsVisited().length; i++) {\n\t\t\tif(user.getIsVisited()[i])\n\t\t\t\tspots[i].setBackgroundResource(R.drawable.num1_certified + i*2);\n\t\t\telse\n\t\t\t\tspots[i].setBackgroundResource(R.drawable.num1 + i*2);\n\t\t}\n\t}", "public void setXpeIcon(String value) {\n setAttributeInternal(XPEICON, value);\n }", "public void setThumbsDown(int v) {\n if (MetadataUGWD_Type.featOkTst && ((MetadataUGWD_Type)jcasType).casFeat_thumbsDown == null)\n jcasType.jcas.throwFeatMissing(\"thumbsDown\", \"de.aitools.ie.uima.type.argumentation.MetadataUGWD\");\n jcasType.ll_cas.ll_setIntValue(addr, ((MetadataUGWD_Type)jcasType).casFeatCode_thumbsDown, v);}", "int getVida()\n\t{\n\t\treturn vida;\n\t}", "void setImagePath(String path);", "int updateByPrimaryKeySelective(EnterprisePicture record);", "public void setIcon(int resId) {\n mIconId = resId;\n if (mIconView != null) {\n if (resId > 0) {\n mIconView.setImageResource(mIconId);\n } else if (resId == 0) {\n mIconView.setVisibility(View.GONE);\n }\n }\n }", "public static void setPetBitmapImage(int actual, Bitmap petImage) {\n user.getPets().get(actual).setProfileImage(petImage);\n }", "public java.lang.String getVid() {\r\n return localVid;\r\n }", "public void setVedio (Vediotape vedio) {\n\t\tthis.vedio = vedio;\n\t}", "public void setFilmImagePath(Film film, String newImagePath) {\n filmEdit.setFilmImagePath(film, newImagePath);\n }", "public void setVideoDevice(String id);", "public void setProvProcessId(Integer v){\n\t\ttry{\n\t\tsetProperty(SCHEMA_ELEMENT_NAME + \"/prov_process_id\",v);\n\t\t_ProvProcessId=null;\n\t\t} catch (Exception e1) {logger.error(e1);}\n\t}", "public void setVitesse(int vitesse){\n\t \tthis.vitesse=vitesse;\n\t }", "public void setVIP(boolean VIP);", "public int updateByPrimaryKeySelective(SysRoleMenu record) throws SQLException {\r\n int rows =\r\n sqlMapClient.update(\"SYS_ROLE_MENU.ibatorgenerated_updateByPrimaryKeySelective\", record);\r\n return rows;\r\n }", "boolean updateUserImagePath(User user);", "public void setLoggedPlayerAvatar(String path){\r\n ctrlDomain.setLoggedPlayerAvatar(path);\r\n }", "public int updateByPrimaryKeySelective(User record) {\r\n int rows = getSqlMapClientTemplate().update(\"spreader_tb_user.ibatorgenerated_updateByPrimaryKeySelective\", record);\r\n return rows;\r\n }", "public void setPrimaryKey(long primaryKey) {\n _courseImage.setPrimaryKey(primaryKey);\n }", "TVideo selectByPrimaryKey(String uid);", "public void setInviteUserId(Integer inviteUserId) {\n this.inviteUserId = inviteUserId;\n }", "String getVideoId() {\r\n return videoId;\r\n }", "@Override\r\n public void initializeUserImage() {\n userImageView = (ImageView)findViewById(R.id.user_profile_edit_imageView);\r\n userImageView.setOnClickListener(new View.OnClickListener() {\r\n @Override\r\n public void onClick(View v) {\r\n setImageSelection(\"USER\");\r\n }\r\n });\r\n if(userImageNewBitmap != null)\r\n {\r\n userImageView.setImageBitmap(userImageNewBitmap);\r\n return;\r\n }\r\n try\r\n {\r\n ImageCache.getInstance().setSessionUserImage(ImageCache.MSIZE, userImageView);\r\n }\r\n catch (Exception e)\r\n {\r\n Log.e(LOG_TAG,\"initializeUserImage failed\",e);\r\n Toast.makeText(WRProfileEditActivity.this, \"Unable to retrieve your image\", Toast.LENGTH_SHORT).show();\r\n }\r\n }", "public void setTurned(){\n\tIS_TURNED = true;\n\tvimage = turnedVimImage;\n }", "public void setVigencia(String vigencia) { this.vigencia = vigencia; }", "public void setPir(gov.nih.nlm.ncbi.www.SeqIdDocument.SeqId.Pir pir)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n gov.nih.nlm.ncbi.www.SeqIdDocument.SeqId.Pir target = null;\r\n target = (gov.nih.nlm.ncbi.www.SeqIdDocument.SeqId.Pir)get_store().find_element_user(PIR$12, 0);\r\n if (target == null)\r\n {\r\n target = (gov.nih.nlm.ncbi.www.SeqIdDocument.SeqId.Pir)get_store().add_element_user(PIR$12);\r\n }\r\n target.set(pir);\r\n }\r\n }", "public void setImageView() {\n \timage = new Image(\"/Model/boss3.png\", true);\n \tboss = new ImageView(image); \n }", "public void changeIcon(Icon icon) {\r\n this.iconId = icon.getId();\r\n }", "private void setPic() {\n int targetW = imageIV.getWidth();\n int targetH = imageIV.getHeight();\n\n // Get the dimensions of the bitmap\n BitmapFactory.Options bmOptions = new BitmapFactory.Options();\n bmOptions.inJustDecodeBounds = true;\n BitmapFactory.decodeFile(mCurrentPhotoPath, bmOptions);\n int photoW = bmOptions.outWidth;\n int photoH = bmOptions.outHeight;\n\n // Determine how much to scale down the image\n int scaleFactor = Math.min(photoW/targetW, photoH/targetH);\n\n // Decode the image file into a Bitmap sized to fill the View\n bmOptions.inJustDecodeBounds = false;\n bmOptions.inSampleSize = scaleFactor;\n bmOptions.inPurgeable = true;\n\n Bitmap bitmap = BitmapFactory.decodeFile(mCurrentPhotoPath, bmOptions);\n imageIV.setImageBitmap(bitmap);\n }", "@DISPID(6)\n\t// = 0x6. The runtime will prefer the VTID if present\n\t@VTID(14)\n\tvoid id(int pVal);", "public void setIcon(URL icon)\r\n {\r\n\tthis.icon = icon;\r\n }", "public void setViaPivKey( Long viaPivKey ) {\n this.viaPivKey = viaPivKey;\n }", "public void setCodigo_venda(int pCodigoVenda){\n this.codigoVenda = pCodigoVenda;\n }", "public void mo5965b(int i) {\n SharedPreferences.Editor edit = getSharedPreferences(\"setNightModeChangeVolumeValue\", 0).edit();\n edit.putInt(\"vol\", i);\n edit.apply();\n }", "int updateByPrimaryKeySelective(SysPic record);", "@Override\r\n\t\t\t\tpublic void onItemClick(AdapterView<?> parent, View v, int position,\r\n\t\t\t\t\t\tlong id) {\n\t\t\t\t\timgID=(int)imgadapter.getItemId(position);\r\n\t\t\t\t\timgv.setImageResource(imgID);\r\n\t\t\t\t\t//imgv.setId(imgID);\r\n\t\t\t\t}", "public void setPlayImage(java.lang.String param) {\n localPlayImageTracker = true;\n\n this.localPlayImage = param;\n }", "public void setImageResource(String resPath) {\n \t\timageResource = resPath;\n \t\tif (resPath.contains(\"_holo\") || resPath.contains(\"_alt\")) {\n \t\t\tsetAlternateArt(true);\n \t\t}\n \t\t// setName(id);\n \t}", "@Generated\n @Selector(\"setImage:\")\n public native void setImage(@Nullable UIImage value);", "public void setIvaFlag(String value) {\n setAttributeInternal(IVAFLAG, value);\n }", "@PreUpdate\n @CanSetDownloadIdentifier\n public void onBeforeUpdate() {\n Video video2 = this.video;\n if (video2 != null && video2.getDownloadId() == null) {\n this.video.setDownloadId(this.key);\n }\n }", "@Override\n\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\tfinal ImageView imgvw = (ImageView) v;\n\t\t\t\t\t\tif (imgvw.getTag(R.string.PlayPauseKey).equals(\n\t\t\t\t\t\t\t\t\"Stopped\")) {\n\t\t\t\t\t\t\timgvw.setTag(R.string.PlayPauseKey, \"Playing\");\n\t\t\t\t\t\t\timgvw.setImageResource(View.INVISIBLE);\n\t\t\t\t\t\t\t((VideoView) imgvw.getTag(R.string.PlayPauseVideo))\n\t\t\t\t\t\t\t\t\t.start();\n\t\t\t\t\t\t} else if (imgvw.getTag(R.string.PlayPauseKey).equals(\n\t\t\t\t\t\t\t\t\"Playing\")) {\n\t\t\t\t\t\t\timgvw.setTag(R.string.PlayPauseKey, \"Stopped\");\n\t\t\t\t\t\t\timgvw.setImageResource(R.drawable.ic_menu_play_clip);\n\t\t\t\t\t\t\t// seekRun.player.pause();\n\t\t\t\t\t\t\t((VideoView) imgvw.getTag(R.string.PlayPauseVideo))\n\t\t\t\t\t\t\t\t\t.pause();\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t((VideoView) imgvw.getTag(R.string.PlayPauseVideo))\n\t\t\t\t\t\t\t\t.setOnCompletionListener(new OnCompletionListener() {\n\n\t\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\t\tpublic void onCompletion(MediaPlayer mp) {\n\t\t\t\t\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\t\t\t\t\timgvw.setImageResource(R.drawable.ic_menu_play_clip);\n\t\t\t\t\t\t\t\t\t\timgvw.setTag(R.string.PlayPauseKey,\n\t\t\t\t\t\t\t\t\t\t\t\t\"Stopped\");\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t});\n\n\t\t\t\t\t}", "public void setV(long value) {\n this.v = value;\n }", "private void setImageDynamic(){\n questionsClass.setQuestions(currentQuestionIndex);\n String movieName = questionsClass.getPhotoName();\n ImageView ReferenceToMovieImage = findViewById(R.id.Movie);\n int imageResource = getResources().getIdentifier(movieName, null, getPackageName());\n Drawable img = getResources().getDrawable(imageResource);\n ReferenceToMovieImage.setImageDrawable(img);\n }" ]
[ "0.5962582", "0.5951974", "0.5320209", "0.5255683", "0.5179518", "0.5134174", "0.5081244", "0.50612384", "0.50182885", "0.49844417", "0.49714467", "0.49220443", "0.49078652", "0.48863", "0.48360217", "0.48310244", "0.4803673", "0.4772757", "0.47582734", "0.4748465", "0.47422928", "0.47037464", "0.47011662", "0.4660221", "0.46249261", "0.46217272", "0.46108648", "0.46056235", "0.4574411", "0.4547187", "0.45340216", "0.45282918", "0.451711", "0.45125917", "0.45007107", "0.44989195", "0.44897327", "0.44850615", "0.44824985", "0.44788253", "0.44675305", "0.44581458", "0.44577312", "0.4456868", "0.44496316", "0.4440746", "0.44404238", "0.44372404", "0.4435498", "0.4417329", "0.44087276", "0.44081917", "0.4392718", "0.43918955", "0.43910813", "0.4386653", "0.4377874", "0.4377305", "0.43722948", "0.43689147", "0.43665504", "0.43650967", "0.43563333", "0.43488", "0.4346761", "0.43431395", "0.4341986", "0.43415856", "0.43247366", "0.43225423", "0.43134397", "0.43089405", "0.43067026", "0.42921913", "0.42898554", "0.42881787", "0.42869988", "0.42856634", "0.42842275", "0.42823744", "0.42806", "0.42802906", "0.42797694", "0.42778045", "0.42758754", "0.4273579", "0.42718616", "0.4269233", "0.4266796", "0.42622593", "0.4251391", "0.4251039", "0.42484644", "0.42363864", "0.42355415", "0.42350656", "0.42331418", "0.42329568", "0.4226202", "0.42221704" ]
0.58740187
2
TODO: Try catch de conversao de string para numero
public void ler(String[] lineData) { this.setRoomId(Integer.parseInt(lineData[0])); this.setHostId(Integer.parseInt(lineData[1])); this.setRoomType(lineData[2]); this.setCountry(lineData[3]); this.setCity(lineData[4]); this.setNeighbourhood(lineData[5]); this.setReviews(Integer.parseInt(lineData[6])); this.setOverallSatisfaction(Double.parseDouble(lineData[7])); this.setAccommodates(Integer.parseInt(lineData[8])); this.setBedrooms(Double.parseDouble(lineData[9])); this.setPrice(Double.parseDouble(lineData[10])); this.setPropertyType(lineData[11]); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getNumber();", "java.lang.String getNumber();", "java.lang.String getNumber();", "private int getNumero() {\n\t\treturn numero;\n\t}", "public int numero(String p) {\n\n String palabra = p.trim().toLowerCase();\n int numero = 0;\n palabra = palabra.replaceAll(\"(.)\\1\", \"$1\");\n\n \n if (palabra.equals(\"uno\")) numero = 1;\n if (palabra.equals(\"dos\")) numero = 1;\n if (palabra.equals(\"tres\"))numero = 1;\n if (palabra.equals(\"cuatro\")) numero = 1;\n if (palabra.equals(\"cinco\")) numero = 1;\n if (palabra.equals(\"seis\")) numero = 1;\n if (palabra.equals(\"siete\")) numero = 1;\n if (palabra.equals(\"ocho\")) numero = 1;\n if (palabra.equals(\"nueve\")) numero =9 ;\n \n\n return numero ;\n }", "public String getNumber() throws Exception;", "public void leerNumero() {\r\n\t\tdo {\r\n\t\t\tnumeroDNI=Integer.parseInt(JOptionPane.showInputDialog(\"Numero de DNI: \"));\r\n\t\t\tSystem.out.println(\"Numero de 8 digitos...\");\r\n\t\t}while(numeroDNI<9999999||numeroDNI>99999999);\r\n\t\tletra=hallarLetra();\r\n\t}", "public static int sLlegirNumero(String Text){\r\n Scanner sc = new Scanner(System.in);\r\n \r\n int iNumero;\r\n \r\n System.out.print(Text);\r\n iNumero = sc.nextInt();\r\n \r\n return iNumero;\r\n }", "java.lang.String getNum2();", "public int getNumero()\r\n/* 190: */ {\r\n/* 191:202 */ return this.numero;\r\n/* 192: */ }", "private static String toNumber(String in) {\n in = in.toLowerCase();\n for (int i = 0; i < MONTHS.length; i++)\n if (MONTHS[i].equals(in))\n return Integer.toString(i + 1);\n for (int i = 0; i < DAYS.length; i++)\n if (DAYS[i].equals(in))\n return Integer.toString(i);\n try {\n Integer.parseInt(in);\n } catch (NumberFormatException e) {\n throw new IllegalArgumentException(\"'\" + in + \"' is not a number!\");\n }\n return in;\n }", "public static void generator(String nro){\n Integer.parseInt(nro);\r\n }", "public int numerico(String n){\n if(n.equals(\"Limpieza\")){\r\n tipon=1;\r\n }\r\n if(n.equals(\"Electrico\")){\r\n tipon=2;\r\n } \r\n if(n.equals(\"Mecanico\")){\r\n tipon=3;\r\n } \r\n if(n.equals(\"Plomeria\")){\r\n tipon=4;\r\n } \r\n if(n.equals(\"Refrigeracion\")){\r\n tipon=5;\r\n }\r\n if(n.equals(\"Carpinteria\")){\r\n tipon=6;\r\n }\r\n if(n.equals(\"Area Verde\")){\r\n tipon=7;\r\n } \r\n if(n.equals(\"Preventivo\")){\r\n tipon=8;\r\n } \r\n if(n.equals(\"Pintura\")){\r\n tipon=9;\r\n } \r\n if(n.equals(\"TI\")){\r\n tipon=10;\r\n }\r\n return tipon; \r\n }", "int generarNumeroNota();", "abstract String convertEnglishNumber(String number);", "java.lang.String getNum1();", "private boolean esNumero(String cadena) {\n try {\n Integer.parseInt(cadena);\n return true;\n } catch (NumberFormatException nfe) {\n return false;\n }\n }", "public void ingresarNumero() {\n do {\r\n System.out.print(\"\\nIngrese un numero entre 0 y 100000: \");\r\n numero = teclado.nextInt();\r\n if (numero < 0 || numero > 100000){\r\n System.out.println(\"Error, rango invalido. Intentelo de nuevo.\");\r\n }\r\n } while(numero < 0 || numero > 100000);\r\n contarDigitos(numero); //el numero ingresado se manda como parametro al metodo\r\n menu();\r\n }", "private String readNumber() {\n StringBuilder sb = new StringBuilder();\n char currentChar = code.charAt(currentIndex);\n while (!isEndOfCode() && Character.isDigit(currentChar)) {\n sb.append(currentChar);\n currentIndex++;\n if (isEndOfCode()) break;\n currentChar = code.charAt(currentIndex);\n }\n return sb.toString();\n }", "public String validateNumberString() {\n String tempNumber = numberString;\n int start = 0;\n Pattern pattern = Pattern.compile(\"\\\\D+\");\n Matcher matcher = pattern.matcher(tempNumber);\n if (isZero()) {\n return \"0\";\n }\n if (isNegative()) {\n start++;\n }\n if (matcher.find(start)) {\n throw new IllegalArgumentException(\"Wrong number: \" + tempNumber);\n }\n pattern = Pattern.compile(\"([1-9][0-9]*)\");\n matcher.usePattern(pattern);\n if (!matcher.find(0)) {\n throw new IllegalArgumentException(\"Wrong number: \" + tempNumber);\n }\n return tempNumber.substring(matcher.start(), matcher.end());\n }", "private static void obterNumeroLugar(String nome) {\n\t\tint numero = gestor.obterNumeroLugar(nome);\n\t\tif (numero > 0)\n\t\t\tSystem.out.println(\"O FUNCIONARIO \" + nome + \" tem LUGAR no. \" + numero);\n\t\telse\n\t\t\tSystem.out.println(\"NAO EXISTE LUGAR de estacionamento atribuido a \" + nome);\n\t}", "public void setNumero(int numero) { this.numero = numero; }", "private int aleatorizarNumero() {\n\t\tint aux;\n\t\taux = r.getIntRand(13) + 1;\n\t\treturn aux;\n\t}", "java.lang.String getNumb();", "private static int invertirNumero(int num) {\n\t\tint cifra, inverso = 0;\n\t\twhile (num > 0) {\n\t\t\tcifra = num % 10;\n\t\t\tinverso = cifra + inverso * 10;\n\t\t\tnum /= 10;\n\t\t}\n\t\treturn inverso;\n\t}", "private static String findNumber() {\n\t\treturn null;\r\n\t}", "public String getPremierNumeroLibre() {\n\t\tString requete_s = \"SELECT id from LIVRES\";\n\t\tint i = 0;\n\t\tboolean egalite = true;\n\t\t\n\t\ttry{\n\t\t\trequete.execute(requete_s);\n\t\t\t\n\t\t\tResultSet rs = requete.getResultSet();\n\t\t\t\n\t\t\tdo{\n\t\t\t\ti++;\n\t\t\t\trs.next();\n\t\t\t\tegalite = (i ==((Integer) rs.getObject(1)));\n\t\t\t}while(egalite);\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tString s = \"\" + i;\n\t\t\n\t\treturn s;\n\t}", "private double tranferStringToNum(String num){\r\n double number = 0;\r\n try{\r\n\tnumber = Double.parseDouble(num);\r\n }catch(Exception ex){\r\n\tnumber = 0;\r\n }\r\n return number;\r\n }", "public int getNumero() {\n return numero;\n }", "public Imprimir_ConvertirNumerosaLetras(String numero) throws NumberFormatException {\r\n\t\t// Validamos que sea un numero legal\r\n\t\tif (Integer.parseInt(numero) > 999999999)\r\n\t\t\tthrow new NumberFormatException(\"El numero es mayor de 999'999.999, \" +\r\n\t\t\t\t\t\"no es posible convertirlo\");\r\n\t\t\r\n\t\t//Descompone el trio de millones - ¡SGT!\r\n\t\tint k = Integer.parseInt(String.valueOf(Dataposi(numero,8)) + String.valueOf(Dataposi(numero,7)) + String.valueOf(Dataposi(numero,6)));\r\n\t\tif(k == 1)\r\n\t\t\tenLetras = \"UN MILLON \";\r\n\t\tif(k > 1)\r\n\t\t\tenLetras = Interpretar(String.valueOf(k)) + \"MILLONES \";\r\n\r\n\t\t//Descompone el trio de miles - ¡SGT!\r\n\t\tint l = Integer.parseInt(String.valueOf(Dataposi(numero,5)) + String.valueOf(Dataposi(numero,4)) + String.valueOf(Dataposi(numero,3)));\r\n\t\tif(l == 1)\r\n\t\t\tenLetras += \"MIL \";\r\n\t\tif(l > 1)\r\n\t\t\tenLetras += Interpretar(String.valueOf(l))+\"MIL \";\r\n\r\n\t\t//Descompone el ultimo trio de unidades - ¡SGT!\r\n\t\tint j = Integer.parseInt(String.valueOf(Dataposi(numero,2)) + String.valueOf(Dataposi(numero,1)) + String.valueOf(Dataposi(numero,0)));\r\n\t\tif(j == 1)\r\n\t\t\tenLetras += \"UN\";\r\n\t\t\r\n\t\tif(k + l + j == 0)\r\n\t\t\tenLetras += \"CERO\";\r\n\t\tif(j > 1)\r\n\t\t\tenLetras += Interpretar(String.valueOf(j));\r\n\t\t\r\n\t\tenLetras += \"PESOS\";\r\n\r\n\t}", "public int getNumero() {\n\t\treturn numero;\n\t}", "public int getNumero() {\n\t\treturn numero;\n\t}", "public int getNumero() {\n\t\treturn numero;\n\t}", "public void handleNumbers() {\n // TODO handle \"one\", \"two\", \"three\", etc.\n }", "static int stringToNumber(String value)throws IllegalArgumentException{\r\n\t\tif (!isNumber(value))\r\n\t\t\tthrow new IllegalArgumentException(\"This is not a number!\");\r\n\t\tint number = 0;\r\n\t\tfor (int i = 0; i < value.length(); i++)\r\n\t\t\tnumber += (value.charAt(i)-48)* Math.pow(10, value.length()-1-i);\r\n\t\treturn number;\r\n\t}", "private int digitOf(Stack<String> number)\n {\n\tif(number.isEmpty()) return 0;\n\treturn Integer.parseInt(number.pop());\n }", "private void createNumber() {\n\t\tString value = \"\";\n\t\tvalue += data[currentIndex++];\n\t\t// minus is no longer allowed\n\t\twhile (currentIndex < data.length\n\t\t\t\t&& Character.isDigit(data[currentIndex])) {\n\t\t\tvalue += data[currentIndex++];\n\t\t}\n\n\t\tif (currentIndex + 1 < data.length && (data[currentIndex] == '.'\n\t\t\t\t&& Character.isDigit(data[currentIndex + 1]))) {\n\t\t\tvalue += data[currentIndex++]; // add .\n\t\t} else {\n\t\t\ttoken = new Token(TokenType.NUMBER, Integer.parseInt(value));\n\t\t\treturn;\n\t\t}\n\t\t// get decimals of number\n\t\twhile (currentIndex < data.length\n\t\t\t\t&& Character.isDigit(data[currentIndex])) {\n\t\t\tvalue += data[currentIndex++];\n\t\t}\n\t\ttoken = new Token(TokenType.NUMBER, Double.parseDouble(value));\n\t}", "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 int getNumero() { return this.numero; }", "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 }", "private int getNumberFromString(String text){\n\t\t\n\t\tint result = 0;\n\t\t\n\t\tfor(int i=text.length() - 1, j=0; i >= 0 ; i--, j++){\n\t\t\t\n\t\t\tresult += (Character.getNumericValue(text.charAt(i))) * Math.pow(10, j);\n\t\t}\n\t\t\n\t\treturn result;\n\t}", "public int getNumber(String s) {\n String snum = s.substring(1,s.length()-1);\n return Integer.parseInt(snum);\n }", "private String parseNumber () {\r\n \r\n assert iMessage!=null;\r\n assert iIndex>=0;\r\n assert iIndex<=iMessage.length();\r\n \r\n fBuffer.delete(0, fBuffer.length());//empty string buffer\r\n \r\n char chr=next();//get next character\r\n assert \"-0123456789\".indexOf(chr)>=0;//assert valid start character\r\n while (\"0123456789.Ee+-\".indexOf(chr)>=0) {//until non number character\r\n fBuffer.append(chr);//append to string buffer\r\n chr=next();//get next character\r\n if (chr==NONE) throw new RuntimeException(\"Invalid syntax : \"+context());//gee, thanks...\r\n }//until non number character\r\n \r\n if (\"]},\".indexOf(chr)<0) throw new RuntimeException(\"Invalid syntax : \"+context());//no way jose\r\n\r\n back(); //rewind to the terminator character\r\n \r\n return fBuffer.toString();//return string in buffer\r\n \r\n }", "protected JSONNumber(String str) {\n\t\ttype = JSONConstants.VT_NUMBER;\n\t\tthis.numberStr = str;\n\t\tthis.numberBytes = str.getBytes();\n\t}", "private String Interpretar(String num) {\r\n\t\tif(num.length() > 3)\r\n\t\t\treturn \"\";\r\n\t\tString salida=\"\";\r\n\t\t\r\n\t\tif(Dataposi(num,2) != 0)\r\n\t\t\tsalida = Centenas[Dataposi(num,2)-1];\r\n\t\t\r\n\t\tint k = Integer.parseInt(String.valueOf(Dataposi(num,1))+String.valueOf(Dataposi(num,0)));\r\n\r\n\t\tif(k <= 20)\r\n\t\t\tsalida += Numero[k];\r\n\t\telse {\r\n\t\t\tif(k > 30 && Dataposi(num,0) != 0)\r\n\t\t\t\tsalida += Decenas[Dataposi(num,1)-2] + \"Y \" + Numero[Dataposi(num,0)];\r\n\t\t\telse\r\n\t\t\t\tsalida += Decenas[Dataposi(num,1)-2] + Numero[Dataposi(num,0)];\r\n\t\t}\r\n\t\t//Caso especial con el 100\r\n\t\tif(Dataposi(num,2) == 1 && k == 0)\r\n\t\t\tsalida=\"CIEN\";\r\n\t\t\r\n\t\treturn salida;\r\n\t}", "public void setNumero(int numero) {\n this.dado1 = numero;\n }", "private static String wordToNumber(String word) {\n final StringBuilder number = new StringBuilder(word.length());\n for (int i = 0; i < word.length(); i++) {\n number.append(getNumber(word.charAt(i)));\n }\n return number.toString();\n }", "protected java.lang.String readNum() throws java.io.IOException {\n char c = readCharWord();\n java.lang.StringBuilder result = new java.lang.StringBuilder();\n if (c!='-' && !java.lang.Character.isDigit(c))\n throw error();\n do {\n result.append(c);\n c = next();\n } while (java.lang.Character.isDigit(c));\n return result.toString();\n }", "public int getNumber(String comm){\n try{\n return comando.get(comm);\n } catch(Exception e){\n return -1;\n }\n }", "private boolean validar_numero(String numero) {\n boolean es_valido;\n es_valido = numero.charAt(0) != '0';\n return es_valido;\n }", "private void nextNumber() {\n\t\tint old=pos;\n\t\tmany(digits);\n\t\ttoken=new Token(\"num\",program.substring(old,pos));\n }", "@Override\n\tpublic void teclaNumericaDigitada(String numTecla) {\n\t\t\n\t}", "static int strToNum(String str)\r\n\t{\r\n\t\tif (str.equals(\"Mutex\"))\r\n\t\t\treturn MUTEX;\r\n\t\telse if (str.equals(\"Semaphore\"))\r\n\t\t\treturn SEMAPHORE;\r\n\t\telse if (str.equals(\"Signal\"))\r\n\t\t\treturn SIGNAL;\r\n\t\telse\r\n\t\t\treturn 0;\r\n\t}", "public void setNumero(int numero) {\n\t\tthis.numero = numero;\n\t}", "public void setNumero(int numero) {\n\t\tthis.numero = numero;\n\t}", "public void setNumeroId(String NumeroId) {\r\n this.NumeroId = NumeroId;\r\n }", "private int getNumber(String taskInfo) throws EditNoIndexException {\n try {\n int numberNextSlash = taskInfo.indexOf(\"/\");\n int number = Integer.parseInt(taskInfo.substring(0, (numberNextSlash - 2)));\n return number;\n } catch (StringIndexOutOfBoundsException | NumberFormatException e) {\n throw new EditNoIndexException();\n }\n }", "public String getNumber(){return number;}", "@Test\n public void testTakeNumberFromString224() { // FlairImage: 224\n assertEquals(\"From: FlairImage line: 225\", 123, takeNumberFromString(\"123\")); \n assertEquals(\"From: FlairImage line: 226\", 0, takeNumberFromString(\"123a\")); \n assertEquals(\"From: FlairImage line: 227\", -123, takeNumberFromString(\"-123\")); \n assertEquals(\"From: FlairImage line: 228\", 0, takeNumberFromString(\"--123\")); \n assertEquals(\"From: FlairImage line: 229\", 0, takeNumberFromString(\"pz4\")); \n }", "static int getNumberFromString(String s) {\n if (s == null) {\n throw new NumberFormatException(\"null\");\n }\n int result = 0;\n int startIndex = 0;\n int length = s.length();\n boolean negative = false;\n char firstChar = s.charAt(0);\n if (firstChar == '-') {\n negative = true;\n startIndex = 1;\n }\n\n for (int i = startIndex; i < length; i++) {\n char num = s.charAt(i);\n result = result * 10 + num - '0';\n }\n\n return negative ? -result : result;\n }", "public java.lang.String getNumber() {\n java.lang.Object ref = number_;\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 number_ = s;\n }\n return s;\n }\n }", "public int lecturaNumero()\n {\n boolean error = false; \n int numero = 0;\n System.out.print(\">\");\n try {\n numero = lectura.nextInt();\n\n } catch (InputMismatchException ime){\n error = true; \n lectura.next();\n }\n if (!error){\n return numero; \n }else{\n return -1;\n }\n }", "public String getNumber(){\r\n return number;\r\n }", "public String getDv43(String numero) {\r\n \r\n int total = 0;\r\n int fator = 2;\r\n \r\n int numeros, temp;\r\n \r\n for (int i = numero.length(); i > 0; i--) {\r\n \r\n numeros = Integer.parseInt( numero.substring(i-1,i) );\r\n \r\n temp = numeros * fator;\r\n if (temp > 9) temp=temp-9; // Regra do banco NossaCaixa\r\n \r\n total += temp;\r\n \r\n // valores assumidos: 212121...\r\n fator = (fator % 2) + 1;\r\n }\r\n \r\n int resto = total % 10;\r\n \r\n if (resto > 0)\r\n resto = 10 - resto;\r\n \r\n return String.valueOf( resto );\r\n \r\n }", "public String getNumber() \n\t{\n\t\treturn this.number;\n\t}", "public static String posLettersToNumber(String pos)\n\t{\n\t\tassert pos != null && !pos.isEmpty() : \"Error in WordNetUtilities.posLettersToNumber(): empty string\";\n\t\tif (pos.equalsIgnoreCase(\"NN\"))\n\t\t\treturn \"1\";\n\t\tif (pos.equalsIgnoreCase(\"VB\"))\n\t\t\treturn \"2\";\n\t\tif (pos.equalsIgnoreCase(\"JJ\"))\n\t\t\treturn \"3\";\n\t\tif (pos.equalsIgnoreCase(\"RB\"))\n\t\t\treturn \"4\";\n\t\tassert false : \"Error in WordNetUtilities.posLettersToNumber(): bad letters: \" + pos;\n\t\treturn \"1\";\n\t}", "public String getNum() {\r\n return num;\r\n }", "public static Integer m5897a(JSONObject jSONObject, String str, Integer num) {\n try {\n jSONObject = (!jSONObject.has(str) || jSONObject.isNull(str)) ? null : Integer.valueOf(jSONObject.getInt(str));\n return jSONObject;\n } catch (JSONObject jSONObject2) {\n jSONObject2.printStackTrace();\n return num;\n }\n }", "private int queryNumberChar() throws IOException {\n\t\tbrin.mark(2);\n\t\treturn brin.read();\n\t}", "private static int eatNumber (String s, int pos[]) {\r\n int sign = 1;\r\n int result = 0;\r\n int i = 0;\r\n if (s.charAt(pos[0])=='-') {\r\n pos[0]++;\r\n sign = -1;\r\n }\r\n for (; pos[0]<s.length(); i++) {\r\n char c=s.charAt(pos[0]);\r\n if (! Character.isDigit(c)) {\r\n break;\r\n }\r\n result = 10*result + (c-'0');\r\n pos[0]++;\r\n if (i==0 && result==0) return 0;\r\n }\r\n if (i==0) throw new RuntimeException();\r\n return result*sign;\r\n }", "public void printNo(String numar)\r\n {\r\n //toate verificarile posibile pentru a afisa ce trebuie\r\n //mi-e lene sa scriu la fiecare in parte, daca vrei ti le explic la telefon\r\n if(Character.getNumericValue(numar.charAt(0)) ==0 && Character.getNumericValue(numar.charAt(1)) == 0){\r\n System.out.print(v[Character.getNumericValue(numar.charAt(2))] + \" \");\r\n }\r\n else{\r\n if(Character.getNumericValue(numar.charAt(0)) > 0){\r\n System.out.print(v[Character.getNumericValue(numar.charAt(0))] + \" hundread \");\r\n }\r\n if(Character.getNumericValue(numar.charAt(1)) == 1){\r\n System.out.print(v1[Character.getNumericValue(numar.charAt(2))] + \" \");\r\n }\r\n else if (Character.getNumericValue(numar.charAt(1)) > 1 && Character.getNumericValue(numar.charAt(2)) > 0){\r\n System.out.print(v2[Character.getNumericValue(numar.charAt(1)) - 2] + v[Character.getNumericValue(numar.charAt(2))] + \" \");\r\n }\r\n else if(Character.getNumericValue(numar.charAt(2)) == 0 && Character.getNumericValue(numar.charAt(1)) > 1){\r\n System.out.print(v2[Character.getNumericValue(numar.charAt(1)) - 2] + \" \");\r\n }\r\n if(Character.getNumericValue(numar.charAt(1)) == 0 && Character.getNumericValue(numar.charAt(2)) > 0){\r\n System.out.print(v[Character.getNumericValue(numar.charAt(2))] + \" \");\r\n }\r\n }\r\n }", "private int getNumberBase(String n1){\n return Integer.parseUnsignedInt(n1, base);\n }", "public static boolean verificarNumeros(String numero) {\n\t\ttry{\n\t\t\tInteger.parseInt(numero);\n\t\t\treturn true;\n\t\t}catch(Exception e){\n\t\t\treturn false;\n\t\t}\n\t}", "public String getNumber() {\r\n\t\treturn number;\r\n\t}", "public String getNumberString() {\n return numberString;\n }", "public static int getNumber(){\r\n\t\tint number=0;\r\n\t\twhile(true){\r\n\t\t\tString value = \"\" + input.next().charAt(0);\r\n\t\t\tif(Character.isDigit(value.charAt(0))){\r\n\t\t\tnumber = Integer.parseInt(value);\r\n\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\tSystem.out.println(\"Incorrect input! try again.\");\r\n\t\t}\r\n\t\treturn number;\r\n\t}", "private static int extractInt(String str) {\n\n String num = \"\";\n for (int i = 0; i < str.length(); i++) {\n if (java.lang.Character.isDigit(str.charAt(i))) num += str.charAt(i);\n }\n return (num.equals(\"\")) ? 0 : java.lang.Integer.parseInt(num);\n\n }", "public void setNumber(String number) {\n this.number = number;\n }", "java.lang.String getN();", "public static numero formatNumber(String input)\n {\n //checking zero\n boolean isZero = true;\n for(int i = 0; i < input.length(); i++)\n if(baseOP.isDigit(input.charAt(i)) && input.charAt(i) != '0') isZero = false;\n if (isZero) return getZero();\n\n //numero number;\n int size = 0;\n char[] digits;\n char s;\n int num_postcomma = 0;\n\n //checking sign\n if (input.charAt(0) == '-') s = '-';\n else s = '+';\n\n //counting number of digits\n boolean firstNonZero = false;\n int firstdigit = 0;\n for (int i = 0; i < input.length(); i++)\n {\n if (input.charAt(i) == '.') break;\n if (baseOP.isDigit(input.charAt(i)) && !firstNonZero && input.charAt(i) != '0')\n {\n firstNonZero = true;\n firstdigit = i;\n }\n if (baseOP.isDigit(input.charAt(i)) && firstNonZero) size++;\n }\n\n if(input.indexOf('.') != -1)\n for(int i = input.indexOf('.'); i < input.length(); i++)\n if(baseOP.isDigit(input.charAt(i))) num_postcomma++;\n\n // creation of arrays\n size = size + num_postcomma;\n digits = new char[size];\n\n int index = 0;\n\n if (size == num_postcomma)\n firstdigit = input.indexOf('.')+1;\n\n for (int i = firstdigit; i < input.length(); i++)\n {\n if (baseOP.isDigit(input.charAt(i)))\n {\n digits[index] = input.charAt(i);\n index++;\n }\n }\n\n return new numero(s, num_postcomma, digits);\n }", "public void testNumberID() {\n String testID = generator.generatePrefixedIdentifier(\"123\");\n assertNotNull(testID);\n assertTrue(testID.matches(\"_123\" + ID_REGEX));\n }", "public void setNumber(String newValue);", "private static int letterToNumber(String str) {\n return (\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz\".indexOf(str))%26+1;\n }", "public String getNum() {\n return num;\n }", "public String getNum() {\n return num;\n }", "private int parseAccountOrNum(String name) {\n \tint rtn;\n if (name.charAt(0) >= '0' && name.charAt(0) <= '9') {\n rtn = new Integer(name).intValue();\n }\n else {\n \trtn = parseAccount(name).readCache();\n }\n return rtn;\n }", "public static String formateaNumero(String numero) {\n if (!hayParser) {\n contruyePraser();\n }\n String valor = numero.trim();\n if (\"&\".equals(valor) || \"-&\".equals(valor)) {\n return valor;\n }\n\n try {\n return decimalFormat.format(parseFloat(valor));\n } catch (Exception ex) {\n LOGGER.log(Level.SEVERE, ex.getMessage(), ex);\n return null;\n }\n }", "public String getNumber() {\n return (String) get(\"number\");\n }", "public String getNumber() {\n return number;\n }", "public String getNumber() {\n return number;\n }", "public String getNumber() {\n return number;\n }", "public String getNumber() {\n return number;\n }", "public void setNum(String num) {\r\n this.num = num == null ? null : num.trim();\r\n }", "public java.lang.String getNumber() {\n java.lang.Object ref = number_;\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 number_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public void setNum(String num) {\n this.num = num == null ? null : num.trim();\n }", "public void setNum(String num) {\n this.num = num == null ? null : num.trim();\n }", "public static String switchNumeriPosizioni(int numero, String pariOrDispari) {\n\t\tString valoreCorrispondente = \"\";\n\t\tswitch (numero) {\n\t\tcase 0:\n\t\t\tif (pariOrDispari.equals(\"pari\")) {\n\t\t\t\tvaloreCorrispondente = \"0\";\n\t\t\t} else valoreCorrispondente = \"1\";\n\t\t\tbreak;\n\t\tcase 1:\n\t\t\tif (pariOrDispari.equals(\"pari\")) {\n\t\t\t\tvaloreCorrispondente = \"1\";\n\t\t\t} else valoreCorrispondente = \"0\";\n\t\t\tbreak;\n\t\tcase 2:\n\t\t\tif (pariOrDispari.equals(\"pari\")) {\n\t\t\t\tvaloreCorrispondente = \"2\";\n\t\t\t} else valoreCorrispondente = \"5\";\n\t\t\tbreak;\n\t\tcase 3:\t\n\t\t\tif (pariOrDispari.equals(\"pari\")) {\n\t\t\t\tvaloreCorrispondente = \"3\";\n\t\t\t} else valoreCorrispondente = \"7\";\n\t\t\tbreak;\n\t\tcase 4:\n\t\t\tif (pariOrDispari.equals(\"pari\")) {\n\t\t\t\tvaloreCorrispondente = \"4\";\n\t\t\t} else valoreCorrispondente = \"9\";\n\t\t\tbreak;\n\t\tcase 5:\n\t\t\tif (pariOrDispari.equals(\"pari\")) {\n\t\t\t\tvaloreCorrispondente = \"5\";\n\t\t\t} else valoreCorrispondente = \"13\";\n\t\t\tbreak;\n\t\tcase 6:\n\t\t\tif (pariOrDispari.equals(\"pari\")) {\n\t\t\t\tvaloreCorrispondente = \"6\";\n\t\t\t} else valoreCorrispondente = \"15\";\n\t\t\tbreak;\n\t\tcase 7:\n\t\t\tif (pariOrDispari.equals(\"pari\")) {\n\t\t\t\tvaloreCorrispondente = \"7\";\n\t\t\t} else valoreCorrispondente = \"17\";\n\t\t\tbreak;\n\t\tcase 8:\n\t\t\tif (pariOrDispari.equals(\"pari\")) {\n\t\t\t\tvaloreCorrispondente = \"8\";\n\t\t\t} else valoreCorrispondente = \"19\";\n\t\t\tbreak;\n\t\tcase 9:\n\t\t\tif (pariOrDispari.equals(\"pari\")) {\n\t\t\t\tvaloreCorrispondente = \"9\";\n\t\t\t} else valoreCorrispondente = \"21\";\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\t\treturn valoreCorrispondente;\n\t}", "private static int tryParse(String number) {\r\n\t\ttry {\r\n\t\t\treturn Integer.parseInt(number);\r\n\t\t} catch (NumberFormatException e) {\r\n\t\t\tthrow new java.lang.Error(\"Could not convert input to integer.\");\r\n\t\t}\r\n\t}", "public TamilWord readNumber(String number) throws NotANumberException;", "public java.lang.String getNumber() {\n java.lang.Object ref = number_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n number_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public void setNumber(String number) {\r\n\t\tthis.number = number;\r\n\t}" ]
[ "0.6919294", "0.6919294", "0.6919294", "0.67288095", "0.66904414", "0.66750175", "0.66418827", "0.6535231", "0.65158254", "0.64721745", "0.6464853", "0.64624184", "0.64564526", "0.6350388", "0.62913144", "0.62862736", "0.6263408", "0.6262982", "0.6233881", "0.6226004", "0.62257826", "0.622355", "0.6219078", "0.6217942", "0.62178135", "0.62073135", "0.6204852", "0.61929715", "0.61491656", "0.61443496", "0.6116579", "0.6116579", "0.6116579", "0.61100113", "0.6098877", "0.6096902", "0.60850817", "0.6067851", "0.60618716", "0.60456884", "0.6042513", "0.6039055", "0.60355353", "0.6021916", "0.6021628", "0.60207444", "0.6020191", "0.6015133", "0.6005018", "0.59842926", "0.59821755", "0.5967748", "0.5964293", "0.5943842", "0.5943842", "0.594215", "0.5940374", "0.5939786", "0.5936732", "0.59265286", "0.5923138", "0.59164315", "0.59115595", "0.5911183", "0.59083694", "0.5906183", "0.59037405", "0.59024477", "0.5899746", "0.58968437", "0.588916", "0.58852094", "0.5885136", "0.58783466", "0.58767337", "0.5865771", "0.5864432", "0.5863727", "0.5862686", "0.5861936", "0.5853377", "0.58506924", "0.5845054", "0.5844421", "0.5844421", "0.5841452", "0.5839516", "0.58274156", "0.58256894", "0.58256894", "0.58256894", "0.58256894", "0.5818745", "0.58136976", "0.581353", "0.581353", "0.581082", "0.5807842", "0.5806061", "0.57999873", "0.57994324" ]
0.0
-1
Get chat rooms for viewing.
public List<UsrMain> getListUsers() { return mobileCtrl.getListUsers(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ChatRoom[] getChatRooms();", "@GetMapping(\"/chat-rooms\")\n public List<ChatRoom> getAllChatRooms() {\n log.debug(\"REST request to get all ChatRooms\");\n return chatRoomRepository.findAll();\n }", "public List<Chatroom> getAllChatrooms() {\n\t\t// fetch chatrooms from database\n\t\tList<Chatroom> chatrooms = chatroomRepository.findAll();\n\n\t\treturn chatrooms;\n\t}", "public AsyncResult<List<ChatRoom>> discoverRooms() {\r\n return serviceDiscoveryManager.discoverItems(serviceAddress).thenApply(itemNode -> {\r\n List<ChatRoom> chatRooms = new ArrayList<>();\r\n for (Item item : itemNode.getItems()) {\r\n ChatRoom chatRoom = new ChatRoom(item.getJid(), item.getName(), xmppSession, serviceDiscoveryManager, multiUserChatManager);\r\n chatRoom.initialize();\r\n chatRooms.add(chatRoom);\r\n }\r\n return chatRooms;\r\n });\r\n }", "public List<Room> showAllRoom() {\r\n\t\t\r\n\t\tif(userService.adminLogIn|| userService.loggedIn) {\r\n\t\t\tList<Room> list = new ArrayList<>();\r\n\t\t\troomRepository.findAll().forEach(list::add);\r\n\t\t\treturn list;\r\n\r\n\t\t}\r\n\t\telse {\r\n\t\t\tthrow new UserNotLoggedIn(\"you are not logged in!!\");\r\n\t\t}\r\n\r\n\t}", "public List<Chatroom> getAllListedChatrooms() {\n\t\t// fetch chatrooms from database\n\t\tList<Chatroom> chatrooms = chatroomRepository.findByListed(true);\n\n\t\treturn chatrooms;\n\t}", "public List<ChatMsg> getListRoomChatMsg() {\n //TODO add room Filter... processing, currently only one list \n //is updated by EventBus\n this.roomMsg = mobileCtrl.getListChatMsg(this.room);\n return this.roomMsg;\n }", "public List<Room> getRooms() {\n return rooms;\n }", "@GetMapping(path = \"/rooms\")\n public List<Room> findAllRooms() {\n return new ArrayList<>(roomService.findAllRooms());\n }", "@RequestMapping(value = \"/room\", method = RequestMethod.GET)\n public ModelAndView listRoom() {\n List<Group> groups = userBean.getAllGroups();\n for (int i = 0; i < groups.size(); i++) {\n userBean.getGroupByStreamId(groups.get(1));\n }\n ModelAndView view = new ModelAndView(\"room\");\n // view.addObject(\"list\", room);\n // view.addObject(\"note\", rooms);\n //view.addObject(\"st\", streamGroups);\n return view;\n }", "public List<String> listRoomsNames() {\n return chatRooms.stream().map(ChatRoom::getChatName).collect(Collectors.toList());\n }", "public Rooms getRooms(int i) {\n\t\t\tRooms buff = RoomDetails.get(i);\r\n\t\t\treturn buff;\r\n\t\t}", "@Override\n\tpublic HashSet<IChatroom> getChatrooms() throws RemoteException {\n\t\treturn chatrooms;\n\t}", "public ArrayList<Room> getRooms() {\n return rooms;\n }", "public List<Room> getCurrentRooms() {\n return currentRooms;\n }", "@Override\n\tpublic List<RoomInterface> getRooms() {\n\t\treturn rooms;\n\t}", "@GET\n @Produces(\"application/json\")\n public static List<CRoom> roomAll() {\n return (List<CRoom>) sCrudRoom.findWithNamedQuery(CRoom.FIND_ROOM_BY_ALL);\n }", "public ChatRoomTableModel getRoomlist() {\n\t\treturn roomlist;\n\t}", "public ChatRoom getChatRoom(Address addr);", "public List<Room> findAllRooms();", "@Override\r\n\tpublic Object getIMUserAllChatRooms(String userName) {\n\t\treturn null;\r\n\t}", "public Vector<String> getConferenceRooms() {\n return conferenceRooms;\n }", "public ArrayList getRooms();", "public List<Room> getRooms(){\n ArrayList<Room> returnedList = (ArrayList<Room>) rooms;\n return (ArrayList<Room>) returnedList.clone();\n }", "Collection<Room> getRooms() throws DataAccessException;", "@Override\n\tpublic List<Room> getAll() {\n\t\tArrayList<Room> list = new ArrayList<>();\n\t\tConnection cn = ConnectionPool.getInstance().getConnection();\n\t\ttry {\n\t\t\tStatement st = cn.createStatement();\n\t\t\tResultSet rs = st.executeQuery(\"SELECT * FROM room\");\n\t\t\twhile(rs.next()) {\n\t\t\t\tlist.add(new Room(rs.getInt(1), rs.getInt(2)));\n\t\t\t}\n\t\t\treturn list;\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\tConnectionPool.getInstance().closeConnection(cn);\n\t\t}\n\t\treturn new ArrayList<Room>();\n\t}", "public Set<Room> getRooms() {\n return rooms;\n }", "@GetMapping(\"/chat-rooms/{id}\")\n public ResponseEntity<ChatRoom> getChatRoom(@PathVariable String id) {\n log.debug(\"REST request to get ChatRoom : {}\", id);\n Optional<ChatRoom> chatRoom = chatRoomRepository.findById(id);\n return ResponseUtil.wrapOrNotFound(chatRoom);\n }", "public ArrayList<CalendarRoom> getRooms(String sType) throws IllegalStateException, JiBXException, IOException {\r\n\r\n\tif (null==sSecurityToken) throw new IllegalStateException(\"Not connected to calendar service\");\r\n\r\n\tCalendarResponse oResponse = CalendarResponse.get(sBaseURL+\"?command=getRooms&token=\"+sSecurityToken+\"&type=\"+sType);\r\n \r\n iErrCode = oResponse.code;\r\n sErrMsg = oResponse.error;\r\n\r\n if (iErrCode==0) {\r\n return oResponse.oRooms;\r\n } else {\r\n return null;\r\n }\r\n }", "public List<Room> selectAll() {\n\t\tSession session = sessionFactory.getCurrentSession();\n\t\treturn session.createCriteria(Room.class).list();\n\n\t}", "@GetMapping\n public RoomsDto getRooms() {\n return roomsFacade.findRooms();\n }", "public ResultSet getAllRooms() {\r\n\r\n try {\r\n\r\n SQL = \"SELECT * FROM ROOMS;\";\r\n rs = stmt.executeQuery(SQL);\r\n return rs;\r\n\r\n } catch (SQLException err) {\r\n\r\n System.out.println(err.getMessage());\r\n return null;\r\n\r\n }\r\n\r\n }", "List<Chat> getChats() throws CantGetChatException;", "@Override\n public List<UserRoom> getUserRoomList() {\n logger.info(\"Start getUserRoomList\");\n List<UserRoom> userRoomList = new ArrayList<>();\n try {\n connection = DBManager.getConnection();\n preparedStatement = connection.prepareStatement(Requests.SELECT_FROM_USER_ROOM);\n rs = preparedStatement.executeQuery();\n while (rs.next()) {\n userRoomList.add(myResultSet(rs));\n }\n } catch (SQLException sqlException) {\n Logger.getLogger(sqlException.getMessage());\n } finally {\n closing(connection, preparedStatement, rs);\n }\n logger.info(\"Completed getUserRoomList\");\n return userRoomList;\n }", "Room getRoom();", "Room getRoom();", "@Override\n public List<Room> findAll() {\n return roomRepository.findAll();\n }", "@Transactional\r\n\tpublic List<Room> getAllRooms(){\r\n\t\tList<Room> list= new ArrayList<Room>();\r\n\t\tIterable<Room> iterable= this.roomRepository.findAll();\r\n\t\tfor(Room room: iterable)\tlist.add(room);\r\n\t\treturn list;\r\n\t}", "@ApiOperation(value = \"Retrieves a Room\",\n\t\t\tnickname = \"getMyRooms\")\n\t@ApiResponses(value = {\n\t\t@ApiResponse(code = 204, message = HTML_STATUS_204)\n\t})\n\t@RequestMapping(value = \"/\", method = RequestMethod.GET, params = \"statusonly=true\")\n\t@Pagination\n\tpublic List<Room> getMyRooms(\n\t\t\t@ApiParam(value = \"visitedOnly\", required = true) @RequestParam(value = \"visitedonly\", defaultValue = \"false\") final boolean visitedOnly,\n\t\t\t@ApiParam(value = \"sort by\", required = false) @RequestParam(value = \"sortby\", defaultValue = \"name\") final String sortby,\n\t\t\tfinal HttpServletResponse response\n\t\t\t) {\n\t\tList<de.thm.arsnova.entities.Room> rooms;\n\t\tif (!visitedOnly) {\n\t\t\trooms = roomService.getMyRoomsInfo(offset, limit);\n\t\t} else {\n\t\t\trooms = roomService.getMyRoomHistoryInfo(offset, limit);\n\t\t}\n\n\t\tif (rooms == null || rooms.isEmpty()) {\n\t\t\tresponse.setStatus(HttpServletResponse.SC_NO_CONTENT);\n\t\t\treturn null;\n\t\t}\n\n\t\tif (\"shortname\".equals(sortby)) {\n\t\t\tCollections.sort(rooms, new RoomShortNameComparator());\n\t\t} else {\n\t\t\tCollections.sort(rooms, new RoomNameComparator());\n\t\t}\n\t\treturn rooms.stream().map(toV2Migrator::migrate).collect(Collectors.toList());\n\t}", "public List<ChatMessage> getChatMessages() {\n logger.info(\"**START** getChatMessages \");\n return messagesMapper.findAllMessages();\n }", "@GetMapping(value = \"user/{userId}\", produces = MediaType.APPLICATION_JSON_VALUE)\n public ResponseEntity<List<Room>> getRooms(@PathVariable int userId) {\n Set<String> roomIds = roomsRepository.getUserRoomIds(userId);\n if (roomIds == null) {\n return new ResponseEntity<>(HttpStatus.BAD_REQUEST);\n }\n List<Room> rooms = new ArrayList<>();\n\n for (String roomId : roomIds) {\n boolean roomExists = roomsRepository.isRoomExists(roomId);\n if (roomExists){\n String name = roomsRepository.getRoomNameById(roomId);\n if (name == null) {\n // private chat case\n Room privateRoom = handlePrivateRoomCase(roomId);\n if (privateRoom == null){\n return new ResponseEntity<>(HttpStatus.INTERNAL_SERVER_ERROR);\n }\n rooms.add(privateRoom);\n } else {\n rooms.add(new Room(roomId, name));\n }\n }\n }\n return new ResponseEntity<>(rooms, HttpStatus.OK);\n }", "public ArrayList<RoomList> getRoomList() {\r\n return RoomList;\r\n }", "public ChatRoom getChatRoomFromUri(String to);", "@Override\n public List<Room> findAllRooms() throws AppException {\n log.info(\"RoomDAO#findAllRooms(-)\");\n Connection con = null;\n List<Room> rooms;\n try {\n con = DataSource.getConnection();\n rooms = new ArrayList<>(findAllRooms(con));\n con.commit();\n } catch (SQLException e) {\n rollback(con);\n log.error(\"Problem at findAllRooms(no param)\", e);\n throw new AppException(\"Can not find all rooms, try again\");\n } finally {\n close(con);\n }\n return rooms;\n }", "List<ChatMessage> getMessages(int roomId, int count) throws IOException;", "public List<ChatPanel> getChats()\n {\n java.awt.Container container\n = (getChatTabCount() > 0) ? chatTabbedPane : mainPanel;\n int componentCount = container.getComponentCount();\n List<ChatPanel> chatPanels\n = new ArrayList<ChatPanel>(componentCount);\n\n for (int i = 0; i < componentCount; i++)\n {\n Component c = container.getComponent(i);\n\n if (c instanceof ChatPanel)\n chatPanels.add((ChatPanel) c);\n }\n return chatPanels;\n }", "public PriorityQueue<Room> getRooms() {\n return this.rooms;\n }", "public void chat_list() {\n\n synchronized(chat_room) {\n Set chat_room_set = chat_room.keySet();\n Iterator iter = chat_room_set.iterator();\n\n clearScreen(client_PW);\n client_PW.println(\"------------Chat Room List-----------\");\n while(iter.hasNext()) {\n client_PW.println(iter.next());\n }\n client_PW.flush();\n }\n }", "boolean hasChatRoom();", "public ArrayList<CalendarRoom> getAvailableRooms(Date dtFrom, Date dtTo)\r\n \tthrows IllegalStateException, JiBXException, IOException {\r\n\r\n\tif (null==sSecurityToken) throw new IllegalStateException(\"Not connected to calendar service\");\r\n\r\n\tCalendarResponse oResponse = CalendarResponse.get(sBaseURL+\"?command=getAvailableRooms&token=\"+sSecurityToken+\"&startdate=\"+oFmt.format(dtFrom)+\"&enddate=\"+oFmt.format(dtTo));\r\n \r\n iErrCode = oResponse.code;\r\n sErrMsg = oResponse.error;\r\n\r\n if (iErrCode==0) {\r\n return oResponse.oRooms;\r\n } else {\r\n return null;\r\n }\r\n }", "public Room getRoom(String id) {\r\n\t\treturn rooms.get(id);\r\n\t}", "public ArrayList<CalendarRoom> getAvailableRooms(Date dtFrom, Date dtTo, String sType)\r\n \tthrows IllegalStateException, JiBXException, IOException {\r\n\r\n\tif (null==sSecurityToken) throw new IllegalStateException(\"Not connected to calendar service\");\r\n\r\n\tCalendarResponse oResponse = CalendarResponse.get(sBaseURL+\"?command=getAvailableRooms&token=\"+sSecurityToken+\"&type=\"+sType+\"&startdate=\"+oFmt.format(dtFrom)+\"&enddate=\"+oFmt.format(dtTo));\r\n \r\n iErrCode = oResponse.code;\r\n sErrMsg = oResponse.error;\r\n\r\n if (iErrCode==0) {\r\n return oResponse.oRooms;\r\n } else {\r\n return null;\r\n }\r\n }", "@GetMapping(\"/listRoom\")\r\n\tpublic String listRooms(Model theModel) {\n\t\tList<Room> theRooms = roomService.findAll();\r\n\t\t\r\n\t\t// add to the spring model\r\n\t\ttheModel.addAttribute(\"rooms\", theRooms);\r\n\t\t\r\n\t\treturn \"/rooms/list-rooms\";\r\n\t}", "public Room getEventRoom(String id){\n return this.eventMap.get(getEvent(id)).getRoom();\n }", "public List<String> getChatMessages() {\n return chatMessages;\n }", "public List<Room> getAllRooms(){\n\n List<Room> rooms = null;\n\n EntityManager entityManager = getEntityManagerFactory().createEntityManager();\n entityManager.getTransaction().begin();\n\n try{\n CriteriaBuilder criteriaBuilder = entityManager.getCriteriaBuilder();\n CriteriaQuery<Room> roomCriteriaQuery = criteriaBuilder.createQuery(Room.class);\n Root<Room> roomsRoot = roomCriteriaQuery.from(Room.class);\n\n roomCriteriaQuery.select(roomsRoot);\n\n rooms = entityManager.createQuery(roomCriteriaQuery).getResultList();\n }\n catch (Exception ex){\n entityManager.getTransaction().rollback();\n }\n finally {\n entityManager.close();\n }\n\n return rooms;\n }", "@CrossOrigin \n\t@GetMapping(\"/all/{building}\")\n\tpublic List<Room> getRooms(@PathVariable String building) {\n\t\tList<Room> returned = new ArrayList<>();\t\t\n\t\tfor (Room room : roomDB)\n\t\t\tif (room.getBuilding().equals(building))\n\t\t\t\treturned.add(room);\n\t\treturn returned;\n\t}", "public String getRoom() {\r\n return room;\r\n }", "public ChatRoom getChatRoom(Address peerAddr, Address localAddr);", "public LobbyList getLobbyList()\r\n\t{\r\n\t\treturn receiver.getList();\r\n\t}", "public List<message> getList() {\n return chats;\n }", "@RequestMapping(method = RequestMethod.GET)\n public ResponseEntity<?> getAllGameRooms() {\n try {\n return new ResponseEntity<>(ls.getAllGameRooms(), HttpStatus.ACCEPTED);\n } catch (LacmanNotFoundException e) {\n Logger.getLogger(LacmanController.class.getName()).log(Level.SEVERE, null, e);\n return new ResponseEntity<>(e.getMessage(), HttpStatus.NOT_FOUND);\n }\n }", "public String getRoom() {\n\t\treturn room;\n\t}", "public Room getRoom(){\n\t\treturn this.room;\n\t}", "public List<Room> getByRoomType(String roomType){\r\n\t\tif(userService.adminLogIn||userService.loggedIn) {\r\n\t\t\tList<Optional<Room>> room=new ArrayList<>();\r\n\t\t\troom=roomRepository.findByRoomType(roomType);\r\n\t\t\tif (room.size()==0) {\r\n\t\t\t\tthrow new RoomTypeNotFoundException(\"Room type not available\");\r\n\t\t\t} else {\r\n\t\t\t\tList<Room> newRoom=new ArrayList<Room>();\r\n\t\t\t\tfor(Optional r:room) {\r\n\t\t\t\t\tnewRoom.add((Room) r.get());\r\n\t\t\t\t}\r\n\t\t\t\treturn newRoom;\r\n\t\t\t}\r\n\t\t}\r\n\t\telse {\r\n\t\t\tthrow new UserNotLoggedIn(\"you are not logged in!!\");\r\n\t\t}\r\n\t\t\r\n\t}", "private ArrayList<Room> createRooms() {\n //Adding starting position, always rooms(index0)\n\n rooms.add(new Room(\n \"Du sidder på dit kontor. Du kigger på uret og opdager, at du er sent på den. WTF! FISKEDAG! Bare der er fiskefilet tilbage, når du når kantinen. Du må hellere finde en vej ud herfra og hen til kantinen.\",\n false,\n null,\n null\n ));\n\n //Adding offices to <>officerooms, randomly placed later \n officeRooms.add(new Room(\n \"Du bliver kort blændet af en kontorlampe, som peger lige mod døråbningen. Du ser en gammel dame.\",\n false,\n monsterList.getMonster(4),\n itemList.getItem(13)\n ));\n\n officeRooms.add(new Room(\n \"Der er ingen i rummet, men rodet afslører, at det nok er Phillipas kontor.\",\n false,\n null,\n itemList.getItem(15)\n ));\n\n officeRooms.add(new Room(\n \"Du vader ind i et lokale, som er dunkelt oplyst af små, blinkende lamper og har en stank, der siger så meget spar fem, at det kun kan være IT-lokalet. Du når lige at høre ordene \\\"Rick & Morty\\\".\",\n false,\n monsterList.getMonster(6),\n itemList.getItem(7)\n ));\n\n officeRooms.add(new Room(\n \"Det var ikke kantinen det her, men hvorfor er der så krummer på gulvet?\",\n false,\n null,\n itemList.getItem(1)\n ));\n\n officeRooms.add(new Room(\n \"Tine sidder ved sit skrivebord. Du kan se, at hun er ved at skrive en lang indkøbsseddel. Hun skal nok have gæster i aften.\",\n false,\n monsterList.getMonster(0),\n itemList.getItem(18)\n ));\n\n officeRooms.add(new Room(\n \"Du træder ind i det tekøkken, hvor Thomas plejer at opholde sig. Du ved, hvad det betyder!\",\n false,\n null,\n itemList.getItem(0)\n ));\n\n officeRooms.add(new Room(\n \"Du går ind i det nok mest intetsigende rum, som du nogensinde har set. Det er så intetsigende, at der faktisk ikke er mere at sige om det.\",\n false,\n monsterList.getMonster(1),\n itemList.getItem(9)\n ));\n\n //Adding copyrooms to <>copyrooms, randomly placed later \n copyRooms.add(new Room(\n \"Døren knirker, som du åbner den. Et kopirum! Det burde du have set komme. Især fordi det var en glasdør.\",\n false,\n null,\n itemList.getItem(19)\n ));\n\n copyRooms.add(new Room(\n \"Kopimaskinen summer stadig. Den er åbenbart lige blevet færdig. Du går nysgerrigt over og kigger på alle de udskrevne papirer.\",\n false,\n null,\n itemList.getItem(12)\n ));\n\n //Adding restrooms to <>restrooms, randomly placed later \n restRooms.add(new Room(\n \"Ups! Dametoilettet. Der hænger en klam stank i luften. Det må være Ruth, som har været i gang.\",\n false,\n null,\n itemList.getItem(5)\n ));\n\n restRooms.add(new Room(\n \"Pedersen er på vej ud fra toilettet. Han vasker ikke fingre! Slut med at give ham hånden.\",\n false,\n monsterList.getMonster(7),\n itemList.getItem(11)\n ));\n\n restRooms.add(new Room(\n \"Du kommer ind på herretoilettet. Du skal simpelthen tisse så meget, at fiskefileterne må vente lidt. Du åbner toiletdøren.\",\n false,\n monsterList.getMonster(2),\n null\n ));\n\n restRooms.add(new Room(\n \"Lisette står og pudrer næse på dametoilettet. Hvorfor gik du herud?\",\n false,\n monsterList.getMonster(8),\n itemList.getItem(14)\n ));\n\n //Adding meetingrooms to<>meetingrooms, randomly placed later\n meetingRooms.add(new Room(\n \"Du træder ind i et lokale, hvor et vigtigt møde med en potentiel kunde er i gang. Du bliver nødt til at lade som om, at du er en sekretær.\",\n false,\n monsterList.getMonster(9),\n itemList.getItem(6)\n ));\n\n meetingRooms.add(new Room(\n \"Mødelokalet er tomt, men der står kopper og service fra sidste møde. Sikke et rod!\",\n false,\n null,\n itemList.getItem(3)\n ));\n\n meetingRooms.add(new Room(\n \"Projektgruppen sidder i mødelokalet. Vil du forsøge at forsinke dem i at nå fiskefileterne i kantinen?\",\n false,\n monsterList.getMonster(10),\n itemList.getItem(2)\n ));\n\n //Adding specialrooms to<>specialrooms, randomly placed later\n specialRooms.add(new Room(\n \"Du vader ind på chefens kontor. På hans skrivebord sidder sekretæren Phillipa.\",\n false,\n monsterList.getMonster(5),\n itemList.getItem(8)\n ));\n\n specialRooms.add(new Room(\n \"Det her ligner øjensynligt det kosteskab, Harry Potter boede i.\",\n false,\n monsterList.getMonster(3),\n itemList.getItem(4)\n ));\n\n specialRooms.add(new Room(\n \"OMG! Hvad er det syn?! KANTINEN!! Du klarede det! Du skynder dig op i køen lige foran ham den arrogante fra din afdeling. Da du når frem til fadet er der kun 4 fiskefileter tilbage. Du snupper alle 4!\",\n true,\n null,\n null\n ));\n\n //Adding rooms(Inde1-5)\n addOfficeRoom();\n addRestRoom(rooms, restRooms);\n addMeetingRoom(rooms, meetingRooms);\n addOfficeRoom();\n addRestRoom(rooms, restRooms);\n\n //Adding rooms(Inde6-10)\n addMeetingRoom(rooms, meetingRooms);\n addCopyRoom(rooms, copyRooms);\n addRestRoom(rooms, restRooms);\n addOfficeRoom();\n addCopyRoom(rooms, copyRooms);\n\n //Adding rooms(Inde11-15)\n addOfficeRoom();\n addSpecialRoom(rooms, specialRooms);\n addOfficeRoom();\n addRestRoom(rooms, restRooms);\n addOfficeRoom();\n\n //Adding rooms(Inde16-19)\n addOfficeRoom();\n addSpecialRoom(rooms, specialRooms);\n addSpecialRoom(rooms, specialRooms);\n addMeetingRoom(rooms, meetingRooms);\n\n return rooms;\n }", "public Room[] getConnections() {\n return connections;\n }", "@Override\n public Room getRoom(String roomId) {\n return getRoom(roomId, true);\n }", "public List<Chatroom> allChatroomSearch(String searchTerm, User user) {\n\t\tList<Chatroom> chatrooms = this.chatroomRepository.findAll();\n\n\t\t// remove chatrooms user is member of\n\t\tchatrooms.removeIf(x -> this.isMember(user, x));\n\t\t\n\t\treturn this.filterChatrooms(chatrooms, searchTerm);\n\t}", "private void setRooms() {\r\n\t\tAccountBean bean = new AccountBean();\r\n\t\tbean.setCf(Session.getSession().getCurrUser().getAccount().getCf());\r\n\t\tRoomController ctrl = RoomController.getInstance();\r\n\t\t\r\n\t\ttry {\r\n\t\t\tthis.myRooms=FXCollections.observableArrayList(ctrl.getMyRooms(bean));\r\n\t\t}\r\n\t\tcatch (DatabaseException ex1) {\r\n\t\t\tJOptionPane.showMessageDialog(null,ex1.getMessage(),ERROR, JOptionPane.ERROR_MESSAGE);\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t}", "public static void showAllRoom(){\n ArrayList<Room> roomList = getListFromCSV(FuncGeneric.EntityType.ROOM);\n displayList(roomList);\n showServices();\n }", "@Override\r\n public Map<String, String> getMembers(String room) {\r\n Objects.requireNonNull(room);\r\n final Map<String, String> roomMembers = members.get(room);\r\n LOG.debug(\"Room: {}, room members: {}\", room, roomMembers);\r\n return roomMembers == null ? Collections.EMPTY_MAP : \r\n Collections.unmodifiableMap(roomMembers);\r\n }", "public Room getRoom() {\n return currentRoom;\n }", "public Room getRoom()\r\n {\r\n return room;\r\n }", "public ArrayList<GameRoom> execute() {\n\t\tif(GameRooms.rooms == null) {\n\t\t\tGameRooms.rooms = new ArrayList<GameRoom>();\n\t\t}\n\t\treturn GameRooms.rooms;\n\t}", "@Override\r\n\tpublic List<Room> listAll() throws SQLException {\n\t\treturn null;\r\n\t}", "@Override\n public List<Object> getDialogs() {\n try {\n List<Object> chats = new ArrayList<>();\n // DIALOGS contain only active dialogs\n this.setTarget(\"DIALOGS\");\n FindIterable<Document> dials = collection.find();\n // CHATS contain all found chats and additional info\n this.setTarget(\"CHATS\");\n for (Document dial : dials) {\n FindIterable<Document> chat = collection.find(eq(\"_id\", dial.get(\"_id\")));\n chats.add(chat.first());\n }\n return chats;\n } catch (MongoException e) {\n System.err.println(e.getCode() + \" \" + e.getMessage());\n return null;\n }\n }", "public List<Chatroom> listedChatroomSearch(String searchTerm, User user) {\n\t\tList<Chatroom> chatrooms = this.chatroomRepository.findByListed(true);\n\t\t\n\t\t// remove chatrooms user is member of\n\t\tchatrooms.removeIf(x -> this.isMember(user, x));\n\t\t\n\t\t// filter the chatrooms with regards to the searchterm\n\t\treturn this.filterChatrooms(chatrooms, searchTerm);\n\t}", "public Room getRoom() {\n\t\treturn super.getRoom();\n\t}", "public java.lang.CharSequence getRoom() {\n return room;\n }", "public Room getRoom()\n {\n return currentRoom;\n }", "public java.lang.CharSequence getRoom() {\n return room;\n }", "public Room getMyRoom() {\n return this.myRoom;\n }", "public JSONArray getChat() throws JSONException {\r\n JSONArray chats = new JSONArray();\r\n String selectQuery = \"SELECT * FROM \" + UserChat.TABLE_USERCHAT;\r\n\r\n SQLiteDatabase db = this.getReadableDatabase();\r\n Cursor cursor = db.rawQuery(selectQuery, null);\r\n // Move to first row\r\n cursor.moveToFirst();\r\n if(cursor.getCount() > 0){\r\n\r\n while (cursor.isAfterLast() != true) {\r\n\r\n JSONObject contact = new JSONObject();\r\n contact.put(UserChat.USERCHAT_TO, cursor.getString(1));\r\n contact.put(UserChat.USERCHAT_FROM, cursor.getString(2));\r\n contact.put(UserChat.USERCHAT_FROM_FULLNAME, cursor.getString(3));\r\n contact.put(UserChat.USERCHAT_MSG, cursor.getString(4));\r\n contact.put(UserChat.USERCHAT_UID, cursor.getString(5));\r\n contact.put(UserChat.USERCHAT_DATE, cursor.getString(6));\r\n contact.put(\"contact_phone\", cursor.getString(7));\r\n\r\n chats.put(contact);\r\n\r\n cursor.moveToNext();\r\n }\r\n }\r\n cursor.close();\r\n db.close();\r\n // return user\r\n return chats;\r\n }", "private void displayListOfRooms() {\n DatabaseReference roomsRef = FirebaseDatabase.getInstance().getReference(\"Rooms\");\n\n roomsRef.addValueEventListener(new ValueEventListener() {\n @Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n // update rooms every time there's a change\n updateRooms(dataSnapshot);\n }\n\n @Override\n public void onCancelled(DatabaseError databaseError) {\n }\n });\n }", "@Override\n public List<Room> findRooms(int offset, int limit, String orderBy) throws AppException {\n log.info(\"#findRooms offset = \" + offset + \" limit = \" + limit + \" orderBy = \" + orderBy);\n Connection con = null;\n PreparedStatement ps;\n ResultSet rs;\n List<Room> rooms;\n try {\n con = DataSource.getConnection();\n ps = con.prepareStatement(SELECT_ROOMS);\n log.info(\"orderBy = \" + orderBy);\n switch (orderBy) {\n case(\"price\"):\n ps = con.prepareStatement(SELECT_ROOMS_PRICE);\n break;\n case(\"size\"):\n ps = con.prepareStatement(SELECT_ROOMS_SIZE);\n break;\n case(\"class\"):\n ps = con.prepareStatement(SELECT_ROOMS_CLASS);\n break;\n case(\"status\"):\n ps = con.prepareStatement(SELECT_ROOMS_STATUS);\n }\n int k = 1;\n ps.setInt(k++, limit);\n ps.setInt(k, offset);\n log.info(\"ps = \" + ps);\n rs = ps.executeQuery();\n rooms = new ArrayList<>();\n while (rs.next()) {\n rooms.add(extractRoom(con, rs));\n }\n con.commit();\n log.info(\"rooms = \" + rooms);\n } catch (SQLException e) {\n rollback(con);\n log.error(\"Problem findRooms\");\n throw new AppException(\"Cannot find rooms, try again\");\n } finally {\n close(con);\n }\n return rooms;\n }", "private List<Room> addRooms() {\n List<Room> rooms = new ArrayList<>();\n int numRooms = RandomUtils.uniform(random, MINROOMNUM, MAXROOMNUM);\n int playerRoomNum = RandomUtils.uniform(random, 0, numRooms);\n for (int i = 0; i < numRooms; i++) {\n rooms.add(addRandomRoom(random));\n if (i == playerRoomNum) {\n setPlayerInitialPosition(rooms, playerRoomNum);\n }\n }\n return rooms;\n }", "public List<Room> getByType(int idRoomType) {\n\t\tArrayList<Room> list = new ArrayList<>();\n\t\tConnection cn = ConnectionPool.getInstance().getConnection();\n\t\ttry {\n\t\t\tStatement st = cn.createStatement();\n\t\t\tResultSet rs = st.executeQuery(\"SELECT * FROM room WHERE id_room_type=\" + idRoomType);\n\t\t\twhile(rs.next()) {\n\t\t\t\tlist.add(new Room(rs.getInt(1), rs.getInt(2)));\n\t\t\t}\n\t\t\treturn list;\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\tConnectionPool.getInstance().closeConnection(cn);\n\t\t}\n\t\treturn new ArrayList<Room>();\n\t}", "@GetMapping(\"/chat-messages\")\n @Timed\n public List<ChatMessage> getAllChatMessages() {\n log.debug(\"REST request to get all ChatMessages\");\n return chatMessageRepository.findAll();\n }", "public Room room() {\r\n\t\treturn this.room;\r\n\t}", "public ArrayList<Room> createMaze() {\n createRooms();\n createAccess(rooms);\n\n return rooms;\n }", "@RequestMapping(value = \"/messages\", method = RequestMethod.GET)\n @ResponseBody\n public List<ChatDTO> getAllMessages(HttpSession session) throws IOException, SecurityException {\n if (!MethodsForControllers.isLogedIn(session)) throw new SecurityException();\n chatArrayList.clear();\n for (Chat chat : chatDao.getAllComments()) {\n String userLogin = (String) session.getAttribute(ModelConstants.LOGED_AS);\n String nameWorker = chat.getWorker().getNameWorker();\n byte[] photo = chat.getWorker().getProfile().getPhoto();\n if (photo == null) {\n InputStream inputStream = this.getClass().getClassLoader().getResourceAsStream(\"photo/me-flat.png\");\n photo = MethodsForControllers.returnDefaultPhotoBytes(inputStream);\n }\n chatArrayList.add(new ChatDTO(nameWorker, chat.getComment(), photo, userLogin.equals(chat.getWorker().getLogin())));\n }\n return chatArrayList;\n }", "protected ArrayList<Long> getRoomMembers() {\n\treturn roomMembers;\n }", "public RoomView getRoomView() {\n\t\treturn roomView;\n\t}", "RoomInfo room(int id);", "public void onGetRoom(GlobalMessage message) {\n JPanel newRoomPanel = new JPanel();\n NewRoomInfo newRoomInfo = (NewRoomInfo)message.getData();\n renderRoom(newRoomInfo.getRoomName(), newRoomPanel);\n roomContainer.add(newRoomPanel, roomListConstraints);\n ++roomListConstraints.gridy;\n roomEntries.put(newRoomInfo.getRoomName(), newRoomPanel);\n\n roomContainer.revalidate();\n roomContainer.repaint();\n }", "public List<String> getCustomRoomNames() {\n List<String> crooms = new ArrayList<String>();\n Set<String> names = plugin.getRoomsConfig().getConfigurationSection(\"rooms\").getKeys(false);\n for (String cr : names) {\n if (plugin.getRoomsConfig().getBoolean(\"rooms.\" + cr + \".user\") && plugin.getRoomsConfig().getBoolean(\"rooms.\" + cr + \".enabled\")) {\n crooms.add(cr);\n }\n }\n return crooms;\n }", "protected static String availableRooms(ArrayList<Room> roomList,String start_date){\n String stringList = \"\";\n for(Room room : roomList){\n System.out.println(room.getName());\n ArrayList<Meeting> meet = room.getMeetings();\n for(Meeting m : meet){\n stringList += m + \"\\t\";\n }\n System.out.println(\"RoomsList\"+stringList);\n }\n return \"\";\n }", "public String getIdentifier()\n {\n return chatRoomName;\n }", "@ServiceMethod(returns = ReturnType.COLLECTION)\n public PagedFlux<RoomParticipant> listParticipants(String roomId) {\n return listParticipants(roomId, null);\n }", "public void getMessages(){\n if(GUI.getInstance().getBusiness().getCurrentChat() != null) {\n Set<? extends IMessageIn> response = GUI.getInstance().getBusiness().getCurrentChat().getMessages();\n if(response != null){\n messages.addAll(response);\n }\n }\n }" ]
[ "0.7915629", "0.7814449", "0.77621406", "0.7531015", "0.7273331", "0.72633344", "0.71670026", "0.71644825", "0.713153", "0.71307504", "0.70966434", "0.70003843", "0.6969852", "0.6965094", "0.69445425", "0.6931637", "0.68444574", "0.6823604", "0.6804013", "0.6792988", "0.6754819", "0.6745448", "0.6728154", "0.67110014", "0.67033666", "0.6687218", "0.66818476", "0.6577709", "0.657267", "0.6564605", "0.6547564", "0.65250915", "0.6478736", "0.6466939", "0.6466559", "0.6466559", "0.6458634", "0.6431638", "0.63925874", "0.63882107", "0.6364092", "0.63489145", "0.6305836", "0.6273944", "0.62672573", "0.62620896", "0.62534946", "0.62528783", "0.62462574", "0.62259203", "0.62128234", "0.61842304", "0.6184091", "0.61784726", "0.61652386", "0.6154504", "0.6134971", "0.6133974", "0.61315787", "0.6119673", "0.61100465", "0.60701984", "0.60600543", "0.6057363", "0.6056251", "0.6056107", "0.60330886", "0.6027044", "0.601064", "0.59935296", "0.5985369", "0.5957168", "0.59527254", "0.5938738", "0.59344995", "0.593445", "0.5927365", "0.59236485", "0.59188294", "0.5906888", "0.59043086", "0.5903604", "0.5896019", "0.5891996", "0.5886498", "0.58850074", "0.5876019", "0.5865607", "0.58468235", "0.5830916", "0.5821896", "0.58116883", "0.5784114", "0.57763547", "0.5772429", "0.57706094", "0.57640857", "0.5746373", "0.57139266", "0.5712791", "0.5687634" ]
0.0
-1
Get all messages of a private (room) chat for viewing.
public List<ChatMsg> getListRoomChatMsg() { //TODO add room Filter... processing, currently only one list //is updated by EventBus this.roomMsg = mobileCtrl.getListChatMsg(this.room); return this.roomMsg; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<ChatMessage> getChatMessages() {\n logger.info(\"**START** getChatMessages \");\n return messagesMapper.findAllMessages();\n }", "List<ChatMessage> getMessages(int roomId, int count) throws IOException;", "@GetMapping(\"/chat-messages\")\n @Timed\n public List<ChatMessage> getAllChatMessages() {\n log.debug(\"REST request to get all ChatMessages\");\n return chatMessageRepository.findAll();\n }", "@RequestMapping(value = \"/messages\", method = RequestMethod.GET)\n @ResponseBody\n public List<ChatDTO> getAllMessages(HttpSession session) throws IOException, SecurityException {\n if (!MethodsForControllers.isLogedIn(session)) throw new SecurityException();\n chatArrayList.clear();\n for (Chat chat : chatDao.getAllComments()) {\n String userLogin = (String) session.getAttribute(ModelConstants.LOGED_AS);\n String nameWorker = chat.getWorker().getNameWorker();\n byte[] photo = chat.getWorker().getProfile().getPhoto();\n if (photo == null) {\n InputStream inputStream = this.getClass().getClassLoader().getResourceAsStream(\"photo/me-flat.png\");\n photo = MethodsForControllers.returnDefaultPhotoBytes(inputStream);\n }\n chatArrayList.add(new ChatDTO(nameWorker, chat.getComment(), photo, userLogin.equals(chat.getWorker().getLogin())));\n }\n return chatArrayList;\n }", "public List<Chatroom> getAllChatrooms() {\n\t\t// fetch chatrooms from database\n\t\tList<Chatroom> chatrooms = chatroomRepository.findAll();\n\n\t\treturn chatrooms;\n\t}", "public void getMessages(){\n if(GUI.getInstance().getBusiness().getCurrentChat() != null) {\n Set<? extends IMessageIn> response = GUI.getInstance().getBusiness().getCurrentChat().getMessages();\n if(response != null){\n messages.addAll(response);\n }\n }\n }", "@GetMapping(\"/chat-rooms\")\n public List<ChatRoom> getAllChatRooms() {\n log.debug(\"REST request to get all ChatRooms\");\n return chatRoomRepository.findAll();\n }", "public List<String> getChatMessages() {\n return chatMessages;\n }", "public ChatRoom[] getChatRooms();", "List<Chat> getChats() throws CantGetChatException;", "public List<Chatroom> getAllListedChatrooms() {\n\t\t// fetch chatrooms from database\n\t\tList<Chatroom> chatrooms = chatroomRepository.findByListed(true);\n\n\t\treturn chatrooms;\n\t}", "public ArrayList<VicinityMessage> getChatMessages(String fromIp){\n\n ArrayList<VicinityMessage> chat = new ArrayList<>();\n\n for(int i=0; i<this.allMessages.size(); i++){\n\n if(this.allMessages.get(i).getFrom().equals(fromIp)){\n chat.add(allMessages.get(i));\n Log.i(TAG, allMessages.get(i).getMessageBody());\n\n }\n }\n\n return chat;\n }", "public List<ViewMessage> getMessages(String jwt) {\n Response response = getClient()\n .path(\"/messages\")\n .request(MediaType.APPLICATION_JSON_TYPE)\n .header(\"Authorization\", \"Bearer \" + jwt)\n .get();\n if (response.getStatus() == 200) {\n return response.readEntity(new GenericType<List<ViewMessage>>() {\n });\n }\n return null;\n }", "public List<message> getList() {\n return chats;\n }", "public AsyncResult<List<ChatRoom>> discoverRooms() {\r\n return serviceDiscoveryManager.discoverItems(serviceAddress).thenApply(itemNode -> {\r\n List<ChatRoom> chatRooms = new ArrayList<>();\r\n for (Item item : itemNode.getItems()) {\r\n ChatRoom chatRoom = new ChatRoom(item.getJid(), item.getName(), xmppSession, serviceDiscoveryManager, multiUserChatManager);\r\n chatRoom.initialize();\r\n chatRooms.add(chatRoom);\r\n }\r\n return chatRooms;\r\n });\r\n }", "public List<Messages> getAll(){\n\treturn messageRepository.getAll();\n }", "public void chat_list() {\n\n synchronized(chat_room) {\n Set chat_room_set = chat_room.keySet();\n Iterator iter = chat_room_set.iterator();\n\n clearScreen(client_PW);\n client_PW.println(\"------------Chat Room List-----------\");\n while(iter.hasNext()) {\n client_PW.println(iter.next());\n }\n client_PW.flush();\n }\n }", "@SuppressWarnings(\"null\")\n public static List<Message> getAllMessages(int userId) throws SQLException {\n Connection connection = DatabaseDriverHelper.connectOrCreateDataBase();\n ResultSet set = DatabaseSelectHelper.getAllMessages(userId, connection);\n List<Message> messages = new ArrayList<>();\n while (set.next()) {\n int id = set.getInt(\"ID\");\n String message = set.getString(\"MESSAGE\");\n boolean viewed = set.getBoolean(\"VIEWED\");\n messages.add(new MessageImpl(id, message, viewed));\n }\n connection.close();\n return messages;\n \n }", "public List<Message> getAllMessages() {\n Query query = new Query(\"Message\").addSort(\"timestamp\", SortDirection.DESCENDING);\n\n return returnMessages(query, null);\n }", "@GET(\"chat/users/{id}/messages\")\n Call<PageResourceChatMessageResource> getDirectMessages(\n @retrofit2.http.Path(\"id\") Integer id, @retrofit2.http.Query(\"size\") Integer size, @retrofit2.http.Query(\"page\") Integer page, @retrofit2.http.Query(\"order\") String order\n );", "@Override\n\tpublic List<Message> findAll() {\n\t\tSystem.err.println(\"Vao dây\" + url);\n\t\tfor (Message massage : messRepository.findAll()) {\n\t\t\tSystem.err.println(\"massage ==>\" + massage.getUsername());\n\t\t}\n\t\treturn (List<Message>) messRepository.findAll();\n\t}", "@Override\n public List<Message> getMessages() {\n return (List<Message>) messageRepository.findAll();\n }", "private void getChatMessages() {\n Query query = firestore.collection(\"chatRooms\")\n .document(SharedPreferencesSingleton.getSharedPrefStringVal(SharedPreferencesSingleton.CONVERSATION_ZONE))\n .collection(\"messages\")\n .orderBy(\"timestamp\", Query.Direction.ASCENDING)\n .startAt(new Timestamp(\n Long.parseLong(SharedPreferencesSingleton.getSharedPrefStringVal(SharedPreferencesSingleton.CHAT_SESSION_START))- 1800, 0));\n\n query.addSnapshotListener(new EventListener<QuerySnapshot>() {\n @Override\n public void onEvent(@javax.annotation.Nullable QuerySnapshot queryDocumentSnapshots, @javax.annotation.Nullable FirebaseFirestoreException e) {\n if (chatRecordsAdapter != null)\n chatRecords.scrollToPosition(chatRecordsAdapter.getItemCount());\n }\n });\n\n options = new FirestoreRecyclerOptions.Builder<ChatMessage>()\n .setQuery(query, ChatMessage.class)\n .setLifecycleOwner(this)\n .build();\n\n chatRecordsAdapter = new FirestoreRecyclerAdapter<ChatMessage, ChatMessageHolder>(options) {\n\n private final int VIEW_TYPE_MESSAGE_RECEIVED = 0;\n private final int VIEW_TYPE_MESSAGE_SENT = 1;\n\n @Override\n public int getItemViewType(int position) {\n ChatMessage chatMessage = this.getItem(position);\n if (chatMessage.getSender().equals(firebaseUser.getUid()))\n return VIEW_TYPE_MESSAGE_SENT;\n else return VIEW_TYPE_MESSAGE_RECEIVED;\n }\n\n @NonNull\n @Override\n public ChatMessageHolder onCreateViewHolder(@NonNull ViewGroup parent, int viewType) {\n View view;\n\n if (viewType == VIEW_TYPE_MESSAGE_RECEIVED) {\n view = LayoutInflater.from(parent.getContext()).inflate(\n R.layout.message_received,\n parent,\n false\n );\n return new ReceivedChatMessageHolder(view);\n } else {\n view = LayoutInflater.from(parent.getContext()).inflate(\n R.layout.message_sent,\n parent,\n false\n );\n return new SentChatMessageHolder(view);\n }\n }\n\n @Override\n protected void onBindViewHolder(@NonNull ChatMessageHolder holder, int position, @NonNull ChatMessage chatMessage) {\n switch (holder.getItemViewType()) {\n case VIEW_TYPE_MESSAGE_RECEIVED:\n ((ReceivedChatMessageHolder) holder).bind(chatMessage);\n break;\n case VIEW_TYPE_MESSAGE_SENT:\n ((SentChatMessageHolder) holder).bind(chatMessage);\n break;\n default:\n break;\n }\n }\n\n @Override\n public void onDataChanged() {\n super.onDataChanged();\n if (this.getItemCount() > 0) {\n setViewToDisplay(SHOW_CHAT_MESSAGES);\n }\n }\n };\n\n LinearLayoutManager chatRecordsLayout = new LinearLayoutManager(getActivity());\n chatRecordsLayout.setOrientation(LinearLayoutManager.VERTICAL);\n chatRecordsLayout.setReverseLayout(false);\n chatRecordsLayout.setStackFromEnd(true);\n chatRecords.setLayoutManager(chatRecordsLayout);\n chatRecords.setAdapter(chatRecordsAdapter);\n if (chatRecordsAdapter != null){\n chatRecords.scrollToPosition(chatRecordsAdapter.getItemCount() - 1);\n }\n\n if (chatRecordsAdapter.getItemCount() == 0) {\n setViewToDisplay(NO_CHAT_MESSAGES);\n }\n }", "public List<Message> getMessages(String recipient) {\n Query query = new Query(\"Message\")\n .setFilter(new Query.FilterPredicate(\"recipient\", FilterOperator.EQUAL, recipient))\n .addSort(\"timestamp\", SortDirection.DESCENDING);\n\n return returnMessages(query, recipient);\n }", "public List<Room> showAllRoom() {\r\n\t\t\r\n\t\tif(userService.adminLogIn|| userService.loggedIn) {\r\n\t\t\tList<Room> list = new ArrayList<>();\r\n\t\t\troomRepository.findAll().forEach(list::add);\r\n\t\t\treturn list;\r\n\r\n\t\t}\r\n\t\telse {\r\n\t\t\tthrow new UserNotLoggedIn(\"you are not logged in!!\");\r\n\t\t}\r\n\r\n\t}", "@Override\n\tpublic List<Message> findAll() {\n\t\treturn msgdao.findAll();\n\t}", "public List<Message> queryAllMessages(String sender) {\n List<Message> messageList = new ArrayList<>();\n\tMessage message;\n String sql = \"SELECT * FROM message WHERE sender = ? ORDER BY time\";\n\ttry {\t\n this.statement = connection.prepareStatement(sql);\n statement.setString(1, sender);\n this.resultSet = this.statement.executeQuery();\n while(this.resultSet.next()) {\n\t\tmessage = new Message();\n message.setMid(this.resultSet.getInt(\"mid\"));\n message.setSender(this.resultSet.getString(\"sender\"));\n message.setReceiver(this.resultSet.getString(\"receiver\"));\n message.setContent(this.resultSet.getString(\"content\"));\n message.setTime(this.resultSet.getTimestamp(\"time\"));\n message.setIs_read(this.resultSet.getInt(\"is_read\"));\n\t\tmessageList.add(message);\n }\t\n this.statement.close();\n\t} \n catch(SQLException ex) {\n Logger.getLogger(UserDBManager.class.getName()).log(Level.SEVERE, null, ex);\n }\n return messageList;\n }", "@Override\r\n\tpublic Object getIMUserAllChatRooms(String userName) {\n\t\treturn null;\r\n\t}", "public AsyncResult<IQ> requestAllMessages() {\r\n return xmppSession.query(IQ.get(new OfflineMessage(true, false)));\r\n }", "java.util.List<main.java.io.grpc.chatservice.Message> \n getMessagesList();", "public List<ChatPanel> getChats()\n {\n java.awt.Container container\n = (getChatTabCount() > 0) ? chatTabbedPane : mainPanel;\n int componentCount = container.getComponentCount();\n List<ChatPanel> chatPanels\n = new ArrayList<ChatPanel>(componentCount);\n\n for (int i = 0; i < componentCount; i++)\n {\n Component c = container.getComponent(i);\n\n if (c instanceof ChatPanel)\n chatPanels.add((ChatPanel) c);\n }\n return chatPanels;\n }", "public List<Message> getAllMessages()\n {\n return new ArrayList<>(messages.values());\n }", "@GetMapping(\"/msgbox/get/{username}\")\n\tIterable<msgbox> getMsgs(@PathVariable String username){\n\t\treturn this.getUserMsgs(username);\n\t}", "private List<Message> returnMessages(Query query, String recipient) {\n List<Message> messages = new ArrayList<>();\n PreparedQuery results = datastore.prepare(query);\n\n for (Entity entity : results.asIterable()) {\n try {\n String idString = entity.getKey().getName();\n UUID id = UUID.fromString(idString);\n String text = (String) entity.getProperty(\"text\");\n long timestamp = (long) entity.getProperty(\"timestamp\");\n String user = (String) entity.getProperty(\"user\");\n recipient = recipient != null ? recipient : (String) entity.getProperty(\"recipient\");\n\n Message message = new Message(id, user, text, timestamp, recipient);\n messages.add(message);\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 message.\");\n System.err.println(entity.toString());\n e.printStackTrace();\n }\n }\n\n return messages;\n }", "public List<Message> getAll() {\n return messageRepository.getAll();\n }", "public List<Message> queryAllMessagesForReceiver(String receiver) {\n List<Message> messageList = new ArrayList<>();\n\tMessage message;\n String sql = \"SELECT * FROM message WHERE receiver = ? ORDER BY time\";\n\ttry {\t\n this.statement = connection.prepareStatement(sql);\n statement.setString(1, receiver);\n this.resultSet = this.statement.executeQuery();\n while(this.resultSet.next()) {\n\t\tmessage = new Message();\n message.setMid(this.resultSet.getInt(\"mid\"));\n message.setSender(this.resultSet.getString(\"sender\"));\n message.setContent(this.resultSet.getString(\"content\"));\n message.setTime(this.resultSet.getTimestamp(\"time\"));\n message.setIs_read(this.resultSet.getInt(\"is_read\"));\n\t\tmessageList.add(message);\n }\t\n this.statement.close();\n\t} \n catch(SQLException ex) {\n Logger.getLogger(UserDBManager.class.getName()).log(Level.SEVERE, null, ex);\n }\n return messageList;\n }", "public List<Message> loadMessages() throws PersistentDataStoreException {\n\n List<Message> messages = new ArrayList<>();\n\n // Retrieve all messages from the datastore.\n Query query = new Query(\"chat-messages\");\n PreparedQuery results = datastore.prepare(query);\n\n for (Entity entity : results.asIterable()) {\n try {\n UUID uuid = UUID.fromString((String) entity.getProperty(\"uuid\"));\n UUID conversationUuid = UUID.fromString((String) entity.getProperty(\"conv_uuid\"));\n UUID authorUuid = UUID.fromString((String) entity.getProperty(\"author_uuid\"));\n Instant creationTime = Instant.parse((String) entity.getProperty(\"creation_time\"));\n String content = (String) entity.getProperty(\"content\");\n Message message = new Message(uuid, conversationUuid, authorUuid, content, creationTime);\n messages.add(message);\n } catch (Exception e) {\n // In a production environment, errors should be very rare.\n // Errors which may\n // occur include network errors, Datastore service errors,\n // authorization errors,\n // database entity definition mismatches, or service mismatches.\n throw new PersistentDataStoreException(e);\n }\n }\n\n return messages;\n }", "public List<Message> getChatList(String boardId) {\n\t\tConnection conn = getConnection();\n\t\tList<Message> list = cd.getChatList(conn, boardId);\n\t\tclose(conn);\n\t\treturn list;\n\t}", "@GET(\"chat/threads/{id}/messages\")\n Call<PageResourceChatMessageResource> getThreadMessages(\n @retrofit2.http.Path(\"id\") String id, @retrofit2.http.Query(\"size\") Integer size, @retrofit2.http.Query(\"page\") Integer page, @retrofit2.http.Query(\"order\") String order\n );", "@GetMapping(\"/admin/allMessages\")\n public Map<String, Object> allMessages() {\n Map<String, Object> responseMap = new HashMap<String, Object>();\n responseMap.put(\"messages\", messagesService.allMessages());\n\n return responseMap;\n }", "public ArrayList<VicinityMessage> viewAllMessages()\n\n {\n\n try\n {\n database=dbH.getReadableDatabase();\n dbH.openDataBase();\n String query=\"SELECT * FROM Message\";\n Cursor c = database.rawQuery(query,null);\n\n VicinityMessage msg = null;\n if (c.moveToFirst()) {\n\n do {\n\n msg = new VicinityMessage();\n msg.setMessageBody(c.getString(3));\n msg.setFriendName(c.getString(2));\n msg.setIsMyMsg(c.getInt(c.getColumnIndex(\"isMyMsg\"))>0);\n msg.setFrom(c.getString(c.getColumnIndex(\"fromIP\")));\n msg.setImageString(c.getString(c.getColumnIndex(\"image\")));\n msg.setDate(c.getString(1));\n\n // Adding message to allMessages\n allMessages.add(msg);\n } while (c.moveToNext());\n }else{\n Log.i(TAG, \"There are no messages in the DB.\");\n }\n dbH.close();\n }\n catch(SQLException e)\n {\n e.printStackTrace();\n }\n\n return allMessages;\n }", "@Nullable\n List<ChatMsg> getMsg(String token, Long chatSessionId);", "public ArrayList<VicinityMessage> viewAllChatMessages(String ip)\n\n {\n\n try\n {\n database=dbH.getReadableDatabase();\n dbH.openDataBase();\n String query=\"SELECT * FROM Message WHERE fromIP=\"+\"\\\"\"+ip+\"\\\";\";\n Cursor c = database.rawQuery(query,null);\n\n VicinityMessage msg = null;\n if (c.moveToFirst()) {\n\n do {\n\n msg = new VicinityMessage();\n msg.setMessageBody(c.getString(3));\n msg.setFriendName(c.getString(2));\n msg.setFrom(c.getString(c.getColumnIndex(\"fromIP\")));\n msg.setImageString(c.getString(c.getColumnIndex(\"image\")));\n msg.setDate(c.getString(1));\n\n // Adding message to allMessages\n allChatMessages.add(msg);\n } while (c.moveToNext());\n }else{\n Log.i(TAG, \"There are no messages in the DB.\");\n }\n dbH.close();\n }\n catch(SQLException e)\n {\n e.printStackTrace();\n }\n\n\n return allChatMessages;\n }", "public ArrayList<Message> getAllmessage(){return allmessage;}", "@Override\n\tpublic HashSet<IChatroom> getChatrooms() throws RemoteException {\n\t\treturn chatrooms;\n\t}", "public List<Message> listMessages(Integer tid);", "@Override\n\tpublic List<Message> getMessagesForUser(String username) {\n\t\treturn null;\n\t}", "Optional<List<Message>> findAllMessagesOfUser(int id) throws DaoException;", "@RequestMapping(value = \"/room\", method = RequestMethod.GET)\n public ModelAndView listRoom() {\n List<Group> groups = userBean.getAllGroups();\n for (int i = 0; i < groups.size(); i++) {\n userBean.getGroupByStreamId(groups.get(1));\n }\n ModelAndView view = new ModelAndView(\"room\");\n // view.addObject(\"list\", room);\n // view.addObject(\"note\", rooms);\n //view.addObject(\"st\", streamGroups);\n return view;\n }", "@Override\n public List<Object> getDialogs() {\n try {\n List<Object> chats = new ArrayList<>();\n // DIALOGS contain only active dialogs\n this.setTarget(\"DIALOGS\");\n FindIterable<Document> dials = collection.find();\n // CHATS contain all found chats and additional info\n this.setTarget(\"CHATS\");\n for (Document dial : dials) {\n FindIterable<Document> chat = collection.find(eq(\"_id\", dial.get(\"_id\")));\n chats.add(chat.first());\n }\n return chats;\n } catch (MongoException e) {\n System.err.println(e.getCode() + \" \" + e.getMessage());\n return null;\n }\n }", "public List<Message> getMessages(Long id){\n return messagesParser.getMessages(id);\n }", "@Override\r\n\tpublic List<message> getMessages(Integer send_id) {\n\t\tList<message> messageList=null;\r\n\t\tString sql=\"select * from message where send_id=?\";\r\n\t\ttry {\r\n\t\t\tmessageList=getObjectList(conn, sql, send_id);\r\n\t\t} catch (SQLException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\tif(messageList.size()==0) {\r\n\t\t\treturn null;\r\n\t\t}else\r\n\t\treturn messageList;\r\n\t}", "List<Message> selectAll();", "@GET(\"users/{recipient_id}/messages\")\n Call<PageResourceChatMessageResource> getDirectMessages1(\n @retrofit2.http.Path(\"recipient_id\") Integer recipientId, @retrofit2.http.Query(\"size\") Integer size, @retrofit2.http.Query(\"page\") Integer page\n );", "@RequestMapping(value=\"api/messages\", method=RequestMethod.GET)\n\tpublic List<Recording> getAllMessages() {\n\t\treturn this.service.getAllMessages();\n\t}", "private void readMessages(String myId, String userId, User user) {\n db.collection(COLLECTION)\n .orderBy(\"createdAt\", Query.Direction.ASCENDING)\n .addSnapshotListener((value, e) -> {\n if (e != null) {\n Log.w(TAG, \"Listen failed.\", e);\n loadingDialog.dismiss();\n return;\n }\n //Redraw on data change\n chats.clear();\n for (QueryDocumentSnapshot document : Objects.requireNonNull(value)) {\n if (document.getBoolean(\"isSeen\") != null) {\n Chat chat = new Chat(\n document.getString(\"sender\"),\n document.getString(\"receiver\"),\n document.getString(\"message\"),\n document.getBoolean(\"isSeen\"));\n\n //Check if the current user is the receiver or sender of the message\n if (chat.getReceiver().equals(myId) && chat.getSender().equals(userId) ||\n chat.getReceiver().equals(userId) && chat.getSender().equals(myId)) {\n //Show conversation in screen\n chats.add(chat);\n // 3. create an adapter\n messageAdapter = new MessageAdapter(chats, user);\n // 4. set adapter\n recyclerView.setAdapter(messageAdapter);\n }\n if (chat.getReceiver().equals(myId) && chat.getSender().equals(userId)) {\n seenMessage(document.getId());\n }\n }\n }\n loadingDialog.dismiss();\n });\n }", "public List<Mensaje> getCurrentMessages() {\n\t\tif (currentContact != null && currentUser != null)\n\t\t\ttry {\n\t\t\t\tcurrentContact = contactDAO.getContact(currentContact.getId());\n\t\t\t\treturn currentContact.getMessages();\n\t\t\t} catch (NullPointerException e) {\n\t\t\t\t// Can't stop the view's access while switching users,\n\t\t\t\t// App will just try again after loading.\n\t\t\t\treturn null;\n\t\t\t}\n\t\treturn null;\n\t}", "@Override\n public String[] getAllMessages() {\n return messages.toArray(new String[0]);\n }", "@GET(\"chat/topics/{id}/messages\")\n Call<PageResourceChatMessageResource> getTopicMessages(\n @retrofit2.http.Path(\"id\") String id, @retrofit2.http.Query(\"size\") Integer size, @retrofit2.http.Query(\"page\") Integer page, @retrofit2.http.Query(\"order\") String order\n );", "public List<Chat> allChats(String user1, String user2) \n\t{\n\t\tif (user1.equals(user2))\n\t\t\tthrow new IllegalArgumentException(\"You can't chat with yourself!\");\n\t\treturn db.findall(user1, user2);\n\t}", "ReadResponseMessage fetchAllMessages();", "@GET\r\n\t@Path(\"/message/{profile_id}\")\r\n\t@Produces({MediaType.APPLICATION_XML})\r\n\tpublic List<Messages> getMsga(@PathParam(\"profile_id\") String profile_id)\r\n\t{\r\n\t\tint pid=Integer.parseInt(profile_id);\r\n\t\tList<Messages> msgs=dao.getMessages(pid);\r\n\t\treturn msgs;\r\n\t}", "main.java.io.grpc.chatservice.Message getMessages(int index);", "@Override\n public List<UserMessage> searchAllMessagesFromTo(long fromUserId, long toUserId) {\n List<UserMessage> messages;\n\n PreparedStatement preparedStatement = null;\n ResultSet resultSet = null;\n try(Connection connection = ConnectionPool.getInstance().getConnection()){\n\n preparedStatement = connection.prepareStatement(SEARCH_MESSAGE_FROM_TO_SQL);\n preparedStatement.setLong(1, fromUserId);\n preparedStatement.setLong(2, toUserId);\n resultSet = preparedStatement.executeQuery();\n\n messages = DialogMapper.createMessages(resultSet);\n\n }\n catch (SQLException e) {\n LOGGER.warn(\"messages from to are not founded\", e);\n return new ArrayList<>();\n }\n finally {\n try {\n DbUtils.close(resultSet);\n }\n catch (SQLException e) {\n LOGGER.error(PufarDaoConstant.CLOSE_RESULTSET_ERROR_LOG);\n }\n try {\n DbUtils.close(preparedStatement);\n }\n catch (SQLException e) {\n LOGGER.error(PufarDaoConstant.CLOSE_STATEMENT_ERROR_LOG);\n }\n }\n\n return messages;\n }", "@RequestMapping(\"/messages\")\n public Map<String, List<String>> messages(@RequestParam(value=\"chatterId\", defaultValue=\"\") String chatterId) {\n try {\n Map<String, List<String>> messages = new HashMap<String, List<String>>();\n for (int i = 0; i < 5; i++) {\n int chooseBase = (int) (Math.random()*999);\n int position = chooseBase % this.friendsList.size();\n FriendInfo friend = this.friendsList.get(position);\n List<String> messagesFromFriend = messages.get(friend.getId());\n if (messagesFromFriend != null) {\n messagesFromFriend.add(\"I am fine, thank you. \"+ chatterId);\n }\n else {\n messagesFromFriend = new ArrayList<String>();\n messagesFromFriend.add(\"I have seen you yesterday in Botany downs.\");\n messages.put(friend.getId(), messagesFromFriend);\n }\n }\n return messages;\n }\n catch (Exception e) {\n return null;\n }\n }", "@Override\n public List<UserRoom> getUserRoomList() {\n logger.info(\"Start getUserRoomList\");\n List<UserRoom> userRoomList = new ArrayList<>();\n try {\n connection = DBManager.getConnection();\n preparedStatement = connection.prepareStatement(Requests.SELECT_FROM_USER_ROOM);\n rs = preparedStatement.executeQuery();\n while (rs.next()) {\n userRoomList.add(myResultSet(rs));\n }\n } catch (SQLException sqlException) {\n Logger.getLogger(sqlException.getMessage());\n } finally {\n closing(connection, preparedStatement, rs);\n }\n logger.info(\"Completed getUserRoomList\");\n return userRoomList;\n }", "public LinkedList<Message> getAllEmails() {\r\n\t\t// Iterate over all folders in the IMAP account\r\n\t\ttry {\r\n\t\t\tf = store.getDefaultFolder().list();\r\n\t\t} catch (MessagingException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\tLinkedList<Message> messages = new LinkedList<Message>();\r\n\t\tfor (Folder fd : f) {\r\n\t\t\ttry {\r\n\t\t\t\t// Only open a folder if there are messages in it and if the\r\n\t\t\t\t// folder can be selected\r\n\t\t\t\tif (fd.getType() != 2) {\r\n\t\t\t\t\tif (fd.getMessageCount() != 0) {\r\n\t\t\t\t\t\tfd.open(Folder.READ_ONLY);\r\n\t\t\t\t\t\tmessages.addAll(Arrays.asList(receiveEmails(fd)));\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t} catch (MessagingException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn messages;\r\n\t}", "@Override\n\tpublic List<Message> getMyMessages(String emailId) {\n\t\treturn messagedao.getMyMessages(emailId);\n\t}", "@Override\r\n\tpublic List<ChatMessageModel> getMessages(int messageIndex) {\n\t\treturn null;\r\n\t}", "@GetMapping(\"/user-offer-chats\")\n @Timed\n public ResponseEntity<List<UserOfferChatDTO>> getAllUserOfferChats(Pageable pageable) {\n log.debug(\"REST request to get a page of UserOfferChats\");\n Page<UserOfferChatDTO> page = userOfferChatService.findAll(pageable);\n HttpHeaders headers = PaginationUtil.generatePaginationHttpHeaders(page, \"/api/user-offer-chats\");\n return new ResponseEntity<>(page.getContent(), headers, HttpStatus.OK);\n }", "private void readMessage(final String myid, final String userid, final String imageurl){\n\n mchat = new ArrayList<>();\n\n ref = FirebaseDatabase.getInstance().getReference(\"chats\");\n ref.addValueEventListener(new ValueEventListener() {\n @Override\n public void onDataChange(@NonNull DataSnapshot dataSnapshot) {\n mchat.clear();\n for(DataSnapshot snapshot : dataSnapshot.getChildren()){\n Chat chat = snapshot.getValue(Chat.class);\n assert chat != null;\n if(chat.getReceiverUID().equals(myid) && chat.getSenderUID().equals(userid) || chat.getReceiverUID().equals(userid) && chat.getSenderUID().equals(myid))\n mchat.add(chat);\n messageAdapter = new MessageAdapter(getContext(),mchat,imageurl);\n recyclerView.setAdapter(messageAdapter);\n }\n\n\n }\n\n @Override\n public void onCancelled(@NonNull DatabaseError databaseError) {\n\n }\n });\n\n }", "@Override\n\tpublic List<MessageEntity> getMessages(MessageEntity message) {\n\t\t\tList<MessageEntity> list = messageDAO.selectMessageList(message);\n\t\t\treturn list;\n\t}", "public void addGetMessagesListener(XMPPConnection connection){\n\t PacketFilter filter = new MessageTypeFilter(Message.Type.chat);\n connection.addPacketListener(new PacketListener() {\n @Override\n public void processPacket(Packet packet) {\n Message message = (Message) packet;\n if (message.getBody() != null) {\n String fromName = StringUtils.parseBareAddress(message.getFrom());\n Log.i(\"XMPPChatDemoActivity \", \" Text Recieved \" + message.getBody() + \" from \" + fromName);\n messages.add(fromName + \":\");\n messages.add(message.getBody());\n // Add the incoming message to the list view\n mHandler.post(new Runnable() {\n public void run() {\n setListAdapter();\n }\n });\n }\n }\n }, filter);\n }", "public JSONArray getChat() throws JSONException {\r\n JSONArray chats = new JSONArray();\r\n String selectQuery = \"SELECT * FROM \" + UserChat.TABLE_USERCHAT;\r\n\r\n SQLiteDatabase db = this.getReadableDatabase();\r\n Cursor cursor = db.rawQuery(selectQuery, null);\r\n // Move to first row\r\n cursor.moveToFirst();\r\n if(cursor.getCount() > 0){\r\n\r\n while (cursor.isAfterLast() != true) {\r\n\r\n JSONObject contact = new JSONObject();\r\n contact.put(UserChat.USERCHAT_TO, cursor.getString(1));\r\n contact.put(UserChat.USERCHAT_FROM, cursor.getString(2));\r\n contact.put(UserChat.USERCHAT_FROM_FULLNAME, cursor.getString(3));\r\n contact.put(UserChat.USERCHAT_MSG, cursor.getString(4));\r\n contact.put(UserChat.USERCHAT_UID, cursor.getString(5));\r\n contact.put(UserChat.USERCHAT_DATE, cursor.getString(6));\r\n contact.put(\"contact_phone\", cursor.getString(7));\r\n\r\n chats.put(contact);\r\n\r\n cursor.moveToNext();\r\n }\r\n }\r\n cursor.close();\r\n db.close();\r\n // return user\r\n return chats;\r\n }", "ReadResponseMessage fetchMessagesFromUserToUser(String fromUser, String toUser);", "@RequestMapping(value=\"/Allmensajes\", method=RequestMethod.GET, produces=MediaType.APPLICATION_JSON_VALUE)\n\tpublic ResponseEntity<List<Mensaje>> getAllMessages(){\n\t\tList<Mensaje> mensaje = chatDAO.getAllMessages();\n\t\tResponseEntity<List<Mensaje>> r = ResponseEntity.status(HttpStatus.OK).body(mensaje);\n\t\t\n\t\treturn r;\n\t}", "public List<QlikMessageDto> getMessagesFromDatabase() {\r\n\t\tArrayList<QlikMessageDto> qlikMessages = new ArrayList<QlikMessageDto>();\r\n\r\n\t\ttry {\r\n\t\t\tClass.forName(\"com.mysql.jdbc.Driver\");\r\n\t\t\tConnection conn = DriverManager.getConnection(url, user, password);\r\n\r\n\t\t\tPreparedStatement statement = conn.prepareStatement(sql_getMessagesFromDatabase, Statement.RETURN_GENERATED_KEYS);\r\n\t\t\tResultSet rs = statement.executeQuery();\r\n\r\n\t\t\twhile (rs.next()) {\r\n\t\t\t\tint id = rs.getInt(\"id\");\r\n\t\t\t\tString messagetext = rs.getString(\"messagetext\");\r\n\t\t\t\tboolean ispalindrome = rs.getBoolean(\"ispalindrome\");\r\n\t\t\t\tString createddatetime = rs.getString(\"createddatetime\");\r\n\r\n\t\t\t\tqlikMessages.add(new QlikMessageDto(id, messagetext, ispalindrome, createddatetime));\r\n\t\t\t}\r\n\t\t\tconn.close();\r\n\t\t} catch (ClassNotFoundException ex) {\r\n\t\t\tex.printStackTrace();\r\n\t\t} catch (SQLException ex) {\r\n\t\t\tex.printStackTrace();\r\n\t\t}\r\n\r\n\t\treturn qlikMessages;\r\n\t}", "java.util.List<com.google.cloud.dialogflow.cx.v3beta1.ResponseMessage> \n getMessagesList();", "public ListView getMessageListView() {\n return mMessageListView;\n }", "@Override\n\tpublic List<Room> getAll() {\n\t\tArrayList<Room> list = new ArrayList<>();\n\t\tConnection cn = ConnectionPool.getInstance().getConnection();\n\t\ttry {\n\t\t\tStatement st = cn.createStatement();\n\t\t\tResultSet rs = st.executeQuery(\"SELECT * FROM room\");\n\t\t\twhile(rs.next()) {\n\t\t\t\tlist.add(new Room(rs.getInt(1), rs.getInt(2)));\n\t\t\t}\n\t\t\treturn list;\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\tConnectionPool.getInstance().closeConnection(cn);\n\t\t}\n\t\treturn new ArrayList<Room>();\n\t}", "public java.util.List<if4031.common.Message> getMessagesList() {\n if (messagesBuilder_ == null) {\n return java.util.Collections.unmodifiableList(messages_);\n } else {\n return messagesBuilder_.getMessageList();\n }\n }", "public ChatRoom getChatRoom(Address addr);", "public java.util.List<io.dstore.engine.Message> getMessageList() {\n if (messageBuilder_ == null) {\n return java.util.Collections.unmodifiableList(message_);\n } else {\n return messageBuilder_.getMessageList();\n }\n }", "public java.util.List<io.dstore.engine.Message> getMessageList() {\n if (messageBuilder_ == null) {\n return java.util.Collections.unmodifiableList(message_);\n } else {\n return messageBuilder_.getMessageList();\n }\n }", "public java.util.List<io.dstore.engine.Message> getMessageList() {\n if (messageBuilder_ == null) {\n return java.util.Collections.unmodifiableList(message_);\n } else {\n return messageBuilder_.getMessageList();\n }\n }", "public java.util.List<io.dstore.engine.Message> getMessageList() {\n if (messageBuilder_ == null) {\n return java.util.Collections.unmodifiableList(message_);\n } else {\n return messageBuilder_.getMessageList();\n }\n }", "public java.util.List<io.dstore.engine.Message> getMessageList() {\n if (messageBuilder_ == null) {\n return java.util.Collections.unmodifiableList(message_);\n } else {\n return messageBuilder_.getMessageList();\n }\n }", "private void loadConversationList()\n\t{\n\t\tParseQuery<ParseObject> q = ParseQuery.getQuery(discussionTableName);\n\t\tif (messagesList.size() != 0)\n\t\t{\n//\t\t\t// load all messages...\n//\t\t\tArrayList<String> al = new ArrayList<String>();\n//\t\t\tal.add(discussionTopic);\n//\t\t\tal.add(MainActivity.user.getParseID());\n//\t\t\tq.whereContainedIn(\"sender\", al);\n//\t\t}\n//\t\telse {\n\t\t\t// load only newly received message..\n\t\t\tif (lastMsgDate != null)\n\t\t\t\t// Load only new messages, that weren't send by me\n\t\t\t\tq.whereGreaterThan(Const.COL_MESSAGE_CREATED_AT, lastMsgDate);\n\t\t\t\tq.whereNotEqualTo(Const.COL_MESSAGE_SENDER_ID, MainActivity.user.getParseID());\n\t\t}\n\t\tq.orderByDescending(Const.COL_MESSAGE_CREATED_AT);\n\t\tq.setLimit(100);\n\t\tq.findInBackground(new FindCallback<ParseObject>() {\n\n\t\t\t@Override\n\t\t\tpublic void done(List<ParseObject> li, ParseException e) {\n\t\t\t\tif (li != null && li.size() > 0) {\n\t\t\t\t\tfor (int i = li.size() - 1; i >= 0; i--) {\n\t\t\t\t\t\tParseObject po = li.get(i);\n\n\t\t\t\t\t\tMessage message = new Message(po.getString(\n\t\t\t\t\t\t\t\tConst.COL_MESSAGE_CONTENT),\n\t\t\t\t\t\t\t\tpo.getCreatedAt(),\n\t\t\t\t\t\t\t\tpo.getString(Const.COL_MESSAGE_SENDER_ID),\n\t\t\t\t\t\t\t\tpo.getString(Const.COL_MESSAGE_SENDER_NAME));\n\n\t\t\t\t\t\tmessage.setStatus(MessageStatus.STATUS_SENT);\n\t\t\t\t\t\tmessagesList.add(message);\n\n\t\t\t\t\t\tif (lastMsgDate == null || lastMsgDate.before(message.getDate())) {\n\t\t\t\t\t\t\tlastMsgDate = message.getDate();\n\t\t\t\t\t\t}\n\t\t\t\t\t\tchatAdapter.notifyDataSetChanged();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\thandler.postDelayed(new Runnable() {\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\tif (isRunning)\n\t\t\t\t\t\t\tloadConversationList();\n\t\t\t\t\t}\n\t\t\t\t}, 1000);\n\t\t\t}\n\t\t});\n\n\t}", "public Chat getChat(long chatId) {\n\n String sqlStatment = \"SELECT * FROM Chat WHERE ChatID=@chatId\";\n Statement statement = Statement.newBuilder(sqlStatment).bind(\"chatId\").to(chatId).build();\n List<Chat> resultSet = spannerTemplate.query(Chat.class, statement, null);\n \n return resultSet.get(0);\n }", "public List<Chatroom> allChatroomSearch(String searchTerm, User user) {\n\t\tList<Chatroom> chatrooms = this.chatroomRepository.findAll();\n\n\t\t// remove chatrooms user is member of\n\t\tchatrooms.removeIf(x -> this.isMember(user, x));\n\t\t\n\t\treturn this.filterChatrooms(chatrooms, searchTerm);\n\t}", "public List<Message> getMessageAll(){\n return repo.findAll();\n \n }", "@GET(\"chat/threads\")\n Call<PageResourceChatUserThreadResource> getChatThreads(\n @retrofit2.http.Query(\"size\") Integer size, @retrofit2.http.Query(\"page\") Integer page, @retrofit2.http.Query(\"order\") String order\n );", "@GET\n @Produces(\"application/json\")\n public static List<CRoom> roomAll() {\n return (List<CRoom>) sCrudRoom.findWithNamedQuery(CRoom.FIND_ROOM_BY_ALL);\n }", "public Iterator getMessages() {\r\n\t\treturn messages == null ? EmptyStructures.EMPTY_ITERATOR : new ReadOnlyIterator(messages.values());\r\n\t}", "ReadResponseMessage fetchUserMessages(String user);", "public void listMessages() {\n\t\tSystem.out.println(\"== The wall of \" + name + \" ==\");\n\t\tfor(String msg : messages)\n\t\t{\n\t\t\tSystem.out.println(msg);\n\t\t}\n\t}", "Cursor getUndeliveredOneToOneChatMessages();", "private void fetchChatContact(){\n chatRemoteDAO.getAllChatRequestHandler(profileRemoteDAO.getUserId());\n }", "public java.util.List<com.polytech.spik.protocol.SpikMessages.Sms> getMessagesList() {\n if (messagesBuilder_ == null) {\n return java.util.Collections.unmodifiableList(messages_);\n } else {\n return messagesBuilder_.getMessageList();\n }\n }", "public List<Message> getMessages() {\n return messages;\n }" ]
[ "0.7813814", "0.73131216", "0.7235654", "0.7234127", "0.72295445", "0.71767354", "0.71654135", "0.6901843", "0.6891146", "0.6873846", "0.675913", "0.6643271", "0.65773743", "0.6558635", "0.6527425", "0.64783454", "0.64585584", "0.6441546", "0.6391705", "0.6388807", "0.6387942", "0.6377962", "0.6365604", "0.6354854", "0.634769", "0.6341651", "0.62945366", "0.628581", "0.6272355", "0.62567466", "0.62562704", "0.62424606", "0.624033", "0.62376136", "0.6213447", "0.62105095", "0.61974216", "0.619398", "0.61873233", "0.6182651", "0.616177", "0.6138276", "0.6119575", "0.6110965", "0.61028963", "0.6090721", "0.60561186", "0.6051859", "0.60250723", "0.60180354", "0.60096246", "0.59958947", "0.5989601", "0.59762937", "0.596261", "0.5962527", "0.5941701", "0.5922509", "0.5911053", "0.59007835", "0.5893217", "0.5884949", "0.5881448", "0.5875675", "0.5860545", "0.5846575", "0.5837609", "0.58370996", "0.58370584", "0.5835256", "0.58222115", "0.58064896", "0.58050346", "0.5800614", "0.57732475", "0.57694286", "0.57656795", "0.57540315", "0.5753417", "0.5752866", "0.5745919", "0.57458", "0.5741431", "0.5741431", "0.5741431", "0.5741431", "0.5741431", "0.5740451", "0.57297474", "0.5722937", "0.571929", "0.5718208", "0.57146084", "0.57140857", "0.57114846", "0.5703899", "0.5703487", "0.56996065", "0.569317", "0.5688215" ]
0.75937617
1
get handler currently from current (a valid) session scope...
public void doSendMsg() { FacesContext fctx = FacesContext.getCurrentInstance(); HttpSession sess = (HttpSession) fctx.getExternalContext().getSession(false); SEHRMessagingListener chatHdl = (SEHRMessagingListener) sess.getAttribute("ChatHandler"); if (chatHdl.isSession()) { //TODO implement chat via sehr.xnet.DOMAIN.chat to all... if (room.equalsIgnoreCase("public")) { //send public inside zone chatHdl.sendMsg(this.text, SEHRMessagingListener.PUBLIC, moduleCtrl.getLocalZoneID(), -1, -1); } else { chatHdl.sendMsg(this.text, SEHRMessagingListener.PRIVATE_USER, moduleCtrl.getLocalZoneID(), -1, curUserToChat.getUsrid()); } this.text = ""; } //return "pm:vwChatRoom"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Handler getHandler();", "static synchronized Handler getHandler() {\n checkState();\n return sInstance.mHandler;\n }", "Handler getHandler() {\n return getEcologyLooper().getHandler();\n }", "java.lang.String getSessionHandle();", "public Handler getHandler() {\r\n return handler;\r\n }", "public Handler getHandler() {\r\n return handler;\r\n }", "public Class<?> getHandler();", "@Override\n\tpublic Handler getHandler() {\n\t\t// TODO Auto-generated method stub\n\t\treturn mHandler;\n\t}", "public int getCurrentStateHandler() {\n return _currentStateHandler;\n }", "public int getHandler() {\n\t\treturn 1;\n\t}", "static String getHandler(HttpServletRequest request) {\n String requestURI = request.getRequestURI();\n return requestURI.substring(getDividingIndex(requestURI) + 1);\n }", "public Handler getHandler() {\n return null;\n }", "public Handler getHandler() {\n\t\treturn this.serverHandler;\n\t}", "@Override\n\tpublic Handler getHandler() {\n\t\treturn mHandler;\n\t}", "public Handler getHandler() {\n return mHandler;\n }", "public Handler getHandler() {\n return this.mHandler;\n }", "public static synchronized INSURLHandler getINSURLHandler() {\n/* 50 */ if (insURLHandler == null) {\n/* 51 */ insURLHandler = new INSURLHandler();\n/* */ }\n/* 53 */ return insURLHandler;\n/* */ }", "protected Object getHandlerInternal(HttpServletRequest request) {\n String lookupPath = WebUtils.getLookupPathForRequest(request, this.alwaysUseFullPath);\n logger.debug(\"Looking up handler for: \" + lookupPath);\n return lookupHandler(lookupPath);\n }", "public String getHandler() {\n return handler;\n }", "public MainThreadExecutor getHandler() {\n return handler;\n }", "private Handler getHandler(Request request) {\n return resolver.get(request.getClass().getCanonicalName()).create();\n }", "Handler getHandler(final String handlerName);", "@ClientConfig(JsonMode.Function)\n\r\n\tpublic Object getHandler () {\r\n\t\treturn (Object) getStateHelper().eval(PropertyKeys.handler);\r\n\t}", "public PacketHandler getHandler(String key) {\n PacketHandler h=(PacketHandler)mHandlers.get(key);\n if (h==null)\n h=getDefaultHandler();\n return h;\n }", "protected final Object lookupHandler(String urlPath) {\n Object handler = this.handlerMap.get(urlPath);\n if (handler != null) {\n return handler;\n }\n for (Iterator it = this.handlerMap.keySet().iterator(); it.hasNext(); ) {\n String registeredPath = (String) it.next();\n if (PathMatcher.match(registeredPath, urlPath)) {\n return this.handlerMap.get(registeredPath);\n }\n }\n // no match found\n return null;\n }", "public CommandHandler getHandler() {\n\t\treturn handler;\n\t}", "public static UiHandler getUiHandler() {\n Stage stage = THREAD_LOCAL_STAGE.get();\n if (stage == null) {\n return null;\n } else {\n return stage.mUiHandler;\n }\n\n }", "public Handler waitAndGetHandler() {\n waitUntilStarted();\n return getHandler();\n }", "protected Object lookupHandler(String urlPath, HttpServletRequest request) throws Exception\r\n\t{\n\t\tObject handler = super.lookupHandler(urlPath, request);\r\n\t\tif (handler == null)\r\n\t\t{ // 800, 如果uri直接查找不到,则匹配前面一个\r\n\t\t\tString path = urlPath.substring(0, urlPath.indexOf('/', 2));\r\n\t\t\thandler = super.lookupHandler(path, request);\r\n//\t\t\tSystem.out.println(\"path: \" + path + \":\" + handler);\r\n\t\t}\r\n\t\thandler = handler == null ? getRootHandler() : handler;\r\n//\t\tSystem.out.println(\"urlPath: \" + urlPath + \":\" + handler);\r\n\t\treturn handler;\r\n\t}", "Session getCurrentSession();", "Session getCurrentSession();", "public HandlerExecutionChain getHandler(HttpServletRequest request) {\n\t\tString url = request.getServletPath();\n\t\tSystem.out.println(url+\" 123\");\n\t\tController ctl = (Controller) ApplicationContext.getBean(url);\n\t\tHandlerExecutionChain chain = new HandlerExecutionChain();\n\t\tchain.setHandler(ctl);\n\t\treturn chain;\n\t}", "public synchronized AuthenticationHandler getAuthenticationHandler()\n\t{\n\t\tif (this.authHandler != null)\n\t\t{\n\t\t\treturn this.authHandler;\n\t\t}\n\n\t\tif (getAuthenticationHandlerFactory() != null)\n\t\t{\n\t\t\t// The user has plugged in a factory. let's use it.\n\t\t\tthis.authHandler = getAuthenticationHandlerFactory().create();\n\t\t\tif (this.authHandler == null)\n\t\t\t\tthrow new NullPointerException(\"AuthenticationHandlerFactory returned a null handler\");\n\t\t}\n\t\telse\n\t\t{\n\t\t\t// A placeholder.\n\t\t\tthis.authHandler = new DummyAuthenticationHandler();\n\t\t}\n\t\t\n\t\t// Return the variable, which can be null\n\t\treturn this.authHandler;\n\t}", "protected synchronized ScriptHandler getScriptHandler(String request, String[] params) {\r\n \thandlerLock.lock();\r\n if (currentLoader != null || currentScriptHandler != null) {\r\n }\r\n if (params == null)\r\n currentScriptHandler = new ScriptHandler(request);\r\n else\r\n currentScriptHandler = new ScriptHandler(request, params);\r\n return currentScriptHandler;\r\n }", "HandlerHelper getHandlerHelper() {\n return handlerHelper;\n }", "public InstructionHandle getHandlerStart() {\n return handlerPc;\n }", "private Handler getHandler() {\n\t\tsynchronized (waitingThreads) {\n\t\t\twhile (waitingThreads.isEmpty()) {\n\t\t\t\ttry {\n\t\t\t\t\twaitingThreads.wait(2000);\n\t\t\t\t} catch (InterruptedException ignore) {\n\t\t\t\t\t// should not happen\n\t\t\t\t}\n\n\t\t\t\tif (!waitingThreads.isEmpty()) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tHandler w = waitingThreads.remove(0);\n\t\t\treturn w;\n\t\t}\n\t}", "static Handler getCallbackHandler() {\n return sCallbackHandler;\n }", "public RequestAction geRequestHandler(String request){\n RequestAction requestHandler =requestHandlerMap.get(request);\n if(requestHandler ==null)\n return requestHandlerMap.get(\"notSupported\");\n return requestHandler;\n }", "protected XPath getXPathHandler()\n\t{\n\t\treturn xPath;\n\t}", "com.google.protobuf.ByteString\n getSessionHandleBytes();", "public AsyncHandler getAsyncHandler() {\n return asyncHandler;\n }", "private synchronized Handler getCustomHandler( ) {\n if( (customHandler != null ) \n ||(customHandlerError) ) \n {\n return customHandler;\n }\n LogService logService = getLogService( );\n if( logService == null ) {\n return null;\n }\n String customHandlerClassName = null;\n try {\n customHandlerClassName = logService.getLogHandler( );\n\n customHandler = (Handler) getInstance( customHandlerClassName );\n // We will plug in our UniformLogFormatter to the custom handler\n // to provide consistent results\n if( customHandler != null ) {\n customHandler.setFormatter( new UniformLogFormatter(componentManager.getComponent(Agent.class)) );\n }\n } catch( Exception e ) {\n customHandlerError = true; \n new ErrorManager().error( \"Error In Initializing Custom Handler \" +\n customHandlerClassName, e, ErrorManager.GENERIC_FAILURE );\n }\n return customHandler;\n }", "public RequestHandler getRequestHandlerInstance() {\n Object obj;\n try {\n obj = klass.newInstance();\n } catch (Exception e) {\n throw new RuntimeException(\"Problem during the Given class instanciation please check your contribution\", e);\n }\n if (obj instanceof RequestHandler) {\n RequestHandler rh = (RequestHandler) obj;\n rh.init(properties);\n return rh;\n }\n\n throw new RuntimeException(\"Given class is not a \" + RequestHandler.class + \" implementation\");\n }", "public RequestedVariableHandler getRequestedVariableHandler(){\n\t\treturn requestedVariableHandler;\n\t}", "EventCallbackHandler getCallbackHandler();", "public IoHandler getHandler()\n {\n return new MRPClientProtocolHandler();\n }", "public InputHandler getInputHandler() {\n return inputHandler;\n }", "public RunePouchHandler getInstance() {\n return instance == null ? instance = new RunePouchHandler(this.superClass) : instance;\n }", "private Handler getConnectorHandler() {\n return connectorHandler;\n }", "public static Session getCurrentSession() {\r\n //LOG.debug(MODULE + \"Get CurrentSession\");\r\n\r\n /* This code is to find who has called the method only for debugging and testing purpose.\r\n try {\r\n throw new Exception(\"Who called Me : \");\r\n } catch (Exception e) {\r\n //LOG.debug(\"I was called by \" + e.getStackTrace()[2].getClassName() + \".\" + e.getStackTrace()[2].getMethodName() + \"()!\");\r\n LOG.debug(\"I was called by : \", e);\r\n }\r\n */\r\n return openSession();\r\n //return sessionFactory.getCurrentSession();\r\n }", "default Handler asHandler() {\n return new HandlerBuffer(this);\n }", "public Object getDelegateSession() throws UMOException\n {\n return null;\n }", "public InputHandler getInputHandler() {\n return inputHandler;\n }", "HttpServletRequest getCurrentRequest();", "public static Handler getInstance() {\n Object object = sHandler;\n if (object != null) {\n return sHandler;\n }\n object = MainThreadAsyncHandler.class;\n synchronized (object) {\n Handler handler = sHandler;\n if (handler == null) {\n handler = Looper.getMainLooper();\n sHandler = handler = HandlerCompat.createAsync((Looper)handler);\n }\n return sHandler;\n }\n }", "protected final SessionState getSessionState() {\n Session currentSession = sessionTracker.getSession();\n return (currentSession != null) ? currentSession.getState() : null;\n }", "public static DatabaseHandler getInstance(){\n if(handler == null){\n handler = new DatabaseHandler();\n }\n return handler;\n }", "public static DbHandler getInstance()\n\t{\n\t\treturn instance;\n\t}", "public NodeHandler getNodeHandler () {\n return nodeHandler;\n }", "public ContentHandler getContentHandler()\n {\n return (contentHandler == base) ? null : contentHandler;\n }", "public void checkHandler()\n {\n ContextManager.checkHandlerIsRunning();\n }", "private static Session getInstance() {\n return SingletonHolder.INSTANCE;\n }", "ProcessContextHandler getProcessContextHandler() {\n return processContextHandler;\n }", "public final static PlayerHandler getPlayerHandler() {\r\n\t\treturn playerHandler;\r\n\t}", "public static InvocationHandler getInvocationHandler(Object proxy)\n throws IllegalArgumentException\n {\n return null;\n }", "public InputHandler getInputHandler(String option) {\n\t\tif (inputHandlers.containsKey(option)) {\n\t\t\treturn inputHandlers.get(option);\n\t\t}\n\t\treturn null;\t// TODO : error/message\n\t}", "public interface SessionHandler extends Component {\n\n String getWorkerName();\n\n Scheduler getScheduler();\n\n SessionIdGenerator getSessionIdGenerator();\n\n SessionCache getSessionCache();\n\n int getDefaultMaxIdleSecs();\n\n void setDefaultMaxIdleSecs(int defaultMaxIdleSecs);\n\n /**\n * Get a known existing session.\n * @param id the session id\n * @return a Session or null if none exists\n */\n DefaultSession getSession(String id);\n\n /**\n * Create an entirely new Session.\n * @param id identity of session to create\n * @return the new session object\n */\n DefaultSession createSession(String id);\n\n void releaseSession(DefaultSession session);\n\n /**\n * Create a new Session ID.\n * @param seedTerm the seed for RNG\n * @return the new session id\n */\n String createSessionId(long seedTerm);\n\n /**\n * Change the id of a Session.\n * @param oldId the current session id\n * @param newId the new session id\n * @return the Session after changing its id\n */\n String renewSessionId(String oldId, String newId);\n\n /**\n * Remove session from manager.\n * @param id the session to remove\n * @param invalidate if false, only remove from cache\n * @return if the session was removed\n */\n DefaultSession removeSession(String id, boolean invalidate);\n\n DefaultSession removeSession(String id, boolean invalidate, Session.DestroyedReason reason);\n\n /**\n * Called when a session has expired.\n * @param id the id to invalidate\n */\n void invalidate(String id);\n\n void invalidate(String id, Session.DestroyedReason reason);\n\n /**\n * Each session has a timer that is configured to go off\n * when either the session has not been accessed for a\n * configurable amount of time, or the session itself\n * has passed its expiry.\n *\n * If it has passed its expiry, then we will mark it for\n * scavenging by next run of the HouseKeeper; if it has\n * been idle longer than the configured eviction period,\n * we evict from the cache.\n *\n * If none of the above are true, then the System timer\n * is inconsistent and the caller of this method will\n * need to reset the timer.\n * @param session the default session\n * @param now the time at which to check for expiry\n */\n void sessionInactivityTimerExpired(DefaultSession session, long now);\n\n /**\n * Called periodically by the HouseKeeper to handle the list of\n * sessions that have expired since the last call to scavenge.\n */\n void scavenge();\n\n /**\n * Adds an event listener for session-related events.\n * @param listener the session listener\n * @see #removeSessionListener(SessionListener)\n */\n void addSessionListener(SessionListener listener);\n\n /**\n * Removes an event listener for session-related events.\n * @param listener the session listener to remove\n * @see #addSessionListener(SessionListener)\n */\n void removeSessionListener(SessionListener listener);\n\n /**\n * Removes all event listeners for session-related events.\n *\n * @see #removeSessionListener(SessionListener)\n */\n void clearSessionListeners();\n\n /**\n * Call binding and attribute listeners based on the new and old values of\n * the attribute.\n * @param name name of the attribute\n * @param newValue new value of the attribute\n * @param oldValue previous value of the attribute\n * @throws IllegalStateException if no session manager can be find\n */\n void fireSessionAttributeListeners(Session session, String name, Object oldValue, Object newValue);\n\n /**\n * Call the session lifecycle listeners.\n * @param session the session on which to call the lifecycle listeners\n */\n void fireSessionDestroyedListeners(Session session);\n\n /**\n * Record length of time session has been active. Called when the\n * session is about to be invalidated.\n * @param session the session whose time to record\n */\n void recordSessionTime(DefaultSession session);\n\n /**\n * @return the maximum amount of time session remained valid\n */\n long getSessionTimeMax();\n\n /**\n * @return the total amount of time all sessions remained valid\n */\n long getSessionTimeTotal();\n\n /**\n * @return the mean amount of time session remained valid\n */\n long getSessionTimeMean();\n\n /**\n * @return the standard deviation of amount of time session remained valid\n */\n double getSessionTimeStdDev();\n\n /**\n * Resets the session usage statistics.\n */\n void statsReset();\n\n}", "protected Session getSession() {\n\n return (Session) getExtraData().get(ProcessListener.EXTRA_DATA_SESSION);\n }", "public Integer getHandlerId(){\n return SocketUtilities.byteArrayToInt(handlerId);\n }", "public interface SessionManager {\n void getSession(String request);\n}", "public static LoginHandlerInterface getLoginHandler() {\n\t\treturn new LoginHandler();\n\t}", "String getAssociatedSession();", "public static SessionKeeper getInstance(){\r\n if (sessionKeeperInstance == null) sessionKeeperInstance = new SessionKeeper();\r\n return sessionKeeperInstance;\r\n }", "public final String getHandlerId() {\n return prefix;\n }", "protected MessageListener createMessageHandler(Session session) {\n \tDefaultMessageHandler messageHandler = null;\n if (getSjmsEndpoint().getExchangePattern().equals(\n ExchangePattern.InOnly)) {\n if (isEndpointTransacted()) {\n messageHandler = new InOnlyMessageHandler(getEndpoint(),\n executor,\n new SessionTransactionSynchronization(session));\n } else {\n messageHandler = new InOnlyMessageHandler(getEndpoint(), executor);\n }\n } else {\n if (isEndpointTransacted()) {\n messageHandler = new InOutMessageHandler(getEndpoint(),\n executor,\n new SessionTransactionSynchronization(session));\n } else {\n messageHandler = new InOutMessageHandler(getEndpoint(), executor);\n }\n }\n messageHandler.setSession(session);\n messageHandler.setProcessor(getAsyncProcessor());\n messageHandler.setSynchronous(isSynchronous());\n messageHandler.setTransacted(isEndpointTransacted());\n messageHandler.setTopic(isTopic());\n return messageHandler;\n }", "public synchronized AuthenticationHandlerFactory getAuthenticationHandlerFactory()\n\t{\n\t\treturn authenticationHandlerFactory;\n\t}", "public abstract I_SessionInfo getSession(I_SessionName sessionName);", "protected abstract SESSION getThisAsSession();", "BodyHandler getBodyHandler();", "protected final Session getSession() {\n\t\treturn m_sess;\n\t}", "public IPSObjectStoreHandler getObjectStoreHandler();", "public static PersonHandler getInstance() {\n return PersonHandler.PersonHandlerHolder.INSTANCE;\n }", "public InputHandler getInputHandler() {\n\t\treturn getInputHandler(\"i\");\n\t}", "Object getNativeSession();", "GlossaryContextHandler getGlossaryContextHandler() {\n return glossaryContextHandler;\n }", "protected final Session getSession() {\n return sessionTracker.getSession();\n }", "public static synchronized BroadcastReceiverHandler getInstance() {\n return SingletonHolder.instance;\n }", "public LocalSession session() { return session; }", "public synchronized UDPDatagramHandler getUDPDatagramHandler() {\r\n\t\treturn handler;\r\n\t}", "public String getSessionState();", "public void setCurrentHandler(Handler handler){\n\t\tcurrentHandler = handler;\n\t}", "private URLStreamHandler getJVMClassPathHandler(final String protocol)\n {\n Debug doDebug = debug;\n if (doDebug != null && !doDebug.url) {\n doDebug = null;\n }\n if (jvmPkgs != null) {\n for (final String jvmPkg : jvmPkgs) {\n final String className = jvmPkg + \".\" + protocol + \".Handler\";\n try {\n if (doDebug != null) {\n doDebug.println(\"JVMClassPath - trying URLHandler class=\" + className);\n }\n final Class<?> clazz = Class.forName(className);\n final URLStreamHandler handler = (URLStreamHandler)clazz.newInstance();\n\n if (doDebug != null) {\n doDebug.println(\"JVMClassPath - created URLHandler class=\" + className);\n }\n\n return handler;\n } catch (final Throwable t) {\n if (doDebug != null) {\n doDebug.println(\"JVMClassPath - no URLHandler class \" + className);\n }\n }\n }\n }\n\n if (doDebug != null) {\n doDebug.println(\"JVMClassPath - no URLHandler for \" + protocol);\n }\n\n return null;\n }", "@Override\r\n\tpublic HttpSession getSession()\r\n\t{\r\n\t\t// This method was implemented as a workaround to __CR3668__ and Vignette Support ticket __247976__.\r\n\t\t// The issue seems to be due to the fact that both local and remote portlets try to retrieve\r\n\t\t// the session object in the same request. Invoking getSession during local portlets\r\n\t\t// processing results in a new session being allocated. Unfortunately, as remote portlets\r\n\t\t// use non-WebLogic thread pool for rendering, WebLogic seems to get confused and associates\r\n\t\t// the session created during local portlet processing with the portal request.\r\n\t\t// As a result none of the information stored originally in the session can be found\r\n\t\t// and this results in errors.\r\n\t\t// To work around the issue we maintain a reference to original session (captured on the\r\n\t\t// first invocation of this method during the request) and return it any time this method\r\n\t\t// is called. This seems to prevent the issue.\r\n\t\t// In addition, to isolate SPF code from the session retrieval issue performed by Axis\r\n\t\t// handlers used during WSRP request processing (e.g. StickyHandler), we also store\r\n\t\t// a reference to the session as request attribute. Newly added com.hp.it.spf.wsrp.misc.Utils#retrieveSession\r\n\t\t// can then use the request attribute value instead of calling request.getSession()\r\n\t\t// which before this change resulted in new session being allocated and associated with\r\n\t\t// the portal request.\r\n\r\n\t\tif (mSession == null) {\r\n\t\t\tmSession = ((HttpServletRequest)getRequest()).getSession();\r\n\r\n\t\t\t// Store session in request attribute for com.hp.it.spf.wsrp.misc.Utils#retrieveSession\r\n\t\t\tgetRequest().setAttribute(ORIGINAL_SESSION, mSession);\r\n\t\t}\r\n\r\n\t\treturn mSession;\r\n\t}", "public final static SoundHandler getSoundHandler() {\r\n\t\treturn soundHandler;\r\n\t}", "public static Session getCurrentSession() {\n if(currentSession != null){\n return currentSession;\n } else {\n createNewSession(new Point2D(300,300));\n return getCurrentSession();\n }\n }", "public SessionService session() {\n return service;\n }", "public RDBMSSession getSession() {\r\n\t\treturn (RDBMSSession) session;\r\n\t}", "final protected RobotSessionGlobals getSession() {\n return mSession;\n }", "public byte[] getCurrentHandle();", "public static Session currentSession() {\n Session session = (Session) sessionThreadLocal.get();\n // Open a new Session, if this Thread has none yet\n try {\n if (session == null) {\n session = sessionFactory.openSession();\n sessionThreadLocal.set(session);\n }\n } catch (HibernateException e) {\n logger.error(\"Get current session error: \" + e.getMessage());\n }\n return session;\n }" ]
[ "0.6816136", "0.66909313", "0.6645051", "0.6426481", "0.6397373", "0.6397373", "0.63682854", "0.63058954", "0.6271056", "0.62332654", "0.6225749", "0.6220065", "0.6188818", "0.61710334", "0.6160052", "0.6125912", "0.6114887", "0.60848486", "0.60740054", "0.606833", "0.60680157", "0.5913073", "0.58995616", "0.58966726", "0.5843978", "0.58288145", "0.58090484", "0.57647437", "0.569828", "0.56963843", "0.56963843", "0.5694742", "0.56758195", "0.55987734", "0.5589778", "0.5585746", "0.5559567", "0.55395085", "0.5505374", "0.5496766", "0.54742146", "0.547226", "0.5456599", "0.5441072", "0.54375917", "0.5424886", "0.5423298", "0.54205775", "0.5415392", "0.5396722", "0.5383979", "0.53777266", "0.537399", "0.53661865", "0.534219", "0.5337703", "0.5308001", "0.5285529", "0.52831286", "0.52799976", "0.5266566", "0.52642107", "0.5258191", "0.52463686", "0.52434266", "0.52236974", "0.5220011", "0.52185345", "0.52127737", "0.519965", "0.51839083", "0.51794195", "0.5178707", "0.5168798", "0.51590943", "0.5157905", "0.51520216", "0.5128704", "0.51181537", "0.51173395", "0.51133543", "0.51036257", "0.50915277", "0.50625825", "0.50598663", "0.5059583", "0.50510937", "0.504631", "0.5042278", "0.50307333", "0.50200737", "0.50192", "0.50139517", "0.5008276", "0.50027627", "0.4987079", "0.49856105", "0.4977219", "0.4966871", "0.49663764", "0.49636874" ]
0.0
-1
TODO Autogenerated method stub
@Override public Worker mapRow(ResultSet rs, int rowNum) throws SQLException { Worker department = new Worker(); department.setDepartment(rs.getString("department")); return department; }
{ "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
/ login=create.createAccount(prop.getProperty("YOUR_NAME"), prop.getProperty("MOBILE_NUMBER"), prop.getProperty("EMAIL"), prop.getProperty("PASSWORD"));
@DataProvider(name="excle") public static Object[][] createaccountTest() throws IOException { Object content[][]; FileInputStream file = new FileInputStream( "D:\\Java_Workspace\\FinalKDDFramework\\Input\\Account.xlsx"); XSSFWorkbook book = new XSSFWorkbook(file); XSSFSheet sheet = book.getSheet("Sheet1"); int rows = sheet.getLastRowNum(); content = new Object[(sheet.getLastRowNum())-1][sheet.getRow(1) .getLastCellNum()]; Row row; System.out.println("total no of rows " + rows); for (int i = 1; i <rows; i++) { row = sheet.getRow(i); int cells = row.getLastCellNum(); for (int j = 0; j < cells; j++) { Cell cell = row.getCell(j); if (cell.getCellTypeEnum().name().equals("NUMERIC")) { content[i-1][j] = cell.getNumericCellValue(); } else if (cell.getCellTypeEnum().name().equals("STRING")) { content[i-1][j] = cell.getStringCellValue(); } } System.out.println(); } /* * catch (FileNotFoundException e) { * System.out.println("file not found"); e.printStackTrace(); } */ return content; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void creatUser(String name, String phone, String email, String password);", "void createCustomerAccount(String mobileNumber) throws Exception;", "@Test\n\tpublic void createAccount() {\t\n\t\t\n\t\tRediffOR.setCreateAccoutLinkClick();\n\t\tRediffOR.getFullNameTextField().sendKeys(\"Kim Smith\");\n\t\tRediffOR.getEmailIDTextField().sendKeys(\"Kim Smith\");\n\t\t\t\t\t\n\t\t\n\t}", "AionAddress createAccount(String password);", "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 void createAccount(){\n System.out.println(\"vi skal starte \");\n }", "WithCreate withProperties(AccountProperties properties);", "public void createUserAccount(UserAccount account);", "Account create();", "int createAccount(Account account);", "public void crearUsuario(String cedula,String name ,String lastname ,String phone , String city ,String email,String password) throws BLException;", "@Override\n\tpublic String createAccount() {\n\t\treturn \"Created Saving Account Sucessfully\";\n\t}", "GenerateUserAccount () {\r\n }", "private void createUser(final String email, final String password) {\n\n }", "String addAccount(UserInfo userInfo);", "@Test(priority=1, dataProvider=\"User Details\")\n\t\tpublic void registration(String firstname,String lastname,String emailAddress,\n\t\t\t\tString telephoneNum,String address1,String cityName,String postcodeNum,\n\t\t\t\tString country,String zone,String pwd,String confirm_pwd) throws Exception{\n\t\t\t\n\t\t\thomePage = new HomePage(driver);\n//'**********************************************************\t\t\t\n//Calling method to click on 'Create Account' link\n\t\t\tregistraionPageOC = homePage.clickCreateAccount();\n//'**********************************************************\t\t\t\n//Calling method to fill user details in Registration page and verify account is created\n\t\t\tregistraionPageOC.inputDetails(firstname,lastname,emailAddress,telephoneNum,address1,cityName,postcodeNum,country,zone,pwd,confirm_pwd);\n\t\t\ttry{\n\t\t\tAssert.assertEquals(\"Your Account Has Been Created!\", driver.getTitle(),\"Titles Not Matched: New Account Not Created\");\n\t\t\textentTest.log(LogStatus.PASS, \"Registration: New User Account is created\");\n\t\t\t}catch(Exception e){\n\t\t\t\textentTest.log(LogStatus.FAIL, \"Registration is not successful\");\n\t\t\t}\n\t\t}", "public void createLoginSession(String name, String email, String phone){\n editor.putBoolean(IS_LOGIN, true);\n\n // Storing data in pref\n editor.putString(KEY_NAME, name);\n editor.putString(KEY_EMAIL, email);\n editor.putString(KEY_PHONE, phone);\n\n // commit changes\n editor.commit();\n }", "private void register(String username,String password){\n\n }", "public static void createAccount3() {\n\n\n System.setProperty(\"webdriver.chrome.driver\",\"resources/chromedriver.exe\");\n\n WebDriver driver = new ChromeDriver();\n\n driver.get(\"https://fasttrackit.org/selenium-test/\");\n driver.findElement(By.cssSelector(\"a[href*=\\\"account\\\"] .label\")).click();\n driver.findElement(By.cssSelector(\"a[title=\\\"Register\\\"]\")).click();\n\n driver.findElement(By.cssSelector(\"#middlename\")).sendKeys(\"test\");\n driver.findElement(By.cssSelector(\"#lastname\")).sendKeys(\"chris\");\n driver.findElement(By.cssSelector(\"#email_address\")).sendKeys(\"test12@yahoo.com\");\n driver.findElement(By.cssSelector(\"#password\")).sendKeys(\"test1212\");\n driver.findElement(By.cssSelector(\"#confirmation\")).sendKeys(\"test1212\");\n driver.findElement(By.cssSelector(\"button[title=\\\"Register\\\"]\")).click();\n\n driver.quit();\n\n\n\n }", "public static String createCustomer(String account, String serviceAddress, String email, String phonePlaceHolder){\n return \"insert into user_information(ui_account, ui_email, ui_phone, ui_serviceaddress)\" +\n \" values('\"+account+\"'\"+\",'\"+email+\"'\"+\",'\"+phonePlaceHolder+\"'\"+\",'\"+serviceAddress+\"')\";\n }", "@Test\r\n\tpublic void validLoginTest()\r\n\t{\n\t\thomePOM.selectMyAccount();\r\n\t\t\r\n\t\t//select Login option from My Account\r\n\t\thomePOM.myAccountLogin();\r\n\t\t//read username from property file\r\n\t\tusername=properties.getProperty(\"username\");\r\n\t\t//read password from property file\r\n\t\tpassword=properties.getProperty(\"password\");\r\n\t\t\r\n\t\t//login to Application\r\n\t\tloginPOM.sendLoginDetails(username,password);\r\n\t\t\r\n\t\t//validate login\r\n\t\tloginPOM.loginValidate();\r\n\t\t\r\n\t\t\r\n\t}", "@POST\n @Path(\"/user/account\")\n @Consumes(MediaType.APPLICATION_FORM_URLENCODED)\n public void createUserAccount(@FormParam(\"name\") String name, @FormParam(\"email\") String email, @FormParam(\"password\") String password, @FormParam(\"con_password\") String confirmPassword, @FormParam(\"address\") String address){\n \n System.out.println(name);\n System.out.println(email);\n System.out.println(password);\n System.out.println(confirmPassword);\n System.out.println(address);\n \n }", "protected void createAccount(JSONArray args, final CallbackContext callbackContext) {\n\t\tLog.d(TAG, \"CREATEACCOUNT\");\n\t\ttry {\n\t\t\tString email = args.getString(0);\n\t\t\tString password = args.getString(1);\n\t\t\tString userName = null;\n\t\t\tif (args.length() == 3) {\n\t\t\t\tuserName = args.optString(2);\n\t\t\t}\n\t\t\tNotificare.shared().createAccount(email, password, userName, new NotificareCallback<Boolean>() {\n\n\t\t\t\t@Override\n\t\t\t\tpublic void onSuccess(Boolean result) {\n\t\t\t\t\tif (callbackContext == null) {\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t\tcallbackContext.success();\n\t\t\t\t}\n\n\t\t\t\t@Override\n\t\t\t\tpublic void onError(NotificareError error) {\n\t\t\t\t\tif (callbackContext == null) {\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t\tcallbackContext.error(error.getLocalizedMessage());\n\t\t\t\t}\n\t\t\t});\n\t\t} catch (JSONException e) {\n\t\t\tcallbackContext.error(\"JSON parse error\");\n\t\t}\n\t}", "@Override\n public void onClick(View v) {\n Phone = RegisterPhone.getText().toString();\n Password = RegisterPassword.getText().toString();\n Name = RegisterName.getText().toString();\n\n\n CreateNewAccount(Phone,Password,Name);\n }", "@Test\n public void testCreateAccountWithPassword() {\n final CreateUserRequest createUserRequest = new CreateUserRequest();\n createUserRequest.setUsername(\"alpha@gamma.net\");\n createUserRequest.setPassword(\"beta\");\n createUserRequest.setFirstname(\"Alpha\");\n createUserRequest.setLastname(\"Gamma\");\n\n // Now, perform the actual test - create the Account, and verify that\n // the response is ok, and that a Notification was sent\n final CreateUserResponse result = administration.createUser(token, createUserRequest);\n assertThat(result.isOk(), is(true));\n assertThat(result.getUser(), is(not(nullValue())));\n assertThat(result.getUser().getUserId(), is(not(nullValue())));\n // Creating a new User should generate an Activate User notification\n final NotificationType type = NotificationType.ACTIVATE_NEW_USER;\n assertThat(spy.size(type), is(1));\n final String activationCode = spy.getNext(type).getFields().get(NotificationField.CODE);\n assertThat(activationCode, is(not(nullValue())));\n }", "NewAccountPage openNewAccountPage();", "private void createPassenger() {\n account = new Account(\"driver\", \"password\", \"driver@uclive.ac.nz\",\n \"Dan\", \"20 Howard Street\", 1234567, 64278182123L);\n }", "public void createAccountOnClick(View v){\n\n String email = emailTextView.getText().toString();\n String password = passwordTextView.getText().toString();\n createEmailAndPasswordAccount(email, password);\n\n }", "public void createAccount() {\n\t\t// Assigns variables based on user input\n\t\tString username = usernameField.getText();\n\t\tString firstName = firstNameField.getText();\n\t\tString lastName = lastNameField.getText();\n\t\tString address = addressField.getText();\n\t\tString postCode = postcodeField.getText();\n\t\tString phoneNumber = phoneNumberField.getText();\n\t\tlong phoneNumberLong;\n\t\tif (username.isEmpty() || firstName.isEmpty() || lastName.isEmpty() || address.isEmpty() || postCode.isEmpty()\n\t\t\t\t|| phoneNumber.isEmpty()) { // Checks if number is correct format\n\n\t\t\tAlert alert = new Alert(AlertType.ERROR); // Error message\n\t\t\talert.setTitle(\"Error\");\n\n\t\t\talert.setHeaderText(\"Could not create an user\");\n\t\t\talert.setContentText(\"Make sure you fill all fields and press button again\");\n\t\t\talert.showAndWait();\n\n\t\t\treturn;\n\t\t}\n\n\t\telse {\n\t\t\ttry {\n\t\t\t\tphoneNumberLong = Long.parseLong(phoneNumber);\n\t\t\t} catch (Exception e) {\n\t\t\t\tAlert alert = new Alert(AlertType.ERROR);\n\t\t\t\talert.setTitle(\"Error\");\n\n\t\t\t\talert.setHeaderText(\"Wrong format of phone number\");\n\t\t\t\talert.setContentText(\"Please enter correct phone number\");\n\t\t\t\talert.showAndWait();\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t\n\t\t\tif(FileReader.exists(username)) {\n\t\t\t\tAlert alert = new Alert(AlertType.ERROR);\n\t\t\t\talert.setTitle(\"Error\");\n\n\t\t\t\talert.setHeaderText(\"User with the username \"+ username +\" already exists. \");\n\t\t\t\talert.setContentText(\"Please choose another username\");\n\t\t\t\talert.showAndWait();\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tString userdata = \"\";\n\t\t\tuserdata += \"\\n Username: \" + username;\n\t\t\tuserdata += \"\\n First name: \" + firstName;\n\t\t\tuserdata += \"\\n Last name: \" + lastName;\n\t\t\tuserdata += \"\\n Address: \" + address;\n\t\t\tuserdata += \"\\n Post code: \" + postCode;\n\t\t\tuserdata += \"\\n Phone number: \" + phoneNumberLong;\n\t\t\t\n\n\t\t\tif(custom) {\n\t\t\t\tavatarIndex = 101;\n\t\t\t\t// Gives users the custom avatar\n\t\t\t\tFile file1 = new File(\"artworkImages/\" + username);\n\t\t\t\tfile1.mkdir();\n\t\t\t\tPath path = Paths.get(\"customAvatars/\" + username + \".png\");\n\t\t\t\tString path1 = \"tmpImg.png\";\n\t\t\t\tFile file = new File(path1);\n\n\t\t\t\ttry {\n\t\t\t\t\tFiles.copy(file.toPath(), path, StandardCopyOption.REPLACE_EXISTING);\n\t\t\t\t} catch (IOException e) {\n\t\t\t\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tUser user = new User(username, firstName, lastName, address, postCode, phoneNumberLong, avatarIndex);\n\t\t\tFileReader.addUser(user); // Creates user\n\n\t\t\ttry {\n\t\t\t\tWriter.writeUserFile(user); // Adds user to memory\n\t\t\t} catch (IOException e) {\n\t\t\t\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\t\n\n\t\t\tAlert alert = new Alert(AlertType.INFORMATION); // Success message\n\t\t\talert.setTitle(\"Success\");\n\n\t\t\talert.setHeaderText(\"The user has been created\");\n\t\t\talert.setContentText(\"Close this window to return to login screen\");\n\t\t\talert.showAndWait();\n\n\t\t\tcreateAccountButton.getScene().getWindow().hide();\n\t\t}\n\n\t}", "public void createAccount() {\n System.out.println(\"Would you like to create a savings or checking account?\");\n String AccountRequest = input.next().toLowerCase().trim();\n createAccount(AccountRequest);\n\n }", "@Given(\"^I'm on \\\"([^\\\"]*)\\\" page of GetGo pay with valid \\\"([^\\\"]*)\\\" and \\\"([^\\\"]*)\\\"$\")\n public void i_m_on_page_of_GetGo_pay_with_valid_and(String arg1, String arg2, String arg3) throws Throwable {\n passworddetails=arg3;\n email=PropertyReader.testDataOf(arg2);\n if(Device.isAndroid()) {\n welcome.clickLogin();\n login.enterEmail(PropertyReader.testDataOf(arg2));\n login.clickNext();\n login.enterPassword(PropertyReader.testDataOf(arg3));\n //login.enterPassword(PropertyReader.dynamicReadTestDataOf(arg3));\n\n login.clickLogin();\n //dashboard.\n }\n else\n {\n login.iOSLoginFlow(PropertyReader.testDataOf(arg2),PropertyReader.testDataOf(arg3));\n }\n\n }", "private void CreateUserAccount(final String lname, String lemail, String lpassword, final String lphone, final String laddress, final String groupid, final String grouppass ){\n mAuth.createUserWithEmailAndPassword(lemail,lpassword).addOnCompleteListener(this, new OnCompleteListener<AuthResult>() {\n @Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n if(task.isSuccessful()){\n //account creation successful\n showMessage(\"Account Created\");\n //after user account created we need to update profile other information\n updateUserInfo(lname, pickedImgUri,lphone, laddress, groupid, grouppass, mAuth.getCurrentUser());\n }\n else{\n //account creation failed\n showMessage(\"Account creation failed\" + task.getException().getMessage());\n regBtn.setVisibility(View.VISIBLE);\n loadingProgress.setVisibility(View.INVISIBLE);\n\n }\n }\n });\n }", "public void createLoginSession(String name, String email) {\n editor.putBoolean(Is_Login, true);\n // Storing name in pref\n editor.putString(Key_Name, name);\n // Storing email in pref\n editor.putString(Key_Email, email);\n // commit changes\n editor.commit();\n }", "public String createProductAccount(Accnowbs obj) {\n String str = null;\r\n\r\n try {\r\n BASE_URI = getURI();\r\n com.sun.jersey.api.client.config.ClientConfig config = new com.sun.jersey.api.client.config.DefaultClientConfig();\r\n client = Client.create(config);\r\n getRoleparameters();\r\n client.addFilter(new HTTPBasicAuthFilter(dname, dpwd));\r\n webResource = client.resource(BASE_URI).path(\"glwsprdacno\");\r\n\r\n ClientResponse response = webResource.accept(\"application/xml\").post(ClientResponse.class, obj);\r\n System.out.println(\"Server response : \\n\" + response.getStatus());\r\n\r\n if (response.getStatus() != 201) {\r\n throw new RuntimeException(\"Failed : HTTP error code : \"\r\n + response.getStatus() + \". Operation failed\");\r\n }\r\n\r\n String output = response.getEntity(String.class);\r\n System.out.println(\"Server response : \\n\");\r\n System.out.println(output);\r\n str = output;\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }\r\n\r\n return str;\r\n }", "public void addAccount(String user, String password);", "Account create(Context context);", "public void openAccount(Account a) {}", "public void signUpNew(String mail,String password){\n SimpleDateFormat simpleDateFormat = new SimpleDateFormat(\"yyyy/MM/dd HH:mm:ss\");\n String dateTime = simpleDateFormat.format(Calendar.getInstance().getTime());\n\n //device ID\n String deviceId = Settings.Secure.getString(context.getContentResolver(), Settings.Secure.ANDROID_ID);\n\n headers = new HashMap<>();\n headers.put(\"mail\",mail);\n headers.put(\"password\",password);\n headers.put(\"subscriptionDateTime\",dateTime);\n headers.put(\"deviceId\",deviceId);\n\n String url = serverUrl + \"/sign_up\";\n sendRequestNew(url,headers);\n }", "void registerNewUser(String login, String name, String password, String matchingPassword,\n String email);", "@Test\n\t\tpublic void login() {\n\n\t\t\tlaunchApp(\"chrome\", \"http://demo1.opentaps.org/opentaps/control/main\");\n\t\t\t//Enter username\n\t\t\tenterTextById(\"username\", \"DemoSalesManager\");\n\t\t\t//Enter Password\n\t\t\tenterTextById(\"password\", \"crmsfa\");\n\t\t\t//Click Login\n\t\t\tclickByClassName(\"decorativeSubmit\");\n\t\t\t//Check Browser Title\n\t\t\tverifyBrowserTitle(\"Opentaps Open Source ERP + CRM\");\n\t\t\t//Click Logout\n\t\t\tclickByClassName(\"decorativeSubmit\");\n\t\t\t\n\n\t\t}", "public abstract void createAccount(JSONObject account);", "private void createAccount(String email, String password) {\n if (!validateForm()) {\n return;\n }\n\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(MainActivity.this, \"Unable to creat Account\", Toast.LENGTH_SHORT).show();\n }\n }\n });\n }", "public void createAccount(String acctId, String pass, String cardNo, String email) {\n accountId = acctId;\n password = pass;\n cardNumber = cardNo;\n customerEmail = email;\n \n try {\n //conect to database\n Class.forName(\"com.mysql.jdbc.Driver\");\n con = DriverManager.getConnection(\"jdbc:mysql://localhost:3306/make_order_request\", \"root\", \"admin\");\n Statement mystmt = con.createStatement();\n\n //write SQL query to update code in database\n String query = \"INSERT INTO customer_account(account_id, password, card_no, customer_email) VALUES (?,?,?,?)\";\n PreparedStatement ps = con.prepareStatement(query);\n ps.setString(1, accountId);\n ps.setString(2, password);\n ps.setInt(3, Integer.parseInt(cardNumber));\n ps.setString(4, customerEmail);\n\n ps.executeUpdate();\n\n return;\n\n } catch (Exception e) {\n e.printStackTrace();\n \n }\n\n }", "public String Login(String phoneNum, String passwd) {\n return \"123\";\n }", "@Test\n public void testAccountLogin() {\n try {\n// WebAddProblemParameters webAddProblemParameters = new WebAddProblemParameters();\n// webAddProblemParameters.setPassportId(\"18612532596@sohu.com\");\n// webAddProblemParameters.setContent(\"搜狗通行证很好\");\n// webAddProblemParameters.setEmail(\"jiamengchen@126.com\");\n// webAddProblemParameters.setTitile(\"标题党\");\n// webAddProblemParameters.setTypeId(1);\n ProblemAnswer problemAnswer = new ProblemAnswer();\n problemAnswer.setAnsContent(\"你好,这个问题我们已经收到了,会马上处理\");\n problemAnswer.setAnsPassportId(\"chenjiameng@sogou-inc.com\");\n problemAnswer.setAnsTime(new Date());\n problemAnswer.setProblemId(1);\n Result result = problemAnswerManager.addProblemAnswer(problemAnswer,\"jiamengchen@126.com\");\n System.out.println(\"testAccountLogin:\"+result.toString());\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "@Test\n\tpublic void testCreateAdminAccountWithSpacesInPassword() {\n\t\tString username = \"Catherine\";\n\t\tString password = \"this is a bad password\";\n\t\tString error = null;\n\t\tAdminAccount user = null; \n\t\ttry {\n\t\t\tuser = adminAccountService.createAdminAccount(username, password, NAME1);\n\t\t} catch (InvalidInputException e) {\n\t\t\terror = e.getMessage();\n\t\t}\n\n\t\tassertNull(user);\n\t\t// check error\n\t\tassertEquals(\"Password cannot contain spaces.\", error);\n\t}", "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 void createAccount(String username, String password) {\n\t\tString send;\n\t\tsend = \"<NewAccount=\" + username + \",\" + password + \">\";\n\n\t\ttry {\n\t\t\tdos.writeUTF(send);\n\t\t} catch (Exception e) {\n\t\t\t//TODO\n\t\t}\n\t}", "private String createAccount(String name, double amount) {\n\t\tString accountNumber = \"\";\n\t\tAccount account = new Account();\n\t\taccount.setName(name);\n\t\taccount.setAmount(amount);\n\t\t\n\t\tString requestBody = gson.toJson(account);\n\n\t\tRequestSpecification request = RestAssured.given();\n\t\trequest.body(requestBody);\n\t\tResponse response = request.post(\"/account\");\n\t\tif (response.asString() != null && response.asString().contains(\":\")) {\n\t\t\tString responseArr[] = response.asString().split(\":\");\n\t\t\taccountNumber = responseArr[1].trim();\n\t\t}\n\t\treturn accountNumber;\n\t}", "void accountSet(boolean admin, String username, String password, String fName, String lName, int accountId);", "String signUp(String userName, String password) throws RemoteException, InterruptedException;", "public void setAccountNo (String AccountNo);", "public void loginAsUser() {\n vinyardApp.navigateToUrl(\"http://localhost:8080\");\n vinyardApp.fillUsername(\"user\");\n vinyardApp.fillPassord(\"123\");\n vinyardApp.clickSubmitButton();\n }", "AccountProperties properties();", "Account(String username, String email) {\n this.username = username;\n this.email = email;\n }", "NoteDTO create(String login, CreateNoteDTO createNoteDTO);", "Long create(EmployeeDTO u, String unencryptedPassword);", "@Override\n public void onSuccess(final Account account) {\n String accountKitId = account.getId();\n Log.println(Log.ASSERT, \"AccountKit\", \"ID: \" + accountKitId);\n\n boolean SMSLoginMode = false;\n\n // Get phone number\n PhoneNumber phoneNumber = account.getPhoneNumber();\n\n if (phoneNumber != null) {\n phoneNumberString = phoneNumber.toString();\n phone.setText(phoneNumberString.toString());\n Log.println(Log.ASSERT, \"AccountKit\", \"Phone: \" + phoneNumberString);\n SMSLoginMode = true;\n SharedPreferences settings = getSharedPreferences(\"prefs\", 0);\n SharedPreferences.Editor editor = settings.edit();\n editor.putString(\"PHN\", phoneNumberString);\n editor.apply();\n }\n\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 }", "public Login()\r\n\t{\r\n\t\tthis.name=name;\r\n\t\tthis.dob=dob;\r\n\t\tthis.nationality=nationality;\r\n\t\tthis.location=location;\r\n\t\tthis.phno=phno;\r\n\t\tthis.gender=gender;\r\n\t\tthis.jobtype=jobtype;\r\n\t\tthis.experience=experience;\r\n\t\tthis.salary=salary;\r\n\t\t\r\n\t\tthis.uname=uname;\r\n\t\tthis.password=password;\r\n\t\t\r\n\t\tthis.notification=notification;\r\n\t}", "@BeforeClass(alwaysRun = true)\r\n\tpublic void createUser() throws ParseException, SQLException, JoseException {\r\n\t\tSystem.out.println(\"******STARTING***********\");\r\n\t\tUser userInfo = User.builder().build();\r\n\t\tuserInfo.setUsername(userName);\r\n\t\tuserInfo.setPassword(\"Test@123\");\r\n\t\tsessionObj = EnvSession.builder().cobSession(config.getCobrandSessionObj().getCobSession())\r\n\t\t\t\t.path(config.getCobrandSessionObj().getPath()).build();\r\n\t\t//userHelper.getUserSession(\"InsightsEngineusers26 \", \"TEST@123\", sessionObj); \r\n\t\tuserHelper.getUserSession(userInfo, sessionObj);\r\n\t\tlong providerId = 16441;\r\n\t\tproviderAccountId = providerId;\r\n\t\tResponse response = providerAccountUtils.addProviderAccountStrict(providerId, \"fieldarray\",\r\n\t\t\t\t\"budget1_v1.site16441.1\", \"site16441.1\", sessionObj);\r\n\t\tproviderAccountId = response.jsonPath().getLong(JSONPaths.PROVIDER_ACC_ID);\r\n\t\tAssert.assertTrue(providerAccountId!=null);\r\n\t\t\r\n\t\t}", "private void insertCredentials(String email, String password){\n botStyle.type(this.userName, email);\n botStyle.type(this.password, password);\n }", "java.lang.String getLoginAccount();", "java.lang.String getLoginAccount();", "public static void main(String[] args) {\n \n \n \n Admin admin = new Admin();\n admin.setFirstName(\"Admin\");\n admin.setLastName(\"Admin\");\n admin.setEmail(\"peyman@gmail.com\");\n admin.setGender(\"Male\");\n admin.setUserName(\"admin\");\n admin.setPassword(\"7110eda4d09e062aa5e4a390b0a572ac0d2c0220\");\n admin.setPhoneNumber(\"514-999-0000\");\n //cl.setClientCard(new ClientCard(\"12-34-56\", DateTime.now(),cl));\n admin.saveUser();\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n }", "interface WithProperties {\n /**\n * Specifies the properties property: Properties of Cognitive Services account..\n *\n * @param properties Properties of Cognitive Services account.\n * @return the next definition stage.\n */\n WithCreate withProperties(AccountProperties properties);\n }", "public void setLogin(String login) {\n Logger.getGlobal().log(Level.INFO, \"Account: \" +login +\" creating\");\r\n this.login = login;\r\n }", "@Test\n\tpublic void loginToOpentaps() {\n\t\tinvokeApp(\"chrome\", \"http://demo1.opentaps.org\");\n\n\t\t// Step 2: Enter user name\n\t\tenterById(\"username\", \"DemoSalesManager\");\n\n\t\t// Step 3: Enter Password\n\t\tenterById(\"password\", \"crmsfa\");\n\n\t\t// Step 4: Click Login\n\t\tclickByClassName(\"decorativeSubmit\");\n\t\t\n\t\t// Step 5: Verify Username\n\t\tverifyTextContainsByXpath(\"//div[@id='form']/h2\", \"Welcome\");\n\t\t\n\t\t// Step 6: Click Logout\n\t\tclickByClassName(\"decorativeSubmit\");\n\t\t\n\n\n\n\t}", "@Test\t\t\n\tpublic void validuser() {\n\t\tFile file = new File(\"C:\\\\Users\\\\gururaj.ravindra\\\\eclipse-workspace\\\\6D\\\\config.properties\\\\testdata.properties\");\n\t\t \n\t\tFileInputStream fileInput = null;\n\t\ttry {\n\t\t\tfileInput = new FileInputStream(file);\n\t\t} catch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tProperties prop = new Properties();\n\t\t\n\t\t//load properties file\n\t\ttry {\n\t\t\tprop.load(fileInput);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t} \n\t\t\n\t\tWebDriver driver= BrowserFactory.StartBrowser(prop.getProperty(\"browserName\"),prop.getProperty(\"url\"));\n\t\tLoginPage login_page = PageFactory.initElements(driver, LoginPage.class);\n\t\tlogin_page.Validlogin(prop.getProperty(\"username\"),prop.getProperty(\"password\"));\n\t}", "HttpStatus createUserAccount(final String realm, final String username, final String firstName,\n\t\t\tfinal String lastName, final String email, final String password);", "private void setUserCredentials() {\n ((EditText) findViewById(R.id.username)).setText(\"harish\");\n ((EditText) findViewById(R.id.password)).setText(\"11111111\");\n PayPalHereSDK.setServerName(\"stage2pph10\");\n }", "public LoginOra() {\n super(\"Oracle Login\");\n\n }", "public interface TwilioService {\n String ACCOUNT_ID_TEST = \"ACCXXXX\";\n String ACCOUNT_TOKEN_TEST = \"ACXXX\";\n String FROM = \"XXXXX\";\n\n}", "CarPaymentMethod payPalUser(String firstName, String lastName);", "public String _setuser(b4a.HotelAppTP.types._user _u) throws Exception{\n_types._currentuser.username = _u.username;\n //BA.debugLineNum = 168;BA.debugLine=\"Types.currentuser.password = u.password\";\n_types._currentuser.password = _u.password;\n //BA.debugLineNum = 169;BA.debugLine=\"Types.currentuser.available = u.available\";\n_types._currentuser.available = _u.available;\n //BA.debugLineNum = 170;BA.debugLine=\"Types.currentuser.ID = u.ID\";\n_types._currentuser.ID = _u.ID;\n //BA.debugLineNum = 171;BA.debugLine=\"Types.currentuser.TypeOfWorker = u.TypeOfWorker\";\n_types._currentuser.TypeOfWorker = _u.TypeOfWorker;\n //BA.debugLineNum = 172;BA.debugLine=\"Types.currentuser.CurrentTaskID = u.CurrentTaskID\";\n_types._currentuser.CurrentTaskID = _u.CurrentTaskID;\n //BA.debugLineNum = 173;BA.debugLine=\"End Sub\";\nreturn \"\";\n}", "public static JSONObject createAccount(Context context, String firstName, String lastName, String email, String password) {\n\t\ttry {\n\t\t\tfirstName = URLEncoder.encode(firstName, \"UTF-8\");\n\t\t\tlastName = URLEncoder.encode(lastName, \"UTF-8\");\n\t\t\temail = URLEncoder.encode(email, \"UTF-8\");\n\t\t\tpassword = URLEncoder.encode(password, \"UTF-8\");\n\t\t\tString response = makeAPICall(context, \"createuser.php?first_name=\" + firstName + \"&last_name=\" + lastName + \"&email=\" + email + \"&password=\" + password);\n\t\t\treturn new JSONObject(response);\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t}\n\t}", "public RegisterMsg(String account, String password/*, String repassword*/) {\n this.account = account;\n this.password = password;\n //this.repassword = repassword;\n }", "public Account createAccount(Account account){\n\t\t\n\t\taccount.createdDate = new Date();\n\t\taccount.isActive = true;\n\t\t\n\t\t\n\t\taccount.person = personService.createPerson(account.person);\n\t\taccount.person.personSettings = personalSettingsService.createSettings(account.person.personSettings);\n\t\t\n\t\t\n\t\treturn account;\n\t}", "public com.vh.locker.ejb.Contact create(java.lang.Long id, java.lang.String name, java.lang.String nickName, java.lang.String phone, java.lang.String email, com.vh.locker.ejb.User anUser) throws javax.ejb.CreateException;", "public boolean SignUp(String username,String password,String realname) throws IOException, JSONException {\n OkHttpClient client = new OkHttpClient();\n RequestBody body = new FormBody.Builder()\n .add(\"user_id\",\"\")\n .add(\"user_code\", username)\n .add(\"user_pwd\", password)\n .add(\"user_name\", realname)\n .add(\"user_birthday\",\"\").build();\n String PcPath = \"http://www.mypc.com:8080\";\n String url=PcPath+\"/permission/user/useradd\";\n Request request = new Request.Builder().url(url).post(body).addHeader(\"Cookie\",this.jid).build();\n final Call call = client.newCall(request);\n Response response = call.execute();\n String responseData = response.body().string();\n JSONObject jsonObject = new JSONObject(responseData);\n int id = jsonObject.getInt(\"status\");\n if (id == 200) {\n return true;\n }\n return false;\n }", "private void createAccount() {\n mAuth.createUserWithEmailAndPassword(mTextEmail.getText().toString(), mTextPassword.getText().toString()).addOnCompleteListener(this, new OnCompleteListener<AuthResult>() {\n @Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n Log.d(TAG, \"createUserWithEmail:onComplete:\" + task.isSuccessful());\n\n if(!task.isSuccessful()){\n Toast.makeText(SignInActivity.this, \"Account creation failed!\", Toast.LENGTH_SHORT).show();\n } else {\n Toast.makeText(SignInActivity.this, \"Account creation success!\", Toast.LENGTH_SHORT).show();\n }\n }\n });\n }", "public static void main(String[] args){\n\t\tfinishAcc(\"awo+000785@outlook.com\");\n\t}", "private void createAccount(String username, String passphrase, String email) {\n\tif (!AccountManager.getUniqueInstance().candidateUsernameExists(username)) {\n\t try {\n\t\tAccountManager.getUniqueInstance().createCandidateAccount(username, \n\t\t\t\t\t\t\t\t\t passphrase, \n\t\t\t\t\t\t\t\t\t email);\n\t } catch (Exception e) {\n\t\tthrow new RuntimeException(\"creation failed\");\n\t }\n\t} else {\n\t throw new RuntimeException(\"username already exists\");\n\t}\n }", "public void Login(String username, String password) {\n //Create request\n SoapObject request = new SoapObject(NAMESPACE, METHOD_NAME);\n\n\n //Add the property to request object\n request.addProperty(\"Contact\",username);\n request.addProperty(\"Password\",password);\n\n\n\n //Create envelope\n SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(\n SoapEnvelope.VER11);\n envelope.dotNet = true;\n //Set output SOAP object\n envelope.setOutputSoapObject(request);\n //Create HTTP call object\n HttpTransportSE androidHttpTransport = new HttpTransportSE(URL);\n\n try {\n //Invole web service\n androidHttpTransport.call(SOAP_ACTION, envelope);\n //Get the response\n SoapPrimitive response = (SoapPrimitive) envelope.getResponse();\n //Assign it to fahren static variable\n res = response.getValue().toString();\n //res = response.getPropertyCount();\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "public static void registerTestNetAccount(KeyPair pair) throws Exception{\n String friendBotUrl = String.format(\n \"https://horizon-testnet.stellar.org/friendbot?addr=%s\",\n pair.getAccountId());\n InputStream response = new URL(friendBotUrl).openStream();\n String body = new Scanner(response, \"UTF-8\").useDelimiter(\"\\\\A\").next();\n System.out.println(\"SUCCESS! You have a new account :)\\n\" + body);\n\n }", "public interface SalesForceApi {\n\n //public static final String PROPERTY_SERVICES = \"/services/Soap/u/36.0/00Dg0000003L8Y6\";\n public static final String PROPERTY_SERVICES = \"services/Soap/u/37.0\";\n\n //@Headers({\"Content-Type: text/xml\", \"Accept-Charset: utf-8\"})\n @POST(PROPERTY_SERVICES)\n Call<LoginResponseEnvelope> login(@Body LoginRequestEnvelope body);\n\n //@POST(PROPERTY_SERVICES + \"/00Dg0000003L8Y6\")\n @POST(\"{url}\")\n Call<RetrieveResponseEnvelope> retrieve(@Body RetrieveRequestEnvelope body, @Path(\"url\") String url);\n\n}", "private static void loginToAccount() {\n\n\t\tSystem.out.println(\"Please enter your userName : \");\n\t\tString userName=scan.nextLine();\n\n\t\tSystem.out.println(\"Please enter your Password : \");\n\t\tString password=scan.nextLine();\n\n\t\tif(userName.equals(userName)&& password.equals(password))\n\t\t\tSystem.out.println(\"Welcome to AnnyBank\");\n\n\t\ttransactions();\n\t}", "@Test\n\tpublic void testCreate(){\n\t\t\n\t\tString jsonStr = \"{'companyName':'Lejia', 'companyNameLocal':'Lejia', 'companyAddress':'Guangdong', 'txtEmail':'qpsandy@126.com', 'telephone':'17721217320', 'contactPerson':'Molly'}\";\n\t\tcreateUser.createUserMain(jsonStr);\n\t\t\n\t}", "private void login(String username,String password){\n\n }", "final void loginAsDDUser() {\n\t\tPage_ viewContactPage = createPage(\"PAGE_VIEW_CONTACT_PROPERTIES_FILE\");\r\n\t\tcommonPage.clickAndWait(\"tabContacts\", \"newButton\");\r\n\t\tsearch(testProperties.getConstant(\"CONTACT_CSN\"));\r\n\t\t\r\n\t\t//We search the results on Account CSN to get the contact we want; we don't search on the contact name itself\r\n\t\t// because there are often duplicate names\r\n\r\n\t\t//commonPage.clickLinkInRelatedList(\"accountCsnInContactsRelatedList\", testProperties.getConstant(\"ACCOUNT_CSN\"), \"nameInContactsRelatedList\");\r\n\t\t//commonPage.clickLinkInRelatedList(\"accountCsnInReadOnlyContactsRelatedList\", testProperties.getConstant(\"ACCOUNT_CSN\"), \"nameInReadOnlyContactsRelatedList\");\r\n\t\tcommonPage.clickLinkInRelatedList(\"accountCsnInReadOnlyContactsRelatedList\", testProperties.getConstant(\"ACCOUNT_CSN\"), \"nameInReadOnlyContactsRelatedList\");\r\n\t\t//viewContactPage.waitForFieldPresent(\"loginAsPortalUserLink\");\r\n\t\tviewContactPage.waitForFieldPresent(\"contactDetailHeader\");\r\n\t}", "private static void signInCorpMailApp()\n\t{\n\t\t\n\t\tif(driver==null)\n\t\t\tlaunchBrowser();\n\t\t\n\t\tdriver.get(\"https://mail.nagra.com/\");\n\t\t\n\t\tCommonUtil.sleep(30);\n\t\t\n\t\t/*WebElement txtUserName = driver.findElement(By.id(\"username\"));\n\t\tWebElement txtPassword = driver.findElement(By.id(\"password\"));\n\t\t\n\t\tdriver.getTitle()\n\t\t\n\t\t//Input user name\n\t\ttxtUserName.clear();\n\t\ttxtUserName.sendKeys(username);\n\t\t\n\t\t//Input password\n\t\ttxtPassword.clear();\n\t\ttxtPassword.sendKeys(password);\n\t\t\n\t\t//Click login\n\t\tdriver.findElement(By.id(\"SubmitCreds\")).click();*/\n\t}", "Login(String strLogin)\n {\n \tsetLogin(strLogin);\n }", "@PostMapping(\"/addAcc\")\n public userAccount setUserAccount(@RequestBody userAccount account) {\n// System.out.println(\"Email:\"+account.getEmail());\n// System.out.println(\"username:\"+account.getUsername());\n// System.out.println(\"pass:\"+account.getPassword());\n return this.accountRepo.save(account);\n// return null;\n }", "private String sendCreateAAAAccountCommand(String adminToken,\n\t\t\tString userName, String password, String mail, String name,\n\t\t\tString gender, String birthday, String phone, String postalAddress,\n\t\t\tString employeeNumber, String iplanet_am_user_account_life) {\n\t\tString errorCode = Integer.toString(0);\n\n\t\tHttpURLConnection httpConn = null;\n\n\t\ttry {\n\t\t\thttpConn = this.setHttpConnection(openAMLocation\n\t\t\t\t\t+ \"/json/users/?_action=create\");\n\t\t\tthis.setHttpTokenInCookie(httpConn, adminToken);\n\n\t\t\tOutputStreamWriter owriter = this.setPostHttpConnection(httpConn,\n\t\t\t\t\t\"application/json\");\n\t\t\tJSONObject accountJsonObj = new JSONObject();\n\n\t\t\taccountJsonObj.put(\"username\", userName);\n\t\t\taccountJsonObj.put(\"userpassword\", password);\n\t\t\tif(!mail.equalsIgnoreCase(\"\"))\n\t\t\t\taccountJsonObj.put(\"mail\", mail);\n\t\t\tif(!name.equalsIgnoreCase(\"\"))\n\t\t\t\taccountJsonObj.put(\"givenName\", name);\n\t\t\tif(!gender.equalsIgnoreCase(\"\"))\n\t\t\t\taccountJsonObj.put(\"sunidentityserverpplegalidentitygender\", gender);\n\t\t\tif(!birthday.equalsIgnoreCase(\"\"))\n\t\t\t\taccountJsonObj.put(\"sunidentityserverppdemographicsbirthday\",birthday);\n\t\t\tif(!phone.equalsIgnoreCase(\"\"))\n\t\t\t\taccountJsonObj.put(\"telephonenumber\", phone);\n\t\t\tif(!postalAddress.equalsIgnoreCase(\"\"))\n\t\t\t\taccountJsonObj.put(\"postalAddress\", postalAddress);\n\t\t\tif(!employeeNumber.equalsIgnoreCase(\"\"))\n\t\t\t\taccountJsonObj.put(\"employeeNumber\", employeeNumber);\n\t\t\tif(!iplanet_am_user_account_life.equalsIgnoreCase(\"\"))\n\t\t\t\taccountJsonObj.put(\"iplanet-am-user-account-life\", iplanet_am_user_account_life);\n\n\t\t\tlogger.info(\"JSON: {}\", accountJsonObj.toString());\n\t\t\towriter.write(accountJsonObj.toString());\n\t\t\towriter.flush();\n\t\t\towriter.close();\n\n\t\t\tBufferedReader bufReader = this.getHttpInputReader(httpConn);\n\t\t\tStringBuffer sb = new StringBuffer();\n\t\t\tString str = null;\n\n\t\t\twhile ((str = bufReader.readLine()) != null) {\n\t\t\t\tlogger.info(\"{}\", str);\n\t\t\t\tsb.append(str);\n\t\t\t}\n\n\t\t\tString responseStr = sb.toString();\n\t\t\tString responseContentType = httpConn.getContentType();\n\t\t\tif (responseContentType.contains(\"json\")) {\n\t\t\t\tthis.userUUID = this.getUUIDByUserIdentity(sb.toString());\n\t\t\t}\n\t\t\tif (this.userUUID == null || this.userUUID.equals(\"\")) {\n\t\t\t\terrorCode = Integer.toString(13102);\n\t\t\t}\n\t\t\tif (responseStr.contains(\"ldap exception\")\n\t\t\t\t\t&& responseStr.contains(\"68\")) {\n\t\t\t\terrorCode = Integer\n\t\t\t\t\t\t.toString(13104);\n\t\t\t}\n\t\t\tif (responseStr.contains(\"ldap exception 19\")\n\t\t\t\t\t|| responseStr.contains(\"Minimum password length\")) {\n\t\t\t\terrorCode = Integer\n\t\t\t\t\t\t.toString(13103);\n\t\t\t}\n\n\t\t\tbufReader.close();\n\t\t} catch (IOException e) {\n\t\t\tlogger.error(\"IOException: \", e);\n\t\t\terrorCode = Integer.toString(11111);\n\t\t} catch (JSONException e) {\n\t\t\tlogger.error(\"JSONException: \", e);\n\t\t\terrorCode = Integer.toString(11111);\n\t\t} catch (Exception e) {\n\t\t\tlogger.error(\"Exception: \", e);\n\t\t\terrorCode = Integer.toString(11111);\n\t\t}\n\n\t\treturn errorCode;\n\t}", "BankAccount(){\n\t\tSystem.out.println(\"NEW ACCOUNT CREATED\");\t\n\t}", "@Override\n protected void onPreExecute() {\n super.onPreExecute();\n try {\n str_name = URLEncoder.encode(str_name,\n \"UTF-8\");\n str_password = URLEncoder.encode(str_password,\n \"UTF-8\");\n str_email = URLEncoder.encode(str_email,\n \"UTF-8\");\n str_paypalid = URLEncoder.encode(str_paypalid,\n \"UTF-8\");\n } catch (Exception e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n }", "@Given(\"User is logging on MyStore\")\r\n public void searchingForProduct() {\n LoginPageNew login = new LoginPageNew(driver);\r\n MainPage main = new MainPage(driver);\r\n AccountPage accPage = new AccountPage(driver);\r\n AddingAnAddressForm addressForm = new AddingAnAddressForm(driver);\r\n login.loginAs(\"bodorat996@wedbo.net\", \"123456\");\r\n main.goToAccPage();\r\n accPage.goToAddAddressForm();\r\n addressForm.fillingAddressForm(\"12\",\"Street Fighting Man\",\"02-223\",\"Sandia\",\"112322031\");\r\n accPage.goToMainPage();\r\n }", "@Test\n public void testCreateOnBehalfUser() throws Exception {\n String password = \"abcdef\";\n VOUserDetails result = idService\n .createOnBehalfUser(customer.getOrganizationId(), password);\n checkCreatedUser(result, customer, password, false);\n }", "public UserAuthToken createUser(CreateUserRequest request);", "public void create() {\n String salt = PasswordUtils.getSalt(30);\n\n // Protect user's password. The generated value can be stored in DB.\n String mySecurePassword = PasswordUtils.generateSecurePassword(password, salt);\n\n // Print out protected password\n System.out.println(\"My secure password = \" + mySecurePassword);\n System.out.println(\"Salt value = \" + salt);\n Operator op = new Operator();\n op.setUsername(username);\n op.setDescription(description);\n op.setSalt(salt);\n op.setPassword(mySecurePassword);\n op.setRol(rol);\n operatorService.create(op);\n message = \"Se creo al usuario \" + username;\n username = \"\";\n description = \"\";\n password = \"\";\n rol = null;\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 }" ]
[ "0.6768136", "0.6723579", "0.6447812", "0.63829297", "0.6357138", "0.6298075", "0.6089758", "0.6087714", "0.6042804", "0.5970514", "0.59636426", "0.5903176", "0.5900588", "0.5896576", "0.5869152", "0.58060384", "0.5800533", "0.57648027", "0.57264584", "0.57181203", "0.5717405", "0.57146", "0.56995636", "0.569234", "0.56618845", "0.5636877", "0.5636764", "0.5635341", "0.56352216", "0.5630591", "0.5584702", "0.5564914", "0.55386114", "0.55232614", "0.5514902", "0.54985064", "0.5486407", "0.5482356", "0.54338926", "0.5427399", "0.54151744", "0.54007167", "0.5397647", "0.53831875", "0.5373967", "0.53592104", "0.53498363", "0.5344195", "0.5343753", "0.5342869", "0.5337034", "0.5334354", "0.5330342", "0.5327801", "0.53273654", "0.5325534", "0.5312747", "0.5311832", "0.53072256", "0.53025997", "0.53011763", "0.52964294", "0.52864397", "0.52864397", "0.5277019", "0.52649575", "0.5262745", "0.5260751", "0.5242961", "0.5230994", "0.52297103", "0.5225019", "0.5222042", "0.5217681", "0.5213969", "0.52135336", "0.5213368", "0.520392", "0.5202535", "0.51937187", "0.5187738", "0.517914", "0.51789993", "0.5176891", "0.5164796", "0.5163991", "0.5150453", "0.5149918", "0.5143761", "0.51390916", "0.5137927", "0.51361984", "0.5132321", "0.5132052", "0.5131974", "0.5127689", "0.5126663", "0.51202536", "0.5119256", "0.51164323", "0.510377" ]
0.0
-1
public static Logger log = (Logger) LogManager.getLogger(BaseUtil.class.getName());
@Test() public void PatientRecord() { LoginPage login = new LoginPage(driver); DashboardItemsPage dash = new DashboardItemsPage(driver); FindPatientRecordPage fprecord = new FindPatientRecordPage(driver); login.LoginToDashboard("Admin", "Admin123"); fprecord.searchPatientRecord("Smith"); Assert.assertEquals("Find Patient Record", "Find Patient Record"); //Assert.assertEquals(Collections.singleton(fprecord.getPageTitle()), "Find Patient Record"); fprecord.getPageTitle(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static Logger getLogger() {\n return LogDomains.getLogger(ClassLoaderUtil.class, LogDomains.UTIL_LOGGER);\n }", "public static LogUtil getLogUtil()\n {\n if(logUtilsObj == null)\n {\n logUtilsObj = new LogUtil();\n }\n\n return logUtilsObj;\n }", "protected static Logger log() {\n return LogSingleton.INSTANCE.value;\n }", "public static Log getLoggerBase() {\r\n Log l = null;\r\n if (isRunning()) {\r\n l = getInstance().getLogBase();\r\n }\r\n return l;\r\n }", "private Logger getLogger() {\n return LoggingUtils.getLogger();\n }", "protected Log getLog()\n/* */ {\n/* 59 */ return log;\n/* */ }", "private Log() {\r\n\t}", "private LogUtil() {\r\n /* no-op */\r\n }", "private void init() {\r\n this.log = this.getLog(LOGGER_MAIN);\r\n\r\n if (!(this.log instanceof org.apache.commons.logging.impl.Log4JLogger)) {\r\n throw new IllegalStateException(\r\n \"LogUtil : apache Log4J library or log4j.xml file are not present in classpath !\");\r\n }\r\n\r\n // TODO : check if logger has an appender (use parent hierarchy if needed)\r\n if (this.log.isWarnEnabled()) {\r\n this.log.warn(\"LogUtil : logging enabled now.\");\r\n }\r\n\r\n this.logBase = this.getLog(LOGGER_BASE);\r\n this.logDev = this.getLog(LOGGER_DEV);\r\n }", "protected abstract Logger getLogger();", "public Logger getLogger()\n/* */ {\n/* 77 */ if (this.logger == null) {\n/* 78 */ this.logger = Hierarchy.getDefaultHierarchy().getLoggerFor(this.name);\n/* */ }\n/* 80 */ return this.logger;\n/* */ }", "private static final Logger getLog4JLogger(final Log l) {\r\n return ((org.apache.commons.logging.impl.Log4JLogger) l).getLogger();\r\n }", "private static Log getLog() {\n if (log == null) {\n log = new SystemStreamLog();\n }\n\n return log;\n }", "public static Logger getLogger()\n {\n if (logger == null)\n {\n Log.logger = LogManager.getLogger(BAG_DESC);\n }\n return logger;\n }", "public static Log getLogger() {\r\n Log l = null;\r\n if (isRunning()) {\r\n l = getInstance().getLog();\r\n }\r\n return l;\r\n }", "abstract void initiateLog();", "void initializeLogging();", "private ExtentLogger() {}", "private final Log getLogBase() {\r\n return this.logBase;\r\n }", "Appendable getLog();", "private static Logger getLogger() {\n if (logger == null) {\n try {\n new transactionLogging();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return logger;\n }", "@Override\n\tprotected Logger getLogger() {\n\t\treturn HMetis.logger;\n\t}", "public static Logger getLogger() {\r\n\t\tif (log == null) {\r\n\t\t\tinitLogs();\r\n\t\t}\r\n\t\treturn log;\r\n\t}", "@Override\n protected Logger getLogger() {\n return LOGGER;\n }", "@Override\n\tpublic void initLogger() {\n\t\t\n\t}", "private Logger getLogger() {\n return LoggerFactory.getLogger(ApplicationManager.class);\n }", "private JavaUtilLogHandlers() { }", "public Logger getLogger() {\t\t\n\t\treturn logger = LoggerFactory.getLogger(getClazz());\n\t}", "protected abstract ILogger getLogger();", "private static void _logInfo ()\n {\n System.err.println (\"Logging is enabled using \" + log.getClass ().getName ());\n }", "private Log() {\n }", "private static LogUtil getInstance() {\r\n if (instance == null) {\r\n final LogUtil l = new LogUtil();\r\n l.init();\r\n if (isShutdown) {\r\n // should not be possible :\r\n if (l.log.isErrorEnabled()) {\r\n l.log.error(\"LogUtil.getInstance : shutdown detected : \", new Throwable());\r\n }\r\n return l;\r\n }\r\n instance = l;\r\n\r\n if (instance.logBase.isInfoEnabled()) {\r\n instance.logBase.info(\"LogUtil.getInstance : new singleton : \" + instance);\r\n }\r\n }\r\n\r\n return instance;\r\n }", "public RevisorLogger getLogger();", "@Override\r\n\tpublic Logger getLogger() {\r\n\t\t\r\n\t\treturn LogFileGenerator.getLogger();\r\n\t\t\r\n\t}", "protected Log getLogger() {\n return LOGGER;\n }", "private Log getLog(final String key) {\r\n Log l = this.logs.get(key);\r\n\r\n if (l == null) {\r\n l = LogFactory.getLog(key);\r\n\r\n if (l != null) {\r\n this.addLog(key, l);\r\n } else {\r\n throw new IllegalStateException(\"LogUtil : Log4J is not initialized correctly : missing logger [\" + key + \"] = check the log4j configuration file (log4j.xml) !\");\r\n }\r\n }\r\n\r\n return l;\r\n }", "protected static Logger initLogger() {\n \n \n File logFile = new File(\"workshop2_slf4j.log\");\n logFile.delete();\n return LoggerFactory.getLogger(Slf4j.class.getName());\n }", "public Logger log() {\n return LOG;\n }", "public Logger getLog () {\n return log;\n }", "private Logger(){ }", "public Logger (){}", "public Logger getLogger() {\n\treturn _logger;\n }", "protected Logger getLogger() {\n return LoggerFactory.getLogger(getClass());\n }", "public BaseLogger getLogger() {\r\n\t\treturn logger;\r\n\t}", "private void initLoggers() {\n _logger = LoggerFactory.getInstance().createLogger();\n _build_logger = LoggerFactory.getInstance().createAntLogger();\n }", "public MyLogs() {\n }", "public Logger getLogger(){\n\t\treturn logger;\n\t}", "private static void defineLogger() {\n HTMLLayout layout = new HTMLLayout();\n DailyRollingFileAppender appender = null;\n try {\n appender = new DailyRollingFileAppender(layout, \"/Server_Log/log\", \"yyyy-MM-dd\");\n } catch (IOException e) {\n e.printStackTrace();\n }\n logger.addAppender(appender);\n logger.setLevel(Level.DEBUG);\n }", "public interface LoggerUtil {\n\t/**\n\t * Set the logger for the controller\n\t * \n\t * @param logName\n\t * @param filePath\n\t * @param logLevel\n\t * @return\n\t */\n\tLogger loggerArrangement(String logName, String filePath, LogeLevel logLevel);\n}", "@Override\n public MagicLogger getLogger() {\n return logger;\n }", "public String getLog();", "ClassLoaderLogInfo getClassLoaderLogInfo();", "private synchronized ILogger getLogger()\n {\n if( _logger == null )\n _logger = ClearLogFactory.getLogger( ClearLogFactory.PERSIST_LOG,\n this.getClass() );\n return _logger;\n }", "private Logger() {\n\n }", "public MyLogger () {}", "private void initLogger(BundleContext bc) {\n\t\tBasicConfigurator.configure();\r\n\t\tlogger = Logger.getLogger(Activator.class);\r\n\t\tLogger.getLogger(\"org.directwebremoting\").setLevel(Level.WARN);\r\n\t}", "public static Logger get() {\n\t\treturn LoggerFactory.getLogger(WALKER.getCallerClass());\n\t}", "@Override\n public Logger getLog(Class clazz) {\n return new Slf4jLogger(LoggerFactory.getLogger(clazz));\n }", "abstract public LoggingService getLoggingService();", "public void setLogUtilities(LogUtilities log) { this.log = log; }", "void log();", "@Override\n public void logs() {\n \n }", "Logger getLog(Class clazz);", "public static Log getLogger(Class cls) {\n return new Log4jLogger(cls);\n }", "@BeforeClass\npublic static void setLogger() {\n System.setProperty(\"log4j.configurationFile\",\"./src/test/resources/log4j2-testing.xml\");\n log = LogManager.getLogger(LocalArtistIndexTest.class);\n}", "private Logger(){\n\n }", "public SegaLogger getLog(){\r\n\t\treturn log;\r\n\t}", "public String get_log(){\n }", "IFileLogger log();", "@Override\r\n\tpublic Log getLog() {\n\t\treturn log;\r\n\t}", "private Log getLog() {\n if (controller != null) {\n log = controller.getLog();\n } \n return log ;\n }", "protected static NbaLogger getLogger() {\n\t\tif (logger == null) {\n\t\t\ttry {\n\t\t\t\tlogger = NbaLogFactory.getLogger(NbaCyberPrintRequests.class.getName());\n\t\t\t} catch (Exception e) {\n\t\t\t\tNbaBootLogger.log(\"NbaCyberPrintRequests could not get a logger from the factory.\");\n\t\t\t\te.printStackTrace(System.out);\n\t\t\t}\n\t\t}\n\t\treturn logger;\n\t}", "public static Logger getLogger() {\n if (logger == null) {\n logger = Logger.getLogger(APILOGS);\n\n try {\n\n // This block configure the logger with handler and formatter\n // The boolean value is to append to an existing file if exists\n\n getFileHandler();\n\n logger.addHandler(fh);\n SimpleFormatter formatter = new SimpleFormatter();\n fh.setFormatter(formatter);\n\n // this removes the console log messages\n // logger.setUseParentHandlers(false);\n\n } catch (SecurityException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return logger;\n }", "public LogService getLog() {\n\treturn log;\n }", "public Logger getLogger() {\n //depending on the subclass, we'll get a particular logger.\n Logger logger = createLogger();\n\n //could do other operations on the logger here\n return logger;\n }", "private final Log getLog() {\r\n return this.log;\r\n }", "abstract protected String getLogFileName();", "private void initLogConfig() {\n\t\t logConfigurator = new LogConfigurator();\n\t\t// Setting append log coudn't cover by a new log.\n\t\tlogConfigurator.setUseFileAppender(true);\n\t\t// Define a file path for output log.\n\t\tString filename = StorageUtils.getLogFile();\n\t\tLog.i(\"info\", filename);\n\t\t// Setting log output\n\t\tlogConfigurator.setFileName(filename);\n\t\t// Setting log's level\n\t\tlogConfigurator.setRootLevel(Level.DEBUG);\n\t\tlogConfigurator.setLevel(\"org.apache\", Level.ERROR);\n\t\tlogConfigurator.setFilePattern(\"%d %-5p [%c{2}]-[%L] %m%n\");\n\t\tlogConfigurator.setMaxFileSize(1024 * 1024 * 5);\n\t\t// Set up to use the cache first and then output to a file for a period\n\t\t// of time\n\t\tlogConfigurator.setImmediateFlush(false);\n\t\tlogConfigurator.setUseLogCatAppender(true);\n\t\t// logConfigurator.setResetConfiguration(true);\n\t\tlogConfigurator.configure();\n\t}", "@Override\n\tprotected PublicationControlLogger getLogger() {\n\t\treturn logger;\n\t}", "public Log(Logger logger) {\n this.logger = logger;\n }", "public static Log getLogger(final String key) {\r\n Log l = null;\r\n if (isRunning()) {\r\n l = getInstance().getLog(key);\r\n }\r\n return l;\r\n }", "public MCBLogger getLogger() {\n return logger;\n }", "public Logger getLogger()\n\t{\n\t\treturn logger;\n\t}", "public static Logger getLogger(String name) {\n\t\tif (name != null && name.length() > 0) {\n\t\t\tPropertyConfigurator.configure(\"log4j.properties\");\n\t\t\t// BasicConfigurator.configure();\n\t\t} else {\n\t\t\tBasicConfigurator.configure();\n\t\t}\n\n\t\t// get a logger instance named \"com.foo\"\n\t\t// Logger logger = Logger.getLogger(\"com.foo\");\n\t\t// ApacheLogTest.class.getResource(\"log4j.properties\");\n\t\tLogger logger = Logger.getLogger(name);\n\n\t\t// Now set its level. Normally you do not need to set the\n\t\t// level of a logger programmatically. This is usually done\n\t\t// in configuration files.\n\t\tlogger.setLevel(Level.ALL);\n\n\t\t// Logger barlogger = Logger.getLogger(\"com.foo.Bar\");\n\n\t\t// The logger instance barlogger, named \"com.foo.Bar\",\n\t\t// will inherit its level from the logger named\n\t\t// \"com.foo\" Thus, the following request is enabled\n\t\t// because INFO >= INFO.\n\t\t// barlogger.info(\"Located nearest gas station.\");\n\n\t\t// This request is disabled, because DEBUG < INFO.\n\t\t// barlogger.debug(\"Exiting gas station search\");\n\n\t\t// ///////////// Appenders ////////////////////////\n\n\t\t// Log4j allows logging requests to print to multiple destinations. In\n\t\t// log4j speak, an output destination is called an appender.\n\n\t\t// Currently, appenders exist for the console, files, GUI components,\n\t\t// remote socket servers, JMS, NT Event Loggers, and remote UNIX Syslog\n\t\t// daemons. It is also possible to log asynchronously.\n\n\t\t// ///////////// Layouts ////////////////////////\n\n\t\t// More often than not, users wish to customize not only the output\n\t\t// destination but also the output format. This is accomplished by\n\t\t// associating a layout with an appender. The layout is responsible for\n\t\t// formatting the logging request according to the user's wishes,\n\t\t// whereas an appender takes care of sending the formatted output to its\n\t\t// destination\n\t\treturn logger;\n\t}", "void log(Log log);", "private void initLogger() {\n\t\ttry {\n\t\t\tjava.util.logging.Logger rootLogger = java.util.logging.Logger.getLogger(\"\");\n\t\t\trootLogger.setUseParentHandlers(false);\n\t\t\tHandler csvFileHandler = new FileHandler(\"logger/log.csv\", 100000, 1, true);\n\t\t\tlogformater = new LogFormatter();\n\t\t\trootLogger.addHandler(csvFileHandler);\n\t\t\tcsvFileHandler.setFormatter(logformater);\n\t\t\tlogger.setLevel(Level.ALL);\n\t\t} catch (IOException ie) {\n\t\t\tSystem.out.println(\"Logger initialization failed\");\n\t\t\tie.printStackTrace();\n\t\t}\n\t}", "LogLevel getLogLevel();", "public AstractLogger getDefaultLogger()\n {\n return new DefaultLogger();\n }", "public LogX() {\n\n }", "private LoggerSingleton() {\n\n }", "public void setLog (Logger log) {\n this.log = log;\n }", "public static LoggerService getLog() {\n\t\tif (log == null) {\n\t\t\t//standard error stream is redirect to the nginx error log file, so we just use System.err as output stream.\n\t\t\tlog = TinyLogService.createDefaultTinyLogService();\n\t\t}\n\t\treturn log;\n\t}", "private Logger configureLogging() {\r\n\t Logger rootLogger = Logger.getLogger(\"\");\r\n\t rootLogger.setLevel(Level.FINEST);\r\n\r\n\t // By default there is one handler: the console\r\n\t Handler[] defaultHandlers = Logger.getLogger(\"\").getHandlers();\r\n\t defaultHandlers[0].setLevel(Level.CONFIG);\r\n\r\n\t // Add our logger\r\n\t Logger ourLogger = Logger.getLogger(serviceLocator.getAPP_NAME());\r\n\t ourLogger.setLevel(Level.FINEST);\r\n\t \r\n\t // Add a file handler, putting the rotating files in the tmp directory \r\n\t // \"%u\" a unique number to resolve conflicts, \"%g\" the generation number to distinguish rotated logs \r\n\t try {\r\n\t Handler logHandler = new FileHandler(\"/%h\"+serviceLocator.getAPP_NAME() + \"_%u\" + \"_%g\" + \".log\",\r\n\t 1000000, 3);\r\n\t logHandler.setLevel(Level.FINEST);\r\n\t ourLogger.addHandler(logHandler);\r\n\t logHandler.setFormatter(new Formatter() {\r\n\t\t\t\t\t\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tpublic String format(LogRecord record) {\r\n\t\t\t\t\t\tString result=\"\";\r\n\t\t\t\t\t\tif(record.getLevel().intValue() >= Level.WARNING.intValue()){\r\n\t\t\t\t\t\t\tresult += \"ATTENTION!: \";\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tSimpleDateFormat df = new SimpleDateFormat(\"dd-MMM-yyyy HH:mm:ss\");\r\n\t\t\t\t\t\tDate d = new Date(record.getMillis());\r\n\t\t\t\t\t\tresult += df.format(d)+\" \";\r\n\t\t\t\t\t\tresult += \"[\"+record.getLevel()+\"] \";\r\n\t\t\t\t\t\tresult += this.formatMessage(record);\r\n\t\t\t\t\t\tresult += \"\\r\\n\";\r\n\t\t\t\t\t\treturn result;\r\n\t\t\t\t\t}\r\n\t\t\t\t});\r\n\t } catch (Exception e) { // If we are unable to create log files\r\n\t throw new RuntimeException(\"Unable to initialize log files: \"\r\n\t + e.toString());\r\n\t }\r\n\r\n\t return ourLogger;\r\n\t }", "public Logger getLogger() {\n return logger;\n }", "private void repetitiveWork(){\n\t PropertyConfigurator.configure(\"log4j.properties\");\n\t log = Logger.getLogger(BackupRestore.class.getName());\n }", "protected Logger getLogger() {\n if (logger == null) {\n logger = Logger.getLogger(getClass().getName());\n }\n return logger;\n }", "public LogKitLogger(String name)\n/* */ {\n/* 64 */ this.name = name;\n/* 65 */ this.logger = getLogger();\n/* */ }", "public static Logger logger() {\n return logger;\n }", "protected NbaLogger getLogger() {\n\t\tif (logger == null) {\n\t\t\ttry {\n\t\t\t\tlogger = NbaLogFactory.getLogger(this.getClass());\n\t\t\t} catch (Exception e) {\n\t\t\t\tNbaBootLogger.log(this.getClass().getName() + \" could not get a logger from the factory.\");\n\t\t\t\te.printStackTrace(System.out);\n\t\t\t}\n\t\t}\n\t\treturn logger;\n\t}", "@Override\n public void log()\n {\n }", "private synchronized ILogger _getAuditLogger()\n {\n if( auditlogger == null )\n auditlogger = ClearLogFactory.getLogger( ClearLogFactory.AUDIT_LOG,\n this.getClass() );\n return auditlogger;\n }" ]
[ "0.79386675", "0.74007696", "0.7341694", "0.7222092", "0.7201479", "0.71206874", "0.69592965", "0.6931474", "0.6929203", "0.69188935", "0.69015914", "0.6889776", "0.68891895", "0.6864195", "0.68407214", "0.6837344", "0.6814819", "0.6811334", "0.6800265", "0.67955834", "0.67610115", "0.674551", "0.6737579", "0.6730293", "0.67026275", "0.6687972", "0.6684582", "0.66807014", "0.6667938", "0.6667851", "0.66507846", "0.6614195", "0.65872973", "0.6575115", "0.6556667", "0.6531029", "0.65194976", "0.6497383", "0.6486379", "0.64759743", "0.64672196", "0.6466322", "0.6432388", "0.642947", "0.6426322", "0.64242464", "0.6408406", "0.64069736", "0.6406772", "0.64040744", "0.64013505", "0.6395322", "0.6394341", "0.63772446", "0.63749504", "0.6374198", "0.63678867", "0.6366397", "0.6363032", "0.6362037", "0.6339212", "0.6337947", "0.63358605", "0.63345146", "0.6329355", "0.6293141", "0.6284164", "0.62782615", "0.62660193", "0.62621874", "0.6255117", "0.6254775", "0.62543255", "0.62504846", "0.62490827", "0.6247259", "0.62342775", "0.62189186", "0.62185884", "0.62157106", "0.62141174", "0.61960256", "0.61905175", "0.61900294", "0.61876553", "0.6185458", "0.61761826", "0.616331", "0.6160178", "0.6159118", "0.61577255", "0.61518365", "0.6143781", "0.6140006", "0.61394763", "0.61336267", "0.6131059", "0.61254585", "0.61253685", "0.6124093", "0.61224884" ]
0.0
-1
Add a User list
public void addUsersAlready(Users sa) { this.UserAlreadyRegistered.add(sa); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "List<User> addUsersToShowableList(UserListRequest userListRequest);", "public boolean addUsers(List<User> users);", "public void add(User user) {\r\n this.UserList.add(user);\r\n }", "@Override\n\t\tpublic void onUserListCreation(User arg0, UserList arg1) {\n\t\t\t\n\t\t}", "private void createUserList() {\n\t\tif (!userList.isEmpty() && !listUsers.isSelectionEmpty()) {\n\t\t\tlistUsers.clearSelection();\n\t\t}\t\t\n\t\tif (!archivedUserList.isEmpty() && !listArchivedUsers.isSelectionEmpty()) {\n\t\t\tlistArchivedUsers.clearSelection();\n\t\t}\t\t\n\t\tarchivedUserList.clear();\n\t\tuserList.clear();\n\t\tArrayList<User> users = jdbc.get_users();\n\t\tfor (int i = 0; i < users.size(); i++) {\n\t\t\tif (users.get(i).active()) {\n\t\t\t\tuserList.addElement(String.format(\"%s, %s [%s]\", users.get(i).get_lastname(), users.get(i).get_firstname(), users.get(i).get_username()));\n\t\t\t} else {\n\t\t\t\tarchivedUserList.addElement(String.format(\"%s, %s [%s]\", users.get(i).get_lastname(), users.get(i).get_firstname(), users.get(i).get_username()));\n\t\t\t}\t\t\n\t\t}\n\t}", "public static void addUser(String name)\n {\n userList.add(name);\n }", "public static void initializeUserList() {\r\n\t\tUser newUser1 = new User(1, \"Elijah Hickey\", \"snhuEhick\", \"4255\", \"Admin\");\r\n\t\tuserList.add(newUser1);\r\n\t\t\r\n\t\tUser newUser2 = new User(2, \"Bob Ross\", \"HappyClouds\", \"200\", \"Employee\");\r\n\t\tuserList.add(newUser2);\r\n\t\t\r\n\t\tUser newUser3 = new User(3, \"Jane Doe\", \"unknown person\", \"0\", \"Intern\");\r\n\t\tuserList.add(newUser3);\r\n\t}", "@Override\n\tpublic void onUserListCreation(User listOwner, UserList list) {\n\n\t}", "public void userListStart() {\n\t\tfor (int i = 0; i < userServices.getAllUsers().length; i++) {\n\t\t\tuserList.add(userServices.getAllUsers()[i]);\n\t\t}\n\t}", "public List createUserList()\r\n{\r\n\tUser madhu=new User(\"mekala.madhu@gmail.com\", \"madhu\");\r\n\tUser krishna=new User(\"Krishna.avva@gmail.com\", \"krishna\");\t\r\n\r\n\tList listOfUsers = new ArrayList();\r\n\tlistOfUsers.add(madhu);\r\n\tlistOfUsers.add(krshna);\r\n\treturn listOfUsers;\r\n}", "@Override\n\t\tpublic void onUserListMemberAddition(User arg0, User arg1, UserList arg2) {\n\t\t\t\n\t\t}", "private void updateUserList() {\n\t\tUser u = jdbc.get_user(lastClickedUser);\n\t\tString s = String.format(\"%s, %s [%s]\", u.get_lastname(), u.get_firstname(), u.get_username());\n\t\tuserList.setElementAt(s, lastClickedIndex);\n\t}", "private List<User> createUserList() {\n for (int i = 1; i<=5; i++) {\n User u = new User();\n u.setId(i);\n u.setEmail(\"user\"+i+\"@mail.com\");\n u.setPassword(\"pwd\"+i);\n userList.add(u);\n }\n return userList;\n }", "public void addUser(User user){\r\n users.add(user);\r\n }", "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 void setUserList(List<String> userList) {\n\t\tthis.userList = userList;\n\t}", "public void addUserBtn(){\n\t\t\n\t\t// TODO: ERROR CHECK\n\t\t\n\t\tUserEntry user = new UserEntry(nameTF.getText(), (String)usertypeCB.getValue(), emailTF.getText());\n\t\tAdminController.userEntryList.add(user);\n\t\t\n\t\t\n\t\t// Create a UserEntry and add it to the observable list\n\t\tAdminController.userList.add(user);\t\t\n\t\t\n\t //AdminController.adminTV.setItems(AdminController.userList);\n\t\t\n\t\t//Close current stage\n\t\tAdminController.addUserStage.close();\n\t\t\n\t}", "public void addUser(User user) {\n\t\tSystem.out.println(\"adding user :\"+user.toString());\n\t\tuserList.add(user);\n\t}", "public void setUserList(CopyOnWriteArrayList<User> userList) {\r\n\t\tBootstrap.userList = userList;\r\n\t}", "private void addUsers(List<String> userList, SubscriptionList subscriptionList, SubscriptionEventType eventType) {\n\t\tSubscription subscription = null;\n\t\t\n\t\tfor (Subscription s : subscriptionList.getSubscription()) {\n\t\t\tif (s.getEventType() == eventType) {\n\t\t\t\tsubscription = s;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n\t\tif (subscription != null) {\n\t\t\tfor (String userId : subscription.getUser()) {\n\t\t\t\tif (!userList.contains( userId )) {\n\t\t\t\t\tuserList.add( userId );\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public void addFriendList(FriendList list);", "private void createAllUsersList(){\n\t\tunassignedUsersList.clear();\n\t\tlistedUsersAvailList.clear();\n\t\tArrayList<User> users = jdbc.get_users();\n\t\tfor (int i = 0; i < users.size(); i++) {\n\t\t\tunassignedUsersList.addElement(String.format(\"%s, %s\", users.get(i).get_lastname(), users.get(i).get_firstname()));\n\t\t\tlistedUsersAvailList.addElement(String.format(\"%s, %s\", users.get(i).get_lastname(), users.get(i).get_firstname()));\n\t\t}\n\t}", "private void createUserListQual() {\n\t\tuserListAvailQual.clear();\n\t\tArrayList<User> users = jdbc.get_users();\n\t\tfor (int i = 0; i < users.size(); i++) {\n\t\t\tuserListAvailQual.addElement(String.format(\"%s, %s [%s]\", users.get(i).get_lastname(), users.get(i).get_firstname(), users.get(i).get_username()));\n\t\t}\n\t}", "public UserList(ArrayList<User> users)\n\t\t{\n\t\t\tthis.users = users;\n\t }", "@POST(\"/MakeUserList\")\n\tMap<Integer, User> makeUserList();", "@PostMapping(\"/user-list\")\n\tpublic String userlist(@ModelAttribute User user, ModelMap model){\n\t\tmodel.addAttribute(\"USERS\", userService.save(user));\n\t\tmodel.addAttribute(\"addStatus\", true);\n\t\treturn \"redirect:/admin/user-list\";\n\t\n\t}", "public void add(String fullName, String username, String password, String accType, String email, String salary){\n\t\t\n\t\t// Determine position where new User needs to be added\n\t\tUser marker = new User();\t\t\t\t\t\t\t\t\t/* ====> Create a marker */\n\t\tmarker = this.getHead();\t\t\t\t\t\t\t\t\t/* ====> Set the marker at the beginning of the list */\n\t\t\n\t\t// Check if the list contains only the head\n\t\tif(marker.getNext()!= null){\n\t\tmarker = marker.getNext();\t\t\t\t\t\t\t\t\t/* ====> If not then skip the head */\n\t\t}\n\t\t\n\t\t\n\t\t/*Iterate through the whole list and compare Strings. Move the marker until it reaches the end or until the input\n\t\t * username is greater than the marker's username . */\n\t\twhile((marker.getNext() != null) && (username.compareTo(marker.getUsername())>0)){\n\t\t\t\t\tmarker = marker.getNext();\n\t\t\t\t}\t\t\n\t\t\n\t\t/* When marker finds a user whose username is greater than the input it moves the marker back a position so that the new\n\t\t * user can be appended to that marker */\n\t\tif(marker.getPrev() != null){\n\t\t\t\tif(username.compareTo(marker.getUsername())<0){\n\t\t\t\t\tmarker = marker.getPrev();\n\t\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t\t// Create new user with the method's parameters as properties. Append it to the marker\n\t\tUser newUser = new User(marker.getNext(), marker);\n\t\tnewUser.setFullName(fullName);\n\t\tnewUser.setUsername(username);\n\t\tnewUser.setPassword(password);\n\t\tnewUser.setAccType(accType);\n\t\tnewUser.setEmail(email);\n\t\tnewUser.setSalary(salary);\n\t\t\n\t\t// Set connections to the new User\n\t\tnewUser.getPrev().setNext(newUser);\n\t\tif(newUser.getNext() != null){\n\t\tnewUser.getNext().setPrev(newUser);\n\t\t}\n\n\t}", "public void createUser(List<User> list) {\n\n Gson gson = new Gson();\n FileService writerService = new FileService();\n for (User user : list) {\n String userData = gson.toJson(user);\n writerService.writeToUserData(userData);\n }\n\n }", "public UserList(){\n\t\tthis.head = new User();\n\t\tthis.tail = this.head;\n\n\t}", "public void addUser(User user) {\n\t\tuserList.addUser(user);\n\t}", "public void addUser() {\n\t\tthis.users++;\n\t}", "public void addUser(ArrayList<Player> list,String U,String F,String G) {\r\n\t\tboolean flag = true;\r\n\t\tIterator<Player> aa = list.iterator();\r\n\t\twhile (aa.hasNext()) {\r\n\t\t\tPlayer in = aa.next();\r\n\t\t\tif(in.getUserName().equals(U)){\r\n\t\t\t\tSystem.out.println(\"The player already exists.\");\r\n\t\t\t\tflag =false;\r\n\t\t\t\treturn;\r\n\t\t\t}\t\r\n\t\t}\r\n\t\t\r\n\t\tif(flag)\r\n\t\t\tlist.add(new NimPlayer(U,F,G,0,0,\"Human\"));\r\n\t\tSystem.out.println(\"\");\r\n\t}", "public void updateList(ArrayList<String> users) {\n System.out.println(\"Updating the list...\");\n listModel.removeAllElements();\n userArrayList = users;\n int index = userArrayList.indexOf(user);\n if(index >= 0) {\n \tuserArrayList.remove(index);\n }\n for(int i=0; i<userArrayList.size(); i++){\n\t\t System.out.println(\"Adding to GUI List: \" + userArrayList.get(i));\n\t\t listModel.addElement(userArrayList.get(i));\n }\n userList.repaint();\n \n if(listModel.size() == 0) {\n \tJOptionPane.showMessageDialog(null,\"There are no other members registered on the server.\");\n\t \tfrmMain.dispatchEvent(new WindowEvent(frmMain, WindowEvent.WINDOW_CLOSING));\n }\n }", "public static List<User> createUserList() {\r\n\t\tList<User> users = new ArrayList<User>();\r\n\t\t\r\n\t\tusers.add(createUser(1, \"Isha\", \"Khandelwal\", \"isha.khandelwal@gmail.com\", \"ishaa\", \"ThinkHR\"));\r\n\t\tusers.add(createUser(2, \"Sharmila\", \"Tagore\", \"stagore@gmail.com\", \"stagore\", \"ASI\"));\r\n\t\tusers.add(createUser(3, \"Surabhi\", \"Bhawsar\", \"sbhawsar@gmail.com\", \"sbhawsar\", \"Pepcus\"));\r\n\t\tusers.add(createUser(4, \"Shubham\", \"Solanki\", \"ssolanki@gmail.com\", \"ssolanki\", \"Pepcus\"));\r\n\t\tusers.add(createUser(5, \"Ajay\", \"Jain\", \"ajain@gmail.com\", \"ajain\", \"TCS\"));\r\n\t\tusers.add(createUser(6, \"Sandeep\", \"Vishwakarma\", \"svishwakarma@gmail.com\", \"svishwakarma\", \"CIS\"));\r\n\t\tusers.add(createUser(7, \"Sushil\", \"Mahajan\", \"smahajan@gmail.com\", \"smahajan\", \"ASI\"));\r\n\t\tusers.add(createUser(8, \"Sumedha\", \"Wani\", \"swani@gmail.com\", \"swani\", \"InfoBeans\"));\r\n\t\tusers.add(createUser(9, \"Mohit\", \"Jain\", \"mjain@gmail.com\", \"mjain\", \"Pepcus\"));\r\n\t\tusers.add(createUser(10, \"Avi\", \"Jain\", \"ajain@gmail.com\", \"ajain\", \"Pepcus\"));\r\n\t\t\r\n\t\treturn users;\r\n\t}", "public void addList(String name){\n }", "private void populateUserList() {\n UserAdapter userAdapter = new UserAdapter(this, users.toArray((Map<String, String>[]) new Map[users.size()]));\n lstUsers.setAdapter(userAdapter);\n }", "public void addToFollowedUsers(List<String> followedUsers);", "public UserList()\n\t\t{\n\t\t\tusers = new ArrayList<User>();\n\t\t}", "public void setListUsersOnTable(List<User> usersList) {\n doEmptyTableList();\n usersList.stream().forEach(\n user -> tableList.addUserItem(user.getName(), user.getGroup().toString(), user.getTaskDone()));\n }", "public void appendUser(String str) {\n\t\tDefaultListModel<String> listModel = (DefaultListModel<String>) userList.getModel();\n\t\tlistModel.addElement(str);\n\t}", "@Override\n\tpublic void onUserListMemberAddition(User addedMember, User listOwner, UserList list) {\n\n\t}", "public UserList list();", "public void addUser(ArrayList<User> users) {\n comboCreateBox.removeAllItems();\n for (User usr : users) {\n comboCreateBox.addItem(usr.getUsername());\n }\n }", "public void add(String nickname, String username, String hostname) {\r\n this.UserList.add(new User(nickname, username, hostname));\r\n }", "private void addToArrayList(String getName) {\n\t\tUser newUser = new User(getName);\n\t\tmgUsr.arrList.add(newUser);\n\t\tobs = FXCollections.observableArrayList(mgUsr.arrList);\n\n\t\tsetOnListView();\n\t}", "public UserList createUsers(Set<User> usersToCreate);", "public void initialize() {\n\n list.add(user1);\n list.add(user2);\n list.add(user3);\n }", "@Override\r\n\tpublic void add(User user) {\n\r\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 void addFriendsList(String username, FriendsList friends)\r\n\t{\r\n\t\tfriendsLists.put(username, friends);\r\n\t}", "public void addUser(User user) {\n\t\t\r\n\t}", "public void newUser(User user) {\n users.add(user);\n }", "public void createAndAddUser(String fName, String lName){\n ModelPlayer user = new ModelPlayer(fName, lName);\n user.setUserID(this.generateNewId());\n userListCtrl.addUser(user);\n }", "public List <Person> addUser(List <Person> listOfPerson) {\n\t\tdo {\n\t\t\tPerson person = new Person();\n\n\t\t\tSystem.out.println(\"Enter the First Name: \");\n\t\t\tperson.setFname(Utility.inputString());\n\t\t\tSystem.out.println(\"Enter the Last Name: \");\n\t\t\tperson.setLname(Utility.inputString());\n\t\t\tSystem.out.println(\"Enter the Address: \");\n\t\t\tperson.setAddress(Utility.inputString());\n\t\t\tSystem.out.println(\"Enter the City: \");\n\t\t\tperson.setCity(Utility.inputString());\n\t\t\tSystem.out.println(\"Enter the State: \");\n\t\t\tperson.setState(Utility.inputString());\n\t\t\tSystem.out.println(\"Enter the Zip Code: \");\n\t\t\tperson.setZip(Utility.inputInteger());\n\t\t\tSystem.out.println(\"Enter the Phone Number: \");\n\t\t\tperson.setPhn(Utility.inputLong());\n //Adding the details given in person to the listOfPerson\n\t\t\tlistOfPerson.add(person);\n\t\t\tSystem.out.println(\"Person added successfully\");\n\t\t\tSystem.out.println(\"To add more person type true\");\n\t\t\treturn listOfPerson;\n\t\t} while (Utility.inputBoolean());\n\t}", "public void displayUsers(){\n //go through the userName arraylist and add them to the listView\n for(String val:this.userNames){\n this.userListView.getItems().add(val);\n }\n }", "public UserDAO(List<String> listName) {\n super(Arrays.asList(\"Users\", listName));\n }", "@Override\n\t\tpublic void onUserListUpdate(User arg0, UserList arg1) {\n\t\t\t\n\t\t}", "private void createAllUsersList(String s){\n\t\tunassignedUsersList.clear();\n\t\tlistedUsersAddList.clear();\n\t\tArrayList<User> users = jdbc.getUsersWithQual(s);\n\t\tfor (int i = 0; i < users.size(); i++) {\n\t\t\tunassignedUsersList.addElement(String.format(\"%s, %s\", users.get(i).get_lastname(), users.get(i).get_firstname()));\n\t\t\tlistedUsersAvailList.addElement(String.format(\"%s, %s\", users.get(i).get_lastname(), users.get(i).get_firstname()));\n\t\t}\n\t}", "public void setUserIdList(List<String> userIdList) {\r\n this.userIdList = userIdList;\r\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}", "public void setUserList(ArrayList<User> users) {\n\t\tuserList.setUsers(users);\n\t}", "public void addUser(UserModel user);", "public void addUser() {\r\n PutItemRequest request = new PutItemRequest().withTableName(\"IST440Users\").withReturnConsumedCapacity(\"TOTAL\");\r\n PutItemResult response = client.putItem(request);\r\n }", "private void addList(){\n boolean unique = true;\n String name =this.stringPopUp(\"List name:\");\n do {\n if(name == null){\n return;\n }\n if(!unique){\n unique = true;\n name = this.stringPopUp(\"List with this name already exists\");\n }\n for (Component p : window.getComponents()) {\n if (p.getName().equals(name)) {\n unique = false;\n }\n }\n }while (!unique);\n numberOfLists++;\n\n Users user = new Users();\n user.setEmail(agenda.getUsername());\n ColorPicker colorPicker = ColorPicker.createColorPicker(4);\n JOptionPane.showConfirmDialog(null, colorPicker, \"Chose default priority\", JOptionPane.OK_CANCEL_OPTION);\n Items item = new Items(name,ColorPicker.getColorName(colorPicker.getColor()),\"list\",user);\n agenda.getConnector().addItem(item,user);\n comboBox.addItem(name);\n currentList = agenda.getConnector().getItem(agenda.getUsername(),\"list\",name);\n JPanel panel = new JPanel();\n setUpList(panel);\n setup.put(name,true);\n comboBox.setSelectedItem(name);\n panel.setName(name);\n window.add(name, panel);\n this.showPanel(name);\n this.updateComponent(panel);\n comboBox.setSelectedIndex(numberOfLists-1);\n\n if(numberOfLists==1){\n setUpHeader();\n }\n }", "private void addUserAsMarker() {\n firestoreService.findUserById(new OnUserDocumentReady() {\n @Override\n public void onReady(UserDocument userDocument) {\n if(userDocument != null && userDocument.getUserid().equals(preferences.get(\"user_id\",0L))) {\n String id = preferences.get(DOCUMENT_ID, \"\");\n //Add current user to ListInBounds\n userDocumentAll.setDocumentid(id);\n userDocumentAll.setUsername(userDocument.getUsername());\n userDocumentAll.setPicture(userDocument.getPicture());\n userDocumentAll.setLocation(userDocument.getLocation());\n userDocumentAll.setFollowers(userDocument.getFollowers());\n userDocumentAll.setIsvisible(userDocument.getIsvisible());\n userDocumentAll.setIsprivate(userDocument.getIsprivate());\n userDocumentAll.setIsverified(userDocument.getIsverified());\n userDocumentAll.setUserid(userDocument.getUserid());\n userDocumentAll.setToken(userDocument.getToken());\n oneTimeAddableList.add(userDocumentAll);\n }\n }\n\n @Override\n public void onFail() {\n\n }\n\n @Override\n public void onFail(Throwable cause) {\n\n }\n });\n\n }", "public void addUser(User user);", "public LobbyAction(List<LobbyUser> userList) {\n this.userList = userList;\n }", "public static void addList() {\n\t}", "public Users() {\r\n this.user = new ArrayList<>();\r\n }", "private void addUser(People value) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureUserIsMutable();\n user_.add(value);\n }", "@POST(\"/ListUsers\")\n\tCollection<User> listUsers();", "public List<User> getUserList();", "void addUser(User user);", "void addUser(User user);", "public int addUser(Users users);", "public void initUsers() {\n User user1 = new User(\"Alicja\", \"Grzyb\", \"111111\", \"grzyb\");\n User user2 = new User(\"Krzysztof\", \"Kowalski\", \"222222\", \"kowalski\");\n User user3 = new User(\"Karolina\", \"Nowak\", \"333333\", \"nowak\");\n User user4 = new User(\"Zbigniew\", \"Stonoga \", \"444444\", \"stonoga\");\n User user5 = new User(\"Olek\", \"Michnik\", \"555555\", \"michnik\");\n users.add(user1);\n users.add(user2);\n users.add(user3);\n users.add(user4);\n users.add(user5);\n }", "public List<User> listUsers(String userName);", "void addUser(String user){\n usersModel.addRow(new String[]{user});\n }", "public Users(List<User> users) {\r\n this();\r\n user.addAll(users);\r\n }", "public List<User> list();", "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 }", "private void getUserList(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, IOException {\n// redirectLogin(request,response);\n List<User> userList = new UserServices().getUserList();\n request.setAttribute(\"userlist\",userList);\n RequestDispatcher rd = request.getRequestDispatcher(\"quiz/user/userlist.jsp\");\n rd.forward(request,response);\n }", "public BargainUserList() {\n this(DSL.name(\"b2c_bargain_user_list\"), null);\n }", "public void add(StringData stringData) {\n this.webUserList.add(stringData);\n }", "@Override\n\tpublic void onUserListUpdate(User listOwner, UserList list) {\n\n\t}", "public void addUser(User u){\n\r\n userRef.child(u.getUuid()).setValue(u);\r\n\r\n DatabaseReference zipUserReference;\r\n DatabaseReference zipNotifTokenReference;\r\n List<String> zipList = u.getZipCodes();\r\n\r\n for (String zipCode : zipList) {\r\n zipUserReference = baseRef.child(zipCode).child(ZIPCODE_USERID_REFERENCE_LIST);\r\n // Add uuid to zipcode user list\r\n zipUserReference.child(u.getUuid()).setValue(u.getUuid());\r\n\r\n // Add notifToken to list\r\n zipNotifTokenReference = baseRef.child(zipCode).child(ZIPCODE_NOTIFICATION_TOKENS_LIST);\r\n zipNotifTokenReference.child(u.getNotificationToken()).setValue(u.getNotificationToken());\r\n\r\n }\r\n }", "private static void readUserListFromFile() {\n\t\tJSONParser parser = new JSONParser();\n\n\t\ttry (Reader reader = new FileReader(\"users.json\")) {\n\n\t\t\tJSONArray userListJSON = (JSONArray) parser.parse(reader);\n\n\t\t\tfor (int i = 0 ; i < userListJSON.size(); i++) {\n\t\t\t\tJSONObject user = (JSONObject) userListJSON.get(i);\n\t\t\t\tString name = (String) user.get(\"name\");\n\t\t\t\tString surname = (String) user.get(\"surname\");\n\t\t\t\tString username = (String) user.get(\"username\");\n\t\t\t\tString password = (String) user.get(\"password\");\n\t\t\t\tString account = (String) user.get(\"account\");\n\n\t\t\t\tif(account.equals(\"employee\")) {\n\t\t\t\t\tMain.userList.add(new Employee(username, name, surname, password));\n\t\t\t\t} else {\n\t\t\t\t\tMain.userList.add(new Customer(username, name, surname, password));\n\t\t\t\t}\n\t\t\t}\n\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (ParseException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void addUser(){\r\n //gets entered username and password\r\n String user = signup.getUsername();\r\n String pass = signup.getFirstPassword();\r\n try{\r\n \r\n //connects to database\r\n \r\n //creates statement\r\n Connection myConn = DriverManager.getConnection(Main.URL);\r\n //adds username and password into database\r\n PreparedStatement myStmt = myConn.prepareStatement(\"insert into LISTOFUSERS(USERNAME, PASSWORD)values(?,?)\");\r\n myStmt.setString(1,user);\r\n myStmt.setString(2,pass);\r\n int a = myStmt.executeUpdate();\r\n \r\n if(a>0){\r\n System.out.println(\"Row Update\");\r\n }\r\n myConn.close();\r\n } catch (Exception e){\r\n System.err.println(e.getMessage());\r\n }\r\n }", "@Test\n void add() {\n List<User> userList = Arrays.asList(\n new User(1L, \"star\", 20, \"123456\"),\n new User(2L, \"green\", 21, \"123456\"),\n new User(3L, \"red\", 22, \"123456\"),\n new User(4L, \"blue\", 23, \"123456\"),\n new User(5L, \"yellow\", 24, \"123456\"),\n new User(6L, \"black\", 26, \"123456\")\n );\n userRepository.saveAll(userList);\n }", "public void newUserDirectory() {\n\t\tusers = new LinkedAbstractList<User>(100);\n\t}", "@Before(value = \"@createList\", order = 1)\n public void createList() {\n String endpoint = EnvironmentTrello.getInstance().getBaseUrl() + \"/lists/\";\n JSONObject json = new JSONObject();\n json.put(\"name\", \"testList\");\n json.put(\"idBoard\", context.getDataCollection(\"board\").get(\"id\"));\n RequestManager.setRequestSpec(AuthenticationUtils.getLoggedReqSpec());\n Response response = RequestManager.post(endpoint, json.toString());\n context.saveDataCollection(\"list\", response.jsonPath().getMap(\"\"));\n }", "public List<User> list(String currentUsername);", "private void createManagersList(){\n\t\tmanagerList.clear();\n\t\tArrayList<User> users = jdbc.get_Managers();\n\t\tfor (int i = 0; i < users.size(); i++) {\n\t\t\tmanagerList.addElement(String.format(\"%s, %s\", users.get(i).get_lastname(), users.get(i).get_firstname()));\n\t\t}\n\t}", "public String add() {\r\n\t\tuserAdd = new User();\r\n\t\treturn \"add\";\r\n\t}", "private void loadUserList()\n\t{\n\t\tfinal ProgressDialog dia = ProgressDialog.show(this, null,\n\t\t\t\tgetString(R.string.alert_loading));\n\t\tParseUser.getQuery().whereNotEqualTo(\"username\", user.getUsername())\n\t\t\t\t.findInBackground(new FindCallback<ParseUser>() {\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void done(List<ParseUser> li, ParseException e) {\n\t\t\t\t\t\tdia.dismiss();\n\t\t\t\t\t\tif (li != null) {\n\t\t\t\t\t\t\tif (li.size() == 0)\n\t\t\t\t\t\t\t\tToast.makeText(UserList.this,\n\t\t\t\t\t\t\t\t\t\tR.string.msg_no_user_found,\n\t\t\t\t\t\t\t\t\t\tToast.LENGTH_SHORT).show();\n\n\t\t\t\t\t\t\tuList = new ArrayList<ParseUser>(li);\n\t\t\t\t\t\t\tListView list = (ListView) findViewById(R.id.list);\n\t\t\t\t\t\t\tlist.setAdapter(new UserAdapter());\n\t\t\t\t\t\t\tlist.setOnItemClickListener(new OnItemClickListener() {\n\n\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\tpublic void onItemClick(AdapterView<?> arg0,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tView arg1, int pos, long arg3) {\n\t\t\t\t\t\t\t\t\tstartActivity(new Intent(UserList.this,\n\t\t\t\t\t\t\t\t\t\t\tChat.class).putExtra(\n\t\t\t\t\t\t\t\t\t\t\tConst.EXTRA_DATA, uList.get(pos)\n\t\t\t\t\t\t\t\t\t\t\t\t\t.getUsername()));\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\tUtils.showDialog(\n\t\t\t\t\t\t\t\t\tUserList.this,\n\t\t\t\t\t\t\t\t\tgetString(R.string.err_users) + \" \"\n\t\t\t\t\t\t\t\t\t\t\t+ e.getMessage());\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t});\n\t}", "private void createUsers() {\n\n\t\tList<User> UserList = Arrays.asList(new User(\"Kiran\", \"kumar\", \"kiran@gmail.com\", 20),\n\t\t\t\tnew User(\"Ram\", \"kumar\", \"ram@gmail.com\", 22), new User(\"RamKiran\", \"LaxmiKiran\", \"sita@gmail.com\", 30),\n\t\t\t\tnew User(\"Lakshamn\", \"Seth\", \"seth@gmail.com\", 50), new User(\"Sita\", \"Kumar\", \"lakshman@gmail.com\", 50),\n\t\t\t\tnew User(\"Ganesh\", \"Kumar\", \"ganesh@gmail.com\", 50),\n\t\t\t\tnew User(\"KiranKiran\", \"kumar\", \"kiran@gmail.com\", 20),\n\t\t\t\tnew User(\"RamRam\", \"kumar\", \"ram@gmail.com\", 22),\n\t\t\t\tnew User(\"RamKiranRamKiran\", \"LaxmiKiran\", \"sita@gmail.com\", 30),\n\t\t\t\tnew User(\"RamKiranRamKiran\", \"Seth\", \"seth@gmail.com\", 50),\n\t\t\t\tnew User(\"SitaSita\", \"Kumar\", \"lakshman@gmail.com\", 50),\n\t\t\t\tnew User(\"GaneshSita\", \"Kumar\", \"ganesh@gmail.com\", 50));\n\n\t\tIterable<User> list = userService.saveAllUsers(UserList);\n\t\tfor (User User : list) {\n\t\t\tSystem.out.println(\"User Object\" + User.toString());\n\n\t\t}\n\n\t}", "public void updateUserList(String[] users) {\r\n\t\tif (!SwingUtilities.isEventDispatchThread()) {\r\n\t\t\tSwingUtilities.invokeLater(new Runnable() {\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic void run() {\r\n\t\t\t\t\tlistUsers.setListData(users);\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t}\r\n\t\tSystem.out.println(\"UI: Updated userlist\");\r\n\t}", "public UserAdapter(@NonNull Context context, @SuppressLint(\"SupportAnnotationUsage\") @LayoutRes ArrayList<User> list) {\n super(context, 0 , list);\n mContext = context;\n usersList = list;\n }", "@Override\n\tpublic final void setListUsers(final IntListUsers list) {\n\t\tthis.listUsers = list;\n\t}", "int addRoleMenuList(List<UacRoleMenu> addUacRoleMenuList);", "public static void writeUserFile(List<User> List) {\n\t\ttry {\n\t\t\tObjectOutputStream writeFile = new ObjectOutputStream(new FileOutputStream(userFile));\n\t\t\twriteFile.writeObject(List);\n\t\t\twriteFile.close();\n\t\t} catch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}" ]
[ "0.7665533", "0.74788344", "0.7472702", "0.7466128", "0.7364222", "0.73640203", "0.72133255", "0.7123875", "0.7088468", "0.70852697", "0.70825374", "0.70778257", "0.70608705", "0.70444995", "0.70440656", "0.70384425", "0.69624084", "0.6952601", "0.6930859", "0.6846344", "0.6832728", "0.68113047", "0.68063545", "0.6794312", "0.67729676", "0.67598546", "0.6753316", "0.6728621", "0.67209", "0.66954327", "0.6693981", "0.6680078", "0.6642514", "0.6622664", "0.66133565", "0.65935063", "0.65636706", "0.65553796", "0.65462804", "0.65376216", "0.65357584", "0.65300345", "0.65065134", "0.6499504", "0.64918536", "0.6476705", "0.64737433", "0.6470861", "0.64624524", "0.6456027", "0.64558864", "0.64543056", "0.642904", "0.6423735", "0.6414968", "0.64110684", "0.6395746", "0.63871473", "0.63829434", "0.6370934", "0.63677603", "0.63530666", "0.63383746", "0.6307998", "0.6306863", "0.63045406", "0.630301", "0.63017154", "0.6296908", "0.6292845", "0.62831104", "0.62825865", "0.628137", "0.628137", "0.6263982", "0.6258375", "0.6249292", "0.6247934", "0.6240957", "0.62368447", "0.6230459", "0.62274563", "0.6226563", "0.6225625", "0.6212647", "0.61993414", "0.61921567", "0.61900413", "0.61820716", "0.61808616", "0.6172064", "0.61711365", "0.6169789", "0.61690074", "0.6164383", "0.6163962", "0.615716", "0.61534053", "0.6139962", "0.61233586", "0.61172587" ]
0.0
-1
Remove a User from list of UserArea
public void removeUserFromUsersAlready(Users sa) { this.UserAlreadyRegistered.remove(sa); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void remove(User user) throws AccessControlException;", "public void removeByUserId(long userId);", "public void removeByUserId(long userId);", "public static void Remover(ChatSkeleton user) {\n for (Grupo b : ListaOnline.getGrupos()) {\r\n for (Usuario u : b.getGrupo()) {\r\n if (u.equals(user.getUser())) {\r\n b.getGrupo().remove(user.getUser());\r\n }\r\n }\r\n }\r\n\r\n for (ChatSkeleton u : ListaOnline.getTodos()) {\r\n if (u.equals(user)) {\r\n ListaOnline.getTodos().remove(user);\r\n }\r\n }\r\n }", "public void remover(Usuario u) {\n listaUse.remove(u);\n\n }", "void removeUser(Long id);", "void removeUser(String uid);", "@Override\n public void removeAddedBy(CsldUser toRemove) {\n }", "public void removeUser(Customer user) {}", "@Override\n\tpublic void removeList(Long userId) {\n\t\tString key = KEYAPP_FORMAT.format(new Object[] {userId});\n\t\tredisTemplate.delete(key);\n\t}", "private void removeUser(int index) {\n ensureUserIsMutable();\n user_.remove(index);\n }", "int removeUser(User user);", "@Override\n\tpublic void removeUser(int id) {\n\t\t\n\t}", "public void del(String nickname) {\r\n // loop through all users\r\n for (int i = this.UserList.size(); i > 0; i--) {\r\n // check if the user matches\r\n User user = (User) this.UserList.get(i - 1);\r\n if (user.nick().equalsIgnoreCase(nickname)) {\r\n this.UserList.remove(i - 1);\r\n }\r\n }\r\n }", "void remove(User user) throws SQLException;", "Integer removeUserByUserId(Integer user_id);", "public UserItem getUserItemByIdsForRemove(UserItem ui);", "public void removeUser(String username) {\n userList.remove(username);\n }", "@PreRemove\n private void removeRolesFromUsers() {\n for (User user : users) {\n user.getRoles().remove(this);\n }\n }", "@Override\r\n public void clientRemoveUser(User user) throws RemoteException, SQLException\r\n {\r\n gameListClientModel.clientRemoveUser(user);\r\n }", "@Override\n\t\tpublic void onUserListDeletion(User arg0, UserList arg1) {\n\t\t\t\n\t\t}", "void removeUser(String user){\n for (int row = 0; row <= currentUsers.getRowCount()-1; row++){\n if (user.equals(currentUsers.getValueAt(row,0))){\n usersModel.removeRow(row);\n break;\n }\n }\n }", "public void run() {\n main.removeUser(location);\n }", "CratePrize removeEditingUser(Player player);", "public void removeUser(String username);", "public void deleteUser(Userlist user) {\n SQLiteDatabase db = this.getWritableDatabase();\n // delete user record by id\n db.delete(TABLE_USERLIST, COLUMN_USER_ID + \" = ?\",\n new String[]{String.valueOf(user.getID())});\n db.close();\n }", "public void removeUser(int index) {\n //Remove user from our list\n users.remove(index);\n\n //Update the listview\n ArrayAdapter<User> arrayAdapter = new ArrayAdapter<User>(\n this,\n android.R.layout.simple_list_item_1,\n users\n );\n\n listView.setAdapter(arrayAdapter);\n }", "private void removePrivilegedUser(ActionEvent actionEvent) {\n if (removeUserMenu.getSelectionModel().getSelectedItem() != null) {\n for (User user : server.getUser()) {\n if (user.getName().equals(removeUserMenu.getSelectionModel().getSelectedItem())) {\n selectedRemoveUser = user;\n }\n }\n // remove selected user from channel as privileged\n channel.withoutPrivilegedUsers(selectedRemoveUser);\n // update removeMenu\n removeUserMenu.getItems().clear();\n for (User user : server.getUser()) {\n if (user.getPrivileged().contains(channel)) {\n removeUserMenu.getItems().add(user.getName());\n }\n }\n // update addMenu\n addUserMenu.getItems().clear();\n for (User user : server.getUser()) {\n if (!user.getPrivileged().contains(channel)) {\n addUserMenu.getItems().add(user.getName());\n }\n }\n channelPrivilegedUserUpdate();\n }\n }", "public void removeUser(TIdentifiable user) {\r\n\t int row = m_users.getIndex(user);\r\n\t if (row >= 0) {\r\n\t m_users.removeID(user);\r\n\t m_current_users_count--;\r\n\t // shift the lower rows up:\r\n\t for (int b=row; b < m_current_users_count; b++) \r\n\t for (int a=0; a < m_current_resources_count; a++)\r\n\t m_associations[a][b] = m_associations[a][b + 1];\r\n // clean up that last row:\t \r\n for (int a=0; a < m_current_resources_count; a++)\r\n m_associations[a][m_current_users_count] = null;\r\n\t }\r\n }", "@Override\n\tpublic void delete(User entity) {\n\t\tuserlist.remove(String.valueOf(entity.getDni()));\n\t}", "@Override\n\tpublic void removeUser(String username, Map<String, User> map) {\n\t\tuserdata.open();\n\t\tuserdata.deleteUser(map.get(username));\n\t\tuserdata.close();\n\t}", "public void removePlayer(Person user) {\r\n\t\trooms[user.getY()][user.getX()].removeOccupant(user);\r\n\t}", "protected void remove(User<PERM> user) {\n\t\tuserMap.remove(user.principal.getName());\n\t}", "@Override\n\tpublic void delUser(String[] id) {\n\n\t}", "public void removeUser(long id) {\n\troomMembers.remove(id);\n }", "public void removeUser(User user) throws UserManagementException;", "@Override\r\n public void userdelete(Integer[] u_id) {\n userMapper.userdelete(u_id);\r\n }", "@Override\n\t\tpublic void onUserListMemberDeletion(User arg0, User arg1, UserList arg2) {\n\t\t\t\n\t\t}", "public static void deleteUser() {\n REGISTRATIONS.clear();\n ALL_EVENTS.clear();\n MainActivity.getPreferences().edit()\n .putString(FACEBOOK_ID.get(), null)\n .putString(USERNAME.get(), null)\n .putString(LAST_NAME.get(), null)\n .putString(FIRST_NAME.get(), null)\n .putString(GENDER.get(), null)\n .putString(BIRTHDAY.get(), null)\n .putString(EMAIL.get(), null)\n .putStringSet(LOCATIONS_INTEREST.get(), null)\n .apply();\n }", "public void reject(){\n ArrayList<User> u1 = new ArrayList<User>();\n u1.addAll(Application.getApplication().getNonValidatedUsers());\n u1.remove(this);\n\n Application.getApplication().setNonValidatedUsers(u1);\n }", "@Override\n\tpublic void delete(List<User> entity) {\n\t\t\n\t}", "public void removeUser(int id) throws AdminPersistenceException {\n CallBackManager.invoke(CallBackManager.ACTION_BEFORE_REMOVE_USER, id, null,\n null);\n \n UserRow user = getUser(id);\n if (user == null)\n return;\n \n SynchroReport.info(\"UserTable.removeUser()\", \"Suppression de \" + user.login\n + \" des groupes dans la base\", null);\n GroupRow[] groups = organization.group.getDirectGroupsOfUser(id);\n for (int i = 0; i < groups.length; i++) {\n organization.group.removeUserFromGroup(id, groups[i].id);\n }\n \n SynchroReport.info(\"UserTable.removeUser()\", \"Suppression de \" + user.login\n + \" des rôles dans la base\", null);\n UserRoleRow[] roles = organization.userRole.getDirectUserRolesOfUser(id);\n for (int i = 0; i < roles.length; i++) {\n organization.userRole.removeUserFromUserRole(id, roles[i].id);\n }\n \n SynchroReport.info(\"UserTable.removeUser()\", \"Suppression de \" + user.login\n + \" en tant que manager d'espace dans la base\", null);\n SpaceUserRoleRow[] spaceRoles = organization.spaceUserRole\n .getDirectSpaceUserRolesOfUser(id);\n for (int i = 0; i < spaceRoles.length; i++) {\n organization.spaceUserRole.removeUserFromSpaceUserRole(id,\n spaceRoles[i].id);\n }\n \n SynchroReport.info(\"UserTable.removeUser()\", \"Delete \" + user.login\n + \" from user favorite space table\", null);\n UserFavoriteSpaceDAO ufsDAO = DAOFactory.getUserFavoriteSpaceDAO();\n if (!ufsDAO.removeUserFavoriteSpace(new UserFavoriteSpaceVO(id, -1))) {\n throw new AdminPersistenceException(\"UserTable.removeUser()\",\n SilverpeasException.ERROR, \"admin.EX_ERR_DELETE_USER\");\n }\n \n SynchroReport.debug(\"UserTable.removeUser()\", \"Suppression de \"\n + user.login + \" (ID=\" + id + \"), requête : \" + DELETE_USER, null);\n \n // updateRelation(DELETE_USER, id);\r\n // Replace the login by a dummy one that must be unique\r\n user.login = \"???REM???\" + Integer.toString(id);\n user.accessLevel = \"R\";\n user.specificId = \"???REM???\" + Integer.toString(id);\n updateRow(UPDATE_USER, user);\n }", "@FXML\n\tpublic void deleteUser(ActionEvent e) {\n\t\tint i = userListView.getSelectionModel().getSelectedIndex();\n//\t\tUser deletMe = userListView.getSelectionModel().getSelectedItem();\n//\t\tuserList.remove(deletMe); this would work too just put the admin warning\n\t\tdeleteUser(i);\n\t}", "public void removeUser(String userName) throws Exception {\r\n try {\r\n boolean nodeRemove = false;\r\n User removedNode = null;\r\n for (User c : users) {\r\n if (c.getUserName().equalsIgnoreCase(userName)) {\r\n removedNode = c;\r\n nodeRemove = true;\r\n for (int i = 0; i < users.size(); i++) {\r\n for (int j = users.indexOf(c); j < users.size(); j++) {\r\n if (j == users.size() - 1) {\r\n connections[i][j] = false;\r\n break;\r\n } else\r\n connections[i][j] = connections[i][j + 1];\r\n }\r\n for (int j = users.indexOf(c); j < users.size(); j++) {\r\n if (j == users.size() - 1) {\r\n connections[j][i] = false;\r\n break;\r\n } else\r\n connections[j][i] = connections[j + 1][i];\r\n }\r\n }\r\n }\r\n }\r\n if (nodeRemove == true) {\r\n users.remove(removedNode);\r\n updateUsers();\r\n } else {\r\n throw new Exception(\"Error: Name doesn't Exist\");\r\n }\r\n\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }\r\n }", "public void removeFromFollowedUsers(List<String> followedUsers);", "private void clearUser() {\n user_ = emptyProtobufList();\n }", "public static void eliminarUsuario(Scanner keyboard, ArrayList<Usuario> usuarios) {\n if(!estaVacia(usuarios)){\n Usuario user = (Usuario) mostrarLista(keyboard,usuarios);\n user.baja();\n for(Objeto o: user.getObjetos()){\n o.baja();\n }\n }\n }", "public synchronized void removeUser(String username) {\n \n if(this.capacity > 0) {\n \n /* Rimuovo utente dalla HashMap */\n usersList.remove(username);\n \n /* Utente rimosso */\n capacity--;\n \n System.out.println(\"GOSSIP System: \"+username+\" removed from Proxy \"+\n id+\"@\"+address+\":\"+port+\" [Capacity: \"+max_capacity+\n \"][Available: \"+(max_capacity-capacity)+\"]\");\n }\n }", "public void removeFriendList(FriendList list);", "@Override\n\tpublic void deleteUser(user theUser) {\n\t\t\n\t}", "public void del(String name) {\n\t\tfor (AddrBean ad : addrlist) {\n\t\t\tif (name.equals(ad.getUsername())) {\n\t\t\t\taddrlist.remove(ad);\n\t\t\t}\n\t\t}\n\t}", "UserSettings remove(HawkularUser user, String key);", "public void removeUnregisteredUsers(int position) {\n try {\n JSONObject obj = (JSONObject) jsonParser.parse(new FileReader(file.getPath()));\n JSONArray listUsersUnregistered = (JSONArray) obj.get(\"UnregisteredUsers\");\n\n listUsersUnregistered.remove(position);\n\n JSONArray county = (JSONArray) obj.get(\"Counties\");\n JSONArray unregisteredUsers = (JSONArray) obj.get(\"Registry\");\n\n JSONObject objWrite = new JSONObject();\n\n objWrite.put(\"UnregisteredUsers\", listUsersUnregistered);\n objWrite.put(\"Registry\", unregisteredUsers);\n objWrite.put(\"Counties\", county);\n\n FileWriter fileWriter = new FileWriter(file.getPath());\n\n fileWriter.write(objWrite.toJSONString());\n\n fileWriter.close();\n } catch (IOException e) {\n e.printStackTrace();\n } catch (ParseException e) {\n e.printStackTrace();\n }\n }", "private void removeUserAssociations(Collection<Long> ids) throws ServiceException {\n\t\ttry{\n\t\t\t// remove the user from all user groups\n\t\t\tUserGroupUserDao uguDao = (UserGroupUserDao)super.context.getBean(\"userGroupUserDao\");\n\t\t\tuguDao.deleteUsersById(ids);\n\n\t\t\t// remove the user from all restricted incidents\n\t\t\tRestrictedIncidentUserDao riuDao = (RestrictedIncidentUserDao)context.getBean(\"restrictedIncidentUserDao\");\n\t\t\triuDao.deleteUsersById(ids);\n\t\t\t\n\t\t\t// remove the user from all shared work areas\n\t\t\tWorkAreaUserDao wauDao = (WorkAreaUserDao)context.getBean(\"workAreaUserDao\");\n\t\t\twauDao.deleteUserFromSharedWorkAreas(ids);\n\t\t\t//the work area shared out flag needs to be updated after removing users from shared work areas\n\t\t\tWorkAreaDao waDao = (WorkAreaDao)context.getBean(\"workAreaDao\");\n\t\t\twaDao.updateSharedOutFlag();\n\t\t\t\n\t\t}catch(Exception e){\n\t\t\tsuper.handleException(e);\n\t\t}\n\t}", "void removeUserListener(String uid);", "public void removeUser(){\n googleId_ = User.getDeletedUserGoogleID();\n this.addToDB(DBUtility.get().getDb_());\n }", "public boolean deleteAllOfUser(Integer idu);", "public void removeAdminOnIndividualFromSystemUser(Individual i, SystemUser user);", "@Override\n\tpublic List<String> removeAuthoritiesFromUser(String userId,\n\t\t\tList<String> authorities) throws EntityNotFoundException {\n\t\treturn null;\n\t}", "@Override\n public void removeListner(_User user) throws RemoteException {\n this.ListenerClient.remove(user);\n this.ListenerClient.forEach(new BiConsumer<_User, _ClientListener>() {\n @Override\n public void accept(_User user, _ClientListener clientListener) {\n try {\n Logger.getGlobal().log(Level.INFO,\"User \" + user.getLogin() + \" leave the private chat\");\n } catch (RemoteException e) {\n e.printStackTrace();\n }\n }\n });\n }", "public void deleteUser(User userToDelete) throws Exception;", "private void removeUser(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException {\n\t\ttry {\n\t\t\tPrintWriter out = res.getWriter();\n\t\t\tPreferenceDB.removePreferencesUser(Long.parseLong(req.getParameter(Constants.USER_IDENTIFIER)));\n\t\t\tif (UserDB.getnameOfUser(Long.parseLong(req.getParameter(Constants.USER_IDENTIFIER))) == null)\n\t\t\t\tout.print(\"ok\");\n\t\t\tUserDB.removeUser(Long.parseLong(req.getParameter(Constants.USER_IDENTIFIER)));\n\t\t\tout.print(\"ok\");\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\tres.setStatus(HttpServletResponse.SC_BAD_REQUEST);\n\t\t}\n\t}", "public boolean removeUser(User willBeRemovedUser){\n \n try {\n for (int i = 0; i < getUserListInCourse().size(); ++i) {\n if (getUserInUserCourseList(i).getUserName() == willBeRemovedUser.getUserName()) {\n getUserListInCourse().remove(i);\n return true;\n }\n }\n throw new Exception();\n } catch (Exception exception) {\n System.err.println(willBeRemovedUser.getUserName() + \"is not registered!\");\n return false;\n\n }\n }", "public void removeUser(String entity)\n\t{\n\t\tUser user = getUser(entity);\n\t\tif (user != null) {\n\t\t\tusersList.remove(user);\n\t\t\tusers.removeChild(user.userElement);\n\t\t}\n\t}", "public void removeUtilisateurFromGroupe(Utilisateur utilisateur, Groupe groupe);", "public static void removeFriendsList(String username)\r\n\t{\r\n\t\tfriendsLists.remove(username);\r\n\t}", "void removeFromMyCommunities(String userId,\n String communityGUID) throws InvalidParameterException,\n PropertyServerException,\n UserNotAuthorizedException;", "private void removeUser(HttpServletRequest req) throws PolygonException {\n int id = Integer.parseInt(req.getParameter(\"id\"));\n try {\n UsersMapper.removeUser(id);\n } catch (PolygonException ex) {\n String msg = \"UsersMapper.removeUser() fails\";\n throw new PolygonException(msg);\n }\n }", "public void removeDoente(String user) {\n try {\n lock.lock();\n this.doentes.remove(user);\n } finally {\n lock.unlock();\n }\n }", "public String deleteUserDetails() {\n\r\n EntityManager em = CreateEntityManager.getEntityManager();\r\n EntityTransaction etx = em.getTransaction(); \r\n\r\n try { \r\n etx.begin(); \r\n if (golfUserDetails.getUserId() != null) {\r\n em.remove(em.merge(golfUserDetails));\r\n }\r\n etx.commit();\r\n em.close();\r\n } catch (Exception ex) {\r\n System.out.println(\"deleteCourseDetails - remove : Exception : \" + ex.getMessage());\r\n }\r\n \r\n return displayHomePage();\r\n }", "void DeleteCompteUser(int id);", "public void deleteUserById(int id){\n userListCtrl.deleteUser(id);\n }", "private void removeAdminUsers(List<Model> models) {\n\t\tfor (Iterator<Model> iterator = models.iterator(); iterator.hasNext();) {\n\t\t\tModel model = iterator.next();\n\t\t\tif(\"admin\".equals(model.get(\"profile\"))) {\n\t\t\t\titerator.remove();\n\t\t\t}\n\t\t} \n\t}", "public void removeFromWhish(String user, int code){\n NodoAvl tmp = searchNode(user);\n tmp.whish.deleteNode(code);\n }", "private void deleteTodoMenu(User u) {\n\t\t\n\t}", "public void eliminar() {\n try {\n userFound = clientefacadelocal.find(this.idcliente);\n if (userFound != null) {\n clientefacadelocal.remove(userFound);\n FacesContext fc = FacesContext.getCurrentInstance();\n fc.getExternalContext().redirect(\"../index.xhtml\");\n System.out.println(\"Usuario Eliminado\");\n } else {\n System.out.println(\"Usuario No Encontrado\");\n }\n } catch (Exception e) {\n System.out.println(\"Error al eliminar el cliente \" + e);\n }\n }", "public void removeSysUserTypes(final Map idList);", "private void removeArea() {\n \t\tthis.set.remove( this.area );\n \t\tthis.finish();\n \t}", "public static void removeFromList(FormModel form, HttpSession session, HttpServletRequest req, HttpServletResponse res, Connection con, PrintWriter out)\r\n throws IOException\r\n {\n String name_to_remove = req.getParameter(Member.REQ_USER_NAME);\r\n\r\n if (name_to_remove != null && !(name_to_remove.equals(\"\")))\r\n {\r\n\r\n //get the table from the form and add the name in the list\r\n RowModel row = form.getRow(DistributionList.LIST_OF_NAMES);\r\n TableModel names = (TableModel)(((Cell)row.get(0)).getContent());\r\n\r\n names.remove(name_to_remove);\r\n\r\n ActionModel model = names.getContextActions();\r\n Action searchAction = (Action)(model.get(0));\r\n if (names.size()<DistributionList.getMaxListSize(session))\r\n {\r\n searchAction.setSelected(false);\r\n }\r\n else\r\n {\r\n searchAction.setSelected(true);\r\n }\r\n }\r\n\r\n\r\n }", "public void logoutUser() {\n editor.remove(Is_Login).commit();\n editor.remove(Key_Name).commit();\n editor.remove(Key_Email).commit();\n editor.remove(KEY_CUSTOMERGROUP_ID).commit();\n // editor.clear();\n // editor.commit();\n // After logout redirect user to Loing Activity\n\n }", "private void onUnblockButtonClicked(ActionEvent actionEvent) {\n for (User user : builder.getBlockedUsers()) {\n if (selectedButton.getId().equals(\"user_blocked_\" + user.getId())) {\n builder.removeBlockedUser(user);\n this.blockedUsersLV.getItems().remove(user);\n ResourceManager.saveBlockedUsers(builder.getPersonalUser().getName(), user, false);\n break;\n }\n }\n }", "@Override\n\tpublic void removeUserFromTourney(String username, int tourneyId) {\n\t\tString sql = \"delete from users_tournaments \"\n\t\t\t\t+ \"where user_id = (select user_id from users where username = ?) \"\n\t\t\t\t+ \"and tourney_id = ?\";\n\t\tjdbcTemplate.update(sql, username, tourneyId);\n\t\t\n\t}", "public void removeUser(String username){\n \t\tString id = username;\n \t\tString query = \"DELETE FROM users WHERE id = '\"+ id + \"';\";\n \t\tsqlUpdate(query);\n \t\tquery = \"DELETE FROM friends WHERE id1 = id OR id2 = '\" + id + \"';\";\n \t\tsqlUpdate(query);\n \t\tquery = \"DELETE FROM achievements WHERE user = id;\";\n \t\tsqlUpdate(query);\n \t\t\n \t\tquery = \"DELETE FROM notes WHERE source = '\" + id + \"' OR dest = '\" + id + \"';\";\n \t\tsqlUpdate(query);\n \t\tquery = \"DELETE FROM challenges WHERE source = '\" + id + \"' OR dest = '\" + id + \"';\";\n \t\tsqlUpdate(query);\n \t\tquery = \"DELETE FROM requests WHERE source = '\" + id + \"' OR dest = '\" + id + \"';\";\n \t\tsqlUpdate(query);\n \t}", "@Test\n public void testRemoveUser_User05() {\n System.out.println(\"removeUser\");\n\n User friend = null;\n for (User user1 : sn10.getUsersList()) {\n if (user1.getNickname().equals(\"nick4\")) {\n friend = user1;\n }\n }\n\n Set<User> friends = new HashSet<>();\n friends.add(new User(\"nick7\", \"mail_7_@sapo.pt\"));\n friends.add(new User(\"nick3\", \"mail_3_@sapo.pt\"));\n friends.add(friend);\n\n User user = new User(\"nick0\", \"mail_0_@sapo.pt\");\n user.setFriends(friends);\n sn10.removeUser(user);\n\n Set<User> expResult = new HashSet<>();\n expResult.add(new User(\"nick9\", \"mail_9_@sapo.pt\"));\n\n Set<User> result = friend.getFriends();\n assertEquals(expResult, result);\n }", "public void removeUser(User user) {\n for (ChatContext chatContext: chatContexts) {\n if (chatContext.removeUser(user)) {\n //Dissolve the chat\n removeContext(chatContext);\n break;\n }\n }\n }", "void deleteUser(String userId);", "public void removeUser(Client user) {\n usersConnected.remove(user.getName());\n }", "public void deleteUser(Integer uid);", "@Override\n\tpublic void onUserListDeletion(User listOwner, UserList list) {\n\n\t}", "public void removeUserFromRoom(String username)\r\n\t{\r\n\t\ttheGridView.removeCharacterFromRoom(username);\r\n\t}", "@Override\n\tpublic void deleteUser(User user)\n\t{\n\n\t}", "@Override\n public void elimina(int id_alumno) {\n\n try {\n Alumno a = admin.alumnosTotales.get(id_alumno);\n int area = a.area;\n char grupo = a.grupo;\n\n admin.fisicoMatematicas.remove(a);\n admin.biologicasYsalud.remove(a);\n admin.cienciasSociales.remove(a);\n admin.humanidadesYartes.remove(a);\n admin.fotoLabPrensa.remove(a);\n admin.viajesyhoteleria.remove(a);\n admin.nutriologo.remove(a);\n admin.labQuimico.remove(a);\n\n Iterador<Profesor> ite = new Iterador<>(admin.profesores);\n\n while (ite.hasNext()) {\n Profesor profeActual = ite.next();\n if (profeActual.area == area & profeActual.grupo == grupo) {\n profeActual.eliminaAlumnoLista(a);\n }\n }\n \n admin.alumnosTotales.remove(id_alumno);\n \n } catch (NullPointerException e) {\n System.out.println(\"No existe el Alumno\");\n }\n \n \n\n }", "@Override\n\tpublic void removeMember(User user) throws Exception {\n\n\t}", "private void clearUser() { user_ = null;\n \n }", "public void deleteUser(String name);", "void supprimerTopo(String user, Integer topoId);", "@Override\n\tpublic void deleteOneUser(long ids) {\n\t\tregisters.deleteRegisterById(ids);\n\t}", "public void deleteLocation(String idUser, List<LocationDTO> loc);", "private static void removeUserFromViewerList(String nick) {\r\n synchronized (CURRENT_VIEWERS) {\r\n if (CURRENT_VIEWERS.contains(nick)) {\r\n CURRENT_VIEWERS.remove(nick);\r\n }\r\n }\r\n }", "static synchronized void RemoveUser(ClientHandler user)\r\n {\r\n users.remove(user);\r\n if(users.size() == 0)\r\n {\r\n try {\r\n chatLogWriter.close();\r\n chatLog.delete();\r\n System.out.println(\"!!! Waiting for the next connection... !!!\\n\\n\");\r\n } catch (Exception e)\r\n {\r\n System.out.println(\"Unable to close file!\");\r\n System.exit(1);\r\n }\r\n }\r\n }", "@Override\r\n\tpublic boolean removeExamManager(IUser user) {\n\t\treturn false;\r\n\t}" ]
[ "0.687661", "0.67504984", "0.67504984", "0.673314", "0.6672644", "0.6627681", "0.65943414", "0.6570497", "0.6545105", "0.6544943", "0.65311813", "0.64542127", "0.64328194", "0.64044297", "0.64034235", "0.6393056", "0.63848823", "0.6382491", "0.6364594", "0.635567", "0.63548046", "0.6347922", "0.6313658", "0.6311009", "0.6310044", "0.63002115", "0.6279255", "0.6273565", "0.6257047", "0.62347335", "0.6232876", "0.61957645", "0.61755353", "0.6143481", "0.6094776", "0.60894966", "0.60821563", "0.607789", "0.6074073", "0.6065999", "0.6057164", "0.60475624", "0.6034706", "0.60275453", "0.6026206", "0.60147864", "0.6003651", "0.60036045", "0.5991774", "0.5963374", "0.59588325", "0.5942527", "0.5934711", "0.5931594", "0.59275305", "0.59244365", "0.5923328", "0.5923008", "0.5922664", "0.5922226", "0.5921223", "0.592032", "0.5919606", "0.5914917", "0.5913201", "0.5910222", "0.5909926", "0.5909751", "0.59093827", "0.59005874", "0.5892084", "0.5889299", "0.58890384", "0.58725727", "0.5872407", "0.58700556", "0.58666784", "0.5855205", "0.585297", "0.58393055", "0.58342695", "0.5831382", "0.58303976", "0.58254755", "0.5820153", "0.58159864", "0.5811701", "0.5809609", "0.5807381", "0.5802226", "0.57925373", "0.5772573", "0.5765563", "0.5763366", "0.5762757", "0.5762552", "0.5761586", "0.57606", "0.57602316", "0.5758286", "0.57578427" ]
0.0
-1
Retorna todas as Already de promocao das lojas registradas
public List<Users> getUserAlreadyRegistered() { return this.UserAlreadyRegistered; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private boolean recuperaDadosInseridos() throws SQLException, GrupoUsuarioNaoSelecionadoException{\n \n GrupoUsuarios grupoUsuarios = new GrupoUsuarios();\n Usuarios usuarios = new Usuarios();\n boolean selecao = false;\n \n try{\n \n if(this.optUsuariosGerente.isSelected()){\n grupoUsuarios.setGerente(1);\n selecao = true;\n }\n if(this.optUsuariosGestorEstoque.isSelected()){\n grupoUsuarios.setGestorEstoque(1);\n selecao = true;\n }\n if(this.optUsuariosGestorCompras.isSelected()){\n grupoUsuarios.setGestorCompras(1);\n selecao = true;\n }\n if(this.optUsuariosCaixeiro.isSelected()){\n grupoUsuarios.setCaixeiro(1);\n selecao = true;\n }\n \n if(selecao!=true)\n throw new GrupoUsuarioNaoSelecionadoException();\n else usuarios.setGrupoUsuarios(grupoUsuarios); \n \n }catch(TratarMerciExceptions e){\n System.out.println(e.getMessage());\n }\n return selecao;\n }", "public RegistroHuellasDigitalesDto registrarHuellasDigitalesSistemas(ListaRegistroHuellasDigitalesDto pSolicitud) {\n\t\tLOG.info(\"Ingresando registrarHuellasDigitalesSistemaContribuyente >>\"+pSolicitud.getListaRegistroHuellasDigitales().size());\n\t\tRegistroHuellasDigitalesDto vRespuesta = new RegistroHuellasDigitalesDto();\n\t\n\t\tif(pSolicitud.getListaRegistroHuellasDigitales().size() > 0) { \n\t\t\tValRegistroHuellaServiceImpl vValRegistroArchivo = new ValRegistroHuellaServiceImpl(mensajesDomain);\n\t\t\tvValRegistroArchivo.validarSolicitudRegistroHuellaDigital(pSolicitud.getListaRegistroHuellasDigitales().get(0));\n\t\t\tif(vValRegistroArchivo.isValido() ) {\n\t\t\t\tList<SreComponentesCertificadosTmp> vSreCompCertTmp = new ArrayList<>();\n\t\t\t\tvSreCompCertTmp = iComponentesCertificadosTmpDomain.obtenerComponenteCertificadoTmpPorSistemaId(pSolicitud.getListaRegistroHuellasDigitales().get(0).getSistemaId());\n\t\t\t\tif(vSreCompCertTmp != null && vSreCompCertTmp.size() > 0) {\t\t\t\n\t\t\t\t\tSystem.out.println(\"Existen Registros \"+vSreCompCertTmp.size() +\" Sistema_id\"+pSolicitud.getListaRegistroHuellasDigitales().get(0).getSistemaId());\n\t\t\t\t\tactualizarEstadoComponenteCertificado(vSreCompCertTmp);\t\n\t\t\t\t}else {\n\t\t\t\t\tSystem.out.println(\"No existen registros en SreComponentesCertificadosTmp\");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tRegistroHuellasDigitalesDto registroHuellasDigitales = null;\n\t\t\t\tfor (RegistroHuellasDigitalesDto registroHuellasDigitalesDto : pSolicitud.getListaRegistroHuellasDigitales()) {\n\t\t\t\t\tregistroHuellasDigitales = registrarHuellaDigitalSistemaContribuyente(registroHuellasDigitalesDto);\n\t\t\t\t\tif(registroHuellasDigitales.isOk()) {\n\t\t\t\t\t\tvRespuesta.setOk(true);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}else {\n\t\t\t\tvRespuesta.setOk(false);\n\t\t\t\tvRespuesta.addMensaje(mensajesDomain.getMensaje(EnumSubsistema.RECAUDACIONES,EnumFacturacionTipoMensaje.VALIDACION_DATOS_ENTRADA_RECHAZADO));\n\t\t\t}\n\t\t}else {\n\t\t\tvRespuesta.setOk(false);\n\t\t\tvRespuesta.addMensaje(mensajesDomain.getMensaje(EnumSubsistema.RECAUDACIONES,EnumFacturacionTipoMensaje.VALIDACION_DATOS_ENTRADA_RECHAZADO));\n\t\t}\t\n\t\treturn vRespuesta;\n\t}", "public void confirmarDuplicarFormulaProceso() {\n if (duplicarFormulaProceso.getProceso().getSecuencia() != null) {\n k++;\n l = BigInteger.valueOf(k);\n duplicarFormulaProceso.setSecuencia(l);\n listFormulasProcesos.add(duplicarFormulaProceso);\n listFormulasProcesosCrear.add(duplicarFormulaProceso);\n RequestContext context = RequestContext.getCurrentInstance();\n infoRegistro = \"Cantidad de registros : \" + listFormulasProcesos.size();\n context.update(\"form:informacionRegistro\");\n context.update(\"form:datosFormulaProceso\");\n context.execute(\"DuplicarRegistroFormulaProceso.hide()\");\n index = -1;\n secRegistro = null;\n if (guardado == true) {\n guardado = false;\n RequestContext.getCurrentInstance().update(\"form:ACEPTAR\");\n }\n if (bandera == 1) {\n altoTabla = \"310\";\n formulaProceso = (Column) FacesContext.getCurrentInstance().getViewRoot().findComponent(\"form:datosFormulaProceso:formulaProceso\");\n formulaProceso.setFilterStyle(\"display: none; visibility: hidden;\");\n\n formulaPeriodicidad = (Column) FacesContext.getCurrentInstance().getViewRoot().findComponent(\"form:datosFormulaProceso:formulaPeriodicidad\");\n formulaPeriodicidad.setFilterStyle(\"display: none; visibility: hidden;\");\n\n RequestContext.getCurrentInstance().update(\"form:datosFormulaProceso\");\n bandera = 0;\n filtrarListFormulasProcesos = null;\n tipoLista = 0;\n }\n duplicarFormulaProceso = new FormulasProcesos();\n } else {\n RequestContext.getCurrentInstance().execute(\"errorRegistroFP.show()\");\n }\n }", "private int userAlreadyPresent() {\n System.out.printf(\"%s%n%s%n%s%n%s%n\", Notifications.getMessage(\"ERR_USER_ALREADY_PRESENT\"), Notifications.getMessage(\"SEPARATOR\"), Notifications.getMessage(\"PROMPT_PRESENT_USER_MULTIPLE_CHOICE\"), Notifications.getMessage(\"SEPARATOR\"));\n\n switch(insertInteger(1, 3)) {\n case 1:\n System.out.printf(\"%s %s%n\", Notifications.getMessage(\"MSG_EXIT_WITHOUT_SAVING\"), Notifications.getMessage(\"MSG_MOVE_TO_LOGIN\"));\n return -1;\n case 2:\n System.out.println(Notifications.getMessage(\"PROMPT_MODIFY_FIELDS\"));\n return 1;\n default:\n return 0;\n }\n }", "private void caricaRegistrazione() {\n\t\tfor(MovimentoEP movimentoEP : primaNota.getListaMovimentiEP()){\n\t\t\t\n\t\t\tif(movimentoEP.getRegistrazioneMovFin() == null) { //caso di prime note libere.\n\t\t\t\tthrow new BusinessException(ErroreCore.OPERAZIONE_NON_CONSENTITA.getErrore(\"La prima nota non e' associata ad una registrazione.\"));\n\t\t\t}\n\t\t\t\n\t\t\tthis.registrazioneMovFinDiPartenza = registrazioneMovFinDad.findRegistrazioneMovFinById(movimentoEP.getRegistrazioneMovFin().getUid());\n\t\t\t\n\t\t}\n\t\t\n\t\tif(this.registrazioneMovFinDiPartenza.getMovimento() == null){\n\t\t\tthrow new BusinessException(\"Movimento non caricato.\");\n\t\t}\n\t\t\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 }", "public void registrarPersona() {\n\t\ttry {\n\t\t\tif (validaNumDocumento(getNumDocumentPersona())) {\n\t\t\t\t\tif (validaDireccion()) {\n\t\t\t\t\t\tif (validaApellidosNombres()) {\n\t\t\t\t\t\t\tPaPersona persona = new PaPersona();\n\t\t\t\t\t\t\tif (getActualizaPersona() != null && getActualizaPersona().equals(\"N\")) {\n\t\t\t\t\t\t\t\tpersona.setPersonaId(Constante.RESULT_PENDING);\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tpersona.setPersonaId(getPersonaId() == null ? Constante.RESULT_PENDING: getPersonaId());\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tpersona.setTipoDocumentoId(Integer.valueOf(mapTipoDocumento.get(getTipoDocumento())));\n\t\t\t\t\t\t\tpersona.setNroDocIdentidad(getNumDocumentPersona());\n\t\t\t\t\t\t\t\n\n\t\t\t\t\t\t\tif (persona.getTipoDocumentoId() == Constante.TIPO_DOCUMENTO_RUC_ID) {\n\t\t\t\t\t\t\t\tpersona.setRazonSocial(getRazonSocial());\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tpersona.setPrimerNombre(getPrimerNombre());\n\t\t\t\t\t\t\t\tpersona.setSegundoNombre(getSegundoNombre());\n\t\t\t\t\t\t\t\tpersona.setApePaterno(getApellidoPaterno());\n\t\t\t\t\t\t\t\tpersona.setApeMaterno(getApellidoMaterno());\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tPaDireccion direccion = new PaDireccion();\n\t\t\t\t\t\t\tdireccion.setDireccionId(getDireccionId() == null ? Constante.RESULT_PENDING: getDireccionId());\n\t\t\t\t\t\t\tif (getSelectedOptBusc().intValue() == 1) {\n\t\t\t\t\t\t\t\tdireccion.setTipoViaId(mapGnTipoVia.get(getCmbtipovia().getValue()));\n\t\t\t\t\t\t\t\tdireccion.setViaId(mapGnVia.get(getCmbvia().getValue()));\n\t\t\t\t\t\t\t\tdireccion.setLugarId(null);\n\t\t\t\t\t\t\t\tdireccion.setSectorId(null);\n\t\t\t\t\t\t\t\tdireccion.setNumero(numero);\n\t\t\t\t\t\t\t\tdireccion.setPersonaId(persona.getPersonaId());\n\n\t\t\t\t\t\t\t\tString direccionCompleta = papeletaBo.getDireccionCompleta(direccion,mapIGnTipoVia, mapIGnVia);\n\t\t\t\t\t\t\t\tif (direccionCompleta != null && direccionCompleta.trim().length() > 0) {\n\t\t\t\t\t\t\t\t\tdireccion.setDireccionCompleta(direccionCompleta);\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\tdireccion.setDireccionCompleta(getDireccionCompleta());\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tBuscarPersonaDTO personaDto = getPersonaDto(persona, direccion);\n\t\t\t\t\t\t\tString personaPapeleta = (String) getSessionMap().get(\"personaPapeleta\");\n\t\t\t\t\t\t\tif (personaPapeleta != null\n\t\t\t\t\t\t\t\t\t&& personaPapeleta.equals(\"I\")) {\n\t\t\t\t\t\t\t\tRegistroPapeletasManaged registro = (RegistroPapeletasManaged) getManaged(\"registroPapeletasManaged\");\n\t\t\t\t\t\t\t\tregistro.setDatosInfractor(personaDto);\n\t\t\t\t\t\t\t} else if (personaPapeleta != null\n\t\t\t\t\t\t\t\t\t&& personaPapeleta.equals(\"P\")) {\n\t\t\t\t\t\t\t\tRegistroPapeletasManaged registro = (RegistroPapeletasManaged) getManaged(\"registroPapeletasManaged\");\n\t\t\t\t\t\t\t\tregistro.setDatosPropietario(personaDto);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tlimpiar();\n\t\t\t\t\t\t\tesContribuyente = (Boolean) getSessionMap().get(\"esContribuyente\");\n\t\t\t\t\t\t\tif (esContribuyente == true) {\t\n\t\t\t\t\t\t\t\tWebMessages.messageError(\"Es un Contribeyente s�lo se Actualiz� la Direcci�n para Papeletas, los otros datos es por DJ\");\n\t\t\t\t\t\t\t} \n\t\t\t\t\t\t\t\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tWebMessages\n\t\t\t\t\t\t\t\t\t.messageError(\"Apellidos y nombres no valido\");\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tWebMessages\n\t\t\t\t\t\t\t\t.messageError(\"Especifique la direccion de la persona\");\n\t\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tWebMessages\n\t\t\t\t\t\t.messageError(\"Número de documento de identidad no valido\");\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "@SuppressWarnings(\"unchecked\")\npublic boolean register() throws Exception {\n\tArrayList<Member> members;\n\tmembers = (ArrayList<Member>)Utility.deserialize(\"members.ser\");\n\tif(members == null) {\n\t\tmembers = new ArrayList<Member>();\n\t}\n\tif(this.checkUserNameExists(members)== false) {\n\t\tmembers.add(this);\n\t\tUtility.serialize(members, \"members.ser\");\n\t\treturn true;\n\t}\n\telse {\n\t\treturn false;\n\t}\n}", "public static void registrarAuditoria(Connexion connexion,Long idUsuario,PresuTipoProyecto presutipoproyecto,String sUsuarioPC,String sNamePC,String sIPPC)throws Exception {\n\t\t\r\n\t\ttry {\r\n\t\t\tif(PresuTipoProyectoConstantesFunciones.ISCONAUDITORIA) {\r\n\t\t\t\tif(presutipoproyecto.getIsNew()) {\r\n\t\t\t\t\t////auditoriaLogicAdditional.registrarNuevaAuditoria(Constantes.LIDSISTEMAACTUAL,idUsuario,PresuTipoProyectoDataAccess.TABLENAME, presutipoproyecto.getId(), Constantes.SAUDITORIAINSERTAR,\"\",sUsuarioPC,sNamePC,sIPPC,new Date(),\"\");\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(PresuTipoProyectoConstantesFunciones.ISCONAUDITORIADETALLE) {\r\n\t\t\t\t\t\t////PresuTipoProyectoLogic.registrarAuditoriaDetallesPresuTipoProyecto(connexion,presutipoproyecto,auditoriaLogicAdditional.getAuditoria());\r\n\t\t\t\t\t}\r\n\t\t\t\t} else if(presutipoproyecto.getIsDeleted()) {\r\n\t\t\t\t\t/*if(!presutipoproyecto.getIsExpired()) {\r\n\t\t\t\t\t\t////auditoriaLogicAdditional.RegistrarNuevaAuditoria(Constantes.getLOidSistemaActual(),idUsuario,PresuTipoProyectoDataAccess.TABLENAME, presutipoproyecto.getId(), Constantes.getSAuditoriaEliminarLogicamente(),\"\",sUsuarioPC,sNamePC,sIPPC,Timestamp.valueOf(Funciones.getStringMySqlCurrentDateTime()),\"\");\r\n\t\t\t\t\t\t////PresuTipoProyectoLogic.registrarAuditoriaDetallesPresuTipoProyecto(connexion,presutipoproyecto,auditoriaLogicAdditional.getAuditoria());\r\n\t\t\t\t\t} else {*/\r\n\t\t\t\t\t\t////auditoriaLogicAdditional.registrarNuevaAuditoria(Constantes.LIDSISTEMAACTUAL,idUsuario,PresuTipoProyectoDataAccess.TABLENAME, presutipoproyecto.getId(), Constantes.SAUDITORIAELIMINARFISICAMENTE,\"\",sUsuarioPC,sNamePC,sIPPC,new Date(),\"\");\r\n\t\t\t\t\t//}\r\n\t\t\t\t} else if(presutipoproyecto.getIsChanged()) {\r\n\t\t\t\t\t////auditoriaLogicAdditional.registrarNuevaAuditoria(Constantes.LIDSISTEMAACTUAL,idUsuario,PresuTipoProyectoDataAccess.TABLENAME, presutipoproyecto.getId(), Constantes.SAUDITORIAACTUALIZAR,\"\",sUsuarioPC,sNamePC,sIPPC,new Date(),\"\");\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(PresuTipoProyectoConstantesFunciones.ISCONAUDITORIADETALLE) {\r\n\t\t\t\t\t\t////PresuTipoProyectoLogic.registrarAuditoriaDetallesPresuTipoProyecto(connexion,presutipoproyecto,auditoriaLogicAdditional.getAuditoria());\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch(Exception e) {\r\n\t\t\tFunciones.manageException(logger,e);\r\n\t\t\tthrow e;\r\n\t\t}\t\t\r\n\t}", "public void checkRegister(TextField username, PasswordField password, PasswordField repeatPassword, String mail, String phone, List<CheckBox> checkBoxes){\n roleId = new ArrayList<>();\n for (int i = 0; i < checkBoxes.size(); i++) {\n if (checkBoxes.get(i).isSelected()) {\n roleId.add(\"\" + (i + 1));\n }\n }\n if (password.getText().length() < 3) {\n registerText.getStyleClass().add(\"red\");\n registerText.setText(\"Passordet må være lengre!\");\n } else if (!validatePhone(phone)) {\n registerText.getStyleClass().add(\"red\");\n registerText.setText(\"Telefon nummer må bestå av åtte siffer\");\n } else if (!validateMail(mail)) {\n registerText.getStyleClass().add(\"red\");\n registerText.setText(\"Epost må være på formatet \\\"Ola123@mail.no\\\"\");\n } else if (!(roleId.size() > 0)) {\n registerText.getStyleClass().add(\"red\");\n registerText.setText(\"Vennligst velg minst en rolle\");\n } else if (password.getText().equals(repeatPassword.getText())) {\n handleRegister(login.register(username.getText(), password.getText(), mail, phone, roleId));\n } else {\n registerText.getStyleClass().add(\"red\");\n registerText.setText(\"Passordene må være like!\");\n }\n }", "public void activeRegraJogadaDupla() {\n this.RegraJogadaDupla = true;\n }", "public boolean registrar(Proveedor proveedor) {\n boolean verificar;\n if (dao.save(proveedor)) {\n verificar = true;\n } else {\n verificar = false;\n }\n return verificar;\n }", "@Override\n\tpublic List<PrpUser> duplcExist(PrpUser user) {\n\t\treturn null;\n\t}", "public HashSet<Usuario> getRegistrosPendientesDeAprobacion(){\r\n\t\t\r\n\t\tif(!this.modoAdmin) return null;\r\n\t\t\r\n\t\tUsuario u;\r\n\t\tHashSet<Usuario> pendientes = new HashSet<Usuario>();\r\n\t\tfor(Proponente p: this.proponentes) {\r\n\t\t\tif( p.getClass().getSimpleName().equals(\"Usuario\")) {\r\n\t\t\t\tu = (Usuario)p;\r\n\t\t\t\tif(u.getEstado()== EstadoUsuario.PENDIENTE) {\r\n\t\t\t\t\tpendientes.add(u);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn pendientes;\r\n\t}", "private boolean checkValidateToAdd() {\n\n Long count;\n HttpServletRequest req = getRequest();\n\n String name = this.saleChannelTypeForm.getName().trim();\n\n Long status = this.saleChannelTypeForm.getStatus();\n\n\n if ((name == null) || name.equals(\"\")) {\n req.setAttribute(\"returnMsg\", \"channelType.error.invalidName\");\n return false;\n }\n if (status == null) {\n req.setAttribute(\"returnMsg\", \"channelType.error.invalidStatus\");\n return false;\n }\n\n String strQuery = \"select count(*) from ChannelType as model where model.name=?\";\n Query q = getSession().createQuery(strQuery);\n q.setParameter(0, name);\n count = (Long) q.list().get(0);\n\n if ((count != null) && (count.compareTo(0L) > 0)) {\n req.setAttribute(\"returnMsg\", \"channelType.add.duplicateName\");\n return false;\n }\n return true;\n\n }", "public Boolean seguir(UsuarioRegistrado usuario) {\n\t\tif (usuario != null) {\n\t\t\tseguidos.add(usuario);\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "private void verificaIdade() {\r\n\t\thasErroIdade(idade.getText());\r\n\t\tisCanSave();\r\n\t}", "public static boolean estaVacia(ArrayList lista){\n if(lista.isEmpty()){\n System.out.println(\"No hay usuarios u objetos registrados por el momento\");\n return true;\n }\n else{\n return false;\n }\n }", "public boolean registerToServer() throws Exception{\n \t\n\t\t// On crée un objet container pour contenir nos donnée\n\t\t// On y ajoute un AdminStream de type Registration avec comme params le login et le mot de pass\n \tRegistrationRequest regRequest = new RegistrationRequest(login, pass);\n\t\ttry {\n\t\t\t// On tente d'envoyer les données\n\t\t\toos_active.writeObject(regRequest);\n\t\t\t// On tente de recevoir les données\n\t\t\tRegistrationResponse regResponse = (RegistrationResponse)ois_active.readObject();\n\n\t\t\t// On switch sur le type de retour que nous renvoie le serveur\n\t\t\t// !!!Le type enum \"Value\" est sujet à modification et va grandir en fonction de l'avance du projet!!!\n\t\t\tswitch(regResponse.getResponseType()){\n\t\t\tcase REG_ALREADY_EXISTS:\n\t\t\t\topResult = \"Error : User already exist!\";\n\t\t\t\treturn false;\n\t\t\tcase REG_LOGIN_BAD_FORMAT:\n\t\t\t\topResult = \"Error : login bad format!\";\n\t\t\t\treturn false;\n\t\t\tcase REG_PASS_BAD_FORMAT:\n\t\t\t\topResult = \"Error : password bad format!\";\n\t\t\t\treturn false;\n\t\t\tcase REG_SUCCESS:\n\t\t\t\topResult = \"Account registration succeed!\";\n\t\t\t\treturn true;\n\t\t\tcase REG_UNKNOW_ERROR:\n\t\t\t\topResult = \"Error : Unknown error!\";\n\t\t\t\treturn false;\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tthrow new ClientChatException (ClientChatException.IO_ERREUR, \"ERROR: Communication Error\");\n\t\t}\n\t\treturn false;\n }", "public void carregarRegistroDoPrimeiroAno() {\n\t\tlimpar();\n\t\t\n\t\tlistaAlunos = repository.encontrarComQueryNomeada(AlunosMilitaresOMDS.class, \"alunosMilitaresOMDS.listarPorOMEPeriodo\",\n\t\t\t\tnew Object[]{\"periodo\", periodo},\n\t\t\t\tnew Object[]{\"organizacao\", subordinado},\n\t\t\t\tnew Object[]{\"ano\", Ano.PRIMEIRO});\n\t\t\n\t\tif (listaAlunos.size() > 0) {\n\t\t\tlistaAlunos.forEach(efetivo ->{\n\t\t\t\tif (efetivo.getTipoAlunosMilitaresOMDS().equals(TipoAlunosMilitaresOMDS.OFICIAL))\n\t\t\t\t\tsetAlunosMilitarOficial(listaAlunos.get(0));\n\t\t\t\tif(efetivo.getTipoAlunosMilitaresOMDS().equals(TipoAlunosMilitaresOMDS.PRACA))\n\t\t\t\t\tsetAlunosMilitarPraca(listaAlunos.get(0));;\n\t\t\t});\n\t\t\thabilitaBotao=false;\n\t\t}\n\t\torganizarValores();\n\t}", "private static void registrarAuditoriaDetallesPresuTipoProyecto(Connexion connexion,PresuTipoProyecto presutipoproyecto)throws Exception {\n\t\t\r\n\t\tString strValorActual=null;\r\n\t\tString strValorNuevo=null;\r\n\t\t\r\n\t\t\t\r\n\t\t\tif(presutipoproyecto.getIsNew()||!presutipoproyecto.getid_empresa().equals(presutipoproyecto.getPresuTipoProyectoOriginal().getid_empresa()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(presutipoproyecto.getPresuTipoProyectoOriginal().getid_empresa()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=presutipoproyecto.getPresuTipoProyectoOriginal().getid_empresa().toString();\r\n\t\t\t\t}\r\n\t\t\t\tif(presutipoproyecto.getid_empresa()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=presutipoproyecto.getid_empresa().toString() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),PresuTipoProyectoConstantesFunciones.IDEMPRESA,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(presutipoproyecto.getIsNew()||!presutipoproyecto.getcodigo().equals(presutipoproyecto.getPresuTipoProyectoOriginal().getcodigo()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(presutipoproyecto.getPresuTipoProyectoOriginal().getcodigo()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=presutipoproyecto.getPresuTipoProyectoOriginal().getcodigo();\r\n\t\t\t\t}\r\n\t\t\t\tif(presutipoproyecto.getcodigo()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=presutipoproyecto.getcodigo() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),PresuTipoProyectoConstantesFunciones.CODIGO,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(presutipoproyecto.getIsNew()||!presutipoproyecto.getnombre().equals(presutipoproyecto.getPresuTipoProyectoOriginal().getnombre()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(presutipoproyecto.getPresuTipoProyectoOriginal().getnombre()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=presutipoproyecto.getPresuTipoProyectoOriginal().getnombre();\r\n\t\t\t\t}\r\n\t\t\t\tif(presutipoproyecto.getnombre()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=presutipoproyecto.getnombre() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),PresuTipoProyectoConstantesFunciones.NOMBRE,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t}", "boolean hasRegistrationRequest();", "@WebMethod public Pertsona register(String izena, String abizena1, String abizena2, String erabiltzaileIzena, String pasahitza, String telefonoa, String emaila, LocalDate jaiotzeData, String mota) throws UserAlreadyExist;", "private boolean setPermessiRicevuti(HttpServletRequest request, HttpServletResponse response,\r\n String utente) {\r\n Gruppo g = new Gruppo();\r\n\r\n g.setRuolo(utente);\r\n if (request.getParameter((\"checkbox\").concat(utente)).equals(\"true\")) {\r\n if (!ricevuti.getGruppi().contains(g)) {\r\n ricevuti.getGruppi().add(g);\r\n }\r\n } else if (request.getParameter((\"checkbox\").concat(utente)).equals(\"false\")) {\r\n ricevuti.getGruppi().remove(g);\r\n } else {\r\n return false;\r\n }\r\n return true;\r\n }", "public Long registrarFalloImpugnacion(FalloImpugnacionDTO fallo, ComparendoDTO comparendoDTO, Long idProceso)\n throws CirculemosNegocioException;", "public static void registrarAuditoria(Connexion connexion,Long idUsuario,DatoGeneralEmpleado datogeneralempleado,String sUsuarioPC,String sNamePC,String sIPPC)throws Exception {\n\t\t\r\n\t\ttry {\r\n\t\t\tif(DatoGeneralEmpleadoConstantesFunciones.ISCONAUDITORIA) {\r\n\t\t\t\tif(datogeneralempleado.getIsNew()) {\r\n\t\t\t\t\t////auditoriaLogicAdditional.registrarNuevaAuditoria(Constantes.LIDSISTEMAACTUAL,idUsuario,DatoGeneralEmpleadoDataAccess.TABLENAME, datogeneralempleado.getId(), Constantes.SAUDITORIAINSERTAR,\"\",sUsuarioPC,sNamePC,sIPPC,new Date(),\"\");\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(DatoGeneralEmpleadoConstantesFunciones.ISCONAUDITORIADETALLE) {\r\n\t\t\t\t\t\t////DatoGeneralEmpleadoLogic.registrarAuditoriaDetallesDatoGeneralEmpleado(connexion,datogeneralempleado,auditoriaLogicAdditional.getAuditoria());\r\n\t\t\t\t\t}\r\n\t\t\t\t} else if(datogeneralempleado.getIsDeleted()) {\r\n\t\t\t\t\t/*if(!datogeneralempleado.getIsExpired()) {\r\n\t\t\t\t\t\t////auditoriaLogicAdditional.RegistrarNuevaAuditoria(Constantes.getLOidSistemaActual(),idUsuario,DatoGeneralEmpleadoDataAccess.TABLENAME, datogeneralempleado.getId(), Constantes.getSAuditoriaEliminarLogicamente(),\"\",sUsuarioPC,sNamePC,sIPPC,Timestamp.valueOf(Funciones.getStringMySqlCurrentDateTime()),\"\");\r\n\t\t\t\t\t\t////DatoGeneralEmpleadoLogic.registrarAuditoriaDetallesDatoGeneralEmpleado(connexion,datogeneralempleado,auditoriaLogicAdditional.getAuditoria());\r\n\t\t\t\t\t} else {*/\r\n\t\t\t\t\t\t////auditoriaLogicAdditional.registrarNuevaAuditoria(Constantes.LIDSISTEMAACTUAL,idUsuario,DatoGeneralEmpleadoDataAccess.TABLENAME, datogeneralempleado.getId(), Constantes.SAUDITORIAELIMINARFISICAMENTE,\"\",sUsuarioPC,sNamePC,sIPPC,new Date(),\"\");\r\n\t\t\t\t\t//}\r\n\t\t\t\t} else if(datogeneralempleado.getIsChanged()) {\r\n\t\t\t\t\t////auditoriaLogicAdditional.registrarNuevaAuditoria(Constantes.LIDSISTEMAACTUAL,idUsuario,DatoGeneralEmpleadoDataAccess.TABLENAME, datogeneralempleado.getId(), Constantes.SAUDITORIAACTUALIZAR,\"\",sUsuarioPC,sNamePC,sIPPC,new Date(),\"\");\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(DatoGeneralEmpleadoConstantesFunciones.ISCONAUDITORIADETALLE) {\r\n\t\t\t\t\t\t////DatoGeneralEmpleadoLogic.registrarAuditoriaDetallesDatoGeneralEmpleado(connexion,datogeneralempleado,auditoriaLogicAdditional.getAuditoria());\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch(Exception e) {\r\n\t\t\tFunciones.manageException(logger,e);\r\n\t\t\tthrow e;\r\n\t\t}\t\t\r\n\t}", "public static void pesquisarTest() {\n\t\t\n\t\tlistaProfissional = profissionalDAO.lista();\n\n\t\t//user.setReceitas(new ArrayList<Receita>());\n\t\t\n\t\t\n\t\tSystem.out.println(\"Entrou PEsquisar ====\");\n\t\tSystem.out.println(listaProfissional);\n\n\t}", "public void popoulaRepositorioUsuarios(){\n Usuario usuario1 = new Usuario();\n usuario1.setUsername(\"EliSilva\");\n usuario1.setEmail(\"elineide.silva.inf@gmail.com\");\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(\"gustavo@gmail.com\");\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(\"peixe@gmail.com\");\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(\"2@gmail.com\");\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 }", "public boolean guardaLasPreferencias() {\n\t\ttry{\n\t\t\t\t//pone en blanco las preferencias\n\t\t\t\t\tSharedPreferences prefs = getSharedPreferences(\"MisPreferenciasTrackxi\", Context.MODE_PRIVATE);\n\t\t\t\t\tSharedPreferences.Editor editor = prefs.edit();\n\t\t\t\t\teditor.putString(\"telemer\", null);\n\t\t\t\t\teditor.putString(\"correoemer\",null);\n\t\t\t\t\teditor.putString(\"telemer2\", null);\n\t\t\t\t\teditor.putString(\"correoemer2\",null);\n\t\t\t\t\teditor.commit();\n\t\t\t\t\t\n\t\t\t\t//llena las preferencias de nuevo\n\t\t\t\t\t\n\t\t\t\t\tfor (int i = 0, count = mitaxiregistermanually_ll_contactos.getChildCount(); i < count; ++i) {\n\t\t\t\t\t \t LinearLayout ll = (LinearLayout) mitaxiregistermanually_ll_contactos.getChildAt(i);\n\t\t\t\t\t \t LinearLayout ll2 = (LinearLayout) ll.getChildAt(0);\n\t\t\t\t\t \t LinearLayout ll3 = (LinearLayout) ll2.getChildAt(0);\n\t\t\t\t\t \t EditText et = (EditText) ll3.getChildAt(0);\n\t\t\t\t\t \t EditText et2 = (EditText) ll3.getChildAt(1);\n\t\t\t\t\t \tif(i==0){\n\t\t\t\t\t \t editor.putString(\"telemer\", et.getText().toString());\n\t\t\t\t\t \t editor.putString(\"correoemer\",et2.getText().toString());\n\t\t\t\t\t \t\n\t\t\t\t\t \t}\n\t\t\t\t\t \tif(i==1){\n\t\t\t\t\t\t \t editor.putString(\"telemer2\", et.getText().toString());\n\t\t\t\t\t\t \t editor.putString(\"correoemer2\",et2.getText().toString());\n\t\t\t\t\t\t }\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif (mitaxiregistermanually_cv_paranoico.isChecked()){ \n\t\t\t\t\t\teditor.putBoolean(\"panico\", true);\n\t\t\t\t\t}else{\n\t\t\t\t\t\teditor.putBoolean(\"panico\", false);\n\t\t\t\t\t}\n\t\t\t\t\t\teditor.commit();\n\t\t\t\t\teditor.commit();\n\t\treturn true;\t\t\n\t\t}catch(Exception e){\n\t\t\treturn false;\n\t\t}\t\n\t}", "@Override\n public void registrarPropiedad(Propiedad nuevaPropiedad, String pIdAgente) {\n int numFinca = nuevaPropiedad.getNumFinca();\n String modalidad = nuevaPropiedad.getModalidad();\n double area = nuevaPropiedad.getAreaTerreno();\n double metro = nuevaPropiedad.getValorMetroCuadrado();\n double fiscal = nuevaPropiedad.getValorFiscal();\n String provincia = nuevaPropiedad.getProvincia();\n String canton = nuevaPropiedad.getCanton();\n String distrito = nuevaPropiedad.getDistrito();\n String dirExacta = nuevaPropiedad.getDirExacta();\n String estado = nuevaPropiedad.getEstado();\n String tipo = nuevaPropiedad.getTipo();\n System.out.println(nuevaPropiedad.getFotografias().size());\n double precio = nuevaPropiedad.getPrecio();\n try {\n bdPropiedad.manipulationQuery(\"INSERT INTO PROPIEDAD (ID_PROPIEDAD, ID_AGENTE, MODALIDAD, \"\n + \"AREA_TERRENO, VALOR_METRO, VALOR_FISCAL, PROVINCIA, CANTON, DISTRITO, DIREXACTA, TIPO, \"\n + \"ESTADO, PRECIO) VALUES (\" + numFinca + \", '\" + pIdAgente + \"' , '\" + modalidad + \"',\" + \n area + \",\" + metro + \",\" + fiscal + \", '\" + provincia + \"' , '\" + canton + \"' , '\" + distrito \n + \"' , '\" + dirExacta + \"' , '\" + tipo + \"' , '\" + estado + \"', \" + precio + \")\");\n bdPropiedad.insertarFotografias(nuevaPropiedad);\n } catch (SQLException ex) {\n Logger.getLogger(Propiedad.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "public static void registrarAuditoria(Connexion connexion,Long idUsuario,TarjetaCredito tarjetacredito,String sUsuarioPC,String sNamePC,String sIPPC)throws Exception {\n\t\t\r\n\t\ttry {\r\n\t\t\tif(TarjetaCreditoConstantesFunciones.ISCONAUDITORIA) {\r\n\t\t\t\tif(tarjetacredito.getIsNew()) {\r\n\t\t\t\t\t////auditoriaLogicAdditional.registrarNuevaAuditoria(Constantes.LIDSISTEMAACTUAL,idUsuario,TarjetaCreditoDataAccess.TABLENAME, tarjetacredito.getId(), Constantes.SAUDITORIAINSERTAR,\"\",sUsuarioPC,sNamePC,sIPPC,new Date(),\"\");\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(TarjetaCreditoConstantesFunciones.ISCONAUDITORIADETALLE) {\r\n\t\t\t\t\t\t////TarjetaCreditoLogic.registrarAuditoriaDetallesTarjetaCredito(connexion,tarjetacredito,auditoriaLogicAdditional.getAuditoria());\r\n\t\t\t\t\t}\r\n\t\t\t\t} else if(tarjetacredito.getIsDeleted()) {\r\n\t\t\t\t\t/*if(!tarjetacredito.getIsExpired()) {\r\n\t\t\t\t\t\t////auditoriaLogicAdditional.RegistrarNuevaAuditoria(Constantes.getLOidSistemaActual(),idUsuario,TarjetaCreditoDataAccess.TABLENAME, tarjetacredito.getId(), Constantes.getSAuditoriaEliminarLogicamente(),\"\",sUsuarioPC,sNamePC,sIPPC,Timestamp.valueOf(Funciones.getStringMySqlCurrentDateTime()),\"\");\r\n\t\t\t\t\t\t////TarjetaCreditoLogic.registrarAuditoriaDetallesTarjetaCredito(connexion,tarjetacredito,auditoriaLogicAdditional.getAuditoria());\r\n\t\t\t\t\t} else {*/\r\n\t\t\t\t\t\t////auditoriaLogicAdditional.registrarNuevaAuditoria(Constantes.LIDSISTEMAACTUAL,idUsuario,TarjetaCreditoDataAccess.TABLENAME, tarjetacredito.getId(), Constantes.SAUDITORIAELIMINARFISICAMENTE,\"\",sUsuarioPC,sNamePC,sIPPC,new Date(),\"\");\r\n\t\t\t\t\t//}\r\n\t\t\t\t} else if(tarjetacredito.getIsChanged()) {\r\n\t\t\t\t\t////auditoriaLogicAdditional.registrarNuevaAuditoria(Constantes.LIDSISTEMAACTUAL,idUsuario,TarjetaCreditoDataAccess.TABLENAME, tarjetacredito.getId(), Constantes.SAUDITORIAACTUALIZAR,\"\",sUsuarioPC,sNamePC,sIPPC,new Date(),\"\");\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(TarjetaCreditoConstantesFunciones.ISCONAUDITORIADETALLE) {\r\n\t\t\t\t\t\t////TarjetaCreditoLogic.registrarAuditoriaDetallesTarjetaCredito(connexion,tarjetacredito,auditoriaLogicAdditional.getAuditoria());\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch(Exception e) {\r\n\t\t\tFunciones.manageException(logger,e);\r\n\t\t\tthrow e;\r\n\t\t}\t\t\r\n\t}", "public boolean alreadyRegister(String email) {\n \tfor (User user : list) {\n \t\tif (user.getEmail().equals(email))\n \t\t\treturn true;\n \t}\n \treturn false;\n }", "@Test\n\tpublic void testJoueurExisteDansEquipe() {\n\t\tclub.creerEquipe();\n\t\tclub.remplissageJoueurJoueur(club.getEquipe().get(0), club.getEquipe().get(1), club);\n\t\tassertNotNull(\"Aucun joueur n'a été pas enregistré\", club.getEquipe().get(0).getJoueur().get(0));\n\t\tassertNotNull(\"Aucun joueur n'a été pas enregistré\", club.getEquipe().get(1).getJoueur().get(1));\n\t}", "public boolean validarExiste(GrupoProducto grupoProducto){\r\n for (int i = 0; i < listaGrupoProductos.size(); i++) {\r\n if (grupoProducto.getCodigo().equals(listaGrupoProductos.get(i).getCodigo())) {\r\n if (!listaGrupoProductos.get(i).isEliminado()) {\r\n return true;\r\n }\r\n }\r\n }\r\n return false;\r\n }", "private void guardarEstadoObjetosUsados() {\n }", "private void registroProcesado(InterfazParams interfazParams) {\n\t\tLong registrosProcesados = (Long) interfazParams.getQueryParams().get(\n\t\t\t\t\"registrosProcesados\");\n\t\tregistrosProcesados = new Long(registrosProcesados.longValue() + 1);\n\t\tinterfazParams.getQueryParams().put(\"registrosProcesados\",\n\t\t\t\tregistrosProcesados);\n\t}", "public static void registrarAuditoria(Connexion connexion,Long idUsuario,GrupoBodega grupobodega,String sUsuarioPC,String sNamePC,String sIPPC)throws Exception {\n\t\t\r\n\t\ttry {\r\n\t\t\tif(GrupoBodegaConstantesFunciones.ISCONAUDITORIA) {\r\n\t\t\t\tif(grupobodega.getIsNew()) {\r\n\t\t\t\t\t////auditoriaLogicAdditional.registrarNuevaAuditoria(Constantes.LIDSISTEMAACTUAL,idUsuario,GrupoBodegaDataAccess.TABLENAME, grupobodega.getId(), Constantes.SAUDITORIAINSERTAR,\"\",sUsuarioPC,sNamePC,sIPPC,new Date(),\"\");\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(GrupoBodegaConstantesFunciones.ISCONAUDITORIADETALLE) {\r\n\t\t\t\t\t\t////GrupoBodegaLogic.registrarAuditoriaDetallesGrupoBodega(connexion,grupobodega,auditoriaLogicAdditional.getAuditoria());\r\n\t\t\t\t\t}\r\n\t\t\t\t} else if(grupobodega.getIsDeleted()) {\r\n\t\t\t\t\t/*if(!grupobodega.getIsExpired()) {\r\n\t\t\t\t\t\t////auditoriaLogicAdditional.RegistrarNuevaAuditoria(Constantes.getLOidSistemaActual(),idUsuario,GrupoBodegaDataAccess.TABLENAME, grupobodega.getId(), Constantes.getSAuditoriaEliminarLogicamente(),\"\",sUsuarioPC,sNamePC,sIPPC,Timestamp.valueOf(Funciones.getStringMySqlCurrentDateTime()),\"\");\r\n\t\t\t\t\t\t////GrupoBodegaLogic.registrarAuditoriaDetallesGrupoBodega(connexion,grupobodega,auditoriaLogicAdditional.getAuditoria());\r\n\t\t\t\t\t} else {*/\r\n\t\t\t\t\t\t////auditoriaLogicAdditional.registrarNuevaAuditoria(Constantes.LIDSISTEMAACTUAL,idUsuario,GrupoBodegaDataAccess.TABLENAME, grupobodega.getId(), Constantes.SAUDITORIAELIMINARFISICAMENTE,\"\",sUsuarioPC,sNamePC,sIPPC,new Date(),\"\");\r\n\t\t\t\t\t//}\r\n\t\t\t\t} else if(grupobodega.getIsChanged()) {\r\n\t\t\t\t\t////auditoriaLogicAdditional.registrarNuevaAuditoria(Constantes.LIDSISTEMAACTUAL,idUsuario,GrupoBodegaDataAccess.TABLENAME, grupobodega.getId(), Constantes.SAUDITORIAACTUALIZAR,\"\",sUsuarioPC,sNamePC,sIPPC,new Date(),\"\");\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(GrupoBodegaConstantesFunciones.ISCONAUDITORIADETALLE) {\r\n\t\t\t\t\t\t////GrupoBodegaLogic.registrarAuditoriaDetallesGrupoBodega(connexion,grupobodega,auditoriaLogicAdditional.getAuditoria());\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch(Exception e) {\r\n\t\t\tFunciones.manageException(logger,e);\r\n\t\t\tthrow e;\r\n\t\t}\t\t\r\n\t}", "public void registrarPagoFacturaCredito(){\n if(facturaCredito != null){\n try{\n //NUEVA TRANSACCION\n Transaccion transac = new Transaccion();\n transac.setFechaTransac(new funciones().getTime());\n transac.setHoraTransac(new funciones().getTime());\n transac.setResponsableTransac(new JsfUtil().getEmpleado());\n transac.setTipoTransac(4); //REGISTRO DE PAGO\n transac.setIdtransac(ejbFacadeTransac.getNextIdTransac());\n ejbFacadeTransac.create(transac);\n //REGISTRAR PAGO\n PagoCompra pagoCompra = new PagoCompra();\n pagoCompra.setFacturaIngreso(facturaCredito);\n pagoCompra.setIdtransac(transac);\n pagoCompra.setInteresPagoCompra(new BigDecimal(intereses));\n pagoCompra.setMoraPagoCompra(new BigDecimal(mora));\n pagoCompra.setAbonoPagoCompra(new BigDecimal(pago));\n BigDecimal total = pagoCompra.getAbonoPagoCompra().add(pagoCompra.getInteresPagoCompra()).add(pagoCompra.getMoraPagoCompra());\n pagoCompra.setTotalPagoCompra(new BigDecimal(new funciones().redondearMas(total.floatValue(), 2)));\n pagoCompra.setIdpagoCompra(ejbFacadePagoCompra.getNextIdPagoCompra());\n ejbFacadePagoCompra.create(pagoCompra); // Registrar Pago en la BD\n //Actualizar Factura\n facturaCredito.getPagoCompraCollection().add(pagoCompra); //Actualizar Contexto\n BigDecimal saldo = facturaCredito.getSaldoCreditoCompra().subtract(pagoCompra.getAbonoPagoCompra());\n facturaCredito.setSaldoCreditoCompra(new BigDecimal(new funciones().redondearMas(saldo.floatValue(), 2)));\n if(facturaCredito.getSaldoCreditoCompra().compareTo(BigDecimal.ZERO)==0){\n facturaCredito.setEstadoCreditoCompra(\"CANCELADO\");\n facturaCredito.setFechaCancelado(transac.getFechaTransac());\n }\n facturaCredito.setUltimopagoCreditoCompra(transac.getFechaTransac());\n ejbFacadeFacturaIngreso.edit(facturaCredito);\n new funciones().setMsj(1, \"PAGO REGISTRADO CORRECTAMENTE\");\n if(facturaCredito.getEstadoCreditoCompra().equals(\"CANCELADO\")){\n RequestContext context = RequestContext.getCurrentInstance(); \n context.execute(\"alert('FACTURA CANCELADA POR COMPLETO');\");\n }\n prepararPago();\n }catch(Exception e){\n new funciones().setMsj(3, \"ERROR AL REGISTRAR PAGO\");\n }\n }\n }", "private boolean validarProcesoFianciacionIncumplido(String numeroObligacion) {\n\n boolean proceso = false;\n\n StringBuilder jpql = new StringBuilder();\n jpql.append(\"SELECT o FROM ObligacionFinanciacion o\");\n jpql.append(\" JOIN o.financiacion f\");\n jpql.append(\" JOIN f.proceso p\");\n jpql.append(\" WHERE o.numeroObligacion = :numeroObligacion\");\n jpql.append(\" AND p.estadoProceso.id = :estadoProceso\");\n\n Query query = em.createQuery(jpql.toString());\n query.setParameter(\"numeroObligacion\", numeroObligacion);\n query.setParameter(\"estadoProceso\", EnumEstadoProceso.ECUADOR_FINANCIACION_INCUMPLIDO.getId());\n\n @SuppressWarnings(\"unchecked\")\n List<ObligacionFinanciacion> procesos = query.getResultList();\n if (procesos != null && !procesos.isEmpty()) {\n proceso = true;\n }\n return proceso;\n }", "public static void registrarAuditoria(Connexion connexion,Long idUsuario,ValorPorUnidad valorporunidad,String sUsuarioPC,String sNamePC,String sIPPC)throws Exception {\n\t\t\r\n\t\ttry {\r\n\t\t\tif(ValorPorUnidadConstantesFunciones.ISCONAUDITORIA) {\r\n\t\t\t\tif(valorporunidad.getIsNew()) {\r\n\t\t\t\t\t////auditoriaLogicAdditional.registrarNuevaAuditoria(Constantes.LIDSISTEMAACTUAL,idUsuario,ValorPorUnidadDataAccess.TABLENAME, valorporunidad.getId(), Constantes.SAUDITORIAINSERTAR,\"\",sUsuarioPC,sNamePC,sIPPC,new Date(),\"\");\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(ValorPorUnidadConstantesFunciones.ISCONAUDITORIADETALLE) {\r\n\t\t\t\t\t\t////ValorPorUnidadLogic.registrarAuditoriaDetallesValorPorUnidad(connexion,valorporunidad,auditoriaLogicAdditional.getAuditoria());\r\n\t\t\t\t\t}\r\n\t\t\t\t} else if(valorporunidad.getIsDeleted()) {\r\n\t\t\t\t\t/*if(!valorporunidad.getIsExpired()) {\r\n\t\t\t\t\t\t////auditoriaLogicAdditional.RegistrarNuevaAuditoria(Constantes.getLOidSistemaActual(),idUsuario,ValorPorUnidadDataAccess.TABLENAME, valorporunidad.getId(), Constantes.getSAuditoriaEliminarLogicamente(),\"\",sUsuarioPC,sNamePC,sIPPC,Timestamp.valueOf(Funciones.getStringMySqlCurrentDateTime()),\"\");\r\n\t\t\t\t\t\t////ValorPorUnidadLogic.registrarAuditoriaDetallesValorPorUnidad(connexion,valorporunidad,auditoriaLogicAdditional.getAuditoria());\r\n\t\t\t\t\t} else {*/\r\n\t\t\t\t\t\t////auditoriaLogicAdditional.registrarNuevaAuditoria(Constantes.LIDSISTEMAACTUAL,idUsuario,ValorPorUnidadDataAccess.TABLENAME, valorporunidad.getId(), Constantes.SAUDITORIAELIMINARFISICAMENTE,\"\",sUsuarioPC,sNamePC,sIPPC,new Date(),\"\");\r\n\t\t\t\t\t//}\r\n\t\t\t\t} else if(valorporunidad.getIsChanged()) {\r\n\t\t\t\t\t////auditoriaLogicAdditional.registrarNuevaAuditoria(Constantes.LIDSISTEMAACTUAL,idUsuario,ValorPorUnidadDataAccess.TABLENAME, valorporunidad.getId(), Constantes.SAUDITORIAACTUALIZAR,\"\",sUsuarioPC,sNamePC,sIPPC,new Date(),\"\");\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(ValorPorUnidadConstantesFunciones.ISCONAUDITORIADETALLE) {\r\n\t\t\t\t\t\t////ValorPorUnidadLogic.registrarAuditoriaDetallesValorPorUnidad(connexion,valorporunidad,auditoriaLogicAdditional.getAuditoria());\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch(Exception e) {\r\n\t\t\tFunciones.manageException(logger,e);\r\n\t\t\tthrow e;\r\n\t\t}\t\t\r\n\t}", "public boolean canRegister(Session session);", "public boolean registercheck(Consumer consumerdetails) throws SQLException {\n\tboolean registerflag = false;\n\tSystem.out.println(\"Email==>\"+consumerdetails.getEmailId());\n\n\ttry {\n\t\tConnection con = AccessDBConnection.getDbCon();\n\t\tPreparedStatement H = con.prepareStatement(\"select * FROM Consumers WHERE EmailId='\"+consumerdetails.getEmailId()+\"'\");\n\t\t ResultSet rs = H.executeQuery();\n\t\t if (!rs.next())\n\t\t\t{\n\t\t\t\tregisterflag = true;\n\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tregisterflag = false;\n\t\t\t}\n\t}\n\t\t\tcatch(Exception e){\n\t\t\t\t\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\treturn registerflag;\n}", "public void checkIfUserExists(){\n refIdsOnly = database.getReference(\"ids\");\n String idText1 = idEdit.getText().toString();\n\n idListener = new ValueEventListener() {\n boolean userDoesntExist = true;\n @Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n // removing the event listener to make sure it only happens once\n // otherwise it has time to check again for the user just created\n refIdsOnly.removeEventListener(idListener);\n if (dataSnapshot.exists()){\n for (DataSnapshot data:dataSnapshot.getChildren()){\n String id = data.getValue(String.class);\n if (idText1.equals(id)){\n userDoesntExist = false;\n }\n }\n }\n if (userDoesntExist){\n register(idText1);\n }\n else\n Toast.makeText(RegistrationActivity.this, \"duplicate id number\", Toast.LENGTH_LONG).show();\n }\n @Override\n public void onCancelled(DatabaseError databaseError) {\n Toast.makeText(RegistrationActivity.this, \"failed\", Toast.LENGTH_LONG).show();\n }\n };\n refIdsOnly.addValueEventListener(idListener);\n }", "public HashSet<Proyecto> getProyectosSolicitandoFinanciacion(){\r\n\t\t\r\n\t\tif(!this.modoAdmin) return null;\r\n\t\tHashSet<Proyecto> listado = new HashSet<Proyecto>();\r\n\t\tfor(Proyecto p: this.proyectos) {\r\n\t\t\tif(p.getEstadoProyecto() == EstadoProyecto.PENDIENTEFINANCIACION) {\r\n\t\t\t\tlistado.add(p);\r\n\t\t\t}\r\n\t\t}\r\n\t\t//return (HashSet<Proyecto>) Collections.unmodifiableSet(listado);\r\n\t\t//posteriormente hay que modificarlos, controlar la llamada a la fucnion\r\n\t\treturn listado;\r\n\t}", "@Override\n\tpublic boolean user_register_samenametest(Map<String, Object> reqs) {\n\t\tString sql=\"select userName from tp_users where userName=:userName\";\n\t\tif(joaSimpleDao.count(sql, reqs)==1 )\n\t\t{\t\n\t\t\treturn true;\n\t\t}\n\t\telse{\n\t\t\treturn false;\n\t\t}\t\n\t}", "@Override\n\tpublic RegistroHuellasDigitalesDto registrarHuellaDigitalSistemaContribuyente(RegistroHuellasDigitalesDto pSolicitud) {\n\t\tLOG.info(\"Ingresando registrarHuellaDigitalSistemaContribuyente\"+pSolicitud.getCrc()+\" \"+pSolicitud.getArchivo()+ \" \");\n\t\tRegistroHuellasDigitalesDto vRespuesta = new RegistroHuellasDigitalesDto();\n\t\tvRespuesta.setOk(false);\n\t\ttry {\t\t\t\t\n\t\t\tValRegistroHuellaServiceImpl vValRegistroArchivo = new ValRegistroHuellaServiceImpl(mensajesDomain);\n\t\t\tvValRegistroArchivo.validarSolicitudRegistroHuellaDigital(pSolicitud);\t\n\t\t\tif (vValRegistroArchivo.isValido()) {\t\t\t\n\t\t\t\tSreArchivosTmp vResultadoArchivo = iArchivoTmpDomain.registrarArchivos(pSolicitud.getArchivo());\n\t\t\t\tSystem.out.println(\"Archivo registrado\"+vResultadoArchivo.getArchivoId());\n\t\t\t\tif (vResultadoArchivo.getArchivoId() !=null && vResultadoArchivo.getArchivoId() != null) {\n\t\t\t\t\tSreComponentesArchivosTmp vResultadoComponenteArchivo = iComponentesArchivosTmpDomain.registrarComponentesArchivos(pSolicitud.getUsuarioId(),vResultadoArchivo.getArchivoId(), pSolicitud.getMd5(),pSolicitud.getSha2(), pSolicitud.getCrc(),pSolicitud.getRutaArchivo(),pSolicitud.getNombre(),\"\");\n\t\t\t\t\tSystem.out.println(\"Datos recuperados \"+vResultadoComponenteArchivo.getComponenteArchivoTmpId());\n\t\t\t\tif (vResultadoComponenteArchivo.getComponenteArchivoTmpId() > 0 && vResultadoComponenteArchivo.getComponenteArchivoTmpId() != null) {\t\t\t\t\t\t\n\t\t\t\t\tboolean vResultadoCertificado = iComponentesCertificadosTmpDomain.registrarComponentesCertificados(pSolicitud.getTipoComponenteId(), vResultadoComponenteArchivo.getComponenteArchivoTmpId(), pSolicitud.getUsuarioId(),pSolicitud.getSistemaId());\n\t\t\t\t\tif (vResultadoCertificado) {\n\t\t\t\t\t\t\tLOG.info(\"Registro exitoso\");\n\t\t\t\t\t\t\tvRespuesta.setOk(true);\n\t\t\t\t\t\t\tvRespuesta.addMensaje(mensajesDomain.getMensaje(EnumSubsistema.RECAUDACIONES,EnumFacturacionTipoMensaje.RECUPERACION_SOLICITUD_CERTIFICACION_EXITOSO));\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tLOG.info(\"Registro NO exitoso\");\n\t\t\t\t\t\t\tvRespuesta.addMensaje(mensajesDomain.getMensaje(EnumSubsistema.RECAUDACIONES,EnumFacturacionTipoMensaje.REGISTRO_SOLICITUD_CERTIFICACION_ERROR));\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tvRespuesta.addMensaje(mensajesDomain.getMensaje(EnumSubsistema.RECAUDACIONES,EnumFacturacionTipoMensaje.REGISTRO_SOLICITUD_CERTIFICACION_ERROR));\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tvRespuesta.addMensaje(mensajesDomain.getMensaje(EnumSubsistema.RECAUDACIONES,EnumFacturacionTipoMensaje.REGISTRO_SOLICITUD_CERTIFICACION_ERROR));\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tvRespuesta.setMensajes(vValRegistroArchivo.getMensajes());\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tLogExcepcion.registrar(e, LOG, MethodSign.build(vRespuesta));\n\t\t\tLOG.info(\"Error al realizar el guardado de datos\");\n\t\t\tvRespuesta.addMensaje(mensajesDomain.getMensaje(EnumSubsistema.RECAUDACIONES,EnumFacturacionTipoMensaje.REGISTRO_SOLICITUD_CERTIFICACION_ERROR));\n\t\t}\n\t\tLOG.info(\"Saliendo registrarHuellaDigitalSistemaContribuyente vRespuesta={}\", vRespuesta);\n\t\treturn vRespuesta;\n\t}", "private void enviarRequisicaoAdicionar() {\n servidor.adicionarPalito(nomeJogador);\n atualizarPalitos();\n }", "void checkInventoryExists() {\n\n MrnInventory[] checkInventory =\n new MrnInventory(survey.getSurveyId()).get();\n inventoryExists = false;\n if (checkInventory.length > 0) {\n inventoryExists = true;\n } // if (checkInventory.length > 0)\n\n\n }", "boolean isRegistrateChangeListener();", "private void registrationProcessFireStore() {\n\n Log.i(\"checkk UserReg: \", \"registrationprocess\");\n presenter.checkUserDoc(userName,userPhone,adminName,adminPhone);\n Log.i(\"checkk UserReg: \", \"registrationprocess AFTER\");\n\n\n\n }", "public boolean tengoPropiedades(){\n return this.propiedades.size() > 0;\n }", "boolean registrarUsuario(Usuario usuario) throws Exception;", "public void pesquisarEmail() {\n\t\tif (this.alunoDao.pesquisar(this.emailPesquisa) != null) {\n\t\t\tAluno alunoAtual = this.alunoDao.pesquisar(this.emailPesquisa);\n\t\t\tthis.alunos.clear();\n\t\t\tthis.alunos.add(alunoAtual);\n\t\t\tthis.quantPesquisada = this.alunos.size();\n\t\t} else {\n\t\t\tFacesContext.getCurrentInstance().addMessage(null,\n\t\t\t\t\tnew FacesMessage(FacesMessage.SEVERITY_ERROR, \"\", \" email inválido \"));\n\t\t}\n\t}", "boolean isUserExists(RegisterData data) throws DuplicateUserException;", "@TransactionAttribute(TransactionAttributeType.REQUIRED)\n @Override\n public void registrarCompra(ArrayList<Mueble> muebles, Usuario cliente) throws OperacionInvalidaException {\n Mueble mueble;\n \n Usuario clienteConsultado = (Usuario) persistenciaOracle.findById(Usuario.class, cliente.getLogin()); \n \n if (!muebles.isEmpty()) {\n for (int i = 0; i < muebles.size(); i++) {\n mueble = muebles.get(i);\n \n Mueble editar = (Mueble) persistenciaOracle.findById(Mueble.class, mueble.getReferencia());\n\n if (editar != null) {\n editar.setCantidad(editar.getCantidad() - mueble.getCantidad());\n RegistroVenta compra = new RegistroVenta(new Date(System.currentTimeMillis()), mueble, mueble.getCantidad(), null, cliente);\n clienteConsultado.agregarRegistro(compra);\n\n persistenciaOracle.update(clienteConsultado);\n persistenciaOracle.update(editar);\n\n } else {\n throw new OperacionInvalidaException(\"Mueble no existe.\");\n }\n }\n } else {\n throw new OperacionInvalidaException(\"Lista de muebles vacia.\");\n }\n }", "@Override\n public boolean excluirRegistro() {\n this.produto.excluir();\n return true;\n }", "protected boolean checkPossoRegistrare(String titolo, String testo) {\n return uploadService.checkModificaSostanziale(titolo, testo, tagHeadTemplateAvviso, \"}}\");\n }", "public boolean checkUniqueLoginOnRegister(String login) {\n User user = userRepository.findByUsername(login);\n if (user == null) {\n return true;\n }\n return false;\n }", "private void enviarRequisicaoPalpite() {\n if (servidor.verificarPalpitar(nomeJogador)) {\n String palpite = NomeDialogo.nomeDialogo(null, \"Informe o seu palpite\", \"Digite o seu palpite:\", false);\n if (palpite != null && !servidor.palpitar(nomeJogador, Integer.parseInt(palpite))) {\n JanelaAlerta.janelaAlerta(null, \"Este palpite já foi dado!\", null);\n }\n }\n }", "@Override\n\tpublic void registrarSalida() {\n\t\t\n\t}", "@Override\n\tpublic void registrarSalida() {\n\t\t\n\t}", "private boolean existeRequisitos(ConcursoPuestoAgr concursoPuestoAgr) {\r\n\t\tString query =\r\n\t\t\t\" SELECT * FROM planificacion.det_req_min \" + \" where id_concurso_puesto_agr = \"\r\n\t\t\t\t+ concursoPuestoAgr.getIdConcursoPuestoAgr() + \" and tipo = 'GRUPO' \";\r\n\t\treturn seleccionUtilFormController.existeNative(query);\r\n\t}", "@PostMapping(path = \"register_user\")\n public String registerUser(User newUser){\n for(User user:users) {\n if (user.getEmailId().equals(newUser.getEmailId())) {\n return \"user_exists\";\n }\n }\n users.add(newUser);\n return \"register_success\";\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 esDeMipropiedad(Casilla casilla){\n boolean encontrado = false;\n \n for(TituloPropiedad propiedad: this.propiedades){\n if(propiedad.getCasilla() == casilla){\n encontrado = true;\n break;\n }\n }\n return encontrado; \n }", "public boolean registerProfessor(Professor Professor) {\n try {\n \t//pushing data of student to the data base\n \t//logger.info(student.getRole());\n stmt = connection.prepareStatement(SqlQueries.RegistorProfessor);\n stmt.setInt(1, Professor.getId());\n stmt.setString(2, Professor.getName());\n stmt.setString(3, Professor.getGender());\n stmt.setString(4, Professor.getDepartment());\n stmt.setString(5, Professor.getRole());\n stmt.executeUpdate();\n stmt = connection.prepareStatement(SqlQueries.AddProfessorLogin);\n stmt.setString(1, Professor.getUsername());\n stmt.setString(2, Professor.getPassword());\n stmt.setInt(3,Professor.getId());\n stmt.setInt(4, Professor.getRegistrationStatus());\n stmt.executeUpdate();\n \t} catch(Exception ex){\n \t\tlogger.error(ex.getMessage());\n \t} finally{\n \t\t//close resources\n \t\tDBUtil.closeStmt(stmt);\n \t}\n return false;\n }", "public boolean checkRegister() {\n\n\t\tif (!email.getText().equals(\"\") && !username.getText().equals(\"\") && !psw.getText().equals(\"\")) {\n\t\t\tResultSet test = Database.getInstance().query(\"SELECT * FROM utilisateur\");\n\t\t\ttry {\n\t\t\t\twhile (test.next()) {\n\t\t\t\t\tif (test.getString(2).equals(username.getText()) && test.getString(4).equals(email.getText())\n\t\t\t\t\t\t\t&& test.getString(3).equals(psw.getText())) {\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\treturn false;\n\n\t\t\t} catch (SQLException e) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "private Boolean precond() {\r\n\t\tcalculoCantidadSacar(grupoPuestosController.getIdConcursoPuestoAgr());\r\n\t\t/**\r\n\t\t * fin incidencia 0001649\r\n\t\t */\r\n\t\tBoolean respuesta = validacionesIteracion();\r\n\t\treturn respuesta;\r\n\t}", "private boolean idSaoIguais(Service servico, Service servicoAComparar) {\n return servico.getId() == servicoAComparar.getId();\n }", "public boolean isExisting() throws Exception\r\n\t\t{\r\n\t\tRouteGroup myR = (RouteGroup) myRouteGroup.get();\r\n\t\tthis.UUID = myR.getUUID();\r\n\t\t\r\n\t\tVariables.getLogger().debug(\"Item \"+this.name+\" already exist in the CUCM\");\r\n\t\treturn true;\r\n\t\t}", "public boolean isUnique();", "public boolean agregarPasajero(Pasajero pasajero) {\r\n\t\t\r\n\t\t\tfor (int i = 0; i < pasajeros.length; i++) {\r\n\t\t\t\tif(pasajeros[i] == null) {\r\n\t\t\t\t\tpasajeros[i] = pasajero;\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\treturn false;\r\n\t\t}", "@Override\r\n\tpublic int checkDuplicate(String checkProductionOrderNo) {\n\t\tint list1 = 0;\r\n\t\ttry {\r\n\t\t\tlist1 = productionOrderProcessDao.checkDuplicate(checkProductionOrderNo);\r\n\t\t} catch (Exception e) {\r\n\t\t\tlogger.error(e.getMessage());\r\n\t\t}\r\n\t\treturn list1;\r\n\t}", "public boolean obtenerPermisosSession(String key){\n obtenerPermisosSession(); //los obtiene del ws\n //cargarRecursos(); //obtiene los recursos locales DUMMY\n return recursos.containsKey(key);\n }", "@Test\r\n\t public void register3() {\n\t\t \tthis.admin.createClass(\"ecs60\",2017,\"sean\",2);\r\n\t\t \tthis.student.registerForClass(\"gurender1\", \"ecs60\", 2017);\r\n\t\t \tthis.student.registerForClass(\"gurender2\", \"ecs60\", 2017);\r\n\t \tthis.student.registerForClass(\"gurender3\", \"ecs60\", 2017);\r\n\t \tthis.student.registerForClass(\"gurender4\", \"ecs60\", 2017);\r\n\t assertFalse(this.student.isRegisteredFor(\"gurender4\", \"ecs60\", 2017)); \r\n\t }", "@Override\r\n\tpublic boolean existe(String nomeEmpresa) {\n\t\treturn false;\r\n\t}", "public void registrarProyecto(Proyecto proyecto) {\r\n\t\tproyectoServ.validarRegistro(proyecto);\r\n\t}", "private boolean validarCliente() {\n for (Cliente itemCliente : clienteList){\n if (cliente.getText().toString().equals(itemCliente.getClie_nombre())){\n clienteSeleccionado = itemCliente;\n return true;\n }\n }\n new Mensaje(getApplicationContext()).mensajeToas(\"El cliente no esta registrado\");\n return false;\n }", "@Override\n\tpublic void registrarSalida() {\n\n\t}", "public void addUsersAlready(Users sa) {\n\t\tthis.UserAlreadyRegistered.add(sa);\n\t}", "private static void registrarAuditoriaDetallesGrupoBodega(Connexion connexion,GrupoBodega grupobodega)throws Exception {\n\t\t\r\n\t\tString strValorActual=null;\r\n\t\tString strValorNuevo=null;\r\n\t\t\r\n\t\t\t\r\n\t\t\tif(grupobodega.getIsNew()||!grupobodega.getid_empresa().equals(grupobodega.getGrupoBodegaOriginal().getid_empresa()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(grupobodega.getGrupoBodegaOriginal().getid_empresa()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=grupobodega.getGrupoBodegaOriginal().getid_empresa().toString();\r\n\t\t\t\t}\r\n\t\t\t\tif(grupobodega.getid_empresa()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=grupobodega.getid_empresa().toString() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),GrupoBodegaConstantesFunciones.IDEMPRESA,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(grupobodega.getIsNew()||!grupobodega.getcodigo().equals(grupobodega.getGrupoBodegaOriginal().getcodigo()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(grupobodega.getGrupoBodegaOriginal().getcodigo()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=grupobodega.getGrupoBodegaOriginal().getcodigo();\r\n\t\t\t\t}\r\n\t\t\t\tif(grupobodega.getcodigo()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=grupobodega.getcodigo() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),GrupoBodegaConstantesFunciones.CODIGO,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(grupobodega.getIsNew()||!grupobodega.getnombre().equals(grupobodega.getGrupoBodegaOriginal().getnombre()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(grupobodega.getGrupoBodegaOriginal().getnombre()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=grupobodega.getGrupoBodegaOriginal().getnombre();\r\n\t\t\t\t}\r\n\t\t\t\tif(grupobodega.getnombre()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=grupobodega.getnombre() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),GrupoBodegaConstantesFunciones.NOMBRE,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(grupobodega.getIsNew()||!grupobodega.getruc().equals(grupobodega.getGrupoBodegaOriginal().getruc()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(grupobodega.getGrupoBodegaOriginal().getruc()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=grupobodega.getGrupoBodegaOriginal().getruc();\r\n\t\t\t\t}\r\n\t\t\t\tif(grupobodega.getruc()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=grupobodega.getruc() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),GrupoBodegaConstantesFunciones.RUC,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(grupobodega.getIsNew()||!grupobodega.getdireccion().equals(grupobodega.getGrupoBodegaOriginal().getdireccion()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(grupobodega.getGrupoBodegaOriginal().getdireccion()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=grupobodega.getGrupoBodegaOriginal().getdireccion();\r\n\t\t\t\t}\r\n\t\t\t\tif(grupobodega.getdireccion()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=grupobodega.getdireccion() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),GrupoBodegaConstantesFunciones.DIRECCION,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(grupobodega.getIsNew()||!grupobodega.gettelefono().equals(grupobodega.getGrupoBodegaOriginal().gettelefono()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(grupobodega.getGrupoBodegaOriginal().gettelefono()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=grupobodega.getGrupoBodegaOriginal().gettelefono();\r\n\t\t\t\t}\r\n\t\t\t\tif(grupobodega.gettelefono()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=grupobodega.gettelefono() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),GrupoBodegaConstantesFunciones.TELEFONO,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(grupobodega.getIsNew()||!grupobodega.getid_pais().equals(grupobodega.getGrupoBodegaOriginal().getid_pais()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(grupobodega.getGrupoBodegaOriginal().getid_pais()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=grupobodega.getGrupoBodegaOriginal().getid_pais().toString();\r\n\t\t\t\t}\r\n\t\t\t\tif(grupobodega.getid_pais()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=grupobodega.getid_pais().toString() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),GrupoBodegaConstantesFunciones.IDPAIS,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(grupobodega.getIsNew()||!grupobodega.getid_ciudad().equals(grupobodega.getGrupoBodegaOriginal().getid_ciudad()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(grupobodega.getGrupoBodegaOriginal().getid_ciudad()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=grupobodega.getGrupoBodegaOriginal().getid_ciudad().toString();\r\n\t\t\t\t}\r\n\t\t\t\tif(grupobodega.getid_ciudad()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=grupobodega.getid_ciudad().toString() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),GrupoBodegaConstantesFunciones.IDCIUDAD,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(grupobodega.getIsNew()||!grupobodega.getid_centro_costo().equals(grupobodega.getGrupoBodegaOriginal().getid_centro_costo()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(grupobodega.getGrupoBodegaOriginal().getid_centro_costo()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=grupobodega.getGrupoBodegaOriginal().getid_centro_costo().toString();\r\n\t\t\t\t}\r\n\t\t\t\tif(grupobodega.getid_centro_costo()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=grupobodega.getid_centro_costo().toString() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),GrupoBodegaConstantesFunciones.IDCENTROCOSTO,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(grupobodega.getIsNew()||!grupobodega.getid_empleado().equals(grupobodega.getGrupoBodegaOriginal().getid_empleado()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(grupobodega.getGrupoBodegaOriginal().getid_empleado()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=grupobodega.getGrupoBodegaOriginal().getid_empleado().toString();\r\n\t\t\t\t}\r\n\t\t\t\tif(grupobodega.getid_empleado()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=grupobodega.getid_empleado().toString() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),GrupoBodegaConstantesFunciones.IDEMPLEADO,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(grupobodega.getIsNew()||!grupobodega.getdescripcion().equals(grupobodega.getGrupoBodegaOriginal().getdescripcion()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(grupobodega.getGrupoBodegaOriginal().getdescripcion()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=grupobodega.getGrupoBodegaOriginal().getdescripcion();\r\n\t\t\t\t}\r\n\t\t\t\tif(grupobodega.getdescripcion()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=grupobodega.getdescripcion() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),GrupoBodegaConstantesFunciones.DESCRIPCION,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(grupobodega.getIsNew()||!grupobodega.getid_cuenta_contable_inventario().equals(grupobodega.getGrupoBodegaOriginal().getid_cuenta_contable_inventario()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(grupobodega.getGrupoBodegaOriginal().getid_cuenta_contable_inventario()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=grupobodega.getGrupoBodegaOriginal().getid_cuenta_contable_inventario().toString();\r\n\t\t\t\t}\r\n\t\t\t\tif(grupobodega.getid_cuenta_contable_inventario()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=grupobodega.getid_cuenta_contable_inventario().toString() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),GrupoBodegaConstantesFunciones.IDCUENTACONTABLEINVENTARIO,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(grupobodega.getIsNew()||!grupobodega.getid_cuenta_contable_costo().equals(grupobodega.getGrupoBodegaOriginal().getid_cuenta_contable_costo()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(grupobodega.getGrupoBodegaOriginal().getid_cuenta_contable_costo()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=grupobodega.getGrupoBodegaOriginal().getid_cuenta_contable_costo().toString();\r\n\t\t\t\t}\r\n\t\t\t\tif(grupobodega.getid_cuenta_contable_costo()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=grupobodega.getid_cuenta_contable_costo().toString() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),GrupoBodegaConstantesFunciones.IDCUENTACONTABLECOSTO,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(grupobodega.getIsNew()||!grupobodega.getid_cuenta_contable_venta().equals(grupobodega.getGrupoBodegaOriginal().getid_cuenta_contable_venta()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(grupobodega.getGrupoBodegaOriginal().getid_cuenta_contable_venta()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=grupobodega.getGrupoBodegaOriginal().getid_cuenta_contable_venta().toString();\r\n\t\t\t\t}\r\n\t\t\t\tif(grupobodega.getid_cuenta_contable_venta()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=grupobodega.getid_cuenta_contable_venta().toString() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),GrupoBodegaConstantesFunciones.IDCUENTACONTABLEVENTA,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(grupobodega.getIsNew()||!grupobodega.getid_cuenta_contable_descuento().equals(grupobodega.getGrupoBodegaOriginal().getid_cuenta_contable_descuento()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(grupobodega.getGrupoBodegaOriginal().getid_cuenta_contable_descuento()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=grupobodega.getGrupoBodegaOriginal().getid_cuenta_contable_descuento().toString();\r\n\t\t\t\t}\r\n\t\t\t\tif(grupobodega.getid_cuenta_contable_descuento()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=grupobodega.getid_cuenta_contable_descuento().toString() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),GrupoBodegaConstantesFunciones.IDCUENTACONTABLEDESCUENTO,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(grupobodega.getIsNew()||!grupobodega.getid_cuenta_contable_devolucion().equals(grupobodega.getGrupoBodegaOriginal().getid_cuenta_contable_devolucion()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(grupobodega.getGrupoBodegaOriginal().getid_cuenta_contable_devolucion()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=grupobodega.getGrupoBodegaOriginal().getid_cuenta_contable_devolucion().toString();\r\n\t\t\t\t}\r\n\t\t\t\tif(grupobodega.getid_cuenta_contable_devolucion()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=grupobodega.getid_cuenta_contable_devolucion().toString() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),GrupoBodegaConstantesFunciones.IDCUENTACONTABLEDEVOLUCION,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(grupobodega.getIsNew()||!grupobodega.getid_cuenta_contable_debito().equals(grupobodega.getGrupoBodegaOriginal().getid_cuenta_contable_debito()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(grupobodega.getGrupoBodegaOriginal().getid_cuenta_contable_debito()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=grupobodega.getGrupoBodegaOriginal().getid_cuenta_contable_debito().toString();\r\n\t\t\t\t}\r\n\t\t\t\tif(grupobodega.getid_cuenta_contable_debito()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=grupobodega.getid_cuenta_contable_debito().toString() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),GrupoBodegaConstantesFunciones.IDCUENTACONTABLEDEBITO,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(grupobodega.getIsNew()||!grupobodega.getid_cuenta_contable_credito().equals(grupobodega.getGrupoBodegaOriginal().getid_cuenta_contable_credito()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(grupobodega.getGrupoBodegaOriginal().getid_cuenta_contable_credito()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=grupobodega.getGrupoBodegaOriginal().getid_cuenta_contable_credito().toString();\r\n\t\t\t\t}\r\n\t\t\t\tif(grupobodega.getid_cuenta_contable_credito()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=grupobodega.getid_cuenta_contable_credito().toString() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),GrupoBodegaConstantesFunciones.IDCUENTACONTABLECREDITO,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(grupobodega.getIsNew()||!grupobodega.getid_cuenta_contable_produccion().equals(grupobodega.getGrupoBodegaOriginal().getid_cuenta_contable_produccion()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(grupobodega.getGrupoBodegaOriginal().getid_cuenta_contable_produccion()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=grupobodega.getGrupoBodegaOriginal().getid_cuenta_contable_produccion().toString();\r\n\t\t\t\t}\r\n\t\t\t\tif(grupobodega.getid_cuenta_contable_produccion()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=grupobodega.getid_cuenta_contable_produccion().toString() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),GrupoBodegaConstantesFunciones.IDCUENTACONTABLEPRODUCCION,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(grupobodega.getIsNew()||!grupobodega.getid_cuenta_contable_bonifica().equals(grupobodega.getGrupoBodegaOriginal().getid_cuenta_contable_bonifica()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(grupobodega.getGrupoBodegaOriginal().getid_cuenta_contable_bonifica()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=grupobodega.getGrupoBodegaOriginal().getid_cuenta_contable_bonifica().toString();\r\n\t\t\t\t}\r\n\t\t\t\tif(grupobodega.getid_cuenta_contable_bonifica()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=grupobodega.getid_cuenta_contable_bonifica().toString() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),GrupoBodegaConstantesFunciones.IDCUENTACONTABLEBONIFICA,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(grupobodega.getIsNew()||!grupobodega.getid_cuenta_contable_costo_bonifica().equals(grupobodega.getGrupoBodegaOriginal().getid_cuenta_contable_costo_bonifica()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(grupobodega.getGrupoBodegaOriginal().getid_cuenta_contable_costo_bonifica()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=grupobodega.getGrupoBodegaOriginal().getid_cuenta_contable_costo_bonifica().toString();\r\n\t\t\t\t}\r\n\t\t\t\tif(grupobodega.getid_cuenta_contable_costo_bonifica()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=grupobodega.getid_cuenta_contable_costo_bonifica().toString() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),GrupoBodegaConstantesFunciones.IDCUENTACONTABLECOSTOBONIFICA,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t}", "private boolean findExist(UsersRobots usersRobots){\n List<UsersRobots> result = (List<UsersRobots>) entityManager.createQuery(\"SELECT ur FROM UsersRobots ur where ur.idUser = :idUser and ur.idRobot = :idRobot\")\n .setParameter(\"idUser\",usersRobots.getIdUser())\n .setParameter(\"idRobot\",usersRobots.getIdRobot())\n .getResultList();\n if(result.size() > 0){\n return true;\n }\n return false;\n }", "boolean agregarProducto(Producto p) {\n boolean hecho = false;\n try {\n operacion = ayudar.beginTransaction();\n ayudar.save(p);\n operacion.commit();\n } catch (Exception e) {\n operacion.rollback();\n System.out.println(e);\n }\n return hecho;\n }", "private void grabarProyectoCarrerasOferta() {\r\n try {\r\n if (!sessionProyecto.getEstadoActual().getCodigo().equalsIgnoreCase(EstadoProyectoEnum.INICIO.getTipo())) {\r\n return;\r\n }\r\n for (ProyectoCarreraOferta proyectoCarreraOferta : sessionProyecto.getCarrerasSeleccionadasTransfer()) {\r\n Carrera c = carreraService.find(proyectoCarreraOferta.getCarreraId());\r\n List<ProyectoCarreraOferta> proyectoCarreraOfertas = proyectoCarreraOfertaService.buscar(\r\n new ProyectoCarreraOferta(sessionProyecto.getProyectoSeleccionado(), null, null, Boolean.TRUE));\r\n \r\n Long pcoId = devuelveProyectoCarreraId(proyectoCarreraOfertas, proyectoCarreraOferta);\r\n proyectoCarreraOferta = proyectoCarreraOfertaService.buscarPorId(new ProyectoCarreraOferta(pcoId));\r\n if (proyectoCarreraOferta == null) {\r\n proyectoCarreraOferta = new ProyectoCarreraOferta(sessionProyecto.getProyectoSeleccionado(), c.getId(), sessionProyecto.getOfertaAcademicaSeleccionada().getId(),\r\n Boolean.TRUE);\r\n if (contieneCarrera(proyectoCarreraOfertas, proyectoCarreraOferta) == false) {\r\n proyectoCarreraOfertaService.guardar(proyectoCarreraOferta);\r\n this.grabarIndividuoPCO(proyectoCarreraOferta);\r\n logDao.create(logDao.crearLog(\"ProyectoCarreraOferta\", proyectoCarreraOferta.getId() + \"\", \"CREAR\", \"Carrera=\"\r\n + proyectoCarreraOferta.getCarreraId() + \"|Oferta=\" + proyectoCarreraOferta.getOfertaAcademicaId() + \"|Proyecto= \"\r\n + proyectoCarreraOferta.getProyectoId().getId(), sessionUsuario.getUsuario()));\r\n }\r\n }\r\n proyectoCarreraOferta.setEsActivo(true);\r\n proyectoCarreraOfertaService.actualizar(proyectoCarreraOferta);\r\n logDao.create(logDao.crearLog(\"ProyectoCarreraOferta\", proyectoCarreraOferta.getId() + \"\", \"EDITAR\", \"Carrera=\"\r\n + proyectoCarreraOferta.getCarreraId() + \"|Oferta=\" + proyectoCarreraOferta.getOfertaAcademicaId()\r\n + \"|Proyecto= \" + proyectoCarreraOferta.getProyectoId().getId(), sessionUsuario.getUsuario()));\r\n }\r\n } catch (Exception e) {\r\n LOG.info(e.getMessage());\r\n }\r\n }", "private static void concretizarRegisto(String nome, int escalao) {\n\t\tif (gestor.registarFuncionario(nome, escalao))\n\t\t\tSystem.out.println(\"REGISTO do funcionario \" + nome + \" com escalao \" + escalao);\n\t\telse \n\t\t\tSystem.out.println(\"ERRO: Nao foi possivel registar o funcionario \" + nome);\n\t}", "private boolean guardarAutorizacionReservaEmpresa(java.sql.Connection conExt, int indice, int CodEmp, int CodLoc, int CodCot){\n boolean blnRes=true;\n try{\n if(conExt!=null){\n if(moverItemsCotizacionReservaEmpresa(conExt,CodEmp, CodLoc, CodCot)){\n if(cambiarEstadoCotizacionAutorizada(conExt, CodEmp, CodLoc, CodCot,indice)){\n if(realizaMovimientoEntreEmpresas(conExt, CodEmp, CodLoc, CodCot)){\n //if(moverInvBodReservado(conLoc,intCodEmp,intCodLoc,intCodCot)){\n if(updateCotizacionProcesoSolicitaTransferenciaInventario(conExt, CodEmp, CodLoc, CodCot)){\n if(insertarCotizacionSeguimiento(conExt, CodEmp, CodLoc, CodCot)){\n if(blnGenSolTra ){\n Librerias.ZafMovIngEgrInv.ZafReaMovInv objReaMovInv = new Librerias.ZafMovIngEgrInv.ZafReaMovInv(objParSis,this ); \n Compras.ZafCom91.ZafCom91 objCom91 = new Compras.ZafCom91.ZafCom91(objParSis,1);\n arlDatSolTra = new ArrayList();\n arlDatSolTra=(objCom91.insertarSolicitudTransferenciaReservas(conExt,arlSolTraDat,CodEmp,CodLoc,CodCot));\n System.out.println(\"GeneraSolicitud\" + arlDatSolTra.toString());\n if(isSolTraInv(conExt,CodEmp,CodLoc,CodCot)){\n if(objReaMovInv.inicia(conExt, arlDat,datFecAux,arlDatSolTra,null)){\n if(modificaDetalleCotizacionCantidadesLocalesRemotasDos(conExt, CodEmp,CodLoc, CodCot)){\n System.out.println(\"OK PRESTAMOS\");\n }\n else{\n MensajeInf(\"Error al Guardar: Reservar mercaderia local\");\n System.out.println(\"GeneraSolicitud NO reservo local.....\");\n blnRes=false;\n }\n }else{\n MensajeInf(\"Error al Guardar: Prestamos entre empresas\");\n System.out.println(\"GeneraSolicitud No Genero la solicitud.....\");\n blnRes=false;\n }\n }\n else{\n MensajeInf(\"Error al Guardar: La solicitud de transferencia\");\n System.out.println(\"No Genero la solicitud.....\");\n blnRes=false;\n }\n objParSis.setCodigoMenu(intCodMnuResVenAut); // AUTORIZACIONES \n objReaMovInv = null;\n objCom91 = null;\n\n }\n else{\n /* Todo es local */\n// if(modificaDetalleCotizacionCantidadesLocalesRemotas(conExt, CodEmp, CodLoc, CodCot)){\n// System.out.println(\"OK PRESTAMOS\");\n// }\n// else{\n// MensajeInf(\"Error al Guardar: Reservar mercaderia local\");\n// System.out.println(\"GeneraSolicitud NO reservo local.....\");\n// blnRes=false;\n// }\n if(cotizacionSinSolicitudTransferencia(conExt,CodEmp,CodLoc,CodCot)){\n if(ponerItemsComoReservaLocal(conExt,CodEmp,CodLoc,CodCot)){\n System.out.println(\"generarEgresoMercaderiaReservada OK\");\n }\n else{\n MensajeInf(\"Error al Guardar: Reservar mercaderia local\");\n System.out.println(\"GeneraSolicitud NO reservo local.....\");\n blnRes=false;\n }\n }\n }\n /* Genera Egreso de reserva */\n }else{blnRes=false;MensajeInf(\"Error al Guardar: Insertando Cotizacion en el seguimiento\");}\n }\n //}\n }else{blnRes=false;MensajeInf(\"Error al Guardar: Realizando Movimiento Entre Empresas \");}\n }\n }\n }\n }\n catch(Exception Evt){ \n objUti.mostrarMsgErr_F1(this, Evt);\n blnRes=false;\n } \n return blnRes;\n }", "private boolean comprobarUsuario(String nombre, String contrasenia, String grupo) {\n\n return true;\n }", "public void desactiveRegraJogadaDupla() {\n this.RegraJogadaDupla = true;\n }", "public List<ValidationError> validate() {\n \tList<ValidationError> errors = new ArrayList<ValidationError>();\n\n \t// Ensure Repository unique\n \tRepository existingRepository = FIND.where()\n \t\t\t\t\t\t\t\t\t\t\t.eq(\"repoType\", repoType)\n \t\t\t\t\t\t\t\t\t\t\t.eq(\"identifier\", identifier)\n \t\t\t\t\t\t\t\t\t\t\t.not(Expr.eq(\"id\", id))\n \t\t\t\t\t\t\t\t\t\t\t.findUnique();\n \tif(existingRepository != null) {\n \t\terrors.add(new ValidationError(\"\", \"Repository with type/identifier combination already exists.\"));\n \t}\n\n \treturn errors.isEmpty() ? null : errors;\n }", "boolean isUnique();", "public PromoCodeAlreadyExistsException (Promo promo_input)\n {\n super(\"Promo Code: \");\n this.promo_error=promo_input;\n }", "public void iniciarProduccion(){\n try {\n Connection conn = Conectar.conectar();\n Statement st = conn.createStatement();\n ResultSet rs = st.executeQuery(\"select nick from usuarios where nick in(select usuario from construcciones) or nick \"\n +\"in(select usuario from investigaciones) or nick in(select usuario from movimientos)\");\n\n while(rs.next()){\n produccion.add(new Construcciones(rs.getString(1)));\n System.out.println(rs.getString(1));\n }\n\n st.close();\n rs.close();\n conn.close();\n\n }catch(SQLException e){\n System.out.println(\"Fallo actualizacion de produccion.\");\n }\n}", "@Override\n public void buttonClick(ClickEvent event) {\n try {\n boolean terminado = false;\n ProfesorDAO profesorDAO = new ProfesorDAO();\n List<Profesor> listProf = new ArrayList<>();\n listProf.addAll(profesorDAO.listaProfesores());\n Iterator<Profesor> it = listProf.iterator();\n\n if (!email_profesor.equals(\"\")) {\n if (!id_profesor.equals(\"\")) {\n if (password_profesor.equals(repassword_profesor)) {\n while ((it.hasNext() && terminado == false)) {\n Profesor p = it.next();\n if (p.getEmail().equals(email_profesor.getValue()) || p.getIdProfesor().equals(id_profesor)) {\n terminado = true;\n Notification.show(\"Campo email o identificador ya usado por otro usuario\", Notification.Type.WARNING_MESSAGE);\n }\n }\n } else {\n //Notification.show(\"No coincide los campos contraseña y repetir contraseña\", Notification.Type.WARNING_MESSAGE);\n }\n } else {\n Notification.show(\"Campo identificador vacio\", Notification.Type.WARNING_MESSAGE);\n }\n } else {\n Notification.show(\"Campo email vacio\", Notification.Type.WARNING_MESSAGE);\n }\n if (terminado == false) {\n Profesor p = new Profesor();\n p.setIdProfesor(id_profesor.getValue());\n p.setIdLugar((String) id_lugar_profesor.getValue());\n p.setNombre(nombre_profesor.getValue());\n p.setApellidos(apellidos_profesor.getValue());\n p.setEdad(edad_profesor.getValue());\n p.setMovil(movil_profesor.getValue());\n p.setHorario(horario_profesor.getValue());\n p.setAsignaturas(asignaturas_profesor);\n p.setDescripcion(descripcion_profesor.getValue());\n p.setEmail(email_profesor.getValue());\n p.setPassword(password_profesor.getValue());\n Notification.show(\"Profesor modificado\", \"Se ha actualizado el \"\n + \"profesor en la base de datos\", Notification.Type.TRAY_NOTIFICATION);\n profesorDAO.crear(p);\n getUI().getPage().setLocation(getUI().getPage().getLocation().getPath());\n }\n } catch (UnknownHostException ex) {\n Logger.getLogger(LoginView.class.getName()).log(Level.SEVERE, null, ex);\n } catch (Exception ex) {\n Logger.getLogger(LoginView.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "private void registrarResidencia(Residencias residencia) {\n\t\t\t\t\t\t\t\t\n\t\tResidenciasobservaciones observacion = residencia.getResidenciasobservaciones();\t\n\t\t\t\t\n\t\tif(observacion==null) {\t\t\t\n\t\t\thibernateController.insertResidencia(residencia);\n\t\t\t\n\t\t}else {\t\t\t\n\t\t\thibernateController.insertResidenciaObservacion(residencia, observacion);\t\t\n\t\t}\n\t\t\n\t\tupdateContent();\t\n\t\t\n\t}", "private static void registrarAuditoriaDetallesTarjetaCredito(Connexion connexion,TarjetaCredito tarjetacredito)throws Exception {\n\t\t\r\n\t\tString strValorActual=null;\r\n\t\tString strValorNuevo=null;\r\n\t\t\r\n\t\t\t\r\n\t\t\tif(tarjetacredito.getIsNew()||!tarjetacredito.getid_empresa().equals(tarjetacredito.getTarjetaCreditoOriginal().getid_empresa()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(tarjetacredito.getTarjetaCreditoOriginal().getid_empresa()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=tarjetacredito.getTarjetaCreditoOriginal().getid_empresa().toString();\r\n\t\t\t\t}\r\n\t\t\t\tif(tarjetacredito.getid_empresa()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=tarjetacredito.getid_empresa().toString() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),TarjetaCreditoConstantesFunciones.IDEMPRESA,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(tarjetacredito.getIsNew()||!tarjetacredito.getid_sucursal().equals(tarjetacredito.getTarjetaCreditoOriginal().getid_sucursal()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(tarjetacredito.getTarjetaCreditoOriginal().getid_sucursal()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=tarjetacredito.getTarjetaCreditoOriginal().getid_sucursal().toString();\r\n\t\t\t\t}\r\n\t\t\t\tif(tarjetacredito.getid_sucursal()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=tarjetacredito.getid_sucursal().toString() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),TarjetaCreditoConstantesFunciones.IDSUCURSAL,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(tarjetacredito.getIsNew()||!tarjetacredito.getid_banco().equals(tarjetacredito.getTarjetaCreditoOriginal().getid_banco()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(tarjetacredito.getTarjetaCreditoOriginal().getid_banco()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=tarjetacredito.getTarjetaCreditoOriginal().getid_banco().toString();\r\n\t\t\t\t}\r\n\t\t\t\tif(tarjetacredito.getid_banco()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=tarjetacredito.getid_banco().toString() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),TarjetaCreditoConstantesFunciones.IDBANCO,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(tarjetacredito.getIsNew()||!tarjetacredito.getcodigo().equals(tarjetacredito.getTarjetaCreditoOriginal().getcodigo()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(tarjetacredito.getTarjetaCreditoOriginal().getcodigo()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=tarjetacredito.getTarjetaCreditoOriginal().getcodigo();\r\n\t\t\t\t}\r\n\t\t\t\tif(tarjetacredito.getcodigo()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=tarjetacredito.getcodigo() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),TarjetaCreditoConstantesFunciones.CODIGO,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(tarjetacredito.getIsNew()||!tarjetacredito.getnombre().equals(tarjetacredito.getTarjetaCreditoOriginal().getnombre()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(tarjetacredito.getTarjetaCreditoOriginal().getnombre()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=tarjetacredito.getTarjetaCreditoOriginal().getnombre();\r\n\t\t\t\t}\r\n\t\t\t\tif(tarjetacredito.getnombre()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=tarjetacredito.getnombre() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),TarjetaCreditoConstantesFunciones.NOMBRE,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(tarjetacredito.getIsNew()||!tarjetacredito.getnombre_corto().equals(tarjetacredito.getTarjetaCreditoOriginal().getnombre_corto()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(tarjetacredito.getTarjetaCreditoOriginal().getnombre_corto()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=tarjetacredito.getTarjetaCreditoOriginal().getnombre_corto();\r\n\t\t\t\t}\r\n\t\t\t\tif(tarjetacredito.getnombre_corto()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=tarjetacredito.getnombre_corto() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),TarjetaCreditoConstantesFunciones.NOMBRECORTO,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(tarjetacredito.getIsNew()||!tarjetacredito.getdigito_valido().equals(tarjetacredito.getTarjetaCreditoOriginal().getdigito_valido()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(tarjetacredito.getTarjetaCreditoOriginal().getdigito_valido()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=tarjetacredito.getTarjetaCreditoOriginal().getdigito_valido().toString();\r\n\t\t\t\t}\r\n\t\t\t\tif(tarjetacredito.getdigito_valido()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=tarjetacredito.getdigito_valido().toString() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),TarjetaCreditoConstantesFunciones.DIGITOVALIDO,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(tarjetacredito.getIsNew()||!tarjetacredito.getdigito_tarjeta().equals(tarjetacredito.getTarjetaCreditoOriginal().getdigito_tarjeta()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(tarjetacredito.getTarjetaCreditoOriginal().getdigito_tarjeta()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=tarjetacredito.getTarjetaCreditoOriginal().getdigito_tarjeta().toString();\r\n\t\t\t\t}\r\n\t\t\t\tif(tarjetacredito.getdigito_tarjeta()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=tarjetacredito.getdigito_tarjeta().toString() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),TarjetaCreditoConstantesFunciones.DIGITOTARJETA,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(tarjetacredito.getIsNew()||!tarjetacredito.getcomision().equals(tarjetacredito.getTarjetaCreditoOriginal().getcomision()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(tarjetacredito.getTarjetaCreditoOriginal().getcomision()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=tarjetacredito.getTarjetaCreditoOriginal().getcomision().toString();\r\n\t\t\t\t}\r\n\t\t\t\tif(tarjetacredito.getcomision()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=tarjetacredito.getcomision().toString() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),TarjetaCreditoConstantesFunciones.COMISION,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(tarjetacredito.getIsNew()||!tarjetacredito.getinteres().equals(tarjetacredito.getTarjetaCreditoOriginal().getinteres()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(tarjetacredito.getTarjetaCreditoOriginal().getinteres()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=tarjetacredito.getTarjetaCreditoOriginal().getinteres().toString();\r\n\t\t\t\t}\r\n\t\t\t\tif(tarjetacredito.getinteres()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=tarjetacredito.getinteres().toString() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),TarjetaCreditoConstantesFunciones.INTERES,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(tarjetacredito.getIsNew()||!tarjetacredito.getmonto_minimo().equals(tarjetacredito.getTarjetaCreditoOriginal().getmonto_minimo()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(tarjetacredito.getTarjetaCreditoOriginal().getmonto_minimo()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=tarjetacredito.getTarjetaCreditoOriginal().getmonto_minimo().toString();\r\n\t\t\t\t}\r\n\t\t\t\tif(tarjetacredito.getmonto_minimo()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=tarjetacredito.getmonto_minimo().toString() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),TarjetaCreditoConstantesFunciones.MONTOMINIMO,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(tarjetacredito.getIsNew()||!tarjetacredito.getporcentaje_retencion().equals(tarjetacredito.getTarjetaCreditoOriginal().getporcentaje_retencion()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(tarjetacredito.getTarjetaCreditoOriginal().getporcentaje_retencion()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=tarjetacredito.getTarjetaCreditoOriginal().getporcentaje_retencion().toString();\r\n\t\t\t\t}\r\n\t\t\t\tif(tarjetacredito.getporcentaje_retencion()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=tarjetacredito.getporcentaje_retencion().toString() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),TarjetaCreditoConstantesFunciones.PORCENTAJERETENCION,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(tarjetacredito.getIsNew()||!tarjetacredito.getcomision_retencion().equals(tarjetacredito.getTarjetaCreditoOriginal().getcomision_retencion()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(tarjetacredito.getTarjetaCreditoOriginal().getcomision_retencion()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=tarjetacredito.getTarjetaCreditoOriginal().getcomision_retencion().toString();\r\n\t\t\t\t}\r\n\t\t\t\tif(tarjetacredito.getcomision_retencion()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=tarjetacredito.getcomision_retencion().toString() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),TarjetaCreditoConstantesFunciones.COMISIONRETENCION,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(tarjetacredito.getIsNew()||!tarjetacredito.getes_retencion_redondeo().equals(tarjetacredito.getTarjetaCreditoOriginal().getes_retencion_redondeo()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(tarjetacredito.getTarjetaCreditoOriginal().getes_retencion_redondeo()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=tarjetacredito.getTarjetaCreditoOriginal().getes_retencion_redondeo().toString();\r\n\t\t\t\t}\r\n\t\t\t\tif(tarjetacredito.getes_retencion_redondeo()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=tarjetacredito.getes_retencion_redondeo().toString() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),TarjetaCreditoConstantesFunciones.ESRETENCIONREDONDEO,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(tarjetacredito.getIsNew()||!tarjetacredito.getes_pago_banco_redondeo().equals(tarjetacredito.getTarjetaCreditoOriginal().getes_pago_banco_redondeo()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(tarjetacredito.getTarjetaCreditoOriginal().getes_pago_banco_redondeo()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=tarjetacredito.getTarjetaCreditoOriginal().getes_pago_banco_redondeo().toString();\r\n\t\t\t\t}\r\n\t\t\t\tif(tarjetacredito.getes_pago_banco_redondeo()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=tarjetacredito.getes_pago_banco_redondeo().toString() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),TarjetaCreditoConstantesFunciones.ESPAGOBANCOREDONDEO,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(tarjetacredito.getIsNew()||!tarjetacredito.getes_comision_redondeo().equals(tarjetacredito.getTarjetaCreditoOriginal().getes_comision_redondeo()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(tarjetacredito.getTarjetaCreditoOriginal().getes_comision_redondeo()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=tarjetacredito.getTarjetaCreditoOriginal().getes_comision_redondeo().toString();\r\n\t\t\t\t}\r\n\t\t\t\tif(tarjetacredito.getes_comision_redondeo()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=tarjetacredito.getes_comision_redondeo().toString() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),TarjetaCreditoConstantesFunciones.ESCOMISIONREDONDEO,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(tarjetacredito.getIsNew()||!tarjetacredito.getid_tipo_retencion().equals(tarjetacredito.getTarjetaCreditoOriginal().getid_tipo_retencion()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(tarjetacredito.getTarjetaCreditoOriginal().getid_tipo_retencion()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=tarjetacredito.getTarjetaCreditoOriginal().getid_tipo_retencion().toString();\r\n\t\t\t\t}\r\n\t\t\t\tif(tarjetacredito.getid_tipo_retencion()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=tarjetacredito.getid_tipo_retencion().toString() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),TarjetaCreditoConstantesFunciones.IDTIPORETENCION,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(tarjetacredito.getIsNew()||!tarjetacredito.getid_cuenta_contable().equals(tarjetacredito.getTarjetaCreditoOriginal().getid_cuenta_contable()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(tarjetacredito.getTarjetaCreditoOriginal().getid_cuenta_contable()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=tarjetacredito.getTarjetaCreditoOriginal().getid_cuenta_contable().toString();\r\n\t\t\t\t}\r\n\t\t\t\tif(tarjetacredito.getid_cuenta_contable()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=tarjetacredito.getid_cuenta_contable().toString() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),TarjetaCreditoConstantesFunciones.IDCUENTACONTABLE,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(tarjetacredito.getIsNew()||!tarjetacredito.getid_tipo_retencion_iva().equals(tarjetacredito.getTarjetaCreditoOriginal().getid_tipo_retencion_iva()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(tarjetacredito.getTarjetaCreditoOriginal().getid_tipo_retencion_iva()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=tarjetacredito.getTarjetaCreditoOriginal().getid_tipo_retencion_iva().toString();\r\n\t\t\t\t}\r\n\t\t\t\tif(tarjetacredito.getid_tipo_retencion_iva()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=tarjetacredito.getid_tipo_retencion_iva().toString() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),TarjetaCreditoConstantesFunciones.IDTIPORETENCIONIVA,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(tarjetacredito.getIsNew()||!tarjetacredito.getid_cuenta_contable_comision().equals(tarjetacredito.getTarjetaCreditoOriginal().getid_cuenta_contable_comision()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(tarjetacredito.getTarjetaCreditoOriginal().getid_cuenta_contable_comision()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=tarjetacredito.getTarjetaCreditoOriginal().getid_cuenta_contable_comision().toString();\r\n\t\t\t\t}\r\n\t\t\t\tif(tarjetacredito.getid_cuenta_contable_comision()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=tarjetacredito.getid_cuenta_contable_comision().toString() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),TarjetaCreditoConstantesFunciones.IDCUENTACONTABLECOMISION,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(tarjetacredito.getIsNew()||!tarjetacredito.getid_formula_pago_banco().equals(tarjetacredito.getTarjetaCreditoOriginal().getid_formula_pago_banco()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(tarjetacredito.getTarjetaCreditoOriginal().getid_formula_pago_banco()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=tarjetacredito.getTarjetaCreditoOriginal().getid_formula_pago_banco().toString();\r\n\t\t\t\t}\r\n\t\t\t\tif(tarjetacredito.getid_formula_pago_banco()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=tarjetacredito.getid_formula_pago_banco().toString() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),TarjetaCreditoConstantesFunciones.IDFORMULAPAGOBANCO,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(tarjetacredito.getIsNew()||!tarjetacredito.getid_cuenta_contable_diferencia().equals(tarjetacredito.getTarjetaCreditoOriginal().getid_cuenta_contable_diferencia()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(tarjetacredito.getTarjetaCreditoOriginal().getid_cuenta_contable_diferencia()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=tarjetacredito.getTarjetaCreditoOriginal().getid_cuenta_contable_diferencia().toString();\r\n\t\t\t\t}\r\n\t\t\t\tif(tarjetacredito.getid_cuenta_contable_diferencia()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=tarjetacredito.getid_cuenta_contable_diferencia().toString() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),TarjetaCreditoConstantesFunciones.IDCUENTACONTABLEDIFERENCIA,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(tarjetacredito.getIsNew()||!tarjetacredito.getid_formula_retencion().equals(tarjetacredito.getTarjetaCreditoOriginal().getid_formula_retencion()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(tarjetacredito.getTarjetaCreditoOriginal().getid_formula_retencion()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=tarjetacredito.getTarjetaCreditoOriginal().getid_formula_retencion().toString();\r\n\t\t\t\t}\r\n\t\t\t\tif(tarjetacredito.getid_formula_retencion()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=tarjetacredito.getid_formula_retencion().toString() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),TarjetaCreditoConstantesFunciones.IDFORMULARETENCION,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(tarjetacredito.getIsNew()||!tarjetacredito.getid_formula_comision().equals(tarjetacredito.getTarjetaCreditoOriginal().getid_formula_comision()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(tarjetacredito.getTarjetaCreditoOriginal().getid_formula_comision()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=tarjetacredito.getTarjetaCreditoOriginal().getid_formula_comision().toString();\r\n\t\t\t\t}\r\n\t\t\t\tif(tarjetacredito.getid_formula_comision()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=tarjetacredito.getid_formula_comision().toString() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),TarjetaCreditoConstantesFunciones.IDFORMULACOMISION,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t}", "public void confirmarBusqueda(){\n\t\tList<Producto> productos=productoService.getByAll();\n\t\tfor(Producto p: productos){\n\t\t\tProductoEmpresa proEmpr = new ProductoEmpresa();\n\t\t\tproEmpr.setCantidad(p.getCantidad()==null?0.0:p.getCantidad());\n\t\t\tproEmpr.setPrecio(p.getCostoPublico()==null?0.0:p.getCostoPublico());\n\t\t\tEmpresa empr=new Empresa();\n\t\t\tempr.setEmpresaId(getEmpresaId());\n\t\t\tproEmpr.setEmpresaId(empr);\n\t\t\tproEmpr.setFechaRegistro(new Date());\n\t\t\tproEmpr.setProductoId(p);\n\t\t\tgetProductoEmpresaList().add(proEmpr);\n\t\t\tproductoEmpresaService.save(proEmpr);\t\t\n\t\t\tRequestContext.getCurrentInstance().execute(\"PF('confirmarBusqueda').hide();\");\n\t\t}\n\t\tFacesContext.getCurrentInstance().addMessage(null, new FacesMessage(\"Productos creados Exitosamente para la sucursal seleccionada\"));\n\t\tsetProductoEmpresaList(productoEmpresaService.getByEmpresa(getEmpresaId()));\n\t}", "public static void registrarAuditoria(Connexion connexion,Long idUsuario,Caja caja,String sUsuarioPC,String sNamePC,String sIPPC)throws Exception {\n\t\t\r\n\t\ttry {\r\n\t\t\tif(CajaConstantesFunciones.ISCONAUDITORIA) {\r\n\t\t\t\tif(caja.getIsNew()) {\r\n\t\t\t\t\t////auditoriaLogicAdditional.registrarNuevaAuditoria(Constantes.LIDSISTEMAACTUAL,idUsuario,CajaDataAccess.TABLENAME, caja.getId(), Constantes.SAUDITORIAINSERTAR,\"\",sUsuarioPC,sNamePC,sIPPC,new Date(),\"\");\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(CajaConstantesFunciones.ISCONAUDITORIADETALLE) {\r\n\t\t\t\t\t\t////CajaLogic.registrarAuditoriaDetallesCaja(connexion,caja,auditoriaLogicAdditional.getAuditoria());\r\n\t\t\t\t\t}\r\n\t\t\t\t} else if(caja.getIsDeleted()) {\r\n\t\t\t\t\t/*if(!caja.getIsExpired()) {\r\n\t\t\t\t\t\t////auditoriaLogicAdditional.RegistrarNuevaAuditoria(Constantes.getLOidSistemaActual(),idUsuario,CajaDataAccess.TABLENAME, caja.getId(), Constantes.getSAuditoriaEliminarLogicamente(),\"\",sUsuarioPC,sNamePC,sIPPC,Timestamp.valueOf(Funciones.getStringMySqlCurrentDateTime()),\"\");\r\n\t\t\t\t\t\t////CajaLogic.registrarAuditoriaDetallesCaja(connexion,caja,auditoriaLogicAdditional.getAuditoria());\r\n\t\t\t\t\t} else {*/\r\n\t\t\t\t\t\t////auditoriaLogicAdditional.registrarNuevaAuditoria(Constantes.LIDSISTEMAACTUAL,idUsuario,CajaDataAccess.TABLENAME, caja.getId(), Constantes.SAUDITORIAELIMINARFISICAMENTE,\"\",sUsuarioPC,sNamePC,sIPPC,new Date(),\"\");\r\n\t\t\t\t\t//}\r\n\t\t\t\t} else if(caja.getIsChanged()) {\r\n\t\t\t\t\t////auditoriaLogicAdditional.registrarNuevaAuditoria(Constantes.LIDSISTEMAACTUAL,idUsuario,CajaDataAccess.TABLENAME, caja.getId(), Constantes.SAUDITORIAACTUALIZAR,\"\",sUsuarioPC,sNamePC,sIPPC,new Date(),\"\");\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(CajaConstantesFunciones.ISCONAUDITORIADETALLE) {\r\n\t\t\t\t\t\t////CajaLogic.registrarAuditoriaDetallesCaja(connexion,caja,auditoriaLogicAdditional.getAuditoria());\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch(Exception e) {\r\n\t\t\tFunciones.manageException(logger,e);\r\n\t\t\tthrow e;\r\n\t\t}\t\t\r\n\t}", "public boolean canRegister() {\n return true;\n }", "boolean hasResMineID();", "public ValidaExistePersonaRespuesta() {\n\t\theader = new EncabezadoRespuesta();\n\t\t}" ]
[ "0.5766474", "0.57540125", "0.57182616", "0.56589514", "0.5637193", "0.55195814", "0.5480621", "0.5478961", "0.5475342", "0.54666555", "0.5438882", "0.54306316", "0.5320239", "0.5319845", "0.52910924", "0.5287772", "0.52832365", "0.5278339", "0.52690303", "0.5266216", "0.52482665", "0.523991", "0.5239031", "0.52333784", "0.52294344", "0.5224716", "0.52196604", "0.5215744", "0.5201676", "0.51937497", "0.51794773", "0.51764095", "0.5171938", "0.5157625", "0.51542646", "0.5153922", "0.5152235", "0.51439023", "0.5142599", "0.513759", "0.51262516", "0.51261127", "0.5118417", "0.51170456", "0.5103016", "0.5101226", "0.5099715", "0.5099614", "0.50970757", "0.5091148", "0.5082698", "0.5077935", "0.50778556", "0.507752", "0.50763893", "0.507157", "0.5066787", "0.5065926", "0.5058941", "0.50571746", "0.50571746", "0.50557697", "0.5049607", "0.503851", "0.5036523", "0.5035571", "0.50350875", "0.50343496", "0.502246", "0.502201", "0.50214964", "0.5021172", "0.50177085", "0.5015806", "0.5014537", "0.5012311", "0.5005775", "0.5004856", "0.5001665", "0.50005805", "0.49966386", "0.49960846", "0.4995008", "0.49948698", "0.49935105", "0.49926332", "0.49905437", "0.49879497", "0.49858996", "0.4983466", "0.49735636", "0.49703455", "0.49692857", "0.49637404", "0.49633542", "0.49609876", "0.49534893", "0.49526107", "0.49517885", "0.4951601" ]
0.5317577
14
Station station=new Station(); station.start(); Station station1=new Station(); station1.start(); Station station2=new Station(); station2.start();
public static void main(String args[]){ transationTest2("a"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void run() {\n System.out.println(stations2 + \" 999\");\n // Station station = new Station(\"hey\",null, 10);\n // System.out.println(station.toString() + \" 999\");\n }", "public Station(){\r\n RemoveTrain();\r\n passengers = new ArrayList();\r\n this.LockInit();\r\n this.CondInit();\r\n \r\n Thread stationThread = new Thread(this);\r\n stationThread.start();\r\n// pm = new PassengerMaker();\r\n// Thread pmThread = new Thread(pm);\r\n// pmThread.start();\r\n }", "public static void main(String[] args) {\n// System.out.println(SingetonDemo.getInstance() == singetonDemo.getInstance());\n// System.out.println(SingetonDemo.getInstance() == singetonDemo.getInstance());\n\n for (int i = 0; i < 10; i++) {\n new Thread(()->{\n SingetonDemo.getInstance();\n },String.valueOf(i)).start();\n }\n\n }", "public static void main(String[] args) {\n SingleTon ton1 = SingleTon.getInstance();\n SingleTon ton2 = SingleTon.getInstance();\n }", "public static void main(String[] args) {\n BMW bmw = new BMW();\n Tesla tesla = new Tesla();\n Toyota toyota = new Toyota();\n Jeep jeep = new Jeep();\n\n bmw.start();\n tesla.start();\n toyota.start();\n jeep.start();\n\n // create an arraylist of car, and store 3 toyota objetc, 3 bmw objects and 3 Tesla objects\n\n Car car1 = new BMW();\n Car car2 = new Tesla();\n Car car3 = new Toyota();\n Car car4 = new Jeep();\n\n ArrayList<Car> cars = new ArrayList<>();\n cars.addAll(Arrays.asList(car1, car2, car3, car4, bmw, tesla, toyota, jeep));\n\n System.out.println();\n\n }", "public static void main(String[] args) {\n\r\n\t\tLane north = new Lane(\"North\");\r\n\t\tLane south = new Lane(\"South\");\r\n\t\tLane east = new Lane(\"East\");\r\n\t\tLane west = new Lane(\"West\");\r\n\t\t\r\n\t\tLane[] lanes = {north, south, east, west};\r\n\t\t\r\n\t\tThread t1 = new Thread(north);\r\n\t\tThread t2 = new Thread(south);\r\n\t\tThread t3 = new Thread(east);\r\n\t\tThread t4 = new Thread(west);\r\n\t\t\r\n\t\tt1.start();\r\n\t\tt2.start();\r\n\t\tt3.start();\r\n\t\tt4.start();\r\n\t\ttry {\r\n\t\t\tThread.sleep(3000);\r\n\t\t} catch (InterruptedException e1) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te1.printStackTrace();\r\n\t\t}\r\n\t\tfor (int i = 0; i < 3; ++i) {\r\n\r\n\t\t\tLane longestWait = getLongestWaitLane(lanes);\r\n\t\t\tif (longestWait != null && longestWait.getFront() != null) {\r\n\t\t\t\tCar temp = longestWait.remove();\r\n\t\t\t\tSystem.out.println(\"Let \" + temp.getCarID() + \" through after \" + temp.getWaitTime() + \"\\n\");\r\n\t\t\t\ttry {\r\n\t\t\t\t\tThread.sleep(500);\r\n\t\t\t\t} catch (InterruptedException 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\t\t\t}\r\n\r\n\t\t}\r\n\t\tnorth.setGenerate(false);\r\n\t\tsouth.setGenerate(false);\r\n\t\teast.setGenerate(false);\r\n\t\twest.setGenerate(false);\r\n\t\ttry {\r\n\t\t\tt1.join();\r\n\t\t\tt2.join();\r\n\t\t\tt3.join();\r\n\t\t\tt4.join();\r\n\t\t}\r\n\t\tcatch (InterruptedException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t}\r\n\t\tSystem.out.println(\"STOPPED\");\r\n\t\t\r\n\t\twhile (getLongestWaitLane(lanes) != null) {\r\n\t\t\tLane longestWait = getLongestWaitLane(lanes);\r\n\t\t\tif (longestWait != null && longestWait.getFront() != null) {\r\n\t\t\t\tCar temp = longestWait.remove();\r\n\t\t\t\tSystem.out.println(\"Let \" + temp.getCarID() + \" through after \" + temp.getWaitTime() + \"\\n\");\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public Lab1(Integer speed1, Integer speed2) {\n trackStatus = new Semaphore[6];\n for (int i = 0; i < trackStatus.length; i++)\n trackStatus[i] = new Semaphore(1);\n new Thread(new Train(1, speed1, SOUTH, 0)).start();\n new Thread(new Train(2, speed2, NORTH, 5)).start();\n }", "public static void main (String[] args) {\n\t\tGrid intersection = new Grid(10, 20);\n\t\t// Start the thread\n\t\tintersection.start();\n\t\t// While loop to create new vehicles, will continue to do so while the grid thread is running \t\n\t\twhile (intersection.isAlive()) {\n\t\t\ttry {\n\t\t\t\tThread.sleep(1000); // Waits 1 second after creating vehicles\n\t\t\t}\n\t\t\tcatch(InterruptedException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\t// Creates one vehicle going South and one East every second\n\t\t\tnew TravelEast(intersection.getGrid()).start();\n\t\t\tnew TravelSouth(intersection.getGrid()).start();\n\t\t}\n\t}", "public Station station1() {\n return station1;\n }", "@Override\n public void run() {\n // each Car stop 1 second at first\n try {\n Thread.sleep(1000);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n\n\n // choose between 4 lists\n while (true) {\n if (car.start == 1) {\n if (Street.west_list.peek().equals(car)) {\n try {\n Street.west_street.acquire();\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n canAccessStreet();\n Street.west_list.remove();\n Street.west_street.release();\n break;\n } else {\n try {\n Thread.sleep(2000);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n } else if (car.start == 2) {\n if (Street.south_list.peek().equals(car)) {\n try {\n Street.south_street.acquire();\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n\n canAccessStreet();\n Street.south_list.remove();\n Street.south_street.release();\n break;\n }\n else {\n try {\n Thread.sleep(2000);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n } else if (car.start == 3) {\n if (Street.east_list.peek().equals(car)) {\n try {\n Street.east_street.acquire();\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n canAccessStreet();\n Street.east_list.remove();\n Street.east_street.release();\n break;\n }\n else {\n try {\n Thread.sleep(2000);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n }\n // start = 4\n else {\n if (Street.north_list.peek().equals(car)) {\n try {\n Street.north_street.acquire();\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n canAccessStreet();\n Street.north_list.remove();\n Street.north_street.release();\n break;\n }\n else {\n try {\n Thread.sleep(2000);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n }\n }\n }", "public List<Station> stations() {\n return List.of(station1, station2);\n }", "public void start2();", "public void main2() throws StaleProxyException, InterruptedException\n {\n try\n {\n AgentController Agent1=main1.createNewAgent(\"Agent1\",\"players.Agent1\",null);\n Agent1.start();\n AgentController Agent2=main1.createNewAgent(\"Agent2\",\"players.Agent2\",null);\n Agent2.start();\n AgentController Agent3=main1.createNewAgent(\"Agent3\",\"players.Agent3\",null);\n Agent3.start();\n AgentController Agent4=main1.createNewAgent(\"Agent4\",\"players.Agent4\",null);\n Agent4.start();\n AgentController Agent5=main1.createNewAgent(\"Agent5\",\"players.Agent5\",null);\n Agent5.start();\n AgentController Agent6=main1.createNewAgent(\"Agent6\",\"players.Agent6\",null);\n Agent6.start();\n AgentController Agent7=main1.createNewAgent(\"Agent7\",\"players.Agent7\",null);\n Agent7.start();\n AgentController Agent8=main1.createNewAgent(\"Agent8\",\"players.Agent8\",null);\n Agent8.start();\n AgentController Agent9=main1.createNewAgent(\"Agent9\",\"players.Agent9\",null);\n Agent9.start();\n AgentController Agent10=main1.createNewAgent(\"Agent10\",\"players.Agent10\",null);\n Agent10.start();\n AgentController Agent11=main1.createNewAgent(\"Agent11\",\"players.Agent11\",null);\n Agent11.start();\n AgentController Agent12=main1.createNewAgent(\"Agent12\",\"players.Agent12\",null);\n Agent12.start();\n AgentController Agent13=main1.createNewAgent(\"Agent13\",\"players.Agent13\",null);\n Agent13.start();\n AgentController Agent14=main1.createNewAgent(\"Agent14\",\"players.Agent14\",null);\n Agent14.start();\n AgentController Agent15=main1.createNewAgent(\"Agent15\",\"players.Agent15\",null);\n Agent15.start();\n AgentController Agent16=main1.createNewAgent(\"Agent16\",\"players.Agent16\",null);\n Agent16.start();\n AgentController Main=main1.createNewAgent(\"Main\",\"test.Main\",null);\n Main.start();\n }\n catch (StaleProxyException e)\n {\n e.printStackTrace();\n }\n\n display();\n display();\n display();\n display();\n //showResualt();\n }", "public SensorStation(){\n\n }", "public static void main(String[] args) {\n\r\n\t\tMachine mac = new Machine();\r\n\t\t\r\n\t\tmac.start();\r\n\t\tmac.stop();\r\n\t\tSystem.out.println(\"----------------------\");\r\n\t\t\r\n\t\tCar bmw = new Car();\r\n\t\tbmw.start();\r\n\t\tbmw.stop();\r\n\t\tbmw.re_strat();\r\n\t\tSystem.out.println(\"-------------------\");\r\n\t\t\r\n\t\tMachine alto = new Car();\r\n\t\t\t\talto.start();\r\n\t\talto.stop();\r\n\t\tSystem.out.println(alto.engsize);\r\n\t\tSystem.out.println(\"---------------------------\");\t\r\n\t}", "static void test2() {\n\n System.out.println( \"Begin test2. ===============================\\n\" );\n\n Thread init = Thread.currentThread(); // init spawns the Mogwais\n\n System.out.println( \"TODO: write a more involved test here.\" );\n //\n // Create a GremlinsBridge of capacity 3.\n // Set an OPTIONAL, test delay to stagger the start of each mogwai.\n // Create the Mogwais and store them in an array.\n // Run them by calling their start() method.\n // Now, the test must give the mogwai time to finish their crossings.\n //\n System.out.println( \"TODO: follow the pattern of the example tests.\" );\n System.out.println( \"\\n=============================== End test2.\" );\n }", "public Simulation() {\n\t\tstation = new Station();\n\t\ttaxis = new Taxi[NR_OF_TAXIS];\n\t\tfor (int i = 0; i < NR_OF_TAXIS; i++) {\n\t\t\ttaxis[i] = i < NR_OF_SMALL_TAXIS ? new Taxi(i + 1, CAPACITY_SMALL, TIME_SMALL, station)\n\t\t\t\t\t: new Taxi(i + 1, CAPACITY_LARGE, TIME_LARGE, station);\n\t\t}\n\t\ttrain = new Train(station);\n\t}", "public static void main(String[] args) {\n\t\tsingleton1 s1_1=singleton1.getInstance();\n\t\ts1_1.print();\n\t\tsingleton1 s1_2=singleton1.getInstance();\n\t\ts1_2.print();\n\t\tsingleton2 s2_1=singleton2.getInstance();\n\t\ts2_1.print();\n\t\tsingleton2 s2_2=singleton2.getInstance();\n\t\ts2_2.print();\n\t\tsingleton3 s3_1=singleton3.getInstance();\n\t\ts3_1.print();\n\t\tsingleton3 s3_2=singleton3.getInstance();\n\t\ts3_2.print();\n\t\tsingleton4 s4_1=singleton4.getInstance();\n\t\ts4_1.print();\n\t\tsingleton4 s4_2=singleton4.getInstance();\n\t\ts4_2.print();\n\t}", "public static void main(String s[])\n\t{\n\t\t Honda h=new Honda();\n\t\t h.start();\n\t\t h.accelarate();\n\t\t Bajaj b=new Bajaj();\n\t\t b.start();\n\t\t b.accelarate();\n\t}", "public void testTwoTraversers() {\n List<Schedule> schedules = getSchedules(MockInstantiator.TRAVERSER_NAME1);\n schedules.addAll(getSchedules(MockInstantiator.TRAVERSER_NAME2));\n runWithSchedules(schedules, createMockInstantiator());\n }", "public static void main(String[ ] args) {\r\n Machine m1 = new Machine() {\r\n @Override public void start() {\r\n System.out.println(\"Wooooo\");\r\n }\r\n };\r\n Machine m2 = new Machine();\r\n m2.start();\r\n m2.end();\r\n }", "public void setStations(LinkedList<Station> stations) {\n this.stations = stations;\n }", "public static void main(String[] args) {\n\t\tList<Horse>horses=new ArrayList<>();\n\t\tfor(int i=0;i<8;i++){\nHorse h =new Horse();\nhorses.add(h);\nh.start();\n\t}\n\n}", "Start createStart();", "public Builder connect(Station station1, Station station2) {\n stationSet[representative(station1.id())] = stationSet[representative(station2.id())];\n return this;\n }", "public Train(Location village1, Location village2) {\n this.start = village1;\n this.destination = village2;\n // when train is created, it is at the start location\n this.current = start;\n this.occupied = false;\n }", "public static void main(String[] args) {\r\n Restoran resto = new Restoran();\r\n int i = 0;\r\n for ( i = 0; i < 6; i++) {\r\n new Thread(new Cliente(resto,\"Cliente \" + i), \"Cliente \" + i).start();\r\n }\r\n new Thread(new Mozo(resto)).start();\r\n new Thread(new Cocinero(resto)).start();\r\n }", "public static void main (String[] args) {\n\n\n Thread t1= new Thread(new Runnable() {\n @Override\n public void run() {\n System.out.println(\"Output: \"+Singleton.getInstance());\n Singleton.setObjName(\"Meow!!\");\n System.out.println(\"t1 Name: \"+Singleton.getName());\n }\n });\n\n Thread t2 = new Thread(new Runnable() {\n @Override\n public void run() {\n\n System.out.println(\"Output: \"+Singleton.getInstance());\n System.out.println(\"t2 Name: \"+Singleton.getName());\n\n }\n });\n\n Thread t3 = new Thread(new Runnable() {\n @Override\n public void run() {\n\n System.out.println(\"Output: \"+Singleton.getInstance());\n Singleton.setObjName(\"WolWol\");\n System.out.println(\"t3 Name: \"+Singleton.getName());\n\n }\n });\n\n Thread t4 = new Thread(new Runnable() {\n @Override\n public void run() {\n\n System.out.println(\"Output: \"+Singleton.getInstance());\n System.out.println(\"t4 Name: \"+Singleton.getName());\n\n }\n });\n\n// t1.start();\n// t2.start();\n// t3.start();\n// t4.start();\n\n \n }", "public static void main(String[] args) {\n classA a = new classA();\n classB b = new classB();\n //classC c = new classC();\n Thread t1 = new Thread(a);\n Thread t2 = new Thread(b);\n //Thread t3 = new Thread(c);\n Thread t3 = new Thread(new classC());\n t1.start();\n t2.start();\n t3.start();\n }", "public static void main(String[] args) {\n\t\tShare1 s = new Share1();\n\t\tUp u = new Up(s);\n\t\tDown d = new Down(s);\n\t\tu.start();\n\t\td.start();\n\t\t\n\t}", "private void startThreads() {\n Listener listener = new Listener();\n Thread listenerThread = new Thread(listener);\n\n listenerThread.start();\n }", "public static void main(String args[]){\n SingleTonClass myobject= SingleTonClass.objectCreationMethod();\r\n SingleTonClass myobject1= SingleTonClass.objectCreationMethod();\r\n myobject.display();\r\n myobject.b = 600;\r\n myobject1.display();\r\n myobject1.b = 800;\r\n SingleTonClass myobject2 = new SingleTonClass();\r\n myobject2.display();\r\n }", "public static void main(String[] args) {\n\t\t\r\n\t\tStore1 store1 = new Store1();\r\n\t\tstore1.selectGoods();\r\n\t\tstore1.payment();\r\n\t\tstore1.shipment();\r\n\t\t\r\n\t\tStore2 store2 = new Store2();\r\n\t\tstore2.selectGoods();\r\n\t\tstore2.payment();\r\n\t\tstore2.shipment();\r\n\t\t\r\n\t\t\r\n\r\n\t}", "public static void main(String[] args) {\n ClassTest1 t1=new ClassTest1(); \r\n\t t1.start(); \r\n\t t1.start(); \r\n\r\n }", "public static void main(String[] args) throws Exception {\n\n for(int i = 0 ; i < 100 ; i++) {\n new Thread(new SynAddRunnable(1, 2)).start();\n new Thread(new SynAddRunnable(2, 1)).start();\n }\n }", "public void doInitialSchedules() {\r\n\r\n\t\t// create the servicer, here make a vancarrier\r\n\t\tfor (int i = 0; i < vcNumber; i++) {\r\n\t\t\tVC vancarrier = new VC(this, \"Van Carrier\", true);\r\n\r\n\t\t\t// put the vancarrier on duty with placing it on the event-list\r\n\t\t\t// first\r\n\t\t\t// it will deactivate itself into waiting status\r\n\t\t\t// for the first truck right after activation\r\n\t\t\tvancarrier.activate();\r\n\t\t}\r\n\r\n\t\t// create a truck spring\r\n\t\tTruckGenerator firstarrival = new TruckGenerator(this, \"TruckArrival\", false);\r\n\r\n\t\t// place the truck generator on the event-list, in order to\r\n\t\t// start producing truck arrivals when the first truck comes\r\n\t\t// therefore we must use \"schedule\" instead of \"activate\"\r\n\t\tfirstarrival.schedule(new TimeSpan(getTruckArrivalTime()));\r\n\r\n\t}", "public static void main(String[] args) {\n\t\tSigleton s=Sigleton.getInstance();\r\n\t\t\r\n\t\tSystem.out.println(s);\r\n\t\t\r\n\t\tSigleton s1=Sigleton.getInstance();\r\n\t\tSystem.out.println(s1);\r\n\t\t\r\n\t\t\r\n\t\tSigleton s2=Sigleton.getInstance();\r\n\t\tSystem.out.println(s2);\r\n\t\t\r\n\t}", "public void startSale(){\n this.sale = new Sale();\n this.inventory = new Inventory();\n this.accounting = new Accounting();\n }", "public void buildStation(Station station) {\n stations.add(station);\n }", "public static void main(String[] args) {\n\t\t\n\t\tnew Pool.DublinServor().start();\n\t\tnew Pool.CorkServor().start();\n\t\t\n\t\t\t\n\t}", "public static void main(String[] args) {\n Animal zebra=new Animal(\"Pol\", \"Male\", 11, \"Zebra\");\n zebra.sleep();\n zebra.walk();\n zebra.eat();\n \n Animal giraffe=new Animal(\"Necky\",\"Female\",23,\"Giraffe\");\n giraffe.sleep();\n giraffe.walk();\n giraffe.eat();\n \n \n}", "void parkingMethod(){\n nearingTheCrater();\n parkingTheArm();\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 void main (String[] args) throws InterruptedException {\n Cook cook = new Cook(\"Cook1\");\n cook.setQueue(orderQueue);\n Cook cook2 = new Cook(\"Cook2\");\n cook2.setQueue(orderQueue);\n //StatisticManager.getInstance().register(cook);\n //StatisticManager.getInstance().register(cook2);\n List<Tablet> tablets = new ArrayList<Tablet>();\n for (int i = 0; i < 5; i++) {\n tablets.add(new Tablet(i));\n }\n\n //OrderManager orderManager = new OrderManager();\n //for (Tablet tab: tablets\n // ) {\n // tab.addObserver(orderManager);\n // cook.addObserver(new Waiter());\n //tab.addObserver(orderManager);\n //cook2.addObserver(new Waiter());\n // }\n\n RandomOrderGeneratorTask randomOrder = new RandomOrderGeneratorTask(tablets, ORDER_CREATING_INTERVAL);\n Thread treadRandom = new Thread(randomOrder);\n treadRandom.start();\n\n Thread amigoThread = new Thread(cook);\n amigoThread.start();\n Thread makarevichThread = new Thread(cook2);\n makarevichThread.start();\n Thread.sleep(1000);\n treadRandom.interrupt();\n\n\n\n //tablet.addObserver(cook);\n //cook.addObserver(new Waiter());\n //tablet.createOrder();\n\n DirectorTablet directorTablet = new DirectorTablet();\n directorTablet.printAdvertisementProfit();\n directorTablet.printCookWorkloading();\n directorTablet.printActiveVideoSet();\n directorTablet.printArchivedVideoSet();\n }", "public static void main(String[] args) { \n\t\tSystem.out.println(\"Part 1 Demo with same instance.\");\n\t\tFoo fooA = new Foo(\"ObjectOne\");\n\t\tMyThread thread1a = new MyThread(fooA, \"Dog\", \"A\");\n\t\tMyThread thread2a = new MyThread(fooA, \"Cat\", \"A\");\n\t\tthread1a.start();\n\t\tthread2a.start();\n\t\twhile (thread1a.isAlive() || thread2a.isAlive()) { };\n\t\tSystem.out.println(\"\\n\\n\");\n\t\t \n\t\t/* Part 1 Demo -- difference instances */ \n\t\tSystem.out.println(\"Part 1 Demo with different instances.\");\n\t\tFoo fooB1 = new Foo(\"ObjectOne\");\n\t\tFoo fooB2 = new Foo(\"ObjectTwo\");\n\t\tMyThread thread1b = new MyThread(fooB1, \"Dog\", \"A\");\n\t\tMyThread thread2b = new MyThread(fooB2, \"Cat\", \"A\");\n\t\tthread1b.start();\n\t\tthread2b.start();\n\t\twhile (thread1b.isAlive() || thread2b.isAlive()) { };\n\t\tSystem.out.println(\"\\n\\n\");\n\t\t \n\t\t/* Part 2 Demo */ \n\t\tSystem.out.println(\"Part 2 Demo.\");\n\t\tFoo fooC = new Foo(\"ObjectOne\");\n\t\tMyThread thread1c = new MyThread(fooC, \"Dog\", \"A\");\n\t\tMyThread thread2c = new MyThread(fooC, \"Cat\", \"B\");\n\t\tthread1c.start();\n\t\tthread2c.start();\n\t}", "public Station(int number, int work, Conveyor i, Conveyor o) {\n stationNumber = number;\n workload = work;\n input = i;\n output = o;\n }", "public static void main(String[] args) {\n\t\t\n\t\tRunnable r1 = () -> {\n\t\t\tSystem.out.println(\"I am running in \" + Thread.currentThread().getName());\n\t\t\t//singleton.getInstance();\n\t\t\tnostatic ns = new nostatic();\n\t\t\t\n\t\t\t\n\t\t\tns.incrementNum();\n\t\t};\n\t\t\n\t\tThread[] tarray = new Thread[100];\n\t\t\n\t\tfor( int i =0 ;i < 10 ; i++)\n\t\t{\n\t\t\ttarray[i] = new Thread(r1); \n\t\t\ttarray[i].start();\t\n\t\t}\n\t\t\t\t\n\t\t//System.out.println(\" end\" + t1.getName() + \" 2nd thread name \" + t2.getName());\n\t}", "public void init(){\n\n carQueue = new CarQueue();\n gasStation = new GasStation(30,8, carQueue);\n\n gasStation.initialize();\n\n cars = new AddCarThread(carQueue);\n addCars = new Thread(cars);\n }", "public static void main(String[] args) {\n\t\tfinal Sync1 object = new Sync1();\n\t\tThread t1 = new Thread() {\n\t\t\tpublic void run() {\n\t\t\t\tobject.print(5);\n\t\t\t}\n\t\t};\n\t\tThread t2 = new Thread() {\n\t\t\tpublic void run() {\n\t\t\t\tobject.print(100);\n\t\t\t}\n\t\t};\n\t\tt1.start();\n\t\tt2.start();\n\t\tSystem.out.println(t1.getState());\n\t\t\n\t\t\n\t}", "public void startPopulateWorkers(){\r\n\t\tArrayList<Thread> threads = new ArrayList<Thread>();\r\n\t\t\r\n\t\t//Create threads\r\n\t\tfor(int i = 0; i < pts.length; i++){\r\n\t\t\tthreads.add(new Thread(pts[i]));\r\n\t\t\tthreads.get(i).start();\r\n\t\t}\r\n\t\t\r\n\t\t//Wait for threads to finish\r\n\t\tfor(int i = 0; i < pts.length; i++){\r\n\t\t\ttry {\r\n\t\t\t\tthreads.get(i).join();\r\n\t\t\t} catch (InterruptedException e) {\r\n\t\t\t\tthrow new RuntimeException(e.getMessage());\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public static void main(String[] args) {\r\n\t\tfor(int i=0; i<10; i++){\r\n\t\t\tB b = new B();\r\n\t\t\tA a = new A(b);\r\n\t\t\tC c = new C(a);\r\n\t\t\tc.start();\r\n\t\t\tb.start();\r\n\t\t\ta.start();\r\n//\t\t\tSystem.out.println(\"--------------:\"+(i+1));\r\n\t\t\t/*new A().start();\r\n\t\t\tnew B().start();\r\n\t\t\tnew C().start();*/\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t /*final Thread t1 = new Thread(new Runnable() { \r\n\t \r\n\t @Override \r\n\t public void run() { \r\n\t System.out.println(\"t1\"); \r\n\t } \r\n\t }); \r\n\t final Thread t2 = new Thread(new Runnable() { \r\n\t \r\n\t @Override \r\n\t public void run() { \r\n\t try { \r\n\t //引用t1线程,等待t1线程执行完 \r\n\t t1.join(); \r\n\t } catch (InterruptedException e) { \r\n\t e.printStackTrace(); \r\n\t } \r\n\t System.out.println(\"t2\"); \r\n\t } \r\n\t }); \r\n\t Thread t3 = new Thread(new Runnable() { \r\n\t \r\n\t @Override \r\n\t public void run() { \r\n\t try { \r\n\t //引用t2线程,等待t2线程执行完 \r\n\t t2.join(); \r\n\t } catch (InterruptedException e) { \r\n\t e.printStackTrace(); \r\n\t } \r\n\t System.out.println(\"t3\"); \r\n\t } \r\n\t }); \r\n\t t3.start(); \r\n\t t2.start(); \r\n\t t1.start(); */\r\n\t}", "public static void main(String[] args) {\nEmployee emp1 =new Employee();\n\nemp1.name=\"MarufJon\";\nemp1.jobTitle=\"Teacher\";\nemp1.gender='m';\nemp1.age=22;\n\n\n\nEmployee emp2= new Employee() ;\nemp2.name=\"kiki\";\nemp2.jobTitle=\"HR\";\nemp2.age=26;\nemp2.gender='f';\n\n\nemp1.work();\nemp2.work();\n\t\n\nemp1.eat(\"chicken kesadia\");\nemp2.eat(\"salad\");\nemp1.walk();\nemp1.sleep(5);\nemp2.sleep(8);\n\t}", "public DriveTrain (int motorChannelL1,int motorChannelL2,int motorChannelR1,int motorChannelR2 ){\n leftMotor1 = new Victor(motorChannelL1);\n leftMotor2 = new Victor(motorChannelL2);\n rightMotor1 = new Victor(motorChannelR1);\n rightMotor2 = new Victor(motorChannelR2);\n highDrive = new RobotDrive(motorChannelL1, motorChannelR1);\n lowDrive = new RobotDrive(motorChannelL2, motorChannelR2);\n \n }", "static void test1() {\n\n System.out.println( \"Begin test1. ===============================\\n\" );\n\n Thread init = Thread.currentThread(); // init spawns the Mogwais\n\n // Create a GremlinsBridge of capacity 3.\n GremlinsBridge gBridge = new GremlinsBridge( 3 );\n\n int delay = 1000;\n\n // Create the Mogwais and store them in an array.\n Thread peds[] = {\n new Mogwai( \"Al\", 3, SIDE_ONE, gBridge ),\n new Mogwai( \"Bob\", 2, SIDE_ONE, gBridge ),\n new Mogwai( \"Cathy\", 2, SIDE_TWO, gBridge ),\n new Mogwai( \"Doris\", 3, SIDE_TWO, gBridge ),\n new Mogwai( \"Edith\", 3, SIDE_ONE, gBridge ),\n new Mogwai( \"Fred\", 2, SIDE_TWO, gBridge ),\n };\n\n for ( int j = 0; j < peds.length; ++j ) {\n // Run them by calling their start() method.\n try {\n peds[j].start();\n init.sleep( delay ); // delay start of next mogwai\n }\n catch ( InterruptedException e ) {\n System.err.println( \"Abort. Unexpected thread interruption.\" );\n }\n }\n // Now, the test must give the mogwai time to finish their crossings.\n for ( int j = 0; j < peds.length; ++j ) {\n try {\n peds[j].join(); // wait for next mogwai to finish\n }\n catch ( InterruptedException e ) {\n System.err.println( \"Abort. Unexpected thread interruption.\" );\n }\n }\n\n System.out.println( \"\\n=============================== End test1.\" );\n }", "public void setStation(String station) {\n \tthis.station = station;\n }", "public void doInitialSchedules() {\n ravenna.schedule();\n milan.schedule();\n venice.schedule();\n\n //Scheduling the public transportaton\n ravenna_milan.activate();\n milan_venice.activate();\n venice_ravenna.activate();\n }", "public void secondaryThreadCalls(){\n secondThread = new secondaryThread(getHolder(), this);\n effect = new ArrayList<>();\n enemy = new ArrayList<>();\n newEnemy = new ArrayList<>();\n thirdEnemy = new ArrayList<>();\n enemyStart = System.nanoTime();\n topborder = new ArrayList<>();\n botborder = new ArrayList<>();\n secondThread = new secondaryThread(getHolder(), this);\n secondThread.setRunning(true);\n secondThread.start();\n }", "void start() {\n \t\tThread logicThread = new Thread(logic);\n \t\tThread graphicThread = new Thread(graphics);\n \n \t\tlogicThread.start();\n \t\tgraphicThread.start();\n \t}", "public void setup_servers()\n {\n // get ServerInfo\n ServerInfo t = new ServerInfo();\n // all 3 servers\n for(int i=0;i<3;i++)\n {\n // get the server IP and port info\n String t_ip = t.hmap.get(i).ip;\n int t_port = Integer.valueOf(t.hmap.get(i).port);\n Thread x = new Thread()\n {\n public void run()\n {\n try\n {\n Socket s = new Socket(t_ip,t_port);\n // SockHandle instance with svr_hdl true and rx_hdl false as this is the socket initiator\n SockHandle t = new SockHandle(s,my_ip,my_port,my_c_id,c_list,s_list,false,true,cnode);\n }\n catch (UnknownHostException e) \n {\n \tSystem.out.println(\"Unknown host\");\n \tSystem.exit(1);\n } \n catch (IOException e) \n {\n \tSystem.out.println(\"No I/O\");\n e.printStackTrace(); \n \tSystem.exit(1);\n }\n }\n };\n \n x.setDaemon(true); \t// terminate when main ends\n x.setName(\"Client_\"+my_c_id+\"_SockHandle_to_Server\"+i);\n x.start(); \t\t\t// start the thread\n }\n }", "public void startWork() {\n for (int i = 0; i < cashiersCount; i++) {\n Cashier cashier = new Cashier(cashbox);\n cashierList.add(cashier);\n new Thread(cashier, \"Кассир \" + i).start();\n }\n ClientGenerator generator = new ClientGenerator(this);\n Thread t = new Thread(generator, \"Генератор\");\n t.start();\n }", "public static void main(String[] args) {\n LockClass butdo = new LockClass();\n OtherLockClass butxanh = new OtherLockClass();\n Thread Dieu = new Thread(new RunableClass(butdo, butxanh), \"Runable-Thread-Dieu\");\n Thread DinhDung = new Thread(new RunableClass(butdo,butdo), \"Runable-Thread-DinhDung\");\n// Thread Tuan = new Thread(new RunableClass(new LockClass(),otherLockClass), \"Runable-Thread-Tuan\");\n Thread Ly = new Thread(new RunableClass(butdo,butxanh), \"Runable-Thread-Ly\");\n Dieu.start();\n DinhDung.start();\n// Tuan.start();\n Ly.start();\n }", "public Station station2() {\n return station2;\n }", "public void startThreads() {\n\n //Start a new sender thread\n new Thread(new ClientSenderThread(sequenceNumber, eventQueue, socketsForBroadcast, incomingQueue, curTimeStamp, waitToResendQueue)).start();\n //Start a new listener thread\n //new Thread(new ClientListenerThread(socketsForBroadcast, clientTable,receivedQueue,displayQueue, incomingQueue,actionHoldingCount)).start();\n new ConfirmationBroadcast(sequenceNumber, confirmationQueue, socketsForBroadcast, waitToResendQueue, (BlockingQueue) incomingQueue).start();\n new ResendThread(150, timeout, waitToResendQueue, socketsForBroadcast).start();\n\n new IncomingMessageHandleThread(incomingQueue, receivedQueue, waitToResendQueue, confirmationQueue,\n actionHoldingCount, socketsForBroadcast, curTimeStamp, avoidRepeatenceHelper, numberOfPlayers, playerName, sequenceNumber, this).start();\n new ReceivedThread(receivedQueue, displayQueue, waitToResendQueue, incomingQueue, curTimeStamp, socketsForBroadcast,\n localPlayers, actionHoldingCount, playerName, sequenceNumber, numberOfPlayers).start();\n new DisplayThread(displayQueue, clientTable).start();\n new BulletSender(eventQueue).start();\n\n\n }", "public void startPhilosophers() {\n\t\tstarted=true;\n\t\tphil1.start();\n\t\tphil2.start();\n\t\tphil3.start();\n\t\tphil4.start();\n\t\tphil5.start();\n\t}", "public void createObservers() {\n\n\t\t// Airport screens\n\n\t\tAirportScreen airportScreen1 = new AirportScreen(airport, \"AIRPORT (1)\", airportScreen1Dialog);\n\t\tAirportScreen airportScreen2 = new AirportScreen(airport, \"AIRPORT (2)\", airportScreen2Dialog);\n\t\tairport.attach(airportScreen1);\n\t\tairport.attach(airportScreen2);\n\n\t\t// Terminal screens (three each)\n\n\t\tTerminalScreen termAScreen1 = new TerminalScreen(termA, \"TERMINAL A (1)\", termAScreen1Dialog);\n\t\tTerminalScreen termAScreen2 = new TerminalScreen(termA, \"TERMINAL A (2)\", termAScreen2Dialog);\n\t\tTerminalScreen termAScreen3 = new TerminalScreen(termA, \"TERMINAL A (3)\", termAScreen3Dialog);\n\t\ttermA.attach(termAScreen1);\n\t\ttermA.attach(termAScreen2);\n\t\ttermA.attach(termAScreen3);\n\n\t\tTerminalScreen termBScreen1 = new TerminalScreen(termB, \"TERMINAL B (1)\", termBScreen1Dialog);\n\t\tTerminalScreen termBScreen2 = new TerminalScreen(termB, \"TERMINAL B (2)\", termBScreen2Dialog);\n\t\tTerminalScreen termBScreen3 = new TerminalScreen(termB, \"TERMINAL B (3)\", termBScreen3Dialog);\n\t\ttermB.attach(termBScreen1);\n\t\ttermB.attach(termBScreen2);\n\t\ttermB.attach(termBScreen3);\n\n\t\tTerminalScreen termCScreen1 = new TerminalScreen(termC, \"TERMINAL C (1)\", termCScreen1Dialog);\n\t\tTerminalScreen termCScreen2 = new TerminalScreen(termC, \"TERMINAL C (2)\", termCScreen2Dialog);\n\t\tTerminalScreen termCScreen3 = new TerminalScreen(termC, \"TERMINAL C (3)\", termCScreen3Dialog);\n\t\ttermC.attach(termCScreen1);\n\t\ttermC.attach(termCScreen2);\n\t\ttermC.attach(termCScreen3);\n\n\t\t// Gates and gate screens\n\n\t\t// Terminal A\n\t\tfor (int i = 0; i < gatesA.length; ++i) {\n\t\t\tgatesA[i] = new Gate(\"A-\" + (i + 1));\n\t\t\tgatesA[i].attach(new GateScreen(gatesA[i], gatesADialogs[i]));\n\t\t}\n\n\t\t// Terminal B\n\t\tfor (int i = 0; i < gatesB.length; ++i) {\n\t\t\tgatesB[i] = new Gate(\"B-\" + (i + 1));\n\t\t\tgatesB[i].attach(new GateScreen(gatesB[i], gatesBDialogs[i]));\n\t\t}\n\n\t\t// Terminal C\n\t\tfor (int i = 0; i < gatesC.length; ++i) {\n\t\t\tgatesC[i] = new Gate(\"C-\" + (i + 1));\n\t\t\tgatesC[i].attach(new GateScreen(gatesC[i], gatesCDialogs[i]));\n\t\t}\n\t}", "public Controller()\n {\n // Create initial queues and stations\n q0 = new Queue(); //registration q\n \n // p[arameters are id of station, 4 queues, completed q)\n s0 = new Station(0, q0, q1, q2, q3, qx);\n \n //Student soiurce ss is an actor\n \n actors = new ArrayList<>(); \n actors.add(s0); // add all Actor implementors\n //actors.add(myStudentSorce);\n }", "public StationList()\r\n {\r\n //your data add comes here\r\n Station s_01 = new Station(\"Bristol Temple Meads\", 1, 8, 00);\r\n Station s_02 = new Station(\"Cardiff\", 1, 8, 15);\r\n Station s_03 = new Station(\"Dursley\", 1, 8, 30);\r\n Station s_04 = new Station(\"Edinburgh\", 2, 8, 45);\r\n Station s_05 = new Station(\"Gloucester\", 1, 9, 00);\r\n Station s_06 = new Station(\"Liverpool\", 2, 9, 15);\r\n \r\n Station s_07 = new Station(\"Bristol Temple Meads\", 1, 9, 30);\r\n Station s_08 = new Station(\"Cardiff\", 1, 9, 45);\r\n Station s_09 = new Station(\"Dursley\", 1, 10, 00);\r\n Station s_10 = new Station(\"Edinburgh\", 2, 10, 15);\r\n Station s_11 = new Station(\"Gloucester\", 1, 10, 30);\r\n Station s_12 = new Station(\"Liverpool\", 2, 10, 45);\r\n \r\n Station s_13 = new Station(\"Bristol Temple Meads\", 1, 11, 00);\r\n Station s_14 = new Station(\"Cardiff\", 1, 11, 15);\r\n Station s_15 = new Station(\"Dursley\", 1, 11, 30);\r\n Station s_16 = new Station(\"Edinburgh\", 2, 11, 45);\r\n Station s_17 = new Station(\"Gloucester\", 1, 12, 00);\r\n Station s_18 = new Station(\"Liverpool\", 2, 12, 15);\r\n \r\n Station s_19 = new Station(\"Bristol Temple Meads\", 1, 12, 30);\r\n Station s_20 = new Station(\"Cardiff\", 1, 12, 45);\r\n Station s_21 = new Station(\"Dursley\", 1, 13, 00);\r\n Station s_22 = new Station(\"Edinburgh\", 2, 13, 15);\r\n Station s_23 = new Station(\"Gloucester\", 1, 13, 30);\r\n Station s_24 = new Station(\"Liverpool\", 2, 13, 45);\r\n \r\n Station s_25 = new Station(\"Bristol Temple Meads\", 1, 14, 00);\r\n Station s_26 = new Station(\"Cardiff\", 1, 14, 15);\r\n Station s_27 = new Station(\"Dursley\", 1, 14, 30);\r\n Station s_28 = new Station(\"Edinburgh\", 2, 14, 45);\r\n Station s_29 = new Station(\"Gloucester\", 1, 15, 00);\r\n Station s_30 = new Station(\"Liverpool\", 2, 15, 15);\r\n \r\n Station s_31 = new Station(\"Bristol Temple Meads\", 1, 15, 30);\r\n Station s_32 = new Station(\"Cardiff\", 1, 15, 45);\r\n Station s_33 = new Station(\"Dursley\", 1,16, 00);\r\n Station s_34 = new Station(\"Edinburgh\", 2, 16, 15);\r\n Station s_35 = new Station(\"Gloucester\", 1, 16, 30);\r\n Station s_36 = new Station(\"Liverpool\", 2, 16, 45);\r\n \r\n Station s_37 = new Station(\"Bristol Temple Meads\", 1, 17, 00);\r\n Station s_38 = new Station(\"Cardiff\", 1, 17, 15);\r\n Station s_39 = new Station(\"Dursley\", 1, 17, 30);\r\n Station s_40 = new Station(\"Edinburgh\", 2, 17, 45);\r\n Station s_41 = new Station(\"Gloucester\", 1, 18, 00);\r\n Station s_42 = new Station(\"Liverpool\", 2, 18, 15);\r\n \r\n Station s_43 = new Station(\"Bristol Temple Meads\", 1, 18, 30);\r\n Station s_44 = new Station(\"Cardiff\", 1, 18, 45);\r\n Station s_45 = new Station(\"Dursley\", 1, 19, 00);\r\n Station s_46 = new Station(\"Edinburgh\", 2, 19, 15);\r\n Station s_47 = new Station(\"Gloucester\", 1, 19, 30);\r\n Station s_48 = new Station(\"Liverpool\", 2, 19, 45);\r\n \r\n Station s_49 = new Station(\"Bristol Temple Meads\", 1, 20, 00);\r\n Station s_50 = new Station(\"Cardiff\", 1, 20, 15);\r\n Station s_51 = new Station(\"Dursley\", 1, 20, 30);\r\n Station s_52 = new Station(\"Edinburgh\", 2, 20, 45);\r\n Station s_53 = new Station(\"Gloucester\", 1, 21, 00);\r\n Station s_54 = new Station(\"Liverpool\", 2, 21, 15);\r\n \r\n Station s_55 = new Station(\"Bristol Temple Meads\", 1, 21, 30);\r\n Station s_56 = new Station(\"Cardiff\", 1, 21, 45);\r\n Station s_57 = new Station(\"Dursley\", 1, 22, 00);\r\n Station s_58 = new Station(\"Edinburgh\", 2, 22, 15);\r\n Station s_59 = new Station(\"Gloucester\", 1, 22, 30);\r\n Station s_60 = new Station(\"Liverpool\", 2, 22, 45);\r\n \r\n stationList.add(s_01);\r\n stationList.add(s_02);\r\n stationList.add(s_03);\r\n stationList.add(s_04);\r\n stationList.add(s_05);\r\n stationList.add(s_06);\r\n stationList.add(s_07);\r\n stationList.add(s_08);\r\n stationList.add(s_09);\r\n stationList.add(s_10);\r\n stationList.add(s_11);\r\n stationList.add(s_12);\r\n stationList.add(s_13);\r\n stationList.add(s_14);\r\n stationList.add(s_15);\r\n stationList.add(s_16);\r\n stationList.add(s_17);\r\n stationList.add(s_18);\r\n stationList.add(s_19);\r\n stationList.add(s_20);\r\n stationList.add(s_21);\r\n stationList.add(s_22);\r\n stationList.add(s_23);\r\n stationList.add(s_24);\r\n stationList.add(s_25);\r\n stationList.add(s_26);\r\n stationList.add(s_27);\r\n stationList.add(s_28);\r\n stationList.add(s_29);\r\n stationList.add(s_30);\r\n stationList.add(s_31);\r\n stationList.add(s_32);\r\n stationList.add(s_33);\r\n stationList.add(s_34);\r\n stationList.add(s_35);\r\n stationList.add(s_36);\r\n stationList.add(s_37);\r\n stationList.add(s_39);\r\n stationList.add(s_40);\r\n stationList.add(s_41);\r\n stationList.add(s_42);\r\n stationList.add(s_43);\r\n stationList.add(s_44);\r\n stationList.add(s_45);\r\n stationList.add(s_46);\r\n stationList.add(s_47);\r\n stationList.add(s_48);\r\n stationList.add(s_49);\r\n stationList.add(s_50);\r\n stationList.add(s_51);\r\n stationList.add(s_52);\r\n stationList.add(s_53);\r\n stationList.add(s_54);\r\n stationList.add(s_55);\r\n stationList.add(s_56);\r\n stationList.add(s_57);\r\n stationList.add(s_58);\r\n stationList.add(s_59);\r\n stationList.add(s_60);\r\n\r\n\r\n \r\n }", "public static void main(String[] args) {\n Bank bank = new Bank();\n\n bank.addAccount(new Account(\"Acc_01\", 100));\n bank.addAccount(new Account(\"Acc_02\", 120));\n bank.addAccount(new Account(\"Acc_03\", 50));\n\n Client client1 = new Client(bank, \"Acc_01\", new ArrayList<>(Arrays.asList(\"-50\", \"+20\", \"-90\", \"-50\")));\n Client client2 = new Client(bank, \"Acc_01\", new ArrayList<>(Arrays.asList(\"+10\", \"-30\", \"-45\", \"+20\")));\n\n new Thread(client1).start();\n new Thread(client2).start();\n\n }", "@Test\n public void multipleNetServers() throws Exception {\n String gNode1 = \"graphNode1\";\n String gNode2 = \"graphNode2\";\n\n Map<String, String> rcaConfTags = new HashMap<>();\n rcaConfTags.put(\"locus\", RcaConsts.RcaTagConstants.LOCUS_DATA_NODE);\n IntentMsg msg = new IntentMsg(gNode1, gNode2, rcaConfTags);\n wireHopper2.getSubscriptionManager().setCurrentLocus(RcaConsts.RcaTagConstants.LOCUS_DATA_NODE);\n\n wireHopper1.sendIntent(msg);\n\n WaitFor.waitFor(() ->\n wireHopper2.getSubscriptionManager().getSubscribersFor(gNode2).size() == 1,\n 10,\n TimeUnit.SECONDS);\n GenericFlowUnit flowUnit = new SymptomFlowUnit(System.currentTimeMillis());\n DataMsg dmsg = new DataMsg(gNode2, Lists.newArrayList(gNode1), Collections.singletonList(flowUnit));\n wireHopper2.sendData(dmsg);\n wireHopper1.getSubscriptionManager().setCurrentLocus(RcaConsts.RcaTagConstants.LOCUS_DATA_NODE);\n\n WaitFor.waitFor(() -> {\n List<FlowUnitMessage> receivedMags = wireHopper1.getReceivedFlowUnitStore().drainNode(gNode2);\n return receivedMags.size() == 1;\n }, 10, TimeUnit.SECONDS);\n }", "public void startScheduling() {\n new Thread(new Runnable() {\n public void run() {\n while(true) {\n try {\n Thread.sleep(30000);\n Calendar c = Calendar.getInstance();\n int min = c.get(Calendar.MINUTE);\n if (((min % 10) == 0) || (min == 0)) {\n boolean action = getLightOnWhenMovementDetectedSchedule().getCurrentSchedule();\n if (action) {\n configureSwitchOnWhenMovement(true);\n } else {\n configureSwitchOnWhenMovement(false);\n }\n action = getLightSchedule().getCurrentSchedule();\n if (action) {\n switchOn();\n } else {\n switchOff();\n }\n saveHistoryData();\n }\n Thread.sleep(30000);\n } catch (InterruptedException e) {\n return;\n } catch (RemoteHomeConnectionException e) {\n e.printStackTrace();\n } catch (RemoteHomeManagerException e) {\n e.printStackTrace();\n }\n }\n }\n }).start(); \n }", "public Scheduler()\r\n {\r\n town = new Graph<String>();\r\n }", "public void scheduleMarathon()\n\t{\n\n\t\t//Create new threads\n\t\tThread h = new Thread(new ThreadRunner(HARE,H_REST,H_SPEED)); \n\t\tThread t = new Thread(new ThreadRunner(TORTOISE,T_REST,T_SPEED)); \n\n\t\tArrayList<Thread> runnerList = new ArrayList<Thread>();\n\t\trunnerList.add(h);\n\t\trunnerList.add(t);\n\n\t\tSystem.out.println(\"Get set...Go! \");\n\t\t//Start threads\n\t\tfor (Thread i: runnerList){\n\t\t\ti.start();\n\t\t}\n\n\t\twaitMarathonFinish(runnerList);\n\t}", "@Override\n\tpublic void start()\n\t{\n\t\tarena = \"scenarios/boxpushing/arena/pioneer.controller.arena.txt\"; \n\n\t\t\n\t\tschedule.reset();\n\n\t\tsuper.start();\n\n\t\tresetBehavior();\n\n\t}", "public void startSimulation(){\n Enumeration enumAgents = agents.elements();\n\n while (enumAgents.hasMoreElements()) {\n ProcessData data = (ProcessData) enumAgents.nextElement();\n createThreadFor(data.agent).start();\n }\n }", "public void setUp() throws Exception {\n\n processDefinition = new ProcessDefinition();\n\n processDefinition.setProcessVariables(new ProcessVariable[]{\n ProcessVariable.forName(\"var1\"),\n ProcessVariable.forName(\"var2\")\n });\n\n Activity theLastJoinActivity = null;\n\n\n for(int i=1; i<20; i++) {\n Activity a1 = new DefaultActivity();\n\n // a1.setQueuingEnabled(true);\n\n if(i == 7 || i==1){\n a1 = new GatewayActivity();\n }\n\n a1.setTracingTag(\"a\" + i);\n processDefinition.addChildActivity(a1);\n\n if(i==7){\n theLastJoinActivity = a1;\n }\n }\n\n {\n Transition t1 = new Transition();\n t1.setSource(\"a9\");\n t1.setTarget(\"a1\");\n\n processDefinition.addTransition(t1);\n }\n {\n Transition t1 = new Transition();\n t1.setSource(\"a10\");\n t1.setTarget(\"a9\");\n\n processDefinition.addTransition(t1);\n }\n\n {\n Transition t1 = new Transition();\n t1.setSource(\"a1\");\n t1.setTarget(\"a2\");\n t1.setCondition(new Evaluate(\"var1\", \"==\", \"true\"));\n\n processDefinition.addTransition(t1);\n }\n {\n Transition t1 = new Transition();\n t1.setSource(\"a1\");\n t1.setTarget(\"a5\");\n t1.setCondition(new Evaluate(\"var2\", \"==\", \"true\"));\n\n processDefinition.addTransition(t1);\n }\n {\n Transition t1 = new Transition();\n t1.setSource(\"a2\");\n t1.setTarget(\"a3\");\n\n processDefinition.addTransition(t1);\n }\n {\n Transition t1 = new Transition();\n t1.setSource(\"a2\");\n t1.setTarget(\"a4\");\n\n processDefinition.addTransition(t1);\n }\n {\n Transition t1 = new Transition();\n t1.setSource(\"a5\");\n t1.setTarget(\"a6\");\n\n processDefinition.addTransition(t1);\n }\n {\n Transition t1 = new Transition();\n t1.setSource(\"a6\");\n t1.setTarget(\"a4\");\n\n processDefinition.addTransition(t1);\n }\n {\n Transition t1 = new Transition();\n t1.setSource(\"a3\");\n t1.setTarget(\"a7\");\n\n processDefinition.addTransition(t1);\n }\n {\n Transition t1 = new Transition();\n t1.setSource(\"a4\");\n t1.setTarget(\"a7\");\n\n processDefinition.addTransition(t1);\n }\n {\n Transition t1 = new Transition();\n t1.setSource(\"a7\");\n t1.setTarget(\"a11\");\n\n processDefinition.addTransition(t1);\n }\n {\n Transition t1 = new Transition();\n t1.setSource(\"a11\");\n t1.setTarget(\"a12\");\n\n processDefinition.addTransition(t1);\n }\n\n processDefinition.afterDeserialization();\n\n ProcessInstance.USE_CLASS = DefaultProcessInstance.class;\n\n\n }", "public static void main(String[] args) {\n\t\tSystem.out.println(\"HW\");\n\t\tSingle1.getInstance();\n\t\tSingle2.getInstance();\n\t}", "private void startSensors() {\n for (MonitoredSensor sensor : mSensors) {\n sensor.startListening();\n }\n }", "public static void main(String args[]) throws Exception\n {\n ImplementsRunnable rc = new ImplementsRunnable();\n Thread t1 = new Thread(rc);\n t1.start();\n Thread.sleep(1000); // Waiting for 1 second before starting next thread\n Thread t2 = new Thread(rc);\n t2.start();\n Thread.sleep(1000); // Waiting for 1 second before starting next thread\n Thread t3 = new Thread(rc);\n t3.start();\n \n // Modification done here. Only one object is shered by multiple threads\n // here also.\n ExtendsThread extendsThread = new ExtendsThread();\n Thread thread11 = new Thread(extendsThread);\n thread11.start();\n Thread.sleep(1000);\n Thread thread12 = new Thread(extendsThread);\n thread12.start();\n Thread.sleep(1000);\n Thread thread13 = new Thread(extendsThread);\n thread13.start();\n Thread.sleep(1000);\n }", "public BicycleStation() {\n super();\n }", "public static void main(String[] args){\n//\t\tnew Selection().start();\n//\t\tnew Selection().start();\n//\t\tnew Insertion().start();\n\t\tnew Insertion().start();\n\t\tnew Insertion().start();\n\t\tnew Insertion().start();\n\t}", "@Override\n public void run() {\n while(t1!=null){\n server.run(); \n }\n t1=null;\n }", "@Test\n public void it_should_add_a_train() {\n // GIVEN\n TrainScheduler scheduler = new TrainScheduler();\n\n // WHEN\n List< Station > stations = new ArrayList<>();\n stations.add(new Station(null, LocalTime.parse(\"11:30\"), \"Lyon\", StationType.ORIGIN));\n stations.add(new Station(LocalTime.parse(\"14:00\"), LocalTime.parse(\"14:05\"), \"Paris\", StationType.INTERMEDIATE));\n stations.add(new Station(LocalTime.parse(\"15:00\"), null, \"London\", StationType.DESTINATION ));\n\n List<DayOfWeek> days = new ArrayList<>();\n days.add(DayOfWeek.MONDAY);\n days.add(DayOfWeek.TUESDAY);\n days.add(DayOfWeek.WEDNESDAY);\n days.add(DayOfWeek.THURSDAY);\n days.add(DayOfWeek.FRIDAY);\n TrainSchedule schedule = new TrainSchedule(days);\n\n scheduler.addTrain(\"Eurostar\", stations, schedule);\n\n // THEN\n List<TrainResponse> responses = scheduler.consultTrains(LocalDate.now(), LocalTime.parse(\"11:00\"), \"Paris\", \"London\");\n Assert.assertEquals(responses.size(), 1);\n TrainResponse response = responses.get(0);\n Assert.assertEquals(response.getFrom(), \"Paris\");\n Assert.assertEquals(response.getTo(), \"London\");\n }", "private void startComponents(){\n\n if(isAllowed(sentinel)){\n SentinelComponent sentinelComponent = new SentinelComponent(getInstance());\n sentinelComponent.getCanonicalName();\n }\n\n if(isAllowed(\"fileserver\")){\n FileServer fileServer = new FileServer(getInstance());\n fileServer.getCanonicalName();\n }\n\n if(isAllowed(\"manager\")){\n ManagerComponent Manager = new ManagerComponent(getInstance());\n Manager.getCanonicalName();\n }\n\n// if(isAllowed(\"sdk\")){\n// SDK sdk = new SDK(getInstance());\n// sdk.getCanonicalName();\n// }\n\n if(isAllowed(\"centrum\")){\n CentrumComponent centrum1 = new CentrumComponent(getInstance(), null);\n centrum1.getCanonicalName();\n }\n\n }", "private void createSignalSystems() {\r\n\r\n createSignalSystemAtNode(this.scenario.getNetwork().getNodes().get(Id.createNodeId(2)));\r\n createSignalSystemAtNode(this.scenario.getNetwork().getNodes().get(Id.createNodeId(3)));\r\n createSignalSystemAtNode(this.scenario.getNetwork().getNodes().get(Id.createNodeId(4)));\r\n createSignalSystemAtNode(this.scenario.getNetwork().getNodes().get(Id.createNodeId(5)));\r\n createSignalSystemAtNode(this.scenario.getNetwork().getNodes().get(Id.createNodeId(7)));\r\n createSignalSystemAtNode(this.scenario.getNetwork().getNodes().get(Id.createNodeId(8)));\r\n\r\n if (TtCreateParallelNetworkAndLanes.checkNetworkForSecondODPair(this.scenario.getNetwork())) {\r\n createSignalSystemAtNode(this.scenario.getNetwork().getNodes().get(Id.createNodeId(10)));\r\n createSignalSystemAtNode(this.scenario.getNetwork().getNodes().get(Id.createNodeId(11)));\r\n }\r\n }", "public static void main(String[] args) {\n\n for (int i = 0; i < 5; i++) {\n new Thread(() -> {\n MySingleton instance1 = MySingleton.getInstance();\n System.out.println(Thread.currentThread().getName() + \" \" + instance1);\n }, \"thread\" + i).start();\n }\n }", "static void test0() {\n\n System.out.println( \"Begin test0. ===============================\\n\" );\n\n Thread init = Thread.currentThread(); // init spawns the Mogwais\n\n // Create a GremlinsBridge of capacity 3.\n GremlinsBridge gremlinBridge = new GremlinsBridge( 3 );\n\n // Set an optional, test delay to stagger the start of each mogwai.\n int delay = 4000;\n\n // Create the Mogwais and store them in an array.\n Thread peds[] = {\n new Mogwai( \"Al\", 3, SIDE_ONE, gremlinBridge ),\n new Mogwai( \"Bob\", 4, SIDE_TWO, gremlinBridge ),\n };\n\n for ( int j = 0; j < peds.length; ++j ) {\n // Run them by calling their start() method.\n try {\n peds[j].start();\n init.sleep( delay );\n }\n catch ( InterruptedException e ) {\n System.err.println( \"Abort. Unexpected thread interruption.\" );\n break;\n }\n }\n // Now, the test must give the mogwai time to finish their crossings.\n for ( int j = 0; j < peds.length; ++j ) {\n try {\n peds[j].join();\n }\n catch ( InterruptedException e ) {\n System.err.println( \"Abort. Unexpected thread interruption.\" );\n break;\n }\n }\n System.out.println( \"\\n=============================== End test0.\" );\n return;\n }", "public Station(String location) {\n this.stationID = counter++;\n this.location = location;\n this.bikes = new ArrayList<>();\n }", "public void init()\n {\n boolean tHotspot = true;\n // Figures below valid for 1000TPS\n double tGcRateFactor = 1000.0D / ((1000.0D * 1000.0) * cClientTransPerMicro) ;\n if (tHotspot)\n {\n // tax average 6ms, max 65, every 20 seconds\n // me1 27ms, max 83ms, every 20 seconds\n // me1s 27ms, max 87, every 22seconds\n mTaxJvm = new GcService(9908.0D*1000 * tGcRateFactor, 9.0D*1000); \n mMeJvm = new GcService(2509.0D*1000 * tGcRateFactor, 17.0D*1000); \n mMeStandbyJvm = new GcService(2257.0D*1000 * tGcRateFactor, 15.0D*1000);\n }\n else\n {\n // Metronome \n mTaxJvm = new GcService(100*1000, 500);\n mMeJvm = new GcService(100*1000, 500);\n mMeStandbyJvm = new GcService(100*1000, 500);\n }\n\n String tName;\n mClient.init(new ServerConfig(mClient, mClientTaxNwDelay, \"Client\", cClientCount, cClientCount, 0.1));\n {\n mClientTaxNwDelay.init(new ServerConfig(mClientTaxNwDelay, mTaxTcp, \"ClientTaxNwDelay\", 1, 1, 0.1)); \n {\n tName = \"TaxServer\";\n mTaxTcp.init(new ServerConfig(mTaxJvm, mTaxTcp, mTaxPool, tName + \"_Tcp\", 1, 1, 22)); \n mTaxPool.init(new ServerConfig(mTaxJvm, mTaxPool, mTaxMeNwDelay, tName + \"_ServerPool\", 5, 150, 11)); \n\n {\n mTaxMeNwDelay.init(new ServerConfig(mTaxMeNwDelay, mMePrimaryTcp, \"TaxMeNwDelay\", 1, 1, 100)); \n {\n tName=\"MatchingEngine\";\n mMePrimaryTcp.init(new ServerConfig(mMeJvm, mMePrimaryTcp, mMePrimaryServerPool, tName + \"Tcp\", 1, 1, 14));\n mMePrimaryServerPool.init(new ServerConfig(mMeJvm, mMePrimaryServerPool, mMePrimarySorter, tName + \"_ServerPool\", 5, 150, 12)); \n mMePrimarySorter.init(new ServerConfig(mMeJvm, mMePrimarySorter, mMePrimaryChainUnit0, tName + \"_Sorter\", 1, 1, 13));\n mMePrimaryChainUnit0.init(new ServerConfig(mMeJvm, mMePrimaryChainUnit0, mMePrimaryPostChain, tName + \"_ChainUnit0\", 1, 1, 59)); \n mMePrimaryBatchSender.init(new ServerConfig(mMeJvm, mMePrimaryBatchSender, mMeMesNwDelay, tName + \"_BatchSender\", 10, 10, 1)); \n mMePrimaryRecoveryLog.init(new ServerConfig(mMeJvm, mMePrimaryRecoveryLog, mMePrimaryPostChain, tName + \"_RecoveryLog\", 1, 1, 50)); \n mMePrimaryPostChain.init(new ServerConfig(mMeJvm, mMePrimaryPostChain, mMePrimaryResponsePool, tName + \"_PostChain\", 1, 1, 46)); \n mMePrimaryResponsePool.init(new ServerConfig(mMeJvm, mMePrimaryResponsePool, mMeTaxNwDelay, tName + \"_ResponsePool\", 5, 25, 16)); \n\n {\n mMeMesNwDelay.init(new ServerConfig(mMeMesNwDelay, mMeStandbyTcp, \"MeMesNwDelay\", 1, 1, 90)); \n {\n tName=\"MatchingEngineStandby\";\n mMeStandbyTcp.init(new ServerConfig(mMeStandbyJvm, mMeStandbyTcp, mMeStandbyServerPool, tName + \"_Tcp\", 1, 1, 13)); \n mMeStandbyServerPool.init(new ServerConfig(mMeStandbyJvm, mMeStandbyServerPool, mMesMeNwDelay, tName + \"_ServerPool\", 5, 150, 18)); \n }\n mMesMeNwDelay.init(new ServerConfig(mMesMeNwDelay, mMePrimaryPostChain, \"MesMeNwDelay\", 1, 1, 90)); \n }\n }\n mMeTaxNwDelay.init(new ServerConfig(mMeTaxNwDelay, mTaxCollector, \"MeTaxNwDelay\", 1, 1, 100));\n }\n } \n mTaxCollector.init(new ServerConfig(mTaxJvm, mTaxCollector, mTaxClientNwDelay, tName + \"_Collector\", 1, 1, 0.1)); \n mTaxClientNwDelay.init(new ServerConfig(mTaxClientNwDelay, null, \"TaxClientNwDelay\", 1, 1, 0.1));\n }\n }", "public Application() {\r\n monster1 = new Monster();\r\n treasure1 = new Treasure();\r\n in = new Scanner(System.in);\r\n }", "private static void farmMachines()\n {\n List<Automat> johnDeere = new ArrayList<Automat>();\n johnDeere.add(new SaeMaschine());\n johnDeere.add(new GiessMaschine());\n johnDeere.add(new ErnteMaschine());\n\n // Jemand muss nun endlich arbeiten\n System.out.println(\"Ja, jetzt wird wieder in die Hände gespuckt\\n\" +\n \"Wir steigern das Bruttosozialprodukt\\n\" +\n \"Ja, ja, ja, jetzt wird wieder in die Hände gespuckt\\n\");\n\n new Thread(() -> {\n for( Automat automat : johnDeere )\n {\n automat.arbeiten(maisFeld);\n if( automat instanceof SaeMaschine )\n {\n new SaeMaschine().arbeiten(maisFeld, \"Mais\");\n System.out.println(\"Maiskölbchen nach Arbeit: \" + maisFeld.size());\n }\n }\n }).start();\n\n new Thread(() -> {\n for( Automat automat : johnDeere )\n {\n automat.arbeiten(weizenFeld);\n if( automat instanceof SaeMaschine )\n {\n new SaeMaschine().arbeiten(weizenFeld, \"Weizen\");\n System.out.println(\"Weizenhalme nach Arbeit: \" + weizenFeld.size());\n }\n }\n }).start();\n }", "public static void main(String[] args) {\n\t\r\n\t\t\r\n multipleInherit obj=new multipleInherit();\r\n obj.walking();\r\n obj.sleeping();\r\n obj.read();\r\n\t}", "public static void main(String[] args){\n\n PartTwo p2 = new PartTwo();\n p2.start();\n\n PartThree p3 = new PartThree();\n p3.run(p2.getNodes());\n\n\n }", "public Demo()\n {\n machine = new Machine();\n }", "public void launch(){\n try{\n System.out.println(\"Main: Creando agentes\");\n \tmap = visualizer.getMapToLoad();\n \tsatelite = new Satelite(id_satelite, map, visualizer);\n \tdrone = new Drone(new AgentID(\"Drone\"), map.getWidth(), map.getHeigh(), id_satelite);\n \tSystem.out.println(\"MAIN : Iniciando agentes...\");\n \tvisualizer.setSatelite(satelite);\n satelite.start();\n drone.start();\n }catch(Exception e){\n \tSystem.err.println(\"Main: Error al crear los agentes\");\n System.exit(-1);\n }\n\t}", "FuelingStation createFuelingStation();", "public void setup_clients()\n {\n ClientInfo t = new ClientInfo();\n for(int i=0;i<5;i++)\n {\n // for mesh connection between clients\n // initiate connection to clients having ID > current node's ID\n if(i > my_c_id)\n {\n // get client info\n String t_ip = t.hmap.get(i).ip;\n int t_port = Integer.valueOf(t.hmap.get(i).port);\n Thread x = new Thread()\n {\n \tpublic void run()\n {\n try\n {\n Socket s = new Socket(t_ip,t_port);\n // SockHandle instance with svr_hdl false and rx_hdl false as this is the socket initiator\n // and is a connection to another client node\n SockHandle t = new SockHandle(s,my_ip,my_port,my_c_id,c_list,s_list,false,false,cnode);\n }\n catch (UnknownHostException e) \n {\n \tSystem.out.println(\"Unknown host\");\n \tSystem.exit(1);\n } \n catch (IOException e) \n {\n \tSystem.out.println(\"No I/O\");\n e.printStackTrace(); \n \tSystem.exit(1);\n }\n \t}\n };\n \n x.setDaemon(true); \t// terminate when main ends\n x.setName(\"Client_\"+my_c_id+\"_SockHandle_to_Client\"+i);\n x.start(); \t\t\t// start the thread\n }\n }\n\n // another thread to check until all connections are established ( ie. socket list size =4 )\n // then send a message to my_id+1 client to initiate its connection setup phase\n Thread y = new Thread()\n {\n public void run()\n {\n int size = 0;\n // wait till client connections are setup\n while (size != 4)\n {\n synchronized(c_list)\n {\n size = c_list.size();\n }\n }\n // if this is not the last client node (ID =4)\n // send chain init message to trigger connection setup\n // phase on the next client\n if(my_c_id != 4)\n {\n c_list.get(my_c_id+1).send_setup();\n System.out.println(\"chain setup init\");\n }\n // send the setup finish, from Client 4\n // indicating connection setup phase is complete\n else\n {\n c_list.get(0).send_setup_finish();\n }\n }\n };\n \n y.setDaemon(true); \t// terminate when main ends\n y.start(); \t\t\t// start the thread\n }", "public static void main(String[] args) {\n Employee emp=new Employee();\n emp.start();\n Student stu=new Student();\n Thread t1=new Thread(stu);\n t1.start();\n\t}", "public static void main(String[] args) {\n\n try {\n Coordinator cord = new Coordinator(cordPort, 3);\n runRunnable(cord);\n\n Participant one=new Participant(1001,cordPort);\n Participant two=new Participant(1002,cordPort);\n Participant three=new Participant(1003,cordPort);\n runRunnable(one);\n runRunnable(two);\n runRunnable(three);\n }catch (Exception ex){\n\n }\n\n }", "public static void main(String[] args){\n System.out.println(\"-------------\");\n BarWorker2 barWorker21 = new BarWorker2(\"barWorker21\");\n BarWorker2 barWorker22 = new BarWorker2(\"barWorker22\");\n for(int i=0;i<10;i++){\n barWorker22.run();\n barWorker21.run();\n }\n\n\n }", "@SuppressWarnings(\"empty-statement\")\r\n public static void main(String args[]) \r\n {\r\n \r\n Customer []aCustomer=new Customer[8];\r\n int numCustomer=8;\r\n BarberShop barberShop = new BarberShop(); //Creates a new barbershop\r\n \r\n Barber giovanni = new Barber(customers,barber,barberShop); //Giovanni is the best barber ever \r\n giovanni.start(); //Ready for another day of work\r\n\r\n /* This method will create new customers for a while */\r\n \r\n for (int i=0; i<10; i++) \r\n {\r\n aCustomer[i] = new Customer(i,customers,barber,barberShop);\r\n aCustomer[i].start();\r\n try {\r\n Thread.sleep(2000);\r\n } catch(InterruptedException ex) {};\r\n }\r\n \r\n while(numCustomer>0) \r\n {\r\n numCustomer=0;\r\n \r\n try {\r\n for (int i=0; i<8; i++) \r\n {\r\n if(aCustomer[i].notCut==true) numCustomer++;\r\n Thread.sleep(100);\r\n }\r\n Thread.sleep(1000);\r\n } catch(InterruptedException ex) {};\r\n }\r\n \r\n System.exit(0);\r\n}", "public void run() {\n String[] instruments = getInstrumentIds();\n String[] parties = getPartyIds();\n String[] venues = getVenueIds();\n //TradeMapStore tms = new TradeMapStore();\n\n\n while(true) {\n Trade trade = new Trade();\n trade.setTradeId(UUID.randomUUID().toString());\n logger.info(\"Generating Trade with Id \"+trade.getTradeId());\n trade.setAltTradeIds(new HashMap<String, String>());\n trade.setExecutionVenueDimId(getVenue(venues));\n trade.setTradeTransactionType(TradeTransactionTypeEnum.NEW);\n trade.setSecondaryTradeTypeEnum(TradeTypeEnum.WAP_TRADE);\n trade.setCurrencyPair(CurrencyPairEnum.EURUSD);\n trade.setInstrumentDimId(getInstrument(instruments));\n trade.setCounterPartyDimId(getCounterParty(parties));\n trade.setMarketId(getVenue(venues));\n trade.setOriginalTradeDate(new DateTime(new Date()));\n trade.setPrice(getPrice());\n trade.setQuantity(getSize());\n HashMap<String, Party> partyHashMap = new HashMap<String, Party>();\n trade.setParties(partyHashMap);\n trade.setTradeType(TradeTypeEnum.REGULAR_TRADE);\n logger.info(\"Inserting Trade: \"+trade.toJSON());\n trades.put(trade.getTradeId(),trade);\n\n logger.info(\"TradeLoader Having a snooze\");\n try {\n Thread.sleep(current().nextInt(10, 100));\n }\n catch(InterruptedException e){\n logger.error(\"Error while sleeping\");\n }\n }\n\n }" ]
[ "0.6988531", "0.6541471", "0.62881106", "0.5931645", "0.58695716", "0.5848033", "0.5803827", "0.57904655", "0.5758305", "0.57320476", "0.56993264", "0.566991", "0.5665498", "0.55852807", "0.55614305", "0.55449027", "0.5530544", "0.55199975", "0.5500926", "0.5493867", "0.5468281", "0.5434435", "0.54128605", "0.53997743", "0.53988427", "0.5389989", "0.5371176", "0.53643245", "0.53617764", "0.5352884", "0.53384614", "0.5338245", "0.53363466", "0.53260505", "0.5306739", "0.5303483", "0.5293936", "0.52622986", "0.52535355", "0.52475345", "0.52404386", "0.5239956", "0.52282", "0.522739", "0.5226744", "0.5217484", "0.5215757", "0.5209652", "0.52092385", "0.5208094", "0.52080107", "0.5206348", "0.52024424", "0.5202192", "0.5192871", "0.5187221", "0.51783586", "0.51753086", "0.51548004", "0.51407236", "0.5139154", "0.5136259", "0.5132189", "0.51251996", "0.5121074", "0.511987", "0.5117203", "0.51122916", "0.51022714", "0.5102162", "0.50982535", "0.5097123", "0.5093524", "0.5090277", "0.5086057", "0.50846684", "0.50832057", "0.50823474", "0.5079588", "0.5075671", "0.5072771", "0.5070844", "0.507044", "0.5069663", "0.506753", "0.5066682", "0.505409", "0.5050114", "0.5044168", "0.50428057", "0.5039293", "0.5034884", "0.5032523", "0.50289553", "0.5028416", "0.5026229", "0.5025181", "0.50215447", "0.5020015", "0.5018646", "0.50114846" ]
0.0
-1
Compares 2 JSONArrays for equality.
public static boolean isEqual(JSONArray jsonArray1, JSONArray jsonArray2) { if(jsonArray1.length() != jsonArray2.length()) { return false; } if(jsonArray1.length() == 0) { return true; } for(int i = 0; i < jsonArray1.length(); ++i) { try { final Object value1 = jsonArray1.get(i); final Object value2 = jsonArray2.get(i); } catch (Exception ex) { log.warn(ex, "Error comparing JSONArrays"); return false; } } return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public final JSONCompareResult compareJSON(final JSONArray expected, final JSONArray actual)\n throws JSONException\n {\n final JSONCompareResult result = createResult();\n compareJSONArray(\"\", expected, actual, result);\n return result;\n }", "@Override\n\tpublic boolean equals(Object other) {\n\t\tif (!(other instanceof JSONArray)) {\n\t\t\treturn false;\n\t\t}\n\t\tint len = this.size();\n\t\tif (len != ((JSONArray) other).size()) {\n\t\t\treturn false;\n\t\t}\n\t\tfor (int i = 0; i < len; i += 1) {\n\t\t\tObject valueThis = this.getObj(i);\n\t\t\tObject valueOther = ((JSONArray) other).getObj(i);\n\t\t\tif (valueThis instanceof JSONObject) {\n\t\t\t\tif (!((JSONObject) valueThis).equals(valueOther)) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t} else if (valueThis instanceof JSONArray) {\n\t\t\t\tif (!((JSONArray) valueThis).equals(valueOther)) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t} else if (!valueThis.equals(valueOther)) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "@Test\n public void arraysEqualsWithEqualArraysReturnsTrue() {\n\n Class<?>[] arrayOne = { String.class, Integer.class };\n Class<?>[] arrayTwo = { String.class, Integer.class };\n\n assertThat(Arrays.equals(arrayOne, arrayTwo)).isTrue();\n }", "@Override\n public final JSONCompareResult compareJSON(final JSONObject expected, final JSONObject actual)\n throws JSONException\n {\n final JSONCompareResult result = createResult();\n compareJSON(\"\", expected, actual, result);\n return result;\n }", "public static boolean equalArrays(final byte[] bytes1, final byte[] bytes2) {\n\t\tif (bytes1.length != bytes2.length) {\n\t\t\treturn false;\n\t\t}\n\t\tfor (int i = 0; i < bytes1.length; i++) {\n\t\t\tif (bytes1[i] != bytes2[i]) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "protected void recursivelyCompareJSONArray(final String key, final JSONArray expected,\n final JSONArray actual, final JSONCompareResult result) throws JSONException\n {\n final Set<Integer> matched = new HashSet<>();\n for (int i = 0; i < expected.length(); ++i)\n {\n final Object expectedElement = expected.get(i);\n boolean matchFound = false;\n for (int j = 0; j < actual.length(); ++j)\n {\n final Object actualElement = actual.get(j);\n if (matched.contains(j)\n || !actualElement.getClass().equals(expectedElement.getClass()))\n {\n continue;\n }\n if (expectedElement instanceof JSONObject)\n {\n if (compareJSON((JSONObject) expectedElement, (JSONObject) actualElement)\n .passed())\n {\n matched.add(j);\n matchFound = true;\n break;\n }\n }\n else if (expectedElement instanceof JSONArray)\n {\n if (compareJSON((JSONArray) expectedElement, (JSONArray) actualElement)\n .passed())\n {\n matched.add(j);\n matchFound = true;\n break;\n }\n }\n else if (expectedElement.equals(actualElement))\n {\n matched.add(j);\n matchFound = true;\n break;\n }\n }\n if (!matchFound)\n {\n result.fail(\n key + \"[\" + i + \"] Could not find match for element \" + expectedElement);\n return;\n }\n }\n }", "private static boolean areEqual (byte[] a, byte[] b) {\r\n int aLength = a.length;\r\n if (aLength != b.length)\r\n return false;\r\n for (int i = 0; i < aLength; i++)\r\n if (a[i] != b[i])\r\n return false;\r\n return true;\r\n }", "public boolean equals( Object other ){\r\n\t\t if (!(other instanceof ChainedArrays))\r\n\t\t\t return false;\r\n\t\t Iterator<T> it1 = this.iterator();\r\n\t\t @SuppressWarnings(\"unchecked\")\r\n\t\t ChainedArrays<T> other_casted = (ChainedArrays<T>) other;\r\n\t\t Iterator<T> it2 = other_casted.iterator();\r\n\t\t boolean ans = true;\r\n\t\t while(it1.hasNext()&&it2.hasNext()){\r\n\t\t\t ans &= isEqual( it1.next( ), it2.next( ) );\r\n\t\t }\r\n\t\t return ans;\r\n\t}", "public static boolean simpleByteArrayCompare(byte[] byt1, byte[] byt2)\n\t{\n\t\tif (byt1.length != byt2.length)\n\t\t\treturn false;\n\t\tfor (int i = 0; i < byt2.length; i++)\n\t\t\tif (byt1[i] != byt2[i])\n\t\t\t\treturn false;\n\t\treturn true;\n\t}", "private static boolean equals(int[] array1, int[] array2) {\n if(array1.length != array2.length)\n return false;\n \n Arrays.sort(array1);\n Arrays.sort(array2);\n \n int i = 0;\n for(; i < array1.length; ++i) {\n if(array1[i] != array2[i])\n break;\n }\n \n return (i == array1.length);\n }", "public boolean areEqual(T[] arr1, T[] arr2){\r\n if(arr1.length != arr2.length){\r\n return false;\r\n }\r\n\r\n for(int i = 0; i < arr1.length; i++){\r\n //System.out.println(arr1[i] + \" \" + arr2[i]);\r\n if(!arr1[i].equals(arr2[i])){\r\n return false;\r\n }\r\n }\r\n\r\n return true;\r\n }", "static boolean compareArrays(double[] testArray1, double[] testArray2 ) {\n\t\tdouble arrayOneAverage = averageDoubleArray(testArray1); \n\t\tdouble arrayTwoAverage = averageDoubleArray(testArray2); \n\t\t\n\t\tif (arrayOneAverage > arrayTwoAverage)\n\t\t\treturn true;\n\t\telse {\n\t\t\treturn false;\n\t\t}\n\t}", "private static boolean areBundlesEqual(Bundle lhs, Bundle rhs) {\n if (!lhs.keySet().equals(rhs.keySet())) {\n // Keys differ - bundles are not equal.\n return false;\n }\n for (String key : lhs.keySet()) {\n if (!areEqual(lhs.get(key), rhs.get(key))) {\n return false;\n }\n }\n return true;\n }", "@Test(timeout = 4000)\n public void test024() throws Throwable {\n JSONObject jSONObject0 = new JSONObject();\n String[] stringArray0 = new String[0];\n JSONObject jSONObject1 = new JSONObject(jSONObject0, stringArray0);\n assertFalse(jSONObject1.equals((Object)jSONObject0));\n }", "public boolean compareObjects(Object object1, Object object2, AbstractSession session) {\n Object firstCollection = getRealCollectionAttributeValueFromObject(object1, session);\n Object secondCollection = getRealCollectionAttributeValueFromObject(object2, session);\n ContainerPolicy containerPolicy = getContainerPolicy();\n\n if (containerPolicy.sizeFor(firstCollection) != containerPolicy.sizeFor(secondCollection)) {\n return false;\n }\n\n if (containerPolicy.sizeFor(firstCollection) == 0) {\n return true;\n }\n Object iterFirst = containerPolicy.iteratorFor(firstCollection);\n Object iterSecond = containerPolicy.iteratorFor(secondCollection);\n\n //loop through the elements in both collections and compare elements at the\n //same index. This ensures that a change to order registers as a change.\n while (containerPolicy.hasNext(iterFirst)) {\n //fetch the next object from the first iterator.\n Object firstAggregateObject = containerPolicy.next(iterFirst, session);\n Object secondAggregateObject = containerPolicy.next(iterSecond, session);\n\n //fetch the next object from the second iterator.\n //matched object found, break to outer FOR loop\t\t\t\n if (!getReferenceDescriptor().getObjectBuilder().compareObjects(firstAggregateObject, secondAggregateObject, session)) {\n return false;\n }\n }\n return true;\n }", "public static final boolean arraysAreEqual(Object value, Object otherValue) {\r\n\t\tif (value instanceof Object[]) {\r\n\t\t\tif (otherValue instanceof Object[]) return valuesAreTransitivelyEqual((Object[])value, (Object[])otherValue);\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "void compareDataStructures();", "protected boolean arraysEqual(short[] other) {\n if (other == arrayOfShorts) {\n return true;\n }\n\n if (other.length != arrayOfShorts.length) {\n return false;\n }\n\n for (int i = 0; i < arrayOfShorts.length; i++) {\n if (other[i] != arrayOfShorts[i]) {\n return false;\n }\n }\n return true;\n }", "boolean areTheyEqual(int[] array_a, int[] array_b) {\n if(array_a == null || array_b == null || array_a.length!=array_b.length) return false;\n\n HashMap<Integer,Integer> count = new HashMap<>();\n for(int x : array_a){\n count.put(x, count.getOrDefault(x,0)+1);\n }\n for(int y : array_b){\n count.put(y, count.getOrDefault(y,0)-1);\n if(count.get(y)==0) count.remove(y);\n }\n return count.size()==0;\n }", "public static boolean equalByteArrays(byte[] lhs, byte[] rhs) {\n if(lhs == null && rhs == null) {\n return true;\n }\n if(lhs == null || rhs == null) {\n return false;\n }\n if(lhs.length != rhs.length) {\n return false;\n }\n for(int i = 0; i < lhs.length; ++i) {\n if(lhs[i] != rhs[i]) {\n return false;\n }\n }\n return true;\n }", "private static boolean haveSameSkeleton(JsonObject object1, JsonObject object2){\n\t\tboolean res = (object1.entrySet().size() == object2.entrySet().size());\n\t\tSystem.err.println(res);\n\t\tif (res){\n\t\t\tfor(java.util.Map.Entry<String, JsonElement> entry : object1.entrySet()){\n\t\t\t\tif (!object2.has(entry.getKey())) return false;\n\t\t\t}\n\t\t\treturn true;\t\t\t\n\t\t}\n\t\telse return false;\n\t}", "@Test(timeout = 4000)\n public void test046() throws Throwable {\n JSONObject jSONObject0 = new JSONObject();\n LinkedList<JSONObject> linkedList0 = new LinkedList<JSONObject>();\n JSONArray jSONArray0 = new JSONArray((Collection) linkedList0);\n JSONArray jSONArray1 = jSONObject0.toJSONArray(jSONArray0);\n assertNull(jSONArray1);\n }", "private static boolean areTheyEqual(int[][] tempArray, int[][] array2) {\n\t\tfor (int i = 0; i < 3; i++) {\n\t\t\tfor (int j = 0; j < 3; j++) {\n\t\t\t\tif (tempArray[i][j] != array2[i][j]) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "public static boolean equalsArray(int[] a, int[] b){\n\t\t\tif (a.length != b.length) return false;\n\t\t\t\telse{\n\t\t\t\t\tint i = 0;\n\t\t\t\t\twhile (i < a.length){\n\t\t\t\t\t\tif (a[i] != b[i]) return false;\n\t\t\t\t\t\ti++;\n\t\t\t\t}\n\t\t\t}\n\t\t}", "public static boolean compare(byte[] a, byte[] b) {\n\t\tif (a.length!=b.length) return false;\n\t\tfor (int i=0; i<a.length; i++)\n\t\t\tif (a[i]!=b[i]) return false;\n\t\treturn true;\n\t}", "public static void compareJson(Response r1, Response r2){\n //Compare in response\n r1.editableUntil = r1.editableUntil .equals(r2.editableUntil ) ? r1.editableUntil : r2.editableUntil ;\n r1.dislikes = r1.dislikes == r2.dislikes ? r1.dislikes : r2.dislikes ;\n r1.numReports = r1.numReports == r2.numReports ? r1.numReports : r2.numReports ;\n r1.likes = r1.likes == r2.likes ? r1.likes : r2.likes ;\n r1.message = r1.message .equals(r2.message ) ? r1.message : r2.message ;\n r1.id = r1.id .equals(r2.id ) ? r1.id : r2.id ;\n r1.createdAt = r1.createdAt .equals(r2.createdAt ) ? r1.createdAt : r2.createdAt ;\n r1.media = r1.media .equals(r2.media ) ? r1.media : r2.media ;\n r1.isSpam = r1.isSpam .equals(r2.isSpam ) ? r1.isSpam : r2.isSpam ;\n r1.isDeletedByAuthor = r1.isDeletedByAuthor.equals(r2.isDeletedByAuthor) ? r1.isDeletedByAuthor : r2.isDeletedByAuthor;\n r1.isDeleted = r1.isDeleted .equals(r2.isDeleted ) ? r1.isDeleted : r2.isDeleted ;\n\n try{\n r1.parent = r1.parent .equals(r2.parent ) ? r1.parent : r2.parent ;\n } catch(NullPointerException e){\n r1.parent = r2.parent != null ? r2.parent: r1.parent;\n }\n\n r1.isApproved = r1.isApproved .equals(r2.isApproved ) ? r1.isApproved : r2.isApproved ;\n r1.isFlagged = r1.isFlagged .equals(r2.isFlagged ) ? r1.isFlagged : r2.isFlagged ;\n r1.rawMessage = r1.rawMessage .equals(r2.rawMessage ) ? r1.rawMessage : r2.rawMessage ;\n r1.isHighlighted = r1.isHighlighted .equals(r2.isHighlighted ) ? r1.isHighlighted : r2.isHighlighted ;\n r1.canVote = r1.canVote .equals(r2.canVote ) ? r1.canVote : r2.canVote ;\n r1.thread = r1.thread .equals(r2.thread ) ? r1.thread : r2.thread ;\n r1.forum = r1.forum .equals(r2.forum ) ? r1.forum : r2.forum ;\n r1.points = r1.points .equals(r2.points ) ? r1.points : r2.points ;\n r1.moderationLabels = r1.moderationLabels .equals(r2.moderationLabels ) ? r1.moderationLabels : r2.moderationLabels ;\n r1.isEdited = r1.isEdited .equals(r2.isEdited ) ? r1.isEdited : r2.isEdited ;\n r1.sb = r1.sb .equals(r2.sb ) ? r1.sb : r2.sb ;\n\n //Compare in Author\n r1.author.profileUrl = r1.author.profileUrl .equals(r2.author.profileUrl ) ? r1.author.profileUrl : r2.author.profileUrl ;\n\n try{\n r1.author.disable3rdPartyTrackers = r1.author.disable3rdPartyTrackers .equals(r2.author.disable3rdPartyTrackers) ? r1.author.disable3rdPartyTrackers : r2.author.disable3rdPartyTrackers;\n } catch(NullPointerException e){\n r1.author.disable3rdPartyTrackers = r2.author.disable3rdPartyTrackers != null ? r2.author.disable3rdPartyTrackers: r1.author.disable3rdPartyTrackers;\n }\n\n try{\n r1.author.joinedAt = r1.author.joinedAt .equals(r2.author.joinedAt ) ? r1.author.joinedAt : r2.author.joinedAt ;\n } catch(NullPointerException e){\n r1.author.joinedAt = r2.author.joinedAt != null ? r2.author.joinedAt: r1.author.joinedAt;\n }\n\n try{\n r1.author.about = r1.author.about .equals(r2.author.about ) ? r1.author.about : r2.author.about ;\n } catch(NullPointerException e){\n r1.author.about = r2.author.about != null ? r2.author.about: r1.author.about;\n }\n\n try{\n r1.author.isPrivate = r1.author.isPrivate .equals(r2.author.isPrivate ) ? r1.author.isPrivate : r2.author.isPrivate ;\n } catch(NullPointerException e){\n r1.author.isPrivate = r2.author.isPrivate != null ? r2.author.isPrivate: r1.author.isPrivate;\n }\n\n r1.author.url = r1.author.url .equals(r2.author.url ) ? r1.author.url : r2.author.url ;\n r1.author.isAnonymous = r1.author.isAnonymous .equals(r2.author.isAnonymous ) ? r1.author.isAnonymous : r2.author.isAnonymous ;\n\n try{\n r1.author.isPowerContributor = r1.author.isPowerContributor .equals(r2.author.isPowerContributor ) ? r1.author.isPowerContributor : r2.author.isPowerContributor ;\n } catch(NullPointerException e){\n r1.author.isPowerContributor = r2.author.isPowerContributor != null ? r2.author.isPowerContributor: r1.author.isPowerContributor;\n }\n\n try{\n r1.author.isPrimary = r1.author.isPrimary .equals(r2.author.isPrimary ) ? r1.author.isPrimary : r2.author.isPrimary ;\n } catch(NullPointerException e){\n r1.author.isPrimary = r2.author.isPrimary != null ? r2.author.isPrimary: r1.author.isPrimary;\n }\n\n r1.author.name = r1.author.name .equals(r2.author.name ) ? r1.author.name : r2.author.name ;\n\n try{\n r1.author.location = r1.author.location .equals(r2.author.location ) ? r1.author.location : r2.author.location ;\n } catch(NullPointerException e){\n r1.author.location = r2.author.location != null ? r2.author.location: r1.author.location;\n }\n\n try{\n r1.author.id = r1.author.id .equals(r2.author.id ) ? r1.author.id : r2.author.id ;\n } catch(NullPointerException e){\n r1.author.id = r2.author.id != null ? r2.author.id: r1.author.id;\n }\n r1.author.signedUrl = r1.author.signedUrl .equals(r2.author.signedUrl ) ? r1.author.signedUrl : r2.author.signedUrl ;\n\n try{\n r1.author.username = r1.author.username .equals(r2.author.username ) ? r1.author.username : r2.author.username ;\n } catch(NullPointerException e){\n r1.author.username = r2.author.username != null ? r2.author.username: r1.author.username;\n }\n\n //Compare in Avatar\n r1.author.avatar.cache = r1.author.avatar.cache .equals(r2.author.avatar.cache ) ? r1.author.avatar.cache : r2.author.avatar.cache ;\n\n try{\n r1.author.avatar.isCustom = r1.author.avatar.isCustom .equals(r2.author.avatar.isCustom ) ? r1.author.avatar.isCustom : r2.author.avatar.isCustom ;\n } catch(NullPointerException e){\n r1.author.avatar.isCustom = r2.author.avatar.isCustom != null ? r2.author.avatar.isCustom: r1.author.avatar.isCustom;\n }\n\n r1.author.avatar.permalink = r1.author.avatar.permalink .equals(r2.author.avatar.permalink) ? r1.author.avatar.permalink : r2.author.avatar.permalink;\n\n //Compare Small\n r1.author.avatar.small.cache = r1.author.avatar.small.cache .equals(r2.author.avatar.small.cache ) ? r1.author.avatar.small.cache : r2.author.avatar.small.cache ;\n r1.author.avatar.small.permalink = r1.author.avatar.small.permalink .equals(r2.author.avatar.small.permalink ) ? r1.author.avatar.small.permalink : r2.author.avatar.small.permalink ;\n\n //Compare Large\n r1.author.avatar.large.cache = r1.author.avatar.large.cache .equals(r2.author.avatar.large.cache ) ? r1.author.avatar.large.cache : r2.author.avatar.large.cache ;\n r1.author.avatar.large.permalink = r1.author.avatar.large.permalink .equals(r2.author.avatar.large.permalink ) ? r1.author.avatar.large.permalink : r2.author.avatar.large.permalink ;\n }", "private boolean equalNodes(Node[] arr1, Node[] arr2) {\n // generic tests\n if (!Arrays.equals(arr1, arr2)) {\n return false;\n }\n\n if ((arr1 == null) || (arr1.length == 0)) {\n return true;\n }\n\n // compare paths from each node to root\n int i = 0;\n\n while ((i < arr1.length) && Arrays.equals(NodeOp.createPath(arr1[i], null), NodeOp.createPath(arr2[i], null))) {\n i++;\n }\n\n return i == arr1.length;\n }", "public static void assertEquals(Object[] expect, Object[] actual)\n {\n assertEquals(\"Arrays length differ\", expect.length, actual.length);\n for (int i = 0; i < 0; i++) {\n if (expect[i] == null || actual[i] == null) {\n assertTrue(\"Arrays differ at item \" + i, expect[i] == actual);\n }\n else {\n assertTrue(\"Arrays differ at item \" + i, expect[i].equals(actual[i]));\n }\n }\n }", "public boolean isEqual(Set secondSet) {\n\t\t\n\t\tArrayList<String> firstArray = noDuplicates(stringArray);\n\t\t// Taking out duplications out of our sets by calling the noDuplicates private function\n\t\tArrayList<String> secondArray = noDuplicates(secondSet.returnArray());\n\t\t\n\t\t\n\t\tfor (int i=0; i < firstArray.size(); i++) {\n\t\t\tif (secondArray.contains(firstArray.get(i)) == false) return false;\n\t\t\t// If our second array does not contain that same element as our first array, return false\n\t\t}\n\t\t\n\t\tfor (int i=0; i < secondArray.size(); i++) {\n\t\t\tif (firstArray.contains(secondArray.get(i)) == false) return false;\n\t\t\t// If our first array does not contain that same element as our second array, return false\n\t\t}\n\t\t\n\t\treturn true;\n\t}", "@Test(timeout = 4000)\n public void test082() throws Throwable {\n JSONObject jSONObject0 = new JSONObject();\n LinkedList<JSONObject> linkedList0 = new LinkedList<JSONObject>();\n linkedList0.offerFirst(jSONObject0);\n JSONArray jSONArray0 = new JSONArray((Collection) linkedList0);\n JSONArray jSONArray1 = jSONObject0.toJSONArray(jSONArray0);\n assertEquals(1, jSONArray1.length());\n assertNotNull(jSONArray1);\n assertNotSame(jSONArray1, jSONArray0);\n }", "public static void mergeJsonIntoBase(List<Response> r1, List<Response> r2){\n //List of json objects in the new but not old json\n List<String> toAdd = new ArrayList<>();\n for(int i = 0; i < r1.size(); i ++){\n String r1ID = r1.get(i).getId();\n for(int j = 0; j < r2.size(); j ++){\n String r2ID = r2.get(j).getId();\n if(r1ID.equals(r2ID)){\n compareJson(r1.get(i), r2.get(j));\n }else{\n if (!toAdd.contains(r2ID)) {\n toAdd.add(r2ID);\n }\n }\n }\n }\n //Add all new elements into the base element\n List<Response> remainderToAdd = getElementListById(toAdd, r2);\n\n for(Response r: remainderToAdd){\n r1.add(r);\n }\n }", "private void compareSecondPass() {\n final int arraySize = this.oldFileNoMatch.size()\r\n + this.newFileNoMatch.size();\r\n this.compareArray = new SubsetElement[arraySize][2];\r\n final Iterator<String> oldIter = this.oldFileNoMatch.keySet()\r\n .iterator();\r\n int i = 0;\r\n while (oldIter.hasNext()) {\r\n final String key = oldIter.next();\r\n final SubsetElement oldElement = this.oldFileNoMatch.get(key);\r\n SubsetElement newElement = null;\r\n if (this.newFileNoMatch.containsKey(key)) {\r\n newElement = this.newFileNoMatch.get(key);\r\n }\r\n this.compareArray[i][0] = oldElement;\r\n this.compareArray[i][1] = newElement;\r\n i++;\r\n }\r\n // now go through the new elements and check for any that have no match.\r\n // these will be new elements with no corresponding old element\r\n final SubsetElement oldElement = null;\r\n final Iterator<String> newIter = this.newFileNoMatch.keySet()\r\n .iterator();\r\n while (newIter.hasNext()) {\r\n final String key = newIter.next();\r\n if (!this.oldFileNoMatch.containsKey(key)) {\r\n final SubsetElement newElement = this.newFileNoMatch.get(key);\r\n this.compareArray[i][0] = oldElement;\r\n this.compareArray[i][1] = newElement;\r\n i++;\r\n }\r\n\r\n }\r\n\r\n }", "public static boolean equal(int[] one, int[] two)\r\n {\r\n if(one.length!=two.length) return false;\r\n for(int i= 0; i<one.length; i++) \r\n {\r\n if(one[i]!=two[i]) return false;\r\n }\r\n return true;\r\n }", "@Test//test equal\n public void testEqual() {\n MyVector vD1 = new MyVector(ORIGINALDOUBLEARRAY);\n MyVector vD2 = new MyVector(ORIGINALDOUBLEARRAY);\n double[] doubleArray = new double[]{3.0, 2.3, 1.0, 0.0, -1.1};\n MyVector diffVD3 = new MyVector(doubleArray);\n assertEquals(true, vD1.equal(vD2));\n assertEquals(false, vD1.equal(diffVD3));\n MyVector vI1 = new MyVector(ORIGINALINTARRAY);\n MyVector vI2 = new MyVector(ORIGINALINTARRAY);\n int[] intArray = new int[]{1, 2, 3, 4};\n MyVector vI3 = new MyVector(intArray);\n assertEquals(true, vI1.equal(vI2));\n assertEquals(false, vI1.equal(vI3));\n }", "private boolean isEqual(int[] x, int[] y) {\n for (int i = 0; i < 3; i++) {\n if (x[i] != y[i]) {\n return false;\n }\n }\n return true;\n }", "private boolean eq(int[] a,int[] b){\n\t\tboolean eq = true;\n\t\tif(a.length != b.length) return false;\n\t\tfor(int i=0;i<a.length;i++){\n\t\t\tif( a[i] != b[i] ){\n\t\t\t\teq = false;\n\t\t\t\tbreak;\n\t\t\t}else{\n\n\t\t\t}\n\t\t}\n\t\treturn eq;\n\t}", "@Override\n\tpublic final boolean equals(Object compareTo) {\n\n\t\tif (compareTo == null) {\n\t\t\treturn false;\n\t\t}\n\t\tif (!compareTo.getClass().equals(this.getClass())) {\n\t\t\treturn false;\n\t\t}\n\t\tbyte[] compareArray = ((SerializedObject) compareTo).mStoredObjectArray;\n\t\tif (compareArray.length != mStoredObjectArray.length) {\n\t\t\treturn false;\n\t\t}\n\t\tfor (int i = 0; i < compareArray.length; i++) {\n\t\t\tif (compareArray[i] != mStoredObjectArray[i]) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "private static boolean compareList(List<Object> l1, List<Object> l2)\n {\n int count=0;\n for (Object o : l1)\n {\n Object temp = o;\n for (Object otemp : l2)\n {\n if (EqualsBuilder.reflectionEquals(temp, otemp))\n {\n count++;\n }\n }\n\n }\n\n if(count == l1.size()) return true;\n return false;\n\n }", "public static void main(String[] args) {\n\t\tint[] arr1 = { 10, 12, 55, 32, 17 };\n\t\tint[] arr2 = { 10, 12, 55, 32, 17 };\n\t\t/*//Second set\n\t\tint[] arr1 = {10,12,55,32,17,99};\n\t\tint[] arr2 = {10,12,55,32,17}};*/\n\t\t/* //Third set\n\t\tint[] arr1 = {10,12,55,32,17};\n\t\tint[] arr2 = {10,12,99,32,17}};*/\n\n\t\tArraysIdentical arrayidentical = new ArraysIdentical();\n\t\tarrayidentical.identicalCheck(arr1, arr2);\n\n\t}", "@Override\n\tpublic boolean equals(Object o)\n\t{\n\t\tif(o == null || !(o instanceof JsonObject))\n\t\t\treturn false;\n\t\t\n\t\tJsonObject j = (JsonObject)o;\n\t\treturn values.equals(j.values);\n\t}", "public static boolean same(int[] a, int[] b) {\r\n \treturn (a[0] == b[0] && a[1] == b[1]) || (a[0] == b[1] && a[1] == b[0]);\r\n }", "@Test\n public void readClssesArray() throws UnsupportedEncodingException, IOException {\n adminArray.add(Factory.createUser(\"Administrator\"));\n doctorArray.add(Factory.createUser(\"Doctor\"));\n patientArray.add(Factory.createUser(\"Patient\"));\n secretaryArray.add(Factory.createUser(\"Secretary\"));\n\n classesArray.add(adminArray);\n classesArray.add(doctorArray);\n classesArray.add(patientArray);\n classesArray.add(secretaryArray);\n\n //convert to json string\n testJson = gson.toJson(classesArray);\n\n //convert string to input stream\n InputStream inputStream = new ByteArrayInputStream(testJson.getBytes(Charset.forName(\"UTF-8\")));\n //convert inputstream to jsonReader\n JsonReader reader = new JsonReader(new InputStreamReader(inputStream, \"UTF-8\"));\n\n //read json string into resultant\n ArrayList actual = DataHandler.readClassesArray(reader);\n\n //compare results as json because assert equals doesn't like comparing arrays of objects\n assertEquals(\"Fails to return array properly\", gson.toJson(classesArray), gson.toJson(actual));\n\n }", "public static JSONArray concatArrays(JSONArray first, JSONArray second) {\n JSONArray concatenatedArray = new JSONArray();\n if (first == null && second == null) {\n return concatenatedArray;\n } else {\n if (first == null) return second;\n if (second == null) return first;\n\n first.forEach(concatenatedArray::put);\n second.forEach(concatenatedArray::put);\n return concatenatedArray;\n }\n }", "@Test\r\n\tpublic void testCompareEqualsCase0() throws IOException {\r\n\t\tPerson p1 = DataUtil.readDataFromFile(\"test/data/case0/case0-person.json\", Person.class);\r\n\t\tPerson p2 = DataUtil.readDataFromFile(\"test/data/case0/case0-person.json\", Person.class);\r\n\r\n\t\tIContext ctx = ObjectCompare.compare(p1, p2);\r\n\t\tdebug(ctx.getDifferences());\r\n\t\tAssert.assertFalse(ctx.hasDifferences());\r\n\t}", "@Test(testName = \"duplicateElementsFromTwoArrays\")\n\t public static void commonElementsFromArrays(){\n\t int[] arr1 = {4,7,3,9,2};\n\t int[] arr2 = {3,2,12,9,40,32,4};\n\t for(int i=0;i<arr1.length;i++){\n\t for(int j=0;j<arr2.length;j++){\n\t if(arr1[i]==arr2[j]){\n\t System.out.println(arr1[i]);\n\t }\n\t }\n\t }\n\t }", "@Test\r\n public void testCompare() {\r\n\r\n double[] r1;\r\n double[] r2;\r\n Comparator<double[]> instance = new DoubleArrayComparator();\r\n \r\n r1 = new double[]{1,2,3};\r\n r2 = new double[]{1,2,3}; \r\n assertEquals(0, instance.compare(r1, r2));\r\n\r\n r1 = new double[]{1,2,3};\r\n r2 = new double[]{1,3,2}; \r\n assertEquals(-1, instance.compare(r1, r2));\r\n \r\n r1 = new double[]{1,3,3};\r\n r2 = new double[]{1,3,2}; \r\n assertEquals(1, instance.compare(r1, r2));\r\n \r\n }", "public static <T> Observable<Boolean> sequenceEqual(\r\n\t\t\tfinal Iterable<? extends T> first,\r\n\t\t\tfinal Observable<? extends T> second) {\r\n\t\treturn sequenceEqual(first, second, Functions.equals());\r\n\t}", "public static boolean equals(int[] list1, int[] list2) {\n boolean verdict = false;\n \n // use bubbleSort to sort each list\n list1 = bubbleSort(list1);\n list2 = bubbleSort(list2);\n \n if (list1.length == list2.length) {\n verdict = true;\n for (int i = 0; i < list1.length; i++) {\n if (list1[i] != list2[i]) {\n verdict = false;\n break;\n }\n }\n }\n return verdict;\n }", "public static final boolean valuesAreTransitivelyEqual(Object[] thisArray, Object[] thatArray) {\r\n\t\tif (thisArray == thatArray) return true;\r\n\t\tif ((thisArray == null) || (thatArray == null)) return false;\r\n\t\tif (thisArray.length != thatArray.length) return false;\r\n\t\tfor (int i = 0; i < thisArray.length; i++) {\r\n\t\t\tif (!areEqual(thisArray[i], thatArray[i])) return false;\t// recurse if req'd\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "private boolean equalsAttachments(List<EmailAttachment<? extends DataSource>> thisAttachments, List<EmailAttachment<? extends DataSource>> otherAttachments) {\n // Since already checked that thisEmailAddress is not null\n if (otherAttachments == null) {\n return false;\n }\n if (thisAttachments.size() != otherAttachments.size()) {\n return false;\n }\n for (int i = 0; i < thisAttachments.size(); i++) {\n if (thisAttachments.get(i) == null) {\n if (otherAttachments.get(i) != null) {\n return false;\n }\n }\n if (thisAttachments.get(i).isEmbedded()) {\n if (!otherAttachments.get(i).isEmbedded()) {\n return false;\n }\n else if (!thisAttachments.get(i).getContentId().equals(otherAttachments.get(i).getContentId())) {\n return false;\n }\n }\n else if (otherAttachments.get(i).isEmbedded()) {\n return false;\n }\n else if (!thisAttachments.get(i).getName().equals(otherAttachments.get(i).getName())) {\n return false;\n }\n if (!Arrays.equals(thisAttachments.get(i).toByteArray(), otherAttachments.get(i).toByteArray())) {\n return false;\n }\n }\n return true;\n }", "private static boolean isEqual(int[] nums1, int[] nums2){\n \tfor(int i=0; i<nums1.length; i++){\n \t\tif(nums1[i]!=nums2[i]){\n \t\t\treturn false;\n \t\t}\n \t}\n \treturn true;\n }", "private static void assertEqual(List<byte[]> actual, List<byte[]> expected) {\n if (actual.size() != expected.size()) {\n throw new AssertionError(String.format(\"Different amount of chunks, expected %d actual %d\", expected.size(), actual.size()));\n }\n for (int i = 0; i < actual.size(); i++) {\n byte[] act = actual.get(i);\n byte[] exp = expected.get(i);\n if (act.length != exp.length) {\n throw new AssertionError(String.format(\"Chunks #%d differed in length, expected %d actual %d\", i, exp.length, act.length));\n }\n for (int j = 0; j < act.length; j++) {\n if (act[j] != exp[j]) {\n throw new AssertionError(String.format(\"Chunks #%d differed at index %d, expected %d actual %d\", i, j, exp[j], act[j]));\n }\n }\n }\n }", "public static JSONArray concatJSONArrayWithAmmendment(JSONArray Array1, JSONArray Array2, String taxclasstype) throws JSONException {\n for (int i = 0; i < Array2.length(); i++) {\n if (Array2.optJSONObject(i) != null) {\n Array1.put(Array2.optJSONObject(i).put(\"taxclasstype\", taxclasstype));\n }\n }\n return Array1;\n }", "private static boolean compare(BufferedInputStream b1, BufferedInputStream b2) throws IOException {\n\t\tint cmp1 = 0, cmp2;\r\n\t\tbyte[] i = new byte[100];\r\n\t\tbyte[] j = new byte[100];\r\n\t\t\r\n\t\twhile(cmp1 != -1){\r\n\t\t\tcmp1 = b1.read(i, 0, i.length);\r\n\t\t\tcmp2 = b2.read(j, 0, j.length);\r\n\t\t\tif(cmp1 != cmp2){\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tfor(int k = 0; k < cmp1; k++){\r\n\t\t\t\tif(i[k] != j[k]){\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\treturn true;\r\n\t}", "boolean similar(Object other) {\n if (!(other instanceof PropertyArray)) {\n return false;\n }\n int len = this.length();\n if (len != ((PropertyArray) other).length()) {\n return false;\n }\n for (int i = 0; i < len; i += 1) {\n Object valueThis = this.myArrayList.get(i);\n Object valueOther = ((PropertyArray) other).myArrayList.get(i);\n if (valueThis == valueOther) {\n continue;\n }\n if (valueThis == null) {\n return false;\n }\n if (valueThis instanceof PropertyObject) {\n if (!((PropertyObject) valueThis).similar(valueOther)) {\n return false;\n }\n } else if (valueThis instanceof PropertyArray) {\n if (!((PropertyArray) valueThis).similar(valueOther)) {\n return false;\n }\n } else if (!valueThis.equals(valueOther)) {\n return false;\n }\n }\n return true;\n }", "public static boolean defaultEquals(DataValue obj1, Object obj2) {\r\n if (obj1 == obj2) return true;\r\n if (obj2 == null) return false;\r\n if (!(obj2 instanceof DataValue)) return false;\r\n DataValue other = (DataValue) obj2;\r\n if (!obj1.getName().equals(other.getName())) return false;\r\n if (obj1.getObject() == null) {\r\n if (other.getObject() != null) return false;\r\n } else if (obj1.getObject().getClass().isArray()) {\r\n if (!other.getObject().getClass().isArray()) return false;\r\n return Arrays.equals((byte[]) obj1.getObject(), (byte[]) other.getObject());\r\n } else {\r\n if (!obj1.getObject().equals(other.getObject())) return false;\r\n }\r\n return true;\r\n }", "@Test(timeout = 4000)\n public void test101() throws Throwable {\n JSONObject jSONObject0 = new JSONObject();\n JSONObject jSONObject1 = new JSONObject(jSONObject0);\n assertEquals(1, jSONObject1.length());\n \n jSONObject0.toJSONArray((JSONArray) null);\n JSONObject jSONObject2 = jSONObject0.put(\"false\", (Object) \"false\");\n boolean boolean0 = jSONObject2.getBoolean(\"false\");\n assertFalse(boolean0);\n \n String string0 = JSONObject.quote(\"true\");\n assertEquals(\"\\\"true\\\"\", string0);\n }", "@Override\n\t\tpublic boolean equals(Object obj) {\n\n\t\t\t// Ensure right type\n\t\t\tif (!(obj instanceof MockCompilerIssuesArray)) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\tMockCompilerIssuesArray that = (MockCompilerIssuesArray) obj;\n\n\t\t\t// Ensure the number issues match\n\t\t\tif (this.issues.length != that.issues.length) {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\t// Ensure the issues match\n\t\t\tfor (int i = 0; i < this.issues.length; i++) {\n\t\t\t\tif (this.issues[i] != that.issues[i]) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// As here, the same issues\n\t\t\treturn true;\n\t\t}", "@Override\n public void compareJSON(final String prefix, final JSONObject expected, final JSONObject actual,\n final JSONCompareResult result) throws JSONException\n {\n checkJsonObjectKeysExpectedInActual(prefix, expected, actual, result);\n\n // If strict, check for vice-versa\n if (!this.mode.isExtensible())\n {\n checkJsonObjectKeysActualInExpected(prefix, expected, actual, result);\n }\n }", "public void testEquals() {\n TaskSeries s1 = new TaskSeries(\"S\");\n s1.add(new Task(\"T1\", new Date(1), new Date(2)));\n s1.add(new Task(\"T2\", new Date(11), new Date(22)));\n TaskSeries s2 = new TaskSeries(\"S\");\n s2.add(new Task(\"T1\", new Date(1), new Date(2)));\n s2.add(new Task(\"T2\", new Date(11), new Date(22)));\n TaskSeriesCollection c1 = new TaskSeriesCollection();\n c1.add(s1);\n c1.add(s2);\n TaskSeries s1b = new TaskSeries(\"S\");\n s1b.add(new Task(\"T1\", new Date(1), new Date(2)));\n s1b.add(new Task(\"T2\", new Date(11), new Date(22)));\n TaskSeries s2b = new TaskSeries(\"S\");\n s2b.add(new Task(\"T1\", new Date(1), new Date(2)));\n s2b.add(new Task(\"T2\", new Date(11), new Date(22)));\n TaskSeriesCollection c2 = new TaskSeriesCollection();\n c2.add(s1b);\n c2.add(s2b);\n }", "public static void main(String[] args) {\n\t\t\r\n\t\tArrayList <String> objArray = new ArrayList<String>();\r\n\t\tArrayList <String> objArray2 = new ArrayList<String>();\r\n\t\t\r\n\t\tobjArray2.add(0, \"common1\");\r\n\t\tobjArray2.add(1, \"common2\");\r\n\t\tobjArray2.add(2, \"notcommon0\");\r\n\t\tobjArray2.add(3, \"notcommon1\");\r\n\r\n\t\tobjArray.add(0, \"common1\");\r\n\t\tobjArray.add(1, \"common2\");\r\n\t\tobjArray.add(2, \"notcommon2\");\r\n\t\t\r\n\t\tSystem.out.println(\"Array elements of Array1\"+objArray);\r\n\t\tSystem.out.println(\"Array elements of Array2\"+objArray2);\r\n\t\t\r\n\t\tobjArray.retainAll(objArray2);\r\n\t\t// retainAll : objArray의 객체를 남겨라. 그러나 objArray2 중에서 공통된것만 남기고 나머지는 없애라.\r\n\t\t// 양쪽 배열에 공통적으로 포함되있는 것만을 뽑고 싶을 때, retainAll이라는 메소드펑션을 사용하는 것이다.\r\n\t\t\r\n\t\tSystem.out.println(\"Array1 after retaining common elements of Array1 & Array2\"+objArray);\r\n\r\n//\t\t결과\r\n//\t\tArray elements of Array1[common1, common2, notcommon2]\r\n//\t\tArray elements of Array2[common1, common2, notcommon0, notcommon1]\r\n//\t\tArray1 after retaining common elements of Array1 & Array2[common1, common2]\r\n\t\t\r\n\t\t\r\n\t}", "public static boolean compareContainers(ItemStack[] oldContainer, ItemStack[] newContainer) {\n if (oldContainer.length != newContainer.length) {\n return false;\n }\n\n for (int i = 0; i < oldContainer.length; i++) {\n ItemStack oldItem = oldContainer[i];\n ItemStack newItem = newContainer[i];\n\n if (oldItem == null && newItem == null) {\n continue;\n }\n\n if (oldItem == null || !oldItem.equals(newItem)) {\n return false;\n }\n }\n\n return true;\n }", "@Override\n public boolean equals(Object o)\n {\n // part auto-generated, part lifted from Arrays.equals\n\n if (this == o)\n return true;\n\n if (o == null || getClass() != o.getClass())\n return false;\n\n Array<?> array1 = (Array<?>) o;\n\n if (next != array1.next)\n return false;\n\n for (int i = 0; i < next; ++i)\n {\n Object o1 = array[i];\n Object o2 = array1.array[i];\n\n if (!(o1==null ? o2==null : o1.equals(o2)))\n return false;\n }\n\n return true;\n }", "@Test\r\n public void testUnion1() {\r\n int actual[] = set1.unionOfSets(set2);\r\n Assert.assertArrayEquals(new int[] { 1, 2, 3, 4, 5 }, actual);\r\n }", "@Test(expected = PathMismatchException.class)\n public void testArrayAddUniqueInArrayWithNonPrimitives() {\n JsonObject root = JsonObject.create().put(\"array\", JsonArray.create().add(JsonArray.empty()));\n ctx.bucket().upsert(JsonDocument.create(key, root));\n\n //not a primitive only array => MISMATCH\n DocumentFragment<String> fragment = DocumentFragment.create(key, \"array\", \"arrayInsert\");\n DocumentFragment<String> result = ctx.bucket().addUniqueIn(fragment, false, PersistTo.NONE, ReplicateTo.NONE);\n }", "private boolean compareMomenta(int[] a, int[] b){\n return ((a[0] == b[0]) &&\n (a[1]) == b[1]) ;\n }", "public static boolean nullSafeEquals(Object o1, Object o2) {\r\n if (o1 == o2) {\r\n return true;\r\n }\r\n if (o1 == null || o2 == null) {\r\n return false;\r\n }\r\n if (o1.equals(o2)) {\r\n return true;\r\n }\r\n if (o1.getClass().isArray() && o2.getClass().isArray()) {\r\n if (o1 instanceof Object[] && o2 instanceof Object[]) {\r\n return Arrays.equals((Object[]) o1, (Object[]) o2);\r\n }\r\n if (o1 instanceof boolean[] && o2 instanceof boolean[]) {\r\n return Arrays.equals((boolean[]) o1, (boolean[]) o2);\r\n }\r\n if (o1 instanceof byte[] && o2 instanceof byte[]) {\r\n return Arrays.equals((byte[]) o1, (byte[]) o2);\r\n }\r\n if (o1 instanceof char[] && o2 instanceof char[]) {\r\n return Arrays.equals((char[]) o1, (char[]) o2);\r\n }\r\n if (o1 instanceof double[] && o2 instanceof double[]) {\r\n return Arrays.equals((double[]) o1, (double[]) o2);\r\n }\r\n if (o1 instanceof float[] && o2 instanceof float[]) {\r\n return Arrays.equals((float[]) o1, (float[]) o2);\r\n }\r\n if (o1 instanceof int[] && o2 instanceof int[]) {\r\n return Arrays.equals((int[]) o1, (int[]) o2);\r\n }\r\n if (o1 instanceof long[] && o2 instanceof long[]) {\r\n return Arrays.equals((long[]) o1, (long[]) o2);\r\n }\r\n if (o1 instanceof short[] && o2 instanceof short[]) {\r\n return Arrays.equals((short[]) o1, (short[]) o2);\r\n }\r\n }\r\n return false;\r\n }", "public boolean equals(Object other) {\n //first make sure that the object is an arraylist\n //and also make sure that it isnt null\n if (other == null || !(other instanceof ArrayList)) {\n return false;\n }\n \n //type cast the argument into an array, now that we know that it is one\n ArrayList<E> that = (ArrayList<E>) other;\n \n //check to see if the lengths are the same\n if (this.array.length == that.array.length) {\n //if the lengths are the same, check each value to see if they are the same\n //loop through the array only once\n for (int i = 0; i < this.array.length; i++) {\n //compare the elements of each index\n if (this.array[i] == that.array[i]) {\n //continue to check all elements\n continue;\n } else {\n //if one of the elements aren't the same, return false\n return false;\n }\n }\n } else {\n //return false if the lengths are not the same\n return false;\n }\n \n //if it gets through the loop, then all of the elements are equal \n return true;\n }", "private static boolean compareByteArray(byte[] a1, byte[] a2, int length){\n for (int i = 0 ; i < length ; i++){\n if(a1[i] != a2[i])\n return false;\n else\n System.out.println(\"-------------------GOOD ---[ \"+ i);// log feedback\n }\n return true;\n }", "@Test\r\n\tpublic void testCompareCase1() throws IOException {\r\n\t\tPerson p1 = DataUtil.readDataFromFile(\"test/data/case1/case1-person1.json\", Person.class);\r\n\t\tPerson p2 = DataUtil.readDataFromFile(\"test/data/case1/case1-person2.json\", Person.class);\r\n\r\n\t\tIContext ctx = ObjectCompare.compare(p1, p2);\r\n\t\tdebug(ctx.getDifferences());\r\n\t\tAssert.assertTrue(ctx.hasDifferences());\r\n\t\tAssert.assertEquals(4, ctx.getDifferences().size());\r\n\t}", "public static boolean isEqualSet(Collection set1, Collection set2) {\n/* 99 */ if (set1 == set2) {\n/* 100 */ return true;\n/* */ }\n/* 102 */ if (set1 == null || set2 == null || set1.size() != set2.size()) {\n/* 103 */ return false;\n/* */ }\n/* */ \n/* 106 */ return set1.containsAll(set2);\n/* */ }", "private boolean rangeEquals(Object [] b1, Object [] b2, int length)\n /*! #end !*/\n {\n for (int i = 0; i < length; i++)\n {\n if (!Intrinsics.equalsKType(b1[i], b2[i]))\n {\n return false;\n }\n }\n\n return true;\n }", "public static boolean equalsUnordered( Collection<?> collection1, Collection<?> collection2 )\r\n {\r\n //\r\n boolean retval = collection1.size() == collection2.size();\r\n \r\n //\r\n for ( Object iObject : collection1 )\r\n {\r\n retval &= collection2.contains( iObject );\r\n }\r\n \r\n //\r\n return retval;\r\n }", "public static boolean isSameItemset(ArrayList<String> set1, ArrayList<String> set2) {\n\t\tif(set1.size() != set2.size()) {\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\tCollections.sort(set1);\n\t\tCollections.sort(set2);\n\t\t\n\t\tfor(int i=0;i<set1.size();i++) {\n\t\t\tif(!set1.get(i).equals(set2.get(i))) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn true;\n\t}", "@Test\n public void test() {\n TestUtil.testEquals(new Object[][]{\n {\"rpl\", \"abc\", new int[]{3, 5, 9}},\n {\"gfd\", \"aaa\", new int[]{1, 2, 3}}\n });\n }", "@Test\r\n\tpublic void testEquality(){\n\t\t assertEquals(object1, object2);\r\n\t}", "public static void main(String[] args) {\n\n\t\tdouble [] num1 = {1.1, 3.9, 2.2};\n\t\tdouble [] num2 = {2.4, 2.88};\n\t\tdouble []target = combineArray(num1, num2);\n\t\tSystem.out.println(Arrays.toString(target));\n\t\tSystem.out.println(Arrays.toString(combineArray(num1, num2)));\n\t\t\n\t\tdouble [] expected = {1.1, 3.9, 2.2, 2.4, 2.88};\n\t\t\n\t\tif(Arrays.equals(expected, target)) {\n\t\t\tSystem.out.println(\"PASSED\");\n\t\t}else {\n\t\t\tSystem.out.println(\"FAILED\");\n\t\t}\n\t\t\t\n\t\t\n\t}", "private boolean equalsRecipients(EmailAddress[] thisEmailAddress, EmailAddress[] otherEmailAddress) {\n // Since already checked that thisEmailAddress is not null\n if (otherEmailAddress == null) {\n return false;\n }\n if (thisEmailAddress.length != otherEmailAddress.length) {\n return false;\n }\n for (int i = 0; i < thisEmailAddress.length; i++) {\n if (thisEmailAddress[i] == null) {\n if (otherEmailAddress[i] != null) {\n return false;\n }\n }\n if (!thisEmailAddress[i].getEmail().equals(otherEmailAddress[i].getEmail())) {\n return false;\n }\n }\n return true;\n }", "private static boolean slowEquals(byte[] a, byte[] b) {\r\n int diff = a.length ^ b.length;\r\n for (int i = 0; i < a.length && i < b.length; i++) {\r\n diff |= a[i] ^ b[i];\r\n }\r\n return diff == 0;\r\n }", "@Test\n public void anotherEqualsTest(){\n //another 'random' equals test\n\n InputStream url2a= getClass().getClassLoader().getResourceAsStream(\"backupTest/backup_2a.json\");\n InputStream url2b= getClass().getClassLoader().getResourceAsStream(\"backupTest/backup_2b.json\");\n\n Backup backup_a = Backup.initFromFile(url2a);\n Backup backup_b = Backup.initFromFile(url2b);\n\n assertEquals(backup_a, backup_b);\n }", "public static void main(String[] args) {\n\t\tint[][] a = {{1,2},{3,4,5}};\r\n\t\tint b[][] = {{1,1,1,1},{1}};\r\n//\t\tSystem.arraycopy(a, 2, b, 2, 3);\r\n//\t\tSystem.out.println(Arrays.toString(b));\r\n\t\tSystem.out.println(Arrays.deepEquals(a, b));\r\n\t}", "public boolean isIdentical(Remote obj1, Remote obj2)\n {\n\torg.omg.CORBA.Object corbaObj1 = (org.omg.CORBA.Object)obj1;\n\torg.omg.CORBA.Object corbaObj2 = (org.omg.CORBA.Object)obj2;\n\n\treturn corbaObj1._is_equivalent(corbaObj2);\n }", "private static boolean slowEquals(byte[] a, byte[] b) {\n\t int diff = a.length ^ b.length;\n\t for(int i = 0; i < a.length && i < b.length; i++)\n\t diff |= a[i] ^ b[i];\n\t return diff == 0;\n\t }", "static Boolean compareTdbInfoWithJsonInfo(String tdbIssn, List<String> jsonIssns) {\n\n Boolean issnInfoMatch = false;\n\n if (tdbIssn != null) {\n for (String issn : jsonIssns) {\n if (issn.equals(tdbIssn)) {\n issnInfoMatch = true;\n break;\n }\n }\n }\n\n return issnInfoMatch;\n }", "@SuppressWarnings(\"resource\")\n @Test\n public void testEquals() {\n try {\n ApiKey apikey1 = new ApiKey(\"bd1f89fbddbde18d4244b748ca1d250b\", new Date(1570127619232L), 58,\n \"bd1f89fbddbde18d4244b748ca1d250b\", \"933738f6-d022-45c8-bc68-d7c6722e913b\", -46,\n \"3cac25f8-fd0d-4e6c-b1dd-e24a49542b75\", \"bd1f89fbddbde18d4244b748ca1d250b\",\n ApiKeyStatus.getDefault(), new Date(1570127625184L));\n ApiKey apikey2 = new ApiKey(\"bd1f89fbddbde18d4244b748ca1d250b\", new Date(1570127619232L), 58,\n \"bd1f89fbddbde18d4244b748ca1d250b\", \"933738f6-d022-45c8-bc68-d7c6722e913b\", -46,\n \"3cac25f8-fd0d-4e6c-b1dd-e24a49542b75\", \"bd1f89fbddbde18d4244b748ca1d250b\",\n ApiKeyStatus.getDefault(), new Date(1570127625184L));\n ApiKey apikey3 = new ApiKey(\"bd1f89fbddbde18d4244b748ca1d250b\", new Date(1570127620542L), 76,\n \"bd1f89fbddbde18d4244b748ca1d250b\", \"e31184de-791f-4689-9075-d12706757ba9\", -7,\n \"d34afc91-63f2-42e0-bde5-cfbb131751fd\", \"bd1f89fbddbde18d4244b748ca1d250b\",\n ApiKeyStatus.getDefault(), new Date(1570127620923L));\n assertNotNull(apikey1);\n assertNotNull(apikey2);\n assertNotNull(apikey3);\n assertNotSame(apikey2, apikey1);\n assertNotSame(apikey3, apikey1);\n assertEquals(apikey2, apikey1);\n assertEquals(apikey2, apikey1);\n assertEquals(apikey1, apikey2);\n assertEquals(apikey1, apikey1);\n assertFalse(apikey1.equals(null));\n assertNotEquals(apikey3, apikey1);\n } catch (Exception exception) {\n fail(exception.getMessage());\n }\n }", "public static boolean equals(int[] array1, int[] array2) {\n\t\tboolean equal = true; //the boolean variable equal is set to the value true\n\t\tfor(int j = 0; j<array1.length; j++) { \n\t\t\tif(array1[j]!=array2[j]) { //each value in array1 is compared to array2\n\t\t\t\tequal = false; //if any of the values in the two arrays do not match, the method returns false\n\t\t\t}\n\t\t}\n\t\treturn equal; //if the arrays are equal, then the method will return true\n\t}", "private int compareStringArrayRecords(String[] rec1, String[] rec2)\n {\n for (int i = 0; i < rec1.length && i < rec2.length; i++) {\n if (rec1[i].equals(rec2[i])) {\n continue;\n }\n return rec1[i].compareTo(rec2[i]);\n }\n return 0;\n }", "static int compareBytes(byte[] bs1, byte[] bs2) {\n int size = Math.min(bs1.length, bs2.length);\n int ret = compare(bs1, bs2, size);\n if (ret != 0) {\n return ret;\n }\n\n ret = bs1.length - bs2.length;\n if (ret != 0) {\n byte[] bs = (ret > 0) ? bs1 : bs2;\n for (int i = size; i < bs.length; i++) {\n if (bs[i] != (byte)0x0) {\n return ret;\n }\n }\n }\n return 0;\n }", "private boolean slowEquals(byte[] a, byte[] b)\n {\n int diff = a.length ^ b.length;\n for(int i = 0; i < a.length && i < b.length; i++)\n diff |= a[i] ^ b[i];\n return diff == 0;\n }", "private void areEquals(FileInfo a, FileInfo b)\n\t{\n\t\t// will test a subset for now\n\n\t\tassertEquals(a.width,b.width);\n\t\tassertEquals(a.height,b.height);\n\t\tassertEquals(a.nImages,b.nImages);\n\t\tassertEquals(a.whiteIsZero,b.whiteIsZero);\n\t\tassertEquals(a.intelByteOrder,b.intelByteOrder);\n\t\tassertEquals(a.pixels,b.pixels);\n\t\tassertEquals(a.pixelWidth,b.pixelWidth,Assert.DOUBLE_TOL);\n\t\tassertEquals(a.pixelHeight,b.pixelHeight,Assert.DOUBLE_TOL);\n\t\tassertEquals(a.unit,b.unit);\n\t\tassertEquals(a.pixelDepth,b.pixelDepth,Assert.DOUBLE_TOL);\n\t\tassertEquals(a.frameInterval,b.frameInterval,Assert.DOUBLE_TOL);\n\t\tassertEquals(a.calibrationFunction,b.calibrationFunction);\n\t\tAssert.assertDoubleArraysEqual(a.coefficients,b.coefficients,Assert.DOUBLE_TOL);\n\t\tassertEquals(a.valueUnit,b.valueUnit);\n\t\tassertEquals(a.fileType,b.fileType);\n\t\tassertEquals(a.lutSize,b.lutSize);\n\t\tassertArrayEquals(a.reds,b.reds);\n\t\tassertArrayEquals(a.greens,b.greens);\n\t\tassertArrayEquals(a.blues,b.blues);\n\t}", "private static void compareForReverseArrays() {\n Integer[] reverse1 = {10, 9, 8, 7, 6, 5, 4, 3, 2, 1};\n Integer[] reverse2 = {10, 9, 8, 7, 6, 5, 4, 3, 2, 1};\n Insertion insertion = new Insertion();\n insertion.analyzeSort(reverse1);\n insertion.getStat().printReport();\n\n Selection selection = new Selection();\n selection.analyzeSort(reverse2);\n selection.getStat().printReport();\n }", "@NeededForTesting\n public static boolean areObjectsEqual(Object a, Object b) {\n return a == b || (a != null && a.equals(b));\n }", "public boolean compareElements(Object element1, Object element2, AbstractSession session) {\n if (element1.getClass() != element2.getClass()) {\n return false;\n }\n return this.getObjectBuilder(element1, session).compareObjects(element1, element2, session);\n }", "@Test\n\t public void test_Union_Set_Same() throws Exception{\n\t\t int[] setarray1= new int[]{1,2,3};\n\t\t int[] setarray2= new int[]{1,2,3};\n\t\t SET set = new SET(setarray1);\n\t\t int returnedArrOperation[] =set.Union(setarray1,setarray2); \n\t\t int []expectedArr = new int[] {1,2,3};\n\t\t Assert.assertArrayEquals( expectedArr, returnedArrOperation );\n\t }", "public static boolean slowEquals(byte[] a, byte[] b) {\n int diff = a.length ^ b.length;\n for (int i = 0; i < a.length && i < b.length; i++)\n diff |= a[i] ^ b[i];\n return diff == 0;\n }", "public static void main(String[] args) {\n\t\tint[] arr1 = {2,4,7,8,9,1};\n\t\tint[] arr2 = {7,4,8,9,1,2};\n\t\tSystem.out.println(checkEqual(arr1, arr2));\n\n\t}", "private static boolean slowEquals(final byte[] a, final byte[] b) {\n int diff = a.length ^ b.length;\n for (int i = 0; i < a.length && i < b.length; i++) {\n diff |= a[i] ^ b[i];\n }\n return diff == 0;\n }", "public static void main(String[] args) {\n\t\tint[] arr = {1,2,3,4,5,6};\r\n\t\tint[] arr1 = {1,2,3,4,5,6};\r\n\t\tint[] arr2 = {1,2,3,4};\r\n\t\t\r\n\t\t//arrays의 equals를 이용해 \r\n\t\t//arr과 arr1,2의 배열크기, 값, 순서가 같은 지를 비교하여\r\n\t\t//true / false를 반환한다.\r\n\t\tSystem.out.println(\"Is array 1 equal to arr 2??\" + Arrays.equals(arr, arr1));\r\n\t\tSystem.out.println(\"Is array 1 equal to arr 3??\" + Arrays.equals(arr, arr2));\r\n\t}", "private void assertSegmentListEqual(final List<SVAnnotateEngine.SVSegment> segmentsA,\n final List<SVAnnotateEngine.SVSegment> segmentsB) {\n final int lengthA = segmentsA.size();\n if (lengthA != segmentsB.size()) {\n Assert.fail(\"Segment lists differ in length\");\n }\n for (int i = 0; i < lengthA; i++) {\n SVAnnotateEngine.SVSegment segmentA = segmentsA.get(i);\n SVAnnotateEngine.SVSegment segmentB = segmentsB.get(i);\n if (!segmentA.equals(segmentB)) {\n Assert.fail(\"Segment items differ\");\n }\n }\n }", "@Override\n\tprotected void getDifferentJsonArrayValue() {\n\n\t}" ]
[ "0.75295645", "0.66808605", "0.64998275", "0.61832017", "0.6045572", "0.59886956", "0.58527017", "0.5827644", "0.57807887", "0.5774381", "0.5733316", "0.5727146", "0.57115227", "0.5687959", "0.56735593", "0.565781", "0.56363094", "0.5619323", "0.56182057", "0.5612943", "0.5594977", "0.5567752", "0.5524882", "0.55023795", "0.5468036", "0.5449818", "0.54361224", "0.54296917", "0.5411029", "0.537363", "0.53734696", "0.5366849", "0.5362876", "0.53615874", "0.53544605", "0.5326481", "0.5321961", "0.5321435", "0.5314473", "0.531244", "0.5301624", "0.53003794", "0.5296466", "0.5292623", "0.5277007", "0.5267858", "0.52239376", "0.5223913", "0.5223406", "0.52153814", "0.5208918", "0.52077776", "0.5204855", "0.5204145", "0.517933", "0.5167052", "0.51603484", "0.515432", "0.51478773", "0.5143754", "0.5110224", "0.5089765", "0.5056206", "0.5035755", "0.50306135", "0.5027819", "0.50235033", "0.5023211", "0.50087076", "0.5008451", "0.50066245", "0.50030094", "0.50017595", "0.49910283", "0.49841267", "0.49773782", "0.49770728", "0.49606866", "0.49570164", "0.49534303", "0.49511936", "0.4941681", "0.49403524", "0.4928565", "0.49271047", "0.49244326", "0.4919536", "0.4918989", "0.48996848", "0.489695", "0.48927557", "0.48898283", "0.4888785", "0.48815274", "0.48802555", "0.4873866", "0.4871393", "0.48652488", "0.4864604", "0.48569608" ]
0.7949842
0
String s1="Welcome"; //assigning String litrals
public static void main(String args[]) { String s2 = "Welcome"; //new String ("Welcome"); // new operator String s1= new String("Welcome"); // String s2= new String("Welcome"); if(s1.equals(s2)) { System.out.println("contents same"); } else { System.out.println("contents not same"); } if(s1==s2) { System.out.println("address same"); } else { System.out.println("address not same"); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static String Initialize(String s){\n s=\"Hello World\";\n return s;\n }", "public static void main(String[] args) {\n\t\t\n\t\tString s1 = \"Welcome\";\n\t String s2 = \"To this world\";\n\t String s3 = \"Welcome\";\n\t \n\t System.out.println(s1.length()); //length()\n\t System.out.println(s1.concat(s2)); //concat ()\n\t System.out.println(s1.equals(s2)); // equals()\n\t System.out.println(s1.equals(s3)); // equals()\n\t System.out.println(s1.equalsIgnoreCase(s2)); // equalsIgnoreCase()\n\t System.out.println(s1.contains(\"Wel\"));\n\t System.out.println(s1.replace(\"Wel\",\"Babu\"));\n\t System.out.println(s1.subSequence(2, 5));\n\t \n\n\t}", "public static void set( String str1,String str2 ) {\n\t\tStringDemo.str1 = str1;\n\t\t// String object is created\n\t\tStringDemo.str2 = new String(str2);\n\t\t}", "public static void main(String[] args) {\n\t\tString s1 = \"My name is manish\";\n\t\t//By new keyword\n\t\tString s2 = new String(\"My name is manish\");\n\t\t//System.out.println(s1.equals(s2)); //compare values\n\t\t//System.out.println(s1==(s2));// compare references not value\n\t\t\n\t\t//Java String toUpperCase() and toLowerCase() method\n\t\tString s = \"SacHin\";\n\t\t//System.out.println(s.toUpperCase());\n\t\t//System.out.println(s.toLowerCase());\n\t\t\n\t\t//string trim() method eliminates white spaces before and after string\n\t\tString s3= \" String \";\n\t\t//System.out.println(s3.trim());\n\t\t\n\t\t//string charAt() method returns a character at specified index\n\t\tString s4 = \"Manish\";\n\t\t//System.out.println(s4.charAt(4));\n\t\t\n\t\t//string length() method returns length of the string\n\t\tString a = \"manish\";\n\t\tString a1 = \"My name is manish\";\n\t\t//System.out.println(a.length());\n\t\t//System.out.println(a1.length());\n\t\t\n\t\t//string valueOf() method coverts given type such as int, long, float, double, boolean, char and char array into string.\n\t\tint i = 23;\n\t\tchar [] ch = {'a','b','c','d'};\n\t\tString s5 = String.valueOf(i);\n\t\tString c = String.valueOf(ch);\n\t\t//System.out.println(s5+10);\n\t\t//System.out.println(s5.length());\n\t\t//System.out.println(c+10);\n\t\t//System.out.println(c.length());\n\t\t\n\t\t//string replace() method replaces all occurrence of first sequence of character with second sequence of character.\n\t\tString s6 = \"java is programming Language, java is oops language, java is easy language\";\n\t\t//String replaceString = s6.replace(\"java\",\"kava\");\n\t\t//System.out.println(replaceString);\n\t\t\n\t\t//string concat() method combines specified string at the end of this string\n\t\tString s7 = \"ram goes to home, \";\n\t\tString s8 = \"he also goes to school\";\n\t\t//System.out.println(s7.concat(s8));\n\t\t//System.out.println(s7+s8);\n\t\t\n\t\t/*\n\t\t * //string split() method splits this string against given regular expression\n\t\t * and returns a char array String s9 =\n\t\t * \"java string split method by javatpoint\"; String [] spParts = s9.split(\" \");\n\t\t * //String [] s10Parts = s9.split(\" \",4); for(int i=) {\n\t\t * System.out.print(str+\",\"); }\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}", "public static void main(String args[]) {\n\t String str1 = \"Welcome\";\n\t String str2 = \" to \";\n\t String str3 = \" HOME \";\n\t str1 = str1.concat(str2).concat(str3);\n\t System.out.println(str1);\n\t \n\t \n\t \n\t }", "public void replaceString(String s1){\r\n\t\tString s=\"Hello username, How are you?\";\r\n\t\tif(s1.length()>=3){\r\n\t\t\tString s2=s.replace(\"username\", s1);\r\n\t\t\tSystem.out.println(s2);\r\n\t\t}\r\n\t\telse{\r\n\t\t\tSystem.out.println(\"You have to enter min 3 character\");\r\n\t\t}\r\n\t\t\r\n\t}", "public static void main(String[] args) {\n\t\tString s1 =\"Yashodhar\";//String by java string literal\r\n\t\tchar ch[] ={'y','a','s','h','o','d','h','a','r','.','s'};\r\n\t\tString s3 = new String(ch);//Creating java to string\r\n\t\tString s2= new String(\"Yash\");//creating java string by new keyword \r\n\t\tSystem.out.println(s1);\r\n\t\tSystem.out.println(s2);\r\n\t\tSystem.out.println(s3);\r\n\t\t\r\n\t\t//Immutable String in Java(Can not changed)\r\n\t\tString s4= \"YASHODSHR\";\r\n\t\ts4 =s4.concat( \"Suvarna\");\r\n\t\tSystem.out.println(\"Immutable Strin=== \"+s4);\r\n\t\t\r\n\t\t//Compare two Strings using equals\r\n\t\tString s5= \"Yash\";\t\t\r\n\t\tString s6= \"YASH\";\r\n\t\tSystem.out.println(\"Campare equal \"+s5.equals(s6));\r\n\t\tSystem.out.println(s5.equalsIgnoreCase(s6));\r\n\t\t\r\n\t\t\t\r\n\t\t String s7=\"Sachin\"; \r\n\t\t String s8=\"Sachin\"; \r\n\t\t String s9=new String(\"Sachin\"); \r\n\t\t System.out.println(s7==s8); \r\n\t\t System.out.println(s7==s9);\r\n\t\t \r\n\t\t String s10 = \"YAsh\";\r\n\t\t String s11 = \"Yash\";\r\n\t\t String s12 = new String(\"yash\");\r\n\t\t System.out.println(s10.compareTo(s11));\r\n\t\t System.out.println(s11.compareTo(s12));\r\n\t\t \r\n\t\t //SubStrings\t\t \r\n\t\t String s13=\"SachinTendulkar\"; \r\n\t\t System.out.println(s13.substring(6));\r\n\t\t System.out.println(s13.substring(0,3));\r\n\t\t \r\n\t\t System.out.println(s10.toLowerCase());\r\n\t\t System.out.println(s10.toUpperCase());\r\n\t\t System.out.println(s10.trim());//remove white space\r\n\t\t System.out.println(s7.startsWith(\"Sa\"));\r\n\t\t System.out.println(s7.endsWith(\"n\"));\r\n\t\t System.out.println(s7.charAt(4));\r\n\t\t System.out.println(s7.length());\r\n\r\n\r\n\t\t String Sreplace = s10.replace(\"Y\",\"A\");\r\n\t\t System.out.println(Sreplace);\r\n\t\t \r\n\t\t System.out.print(\"String Buffer\");\r\n\t\t StringBuffer sb = new StringBuffer(\"Hello\");\r\n\t\t sb.append(\"JavaTpoint\");\r\n\t\t sb.insert(1,\"JavaTpoint\");\r\n\t\t sb.replace(1, 5, \"JavaTpoint\");\r\n\t\t sb.delete(1, 3);\r\n\t\t sb.reverse();\r\n\t\t System.out.println(\" \"+sb);\r\n\t\t \r\n\t\t String t1 = \"Wexos Informatica Bangalore\";\r\n\t\t System.out.println(t1.contains(\"Informatica\"));\r\n\t\t System.out.println(t1.contains(\"Wexos\"));\r\n\t\t System.out.println(t1.contains(\"wexos\"));\r\n\t\t \r\n\t\t \r\n\t\t String name = \"Yashodhar\";\r\n\t\t String sf1 = String.format(name);\r\n\t\t String sf2= String .format(\"Value of %f\", 334.4);\r\n\t\t String sf3 = String.format(\"Value of % 43.6f\", 333.33);\r\n\t\t \t\t\t \r\n\t\t \r\n\t\t System.out.println(sf1);\r\n\t\t System.out.println(sf2);\r\n\t\t System.out.println(sf3);\r\n\t\t \r\n\t\t String m1 = \"ABCDEF\";\r\n\t\t byte[] brr = m1.getBytes();\r\n\t\t for(int i=1;i<brr.length;i++)\r\n\t\t {\r\n\t\t System.out.println(brr[i]);\r\n\t\t }\r\n\t\t \r\n\t\t String s16 = \"\";\r\n\t\t System.out.println(s16.isEmpty());\r\n\t\t System.out.println(m1.isEmpty());\r\n\t\t \r\n\t\t String s17 =String.join(\"Welcome \", \"To\",\"Wexos Infomatica\");\r\n\t\tSystem.out.println(s17);\r\n\t\t \r\n \r\n\t}", "private String parseStringtoInt(String welcome,Student s1){\n\n String time = TimeUitl.getTime(s1);\n\n String slogan = welcome + time;\n\n return slogan;\n }", "@Before\n public void createString(){\n s1 = \"casa\";\n\ts2 = \"cassa\";\n\ts3 = \"\";\n\ts4 = \"casa\";\n }", "java.lang.String getS1();", "public static void main(String[] args) {\n\t\t\n\t\tString s1 = \"rohith\";\n\t\tchar ch[] = {'r','o','h','i','t','h'};\n\t\tString s2 = new String(ch);\n\t\tString s3 = new String(\"rohith\");\n\n\t\tSystem.out.println(s1);\n\t\tSystem.out.println(s2);\n\t\tSystem.out.println(s3);\n\t\t\n\t}", "private void s(String s2) {\n System.out.println(s2);\n }", "public static void main(String[] args) {\n String s = \"aaa\";\n String b = new String(\"aaa\");\n System.out.println(b==\"aaa\");\n\n }", "public static void main(String args[]) {\n String str1 = new String(\"Java strings are objects.\");\n String str2 = \"They are constructed various ways.\";\n String str3 = new String(str2);\n\n String test = \"this is a string\";\n test = \"this is a new string\";\n\n String b = \" This\" + \" is \" + \"a \" + \"String\";\n\n\n System.out.println(str1);\n System.out.println(str2);\n System.out.println(str3);\n System.out.println(test);\n System.out.println(b);\n }", "void mo1886a(String str, String str2);", "public LitteralString() \n\t{\n\t\tthis(\"Chaine Litterale\");\n\t\t// TODO Auto-generated constructor stub\n\t}", "public static void main(String[] args) {\n\t\tString name=\"Jhon\";\n\t\t\n\t\tSystem.out.println(name);\n\t\t\n\t\tSystem.out.println(\"The length of nameis= \"+name.length()); // string name.length = index sayisini verir yani 4 \n\t\t\n////////////////\n\t\t\n//****\t//2\n\t\t//Creating String with new key word\n\t\t\n\t\tString name1=new String(\"John1\");\n\t\t\n\t\tSystem.out.println(name1);\n\t\t\n/////////////////////\n\t\t\n//****\tStringin uzunlugunu bulma\n\t\t/* \n\t\t//\t.length() \n//\t\t *This method returns the length of this string. \n//\t\t *The length is equal to the number \n//\t\t *of 16-bit Unicode characters in the string. \n//\t\t */\n\n\t\t \n//**\t\n\t\tint name1Len=name1.length();\n\t\tSystem.out.println(\"The lenght of name1 is= \"+name1Len); // sonuc 5 cikar\n\t\t\n\t\tSystem.out.println(\"=================\");\n\t\t\n\t\t\n\t\t\n//** \n\t\tString Str1 = new String(\"Welcome Student\");\n\t\tString Str2 = new String(\"Tutorials\" );\n\t\t\n\t\t System.out.print(\"String Length :\" );\n\t\t System.out.println(Str1.length()); // 15 cikar\n\t\t \n\t\t System.out.print(\"String Length :\" );\n\t\t System.out.println(Str2.length()); // 9 cikar\n\t\t\n////////////////////////\t\t\n\t\t\n//**** Lowercase yapma\t\n\t\t\n\t\t/*\n\t\t * toLowerCase();\n\t\t * This method converts all of the \n\t\t * characters in this String to lowercase \t\n\t\t */\n\t\t \n\t\tString str1=\"HelLo woRld\";\n\t\t\n\t\tSystem.out.println(\"Before:: \"+str1);\n\t\t\n\t\tstr1 = str1.toLowerCase();\n\t\t\n\t\tSystem.out.println(\"After:: \"+str1); // hello world cikar\n\t\t\n\t\tSystem.out.println(\"=================\");\n\n//////////////////////////////////\n\n//****\t\tUppercase yapma\n\t\t/*\n\t\t * toUpperCase();\n\t\t * This method converts all of the characters in \n\t\t * this String to uppercase\n\t\t */\n\n//**\n\t\tString str3=\"Mohammad\";\n\t\t\n\t\tSystem.out.println(\"Before: \"+str3);\n\t\t\n\t\tstr3=str3.toUpperCase();\n\t\t\n\t\tSystem.out.println(\"After: \"+str3); // MOHAMMAD\n\t\t\n//**\n\t\t\n\t\tString Str = new String(\"Welcome on Board\");\n\t\t\t \n\t\tSystem.out.print(\"Return Value :\" );\n\t\t\n\t\tSystem.out.println(Str.toUpperCase() ); // WELCOME ON BOARD\n\t\t\n//////////////////////////////////////\t\t\n\t\t\n//****\n\t\t\n//\t\t.equalsIgnoreCase();\n\t\t\n//\t\tThis method does not care for capitalization and compare the\n//\t\tcontent only\n\t\t\n//\t\tThis method compares this String to another String, ignoring case\n//\t\tconsiderations. Two strings are considered equal ignoring case if\n//\t\tthey are of the same length, and corresponding characters in the\n//\t\ttwo strings are equal ignoring case.\n\t\t\n//**\t\n\t\tString str7=\"HElLo WoRld\";\n\t\tString str8 = \"HelLo WorLD\";\n\t\t\n\t\tSystem.out.println(str8.equalsIgnoreCase(str7)); //true\n\t\t\n\t\t\n\t\t\n\t\t\n\t}", "public static void main(String[] args) {\n\t\tString s=\"abc\";\n\t\ts=s.concat(\"defg\");\n\t\ts.concat(\"ghi\");\n\t\tString s1=s,s2=s,s3=s,s4=s,s5=s;\n\t\tSystem.out.println(s);\n\t\tSystem.out.println(s1);\n\t\tSystem.out.println(s2);\n\t\tSystem.out.println(s3);\n\t\tSystem.out.println(s3);\n\t\tSystem.out.println(s4);\n\t\tSystem.out.println(s5);\n\t\t\n\t\t\n\t\tStringBuffer sb= new StringBuffer(\"abc\");\n\t\tsb.append(\"ABC\");\n\t\tStringBuffer sb1=sb,sb2=sb;\n\t\tSystem.out.println(sb);\n\t\tSystem.out.println(sb1);\n\t\tSystem.out.println(sb2);\n\t\t\n\t}", "public static void stringImportantMethods() {\n String s = \"Hello world\";\n\n //length is 0\n System.out.println(s.length());\n\n }", "public void setS(String s);", "public static void main (String[] args) throws java.lang.Exception\n\t{\n\t\tString s0=\"\";\n\t\tString s1=\"HELLO\";\n\t\tString s2=new String(\"how are you\");\n\t\tSystem.out.println(s1.length());\n\t\tSystem.out.println(s1.compareTo(s2));\n\t\tSystem.out.println(s1.concat(s2));\n\t\tSystem.out.println(s0.isEmpty());\n\t\tSystem.out.println(s1.toLowerCase());\n\t\tSystem.out.println(s2.toUpperCase());\n\t\tSystem.out.println(s1.replace(\"HELLO\",\"Sarava\"));\n\t\tSystem.out.println(s2.contains(\"are\"));\n\t System.out.println(s2.endsWith(\"you\"));\n\t\t\n\t\t\n\t\t\n\t}", "public static void main(String[] args) {\n\t\tString s =\"abc\";\n\t\tString s1 = new String(\"abc\");\n\t\tString s3 = new String(\"abc\");\n\t\tString s2 = \"abc\";\nif(s1.equals(s3))\n\t\t\tSystem.out.println(\"true\");\n\t\telse\n\t\t\tSystem.out.println(\"false\");\n\t}", "void mo3768a(String str);", "public static void main(String[] args) {\r\n\t String str1 = \"Hello world\";\r\n\t String str2 = str1.toUpperCase();\r\n\t String str3 = str1.toLowerCase();\r\n\t System.out.println(str1 + \" \" +str2);\r\n\t int str1Length = str1.length();\r\n\t System.out.println(str1Length);\r\n\t}", "public static void main(String[] args) {\n\t\t\n\t\t\tString s1=\"Sachin\"; \n\t\t String s2=\"Sachin\"; \n\t\t String s3=new String(\"Sachin\"); \n\t\t String s4=\"Saurav\"; \n\t\t String s5=\"SACHIN\";\n\t\t \n\t\t // System.out.println(s1.equalsIgnoreCase(s5));\n\t\t \n\tString s6=s1.substring(2,5);\n\tBoolean s8=s1.endsWith(\"chin\");\n\tchar s7=s1.charAt(2);\n\t\n\t//System.out.println(s8);\n\t\n\t\n\tString s9=\"Puja Kumari\";\n\t\n\tchar c[] =s9.toCharArray();\n\t\n\tSystem.out.println(c[10]);\n\t\n\n\t}", "public static void main(String[] args) {\n\r\n\t\tString s1 = \"Tatyana\";\r\n\t\tString s2 = \"Tatyanat\";\r\n\t\tString s3 = \"Toneva\";\r\n\t\tString s4 = s1+ \" \" +s2 + \" \" +s3;\r\n\t\tSystem.out.println(s4);\r\n\t}", "String getString_lit();", "public void concat2Strings(String s1, String s2)\r\n {\r\n // s1.concat(s2);\r\n ///sau\r\n s1=s1+s2;\r\n System.out.println(\"Stringurile concatenate sunt \"+s1);\r\n }", "private static void LessonStrings() {\n String str = \"\"; //Empty\n str = null; // string has no value\n str = \"Hello World!\"; //string has a value\n\n if(str == null || str.isEmpty()) {\n System.out.println(\"String is either empty or null!\");\n } else {\n System.out.println(\"String has a value!\");\n }\n\n // immutable - unable to be changed...\n str = \"another value\"; //this create a new string each time its assigned a new value\n\n// for(int i = 0; i <= 10; i++) {\n// str = \"New Value\" + Integer.toString(i); //new string created each time\n// System.out.println(str);\n// }\n\n // overcome string immutable issue\n// StringBuilder myStringBuilder = new StringBuilder(); //doesn't create a new string\n// for(int i=0; i <= 10; i++) {\n// myStringBuilder.append(\"new value with string builder: \").append(Integer.toString(i)).append(\"\\n\");\n// }\n//\n// System.out.println(myStringBuilder);\n\n //Strings are array of characters\n //Useful methods on strings indexOf and lastIndexOf\n String instructor = \"Bipin\";\n int firstIndex = instructor.indexOf(\"i\");\n int lastIndex = instructor.lastIndexOf(\"i\");\n\n System.out.println(firstIndex);\n System.out.println(lastIndex);\n\n //Break done a string into characters\n String sentence = \"The cat in the hat sat on a rat!\";\n// for(char c: sentence.toCharArray()) {\n// System.out.println(c);\n// }\n\n //substring to break down strings\n String partOfSentence = sentence.substring(4, 7);\n System.out.println(partOfSentence);\n\n }", "public static void Mostra(String s){\r\n System.out.println(s);\r\n }", "private SingletonClass()\n {\n s = \"Hello I am a string part of Singleton class\";\n }", "void mo1932a(String str);", "public static void main(String[] args){\n java.lang.String myString = \"This is a string\";\n System.out.println(myString);\n myString = myString + \", and this is more.\";\n System.out.println(myString);\n\n int myInt = 50;\n String lastString = \"10\";\n lastString = lastString + myInt;\n System.out.println(\"Last String is = \" + lastString);\n\n /*Strings are immutable i.e. you can't change the value of string once it's created.\n * Java automatically create a new string with the value of old string and some new string.\n * And, java delete the old string variable from memory.\n * String is class not a data type in class.*/\n\n\n\n\n }", "public static void main (String[] args) {\n\t\tString s = \"Hello\";\r\n\t\tString t = new String(s);\r\n\t\tif(\"Hello\".equals(s)) System.out.println(\"one\");\r\n\t\tif(t== s) System.out.println(\"two\");\r\n\t\tif (t.equals(s))System.out.println(\"three\");\r\n\t\tif(\"Hello\" == s) System.out.println(\"four\");\r\n\t\tif(\"Hello\" == t) System.out.println(\"five\");\r\n\t\tStringBuilder sb = new StringBuilder();\r\n\t\tsb.append(\"aaa\").insert(1,\"bb\").insert(4, \"ccc\");\r\n\t\tSystem.out.println(sb);\r\n\t\tString s1 =\"java\";\r\n\t\tStringBuilder s2 = new StringBuilder(\"java\");\r\n\t\tif (s1 == s2)\r\n\t\t\tSystem.out.print(\"1\");\r\n\t\tif (s1.contentEquals(s2))\r\n\t\t\tSystem.out.print(\"2\");\r\n\t\t\r\n\t}", "public static void main(String[] args) {\nString s1= \"adya\";\nString s2= \"adyass\"+\"a\";\nString s3= \"adyassa\";\nSystem.out.println(s3==s2);\n\t}", "String mo3176a(String str, String str2);", "public static void main(String[] args) {\nfinal String str=\"Hello\";//constant variables CANT BE change;\n// name=\"School\";\n\n\t}", "public static void main(String[] args) {\n\n String s1 = \"Java String\";\n\n s1.concat(\"is immutable\");\n\n System.out.println(s1); //will not concat\n\n //Assign it explicitly to contact the string\n s1 = s1.concat(\"is immutable so assign it explicitly\");\n System.out.println(s1);\n }", "void mo131986a(String str, String str2);", "public Builder setS1(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n s1_ = value;\n onChanged();\n return this;\n }", "public static void main(String[] args) {\n\t\tString s1=\"abc def ghi\";\n\t\tString s3=\"rupomroy\";\n\t\tString s7 =s3.substring(0, 4);\n\t\tSystem.out.println(s7);\n\t\t\n\t\t String[] s5 =s3.split(\"roy\");\n\t\t System.out.println(s5[0]);\n String s2 = s1.substring(4);\t\n System.out.println(s2);\n\t\t\n\t\t String[] s = s1.split(\" \");\n\t\t System.out.println(s[0]);\n\t\t System.out.println(s[1]);\n\t\t System.out.println(s[2]);\n\t\t\n\t\tSystem.out.println(s1);\n\t\t\n\t\t\n\n\t}", "public void setStr(int s)\n\t{\n\t\tstr = s; \n\t}", "java.lang.String getS2();", "public static void main(String[] args )\r\n\t{\n\t\tlong t=322342432;\r\n\t\tString p=\"welcome\";\r\n\t\tString q=\"home\";\r\n\t\tint r=5;\r\n\t\tint s=9;\r\n\r\n\t\tSystem.out.println(p+q);\r\n\t\tSystem.out.println(r+s);\r\n\t\tSystem.out.println(p+q+r);\r\n\t\tSystem.out.println(p+q+r+s);//left to right\r\n\t\tSystem.out.println(p+q+(r+s));\r\n\r\n\t\tString a= \"javatrainingTesting \";\r\n\t\t//charAt(index), contains(char seq),concat(string),contentEquals(StringBuffer/StringBuilder),EqualsIgnoreCase(String),indexOf(),\r\n\t\t//lastIndexOf(), length(),startsWith(String),endswith(String), replace(),subString(),toUpperCAse(),toLowerAcse(),trim().\r\n\t\t//st.contentEquals(StringBuffer/StringBuilder)---> to compare String with StringBuilder or String buffer\r\n\t\t//st.equals(char seq..)---> to compare String with String or String Object\r\n\t\t// equals method is also present in Object class which compares references not content. Equals method in string class overrides this to compare content\r\n\r\n\t\tSystem.out.println(a.charAt(2));\r\n\t\tSystem.out.println(a.indexOf(\"a\"));\r\n\t\tSystem.out.println(a.substring(3, 6));\r\n\t\tSystem.out.println(a.substring(5));\r\n\t\tSystem.out.println(a.concat(\"rahul teaches\"));\r\n\t\tSystem.out.println(a.replace(\"in\", \"\"));//replace in with no character(delete)\r\n\t\t\r\n\t\tSystem.out.println(a.trim());\r\n\t\tSystem.out.println(a.toUpperCase());\r\n\t\tSystem.out.println(a.toLowerCase());\r\n\t\t//split\r\n\t\tString []arr =a.split(\"t\");\r\n\t\tSystem.out.println(arr[0]);\r\n\t\tSystem.out.println(arr[1]);\r\n\t\tSystem.out.println(arr[2]);\r\n\t\tSystem.out.println(a.replace(\"t\", \"s\"));\r\n\r\n\t\t//concept: final keyword---->is used to put restriction\r\n\t\t//final variable is constant.It can't be changed again\r\n\t\t//final class can't be inherited by child class(can't be extended)\r\n\t\t//final method can't be overriden by method in child class.\r\n\r\n\t\t//There are few inbuilt packages in java like--java, lang, awt, javax, swing, net, io, util, sql etc.\r\n\t\t//java.lang is inbuilt package ..thats why we can directly use commands like system.out.println, String class etc without any import.\r\n\t\t//java/Util package--all Collection classes and other classes come from this package but we need to import it.\r\n\r\n\t\t/*access modifiers:---for variables and methods\r\n\t public--access through out project in all packages, sub packages\r\n\t protected--access in same package and sub classes of different packages also.\r\n\t Default--access only in same package\r\n\t private--access only inside same class\r\n\t protected = default + subclass of other packages(using extends)\r\n\t public= protected + Other packages\r\n\r\n\t\t */\r\n\r\n\t}", "public static void stringSwitch() {\n String greeting = \"Hello\";\n\n switch (greeting) {\n case \"Hello\" : System.out.println(\"Hey, how goes it?\");\n break;\n case \"Goodbye\":System.out.println(\"See ya!\");\n break;\n default: System.out.println(\"Que?\");\n }\n }", "String getWelcometext();", "public static void main(String[] args) {\n\n\t\t\n\t\tString s =\"Soni Shirwani\";\n\t\t\n\t\tSystem.out.println(s.charAt(3));\n\t\t\n\t\tString s1=\"Soni\",s2=\"Soni\";\n\t\t\n\t\tSystem.out.println(s1.equals(s2));\n\t\t\n\t\tString empty=\"\";\n\t\t\n\t\tSystem.out.println(empty.isEmpty());\n\t\t\n\t\tSystem.out.println(s.length());\n\t\t\n\t\tSystem.out.println(s.replace(\"i\", \"y\"));\n\t\t\n\t\tSystem.out.println(s.substring(5));\n\t\tSystem.out.println(s.substring(3,8));\n\t\t\n\t\tSystem.out.println(s.indexOf('n'));\n\t\t\n\t\tSystem.out.println(s.lastIndexOf('n'));\n\t\t\n\t\tSystem.out.println(s.toUpperCase());\n\t\t\n\t\tSystem.out.println(s.toLowerCase());\n\t\t\n\t\tScanner ss= new Scanner(System.in);\n\t\tString input=ss.nextLine();\n\t\t\n\t\tSystem.out.println(input.trim());\n\t\t\n\t\tfinal String s1f=\"final\";\n\t\tfinal StringBuffer sb1= new StringBuffer(\"asd0\");\n\t\tsb1.append(\"tets\");\n\t\t\n\t\t\n\t\t\n\t\t\n\t}", "void mo1791a(String str);", "void mo1935c(String str);", "void mo1331e(String str, String str2);", "public\tfinal String LMSInitialize (String s) { \n\t\tString rv = core.LMSInitialize(s);\n\t\tsay (\"LMSInitialize(\"+s+\")=\"+rv);\n\t\tif (rv.equals(\"false\")) return rv;\n\t\tcore.reset();\n\t\trv = core.LMSInitialize(s);\n\t\tATutorScoId = ATutorPreparedScoId;\n\t\tcore.sysPut (\"cmi.core.student_id\", ATutorStudentId);\n\t\tcore.sysPut (\"cmi.core.student_name\", ATutorStudentName);\n\t\tcore.sysPut (ATutorScoCmi);\n\t\tcore.transBegin();\n\t\treturn rv;\n\t}", "public void upperString() {\n\t\t\tString sentence = \"I am studying\";\n\t\t\t//have to assign it to new string with = to change string\n\t\t\tsentence = sentence.toLowerCase();\n\t\t\t//have to assign it to sentence\n\t\t\tSystem.out.println(\"lower case sentence \" + sentence);\n\t\t}", "void mo1342w(String str, String str2);", "void mo12635a(String str);", "public static void printString(String s) {\n System.out.println(first(s));\n // Create variable to hold the string that changes every time\n String reststring = s;\n // Loop using for (because we need the count of the length of the\n // string)\n for (int i = 0; i < length(s); i++) {\n System.out.println(first(reststring));\n reststring = rest(reststring);\n }\n // Subtract first letter by using rest function\n\n }", "public String getString1() {\n return string1;\n }", "public static void main(String[] args) {\n\t\t\n\t\tString str1 =\"amol\";\n\t\tString str2 =\"amol\";\n\t\tString str3 =\"Amol\";\n\t\tString str4 =\"raj\";\n\t\tString str5 = new String(\"amol\");\n\t\t\n\t\tSystem.out.println(str1.equals(str2)); // true\n\t\tSystem.out.println(str1.equals(str3));\n\t\tSystem.out.println(str1.equalsIgnoreCase(str3));\n\t\tSystem.out.println(str1.equals(str4));\n\t\tSystem.out.println(str1.equals(str5)); // true\n\t\t\n\t\tSystem.out.println(str1==str2); // true\n\t\n\t\tSystem.out.println(str1==str5); // false\n\t\t\n\t\t\n\n\t}", "public static void main(String[] args) {\n\t\tString str=\"Suman\";\n\t\tint len=str.length();\n String s1=str.substring(1,len-1);\n System.out.println(s1);\n\t}", "static public String generateAString(String s) {\n String result;\n result = generate(s);\n if (result != null) {\n currentString = result;\n }\n return result;\n }", "private void setWelcomeText(String first, String last) {\n\t\tString message = \"Welcome, Student: \";\n\t\tmessage+= first+\" \"+last+\"!\";\n\t\twelcomeText.setText(message);\n\t}", "void mo37759a(String str);", "void mo1340v(String str, String str2);", "public static void main(String[] args) {\n String name = new String(\"String one\");\n String name2 = name;\n\n System.out.println(name);\n System.out.println(name2);\n\n System.out.println(name.hashCode());\n System.out.println(name2.hashCode());\n\n name2 = \"String two\";\n\n System.out.println(name);\n System.out.println(name2);\n\n System.out.println(name.hashCode());\n System.out.println(name2.hashCode());\n\n\n }", "public static void main(String[] args) {\n\t\t \n\t StaticTestString s1 = new StaticTestString (111,\"Karan\"); \n\t s1.change();\n\t StaticTestString s2 = new StaticTestString (222,\"Aryan\"); \n\t StaticTestString s3 = new StaticTestString (333,\"Sonoo\"); \n\t \n\t s1.display(); \n\t s2.display(); \n\t s3.display(); \n\t }", "private static void standardPopulate(String[] s) {\n\t\tfor(/*int i = 0; i<s.length;i++*//* String z: s*/ int i = 0;i<s.length;i++){\r\n\t\t\t//s[i] = \"String #\"+(i+1);\r\n\t\t\t/*i++;\r\n\t\t\tz = \"String #\"+(i+1); */\r\n\t\t\tString string= \"String #\"+(i+1);\r\n\t\t\ts[i] = string; // setting position i into string\r\n\t\t\t\r\n\t\t}\r\n\t}", "public static void main(String[] args) {\n\n String s = \"2222\";\n String a = \"www\";\n// a.replace()\n\n s = a;\n System.out.println(s);\n }", "void mo85415a(String str);", "public MyString2(String s) {\n\t\tthis.s = s;\n\t}", "public void assignString(String[] msg) {\n if (msg.length > 0) {\n msg[0] = new String(\"Ali\");\n }\n }", "public void setNameString(String s) {\n nameString = s;\r\n }", "void mo13161c(String str, String str2);", "void mo1334i(String str, String str2);", "java.lang.String getS();", "public void set(String s);", "void mo87a(String str);", "public void setString(String string) {\n this.string = string;\n }", "public static void main(String[] args) {\n\tString variable=\"Hello\";\n\t\n\tString mySentence= \"Today is Sunday!\";\n\t\n System.out.println(mySentence);\n \n //int number=\"99\"; - anything that is put in \"\" becomes a string, must change int to String\n \n String number=\"99\"; //we will get 99 as a string\n System.out.println(number);\n \n \n \n\t}", "public static String rest(String s) {\n\treturn s.substring(1);\n\t}", "public static void swap(Strings t ,Strings s){\n\t\tStrings temp = s;\r\n\t\ts = t;\r\n\t\tt = temp;;\r\n\t}", "void mo9697a(String str);", "int mo54403a(String str, String str2);", "void mo5871a(String str);", "public static void main(String[] args) {\n\n System.out.println(\"Java\".equals(\"java\") );\n String myStr=\"Java\" ;\n System.out.println(myStr.equals(\"Java\") );\n\n String yourStr=new String(\"Java\");\n System.out.println(\"is my string same as your string?\" );\n //how to compare myStr to yourStr for equality\n System.out.println(myStr.equals(yourStr));\n\n //create a program to check wether myStr value is Java\n //if yes ---->> correct word!\n //if false---->>Say Java!\n\n if (myStr.equals(\"Java\")){\n System.out.println(\"correct word!\");\n }else{\n System.out.println(\"Say Java!\");\n }\n }", "String getWelcomeText();", "abstract String mo1747a(String str);", "void mo1329d(String str, String str2);", "public static void main(String[] args) {\n String name = new String(\"String one\");\n String name2 = name;\n\n System.out.println(name);\n System.out.println(name2);\n\n System.out.println(name.hashCode());\n System.out.println(name2.hashCode());\n\n name2 = \"String two\";\n\n System.out.println(name);\n System.out.println(name2);\n\n System.out.println(name.hashCode());\n System.out.println(name2.hashCode());\n\n\n //////////////////////////////////////////////\n System.out.println(\"****************************\");\n\n StringBuilder str1 = new StringBuilder(\"Sachin\");\n// str1 = str1 + new StringBuilder(\"fsf\");\n System.out.println(str1.hashCode());\n str1 = new StringBuilder(\"Schin tendulkar\");\n\n System.out.println(str1);\n System.out.println(str1.hashCode());\n\n str1.append(\"12334\");\n System.out.println(str1);\n System.out.println(str1.hashCode());\n\n }", "private Strings()\n\t{\n\t}", "private Strings()\n\t{\n\t}", "void mo88522a(String str);", "public String L(final String str, final String ... xs)\r\n\t{\r\n\t\treturn CMLib.lang().fullSessionTranslation(str, xs);\r\n\t}", "private final void r(String s) { if (m() > 0) setto(s); }", "static String m3(){\n\t\tString st = \"i love java\";\r\n\t\tSystem.out.println(\"method m3\"+\" \"+st);\r\n\t\t//return \"i love java\";\r\n\t\treturn st;\r\n\t}", "private String getVar(String s)\n {\n String var = null;\n Pattern pattern = Pattern.compile(\"[A-Z]+[a-z]*\");\n Matcher matcher = pattern.matcher(s);\n if(matcher.find())\n {\n var = matcher.group(0);\n }\n return var;\n }", "NinjaWarrior(int s)\t \n\t{\n\t\tstr = s; \n\t}", "public static void main(String[] args) {\n\t\tObject o3=\"chandan\";\n String n1=(String)o3;\n\t\t\n\t}", "int mo23353w(String str, String str2);", "public static void main(String[] args) {\n\t\t String s1=new String(\"great\");\n\t\t String s2=new String(\"rgtae\");\n\t\t if(isScrableString(s1, s2)){\n\t\t\t System.out.println(\"two string is scramble string!\");\n\t\t }else{\n\t\t\t System.out.println(\"two string is not scramble string!\");\n\t\t }\n\t}", "public static void main(String[] args) {\nString s = \"hello world\";\n\t\t\n\t\tint a = 100;\n\t\tint b = 200;\n\t\t\n\t\tSystem.out.println(a+b);\n\t\t\n\t\tSystem.out.println(a+s);\n\t\t\n\t\tSystem.out.println(a+b+s);\n\t\t\n\t\tSystem.out.println(s+a+b);\n\t\t\n\t\tSystem.out.println(s+(a+b));\n\t\t\n\t\tString p = \"Test\";\n\t\tString q = \"Automation\";\n\t\t\n\t\tSystem.out.println(p+q);\n\t\tSystem.out.println(p+\" \"+q);\n\t\t\n\t\t//ASCII\n\t\tchar c1 = 'a';//97\n\t\tchar c2 = 'b';//98\n\t\t\n\t\tSystem.out.println(c1+c2);//195\n\t\t//a-z --> 97 - 122\n\t\t//A-Z --> 65 - 90\n\t\t//0-9 --> 48 - 57\n\n\t}", "public void string_decl(StringDeclList sd, Integer lg) {\n if (lexer.token == Symbol.STRING) {\n \n String type = lexer.getStringValue();\n\n if (lexer.nextToken() != Symbol.IDENT) {\n error.signal(\"Missing identifier in string declaration\");\n }\n \n switch(lg) {\n case 1: // contexto global\n Type temp = symbolTable.getInGlobal(lexer.getStringValue());\n if ( temp!=null && temp.isFunction() ) \n error.show(\"There is already a function with the name \" + lexer.getStringValue());\n else if(temp != null)\n error.show(\"There is already a variable with the name \" + lexer.getStringValue());\n symbolTable.putInGlobal(lexer.getStringValue(), new Type(type, false));\n break;\n case 2: // contexto local\n if ( symbolTable.getInLocal(lexer.getStringValue()) != null ) \n error.show(\"Variable \" + lexer.getStringValue() + \" has already been declared\");\n symbolTable.putInLocal(lexer.getStringValue(), type);\n break;\n }\n\n Ident id = new Ident(lexer.getStringValue());\n\n if (lexer.nextToken() != Symbol.ASSIGN) {\n error.signal(\"Missing assignment symbol at string declaration\");\n }\n\n lexer.nextToken();\n\n if (lexer.token != Symbol.STRINGLITERAL) {\n error.signal(\"Not assigning a STRINGLITERAL to \"+id.getName());\n }\n\n String str = lexer.getStringValue();\n\n sd.addDecl(new StringDecl(id, str));\n\n lexer.nextToken();\n\n if (lexer.token != Symbol.SEMICOLON) {\n error.signal(\"Missing end of declaration after string declaration\");\n }\n\n lexer.nextToken();\n }\n }" ]
[ "0.6587788", "0.649732", "0.62314314", "0.61743313", "0.6156234", "0.61438817", "0.61239773", "0.60129476", "0.601283", "0.5972349", "0.5945298", "0.5893432", "0.5883853", "0.5879136", "0.58065444", "0.57950974", "0.57916015", "0.5774528", "0.57122076", "0.57058823", "0.56161726", "0.5604672", "0.55814415", "0.5580408", "0.55745137", "0.557432", "0.5572205", "0.55617905", "0.55603695", "0.55472153", "0.554591", "0.5543834", "0.55401766", "0.55398417", "0.55311453", "0.55297", "0.5506944", "0.55008954", "0.5498715", "0.5486768", "0.54864866", "0.54726666", "0.54682946", "0.5461087", "0.5459259", "0.5453934", "0.5439452", "0.5438115", "0.54287416", "0.54167914", "0.54163814", "0.5407926", "0.54037327", "0.54031384", "0.5398513", "0.5397594", "0.53906244", "0.5384982", "0.53812814", "0.53812164", "0.53771216", "0.53669876", "0.5363833", "0.53481764", "0.53415674", "0.53392464", "0.53378564", "0.5325017", "0.5322726", "0.53187436", "0.53107446", "0.5302664", "0.52813685", "0.5279857", "0.52778786", "0.52749836", "0.5271228", "0.52701914", "0.5267023", "0.52608746", "0.52591586", "0.5253802", "0.52511054", "0.5249376", "0.5243841", "0.52435225", "0.52303356", "0.5224719", "0.5224719", "0.5207365", "0.52062297", "0.52051914", "0.5203114", "0.51995564", "0.519852", "0.5193684", "0.51915485", "0.5187879", "0.517987", "0.5178309" ]
0.61796194
3
function calculate sum money of order output: sum money of order
public double sumMoney(){ double result = 0; for(DetailOrder detail : m_DetailOrder){ result += detail.calMoney(); } if(exportOrder == true){ result = result * 1.1; } return result; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "BigDecimal calculateTotalPrice(Order order);", "private double calculateTotal(){\r\n double total = 0;\r\n for(int i = 0; i < orderList.size(); i++){\r\n total += orderList.getOrder(i).calculatePrice();\r\n }\r\n return total;\r\n }", "@Override\n\tpublic double sumMoney() {\n\t\treturn ob.sumMoney();\n\t}", "private double getOrderTotal() {\n double d = 0;\n\n for (Pizza p : pizzas) {\n d += p.calcTotalCost();\n }\n\n return d;\n }", "public double sumMoney(MoneyNode p) {\r\n // Base case: empty list\r\n if (p == null)\r\n return 0;\r\n if (p.data instanceof Bill) // Bill type\r\n return ((Bill) p.data).getValue() + sumMoney(p.next); // add up the\r\n // dollar\r\n // amount\r\n else // Coin type\r\n return ((Coin) p.data).getValue() / 100.0 + sumMoney(p.next); // add\r\n // up\r\n // the\r\n // cents\r\n // amount\r\n }", "public static double calculateTotals(double[] money) {\n int element = 0; //The element to add\n double total = 0; //The total sales/commissions\n \n while (element < money.length) { //Add each element\n total += money[element];\n element++;\n }\n \n //Return total\n return total;\n }", "public BigDecimal calculateTotal() {\r\n BigDecimal orderTotal = BigDecimal.ZERO;\r\n \r\n final Iterator<Item> iterator = myShoppingCart.keySet().iterator();\r\n \r\n while (iterator.hasNext()) {\r\n final BigDecimal currentOrderPrice = myShoppingCart.get(iterator.next());\r\n \r\n orderTotal = orderTotal.add(currentOrderPrice);\r\n }\r\n \r\n //if membership take %10 off the total cost\r\n if (myMembership) {\r\n if (orderTotal.compareTo(new BigDecimal(\"25.00\")) == 1) { //myOrderTotal > $25\r\n final BigDecimal discount = DISCOUNT_RATE.multiply(orderTotal); \r\n orderTotal = orderTotal.subtract(discount);\r\n }\r\n }\r\n \r\n return orderTotal.setScale(2, RoundingMode.HALF_EVEN);\r\n }", "public double calculate(Map<String, Order> orders) {\n\n\t\t// This is the fix to avoid null pointer exception if Cart has null\n\t\t// orders\n\t\tif (orders == null) {\n\t\t\tthrow new IllegalArgumentException(\n\t\t\t\t\t\"Orders are invalid. Input is null\");\n\t\t}\n\t\t// GrandTotal is initialized outside the loop to have the grand total\n\t\tdouble grandTotal = 0;\n\n\t\t// Iterate through the orders\n\t\tfor (Map.Entry<String, Order> entry : orders.entrySet()) {\n\t\t\tSystem.out.println(\"*******\" + entry.getKey() + \"*******\");\n\t\t\tOrder order = entry.getValue();\n\t\t\tdouble totalTax = 0;\n\t\t\tdouble total = 0;\n\n\t\t\t// Iterate through the items in the order\n\t\t\t/*\n\t\t\t * In lists indexes starts with 0 and ends with its size-1. We\n\t\t\t * should not include indexes which are not exist,it will leads to\n\t\t\t * ArrayIndexOutofBoundException. Hence logical operator = is\n\t\t\t * removed\n\t\t\t */\n\t\t\tfor (int i = 0; i < order.size(); i++) {\n\n\t\t\t\t// Calculate the taxes\n\t\t\t\tdouble tax = 0;\n\n\t\t\t\tItem item = order.get(i).getItem();\n\n\t\t\t\ttax = calculateTax(item);\n\n\t\t\t\t// Calculate the total price\n\t\t\t\tdouble totalPrice = item.getPrice() + tax;\n\n\t\t\t\t// Print out the item's total price\n\t\t\t\t// Wrong way of rounding off here it is fixed with the help of\n\t\t\t\t// BigDecimal\n\t\t\t\tSystem.out.println(item.getDescription() + \": \"\n\t\t\t\t\t\t+ roundToTwoDecimal(totalPrice));\n\n\t\t\t\t// Keep a running total\n\t\t\t\ttotalTax += tax;\n\t\t\t\ttotal += item.getPrice();\n\t\t\t}\n\n\t\t\t// Print out the total taxes\n\t\t\t// Wrong way of rounding off here it is fixed with the help of\n\t\t\t// BigDecimal\n\t\t\tSystem.out\n\t\t\t\t\t.println(\"Sales Tax: \" + roundToTwoDecimal(totalTax) /*\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t * Math.\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t * floor\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t * (\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t * totalTax\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t * )\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t */);\n\n\t\t\t// Fix to Total. Total should not include Tax\n\t\t\t// total = total + totalTax;\n\n\t\t\t// Print out the total amount\n\t\t\t// Wrong way of rounding off here it is fixed with the help of\n\t\t\t// BigDecimal\n\t\t\tSystem.out.println(\"Total: \" + roundToTwoDecimal(total) /*\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t * Math.floor\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t * (total *\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t * 100) /\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t * 100\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t */);\n\t\t\tgrandTotal += total;\n\t\t}\n\n\t\t// grandtotal = Math.floor(grandtotal * 100) / 100;\n\t\t// Bug Fix: 10 (Wrong way of rounding. To meet the requirements, we\n\t\t// should be using BigDecimal.)\n\t\tSystem.out.println(\"Sum of orders: \" + roundToTwoDecimal(grandTotal));\n\n\t\treturn grandTotal;\n\t}", "BigDecimal getTotal();", "BigDecimal getTotal();", "public double getBankMoney(){\n double total = 0.0;\n for(Coin c : bank){\n total += c.getValue();\n }\n return total;\n }", "public double calTotalAmount(){\n\t\tdouble result=0;\n\t\tfor (int i = 0; i < this.cd.size(); i++) {\n\t\t\tresult += this.cd.get(i).getPrice();\n\t\t}\n\t\treturn result;\n\t}", "public float calcOrderTotal()\r\n\t{\r\n\t\tOrderItem temp;\r\n\t\tfloat total = 0;\r\n\t\t\r\n\t\t//iterate through list and get quantity and unit price of each item\r\n\t\t//then multiply together and add to running total\r\n\t\tfor (int x = 0; x < orderItemList.size(); x++)\r\n\t\t{\r\n\t\t\ttemp = orderItemList.get(x);\r\n\t\t\ttotal = total + (temp.getProductQuant() * temp.getProductPrice());\r\n\t\t}\r\n\t\t\r\n\t\treturn total;\r\n\t}", "@Transient\n public Double getTotalOrderPrice() {\n double sum = 0;\n for (OrderItem oi : getOrderItems()) {\n sum += oi.getTotalPrice();\n }\n return sum;\n }", "public KualiDecimal getCoinTotal(CashDrawer drawer);", "public double total(){\n\tdouble total=0;\n\tfor(Map.Entry<String, Integer> pro:proScan.getProducts().entrySet()){\n\t\tString proName=pro.getKey();\n\t\tint quantity=pro.getValue();\n\t\tProductCalculator proCal=priceRule.get(proName);\n\t\tif(proCal==null)\n\t\t\tthrow new MissingProduct(proName);\n\t\t\n\t\tProductCalculator cal=priceRule.get(proName);\n\t\tdouble subtotal=cal.getTotal(quantity);\n\t\ttotal+=subtotal;\n\t\t//System.out.println(total);\n\t}\n\t//round the total price to two digit\n\treturn round(total, 2);\n}", "private double prixTotal() \r\n\t{\r\n\t\tdouble pt = getPrix() ; \r\n\t\t\r\n\t\tfor(Option o : option) \r\n\t\t\tpt += o.getPrix();\t\r\n\t\treturn pt;\r\n\t}", "public float calculateTotalPrice(ArrayList<Food> totalOrder) {\n totalPrice = 0.0f;\n for (Food itemOfFood : totalOrder) {\n totalPrice = totalPrice + itemOfFood.getPrice();\n }\n return totalPrice;\n }", "private static double totalPrice(double price_interest, double dwnpymnt) {\n \treturn price_interest + dwnpymnt;\n }", "double getMoney();", "public void totalBill(){\r\n\t\tint numOfItems = ItemsList.size();\r\n\t\t\r\n\t\tBigDecimal runningSum = new BigDecimal(\"0\");\r\n\t\tBigDecimal runningTaxSum = new BigDecimal(\"0\");\r\n\t\t\r\n\t\tfor(int i = 0;i<numOfItems;i++){\r\n\t\t\t\r\n\t\t\trunningTaxSum = BigDecimal.valueOf(0);\r\n\t\t\t\r\n\t\t\tBigDecimal totalBeforeTax = new BigDecimal(String.valueOf(this.ItemsList.get(i).getPrice()));\r\n\t\t\t\r\n\t\t\trunningSum = runningSum.add(totalBeforeTax);\r\n\t\t\t\r\n\t\t\tif(ItemsList.get(i).isSalesTaxable()){\r\n\t\t\t\r\n\t\t\t BigDecimal salesTaxPercent = new BigDecimal(\".10\");\r\n\t\t\t BigDecimal salesTax = salesTaxPercent.multiply(totalBeforeTax);\r\n\t\t\t \r\n\t\t\t salesTax = round(salesTax, BigDecimal.valueOf(0.05), RoundingMode.UP);\r\n\t\t\t runningTaxSum = runningTaxSum.add(salesTax);\r\n\t\t\t \r\n \r\n\t\t\t} \r\n\t\t\t\r\n\t\t\tif(ItemsList.get(i).isImportedTaxable()){\r\n\r\n\t\t\t BigDecimal importTaxPercent = new BigDecimal(\".05\");\r\n\t\t\t BigDecimal importTax = importTaxPercent.multiply(totalBeforeTax);\r\n\t\t\t \r\n\t\t\t importTax = round(importTax, BigDecimal.valueOf(0.05), RoundingMode.UP);\r\n\t\t\t runningTaxSum = runningTaxSum.add(importTax);\r\n\t\t\t \r\n\t\t\t}\r\n\r\n\t\t\t\r\n\t\t\tItemsList.get(i).setPrice(runningTaxSum.floatValue() + ItemsList.get(i).getPrice());\r\n\t\t\r\n\t\t\ttaxTotal += runningTaxSum.doubleValue();\r\n\t\t\t\r\n\t\t\trunningSum = runningSum.add(runningTaxSum);\r\n\t\t}\r\n\t\t\ttaxTotal = roundTwoDecimals(taxTotal);\r\n\t\t\ttotal = runningSum.doubleValue();\r\n\t}", "private double calculateTotalPrice(Order order) {\n int nights = (int)(order.getVaucher().getDateTo().getTime() - order.getVaucher().getDateFrom().getTime())/(24 * 60 * 60 * 1000);\n double totalPrice = (nights * order.getVaucher().getHotel().getPricePerDay() + order.getVaucher().getTour().getPrice()) * (100 - order.getUser().getDiscount())/100;\n return totalPrice;\n }", "BigDecimal getGrandTotal();", "double getSum();", "double getSum();", "public void calculateOrderCost(){\n int tmpCost=0;\n for (Vehicle v : vehicleList){\n tmpCost+=v.getCost();\n }\n totalCost=tmpCost;\n }", "private String money() {\r\n\t\tint[] m =tile.getAgentMoney();\r\n\t\tString out =\"Agent Money: \\n\";\r\n\t\tint total=0;\r\n\t\tint square=(int)Math.sqrt(m.length);\r\n\t\tif(square*square<m.length) {\r\n\t\t\tsquare++;\r\n\t\t}\r\n\t\tfor(int i=0; i<m.length;) {\r\n\t\t\tfor(int j=0; j<square; j++) {\r\n\t\t\t\tif(i<m.length) {\r\n\t\t\t\t\tout=out.concat(String.format(\"%8s\", m[i]+\"\"));\r\n\t\t\t\t\ttotal=total+m[i];\r\n\t\t\t\t\ti++;\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tj=square;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tout=out.concat(\"\\n\");\r\n\t\t}\r\n\t\tout=out.concat(\"Agent Total: \"+total);\r\n\t\tint companyTotal=0;\r\n\t\tout=out.concat(\"\\n\\nCompany Money: \\n\");\r\n\t\tm=tile.getCompanyMoney();\r\n\t\tsquare=(int)Math.sqrt(m.length);\r\n\t\tif(square*square<m.length) {\r\n\t\t\tsquare++;\r\n\t\t}\r\n\t\tfor(int i=0; i<m.length;) {\r\n\t\t\tfor(int j=0; j<square; j++) {\r\n\t\t\t\tif(i<m.length) {\r\n\t\t\t\t\tout=out.concat(String.format(\"%8s\", m[i]));\r\n\t\t\t\t\tcompanyTotal=companyTotal+m[i];\r\n\t\t\t\t\ti++;\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tj=square;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tout=out.concat(\"\\n\");\r\n\t\t}\r\n\t\tout=out.concat(\"Company Total: \"+companyTotal);\r\n\t\tout=out.concat(\"\\nTotal total: \"+(total+companyTotal));\r\n\t\tif(total+companyTotal!=tile.getPeopleSize()*tile.getAverageMoney()) {\r\n\t\t\tSTART=false;\r\n\t\t}\r\n\t\treturn out;\r\n\t}", "public BigDecimal sumGoodwillTotal(MaintenanceRequest po){\n\t\tBigDecimal total = new BigDecimal(0.00).setScale(2);\n\t\t\n\t\tfor(MaintenanceRequestTask task : po.getMaintenanceRequestTasks()){\n\t\t\ttotal = total.add(MALUtilities.isEmpty(task.getGoodwillCost()) ? new BigDecimal(0) : task.getGoodwillCost());\n\t\t}\n\t\t\n\t\treturn total;\t\t\n\t}", "@Override\n public USMoney calculatePrice() {\n USMoney sumPrice = new USMoney();\n for (int i = 0; i < curArrayIndex; i++) {\n sumPrice = sumPrice.add(items[i].getPrice());\n if (items[i].isFragile()) {\n sumPrice.addTo(10, 0);\n }\n }\n sumPrice.addTo(100, 0);\n return sumPrice;\n }", "BigDecimal getSumOfTransactionsRest(TransferQuery query);", "private double totalPrice(){\n\n double sum = 0;\n\n for (CarComponent carComponent : componentsCart) {\n sum += (carComponent.getCompPrice() * carComponent.getCompQuantity()) ;\n }\n return sum;\n }", "TotalInvoiceAmountType getTotalInvoiceAmount();", "Double getTotalSpent();", "public void amount() {\n \t\tfloat boxOHamt=boxOH*.65f*48f;\n \t\tSystem.out.printf(boxOH+\" boxes of Oh Henry ($0.65 x 48)= $%4.2f \\n\",boxOHamt);\n \t\tfloat boxCCamt=boxCC*.80f*48f;\n \t\tSystem.out.printf(boxCC+\" boxes of Coffee Crisp ($0.80 x 48)= $%4.2f \\n\", boxCCamt);\n \t\tfloat boxAEamt=boxAE*.60f*48f;\n \t\tSystem.out.printf(boxAE+\" boxes of Aero ($0.60 x 48)= $%4.2f \\n\", boxAEamt);\n \t\tfloat boxSMamt=boxSM*.70f*48f;\n \t\tSystem.out.printf(boxSM+\" boxes of Smarties ($0.70 x 48)= $%4.2f \\n\", boxSMamt);\n \t\tfloat boxCRamt=boxCR*.75f*48f;\n \t\tSystem.out.printf(boxCR+\" boxes of Crunchies ($0.75 x 48)= $%4.2f \\n\",boxCRamt);\n \t\tSystem.out.println(\"----------------------------------------------\");\n \t\t//display the total prices\n \t\tsubtotal=boxOHamt+boxCCamt+boxAEamt+boxSMamt+boxCRamt;\n \t\tSystem.out.printf(\"Sub Total = $%4.2f \\n\", subtotal);\n \t\ttax=subtotal*.07f;\n \t\tSystem.out.printf(\"Tax = $%4.2f \\n\", tax);\n \t\tSystem.out.println(\"==============================================\");\n \t\ttotal=subtotal+tax;\n \t\tSystem.out.printf(\"Amount Due = $%4.2f \\n\", total);\n \t}", "public BigDecimal sumCostAvoidanceTotal(MaintenanceRequest po){\n\t\tBigDecimal total = new BigDecimal(0.00).setScale(2);\n\t\t\n\t\tfor(MaintenanceRequestTask task : po.getMaintenanceRequestTasks()){\n\t\t\ttotal = total.add(MALUtilities.isEmpty(task.getCostAvoidanceAmount()) ? new BigDecimal(0) : task.getCostAvoidanceAmount());\n\t\t}\n\t\t\n\t\treturn total;\t\t\n\t}", "public double calculatePrice(Order order){\r\n return order.quantity * order.itemPrice -\r\n Math.max(0, order.quantity - 500) * order.itemPrice * 0.05 +\r\n Math.min(order.quantity * order.itemPrice * 0.1, 100);\r\n }", "public void addTotal() {\n for (int i = 0; i < itemsInOrder.size(); i++) {\n this.dblTotal += itemsInOrder.get(i).getPrice();\n }\n }", "public int getTotalAmount();", "public void totalPrice(){\n int total = 0;\n\n if (list_order.isEmpty()) {\n totalHarga.setText(\"Rp. \" + 0);\n }\n else {\n for (int i = 0; i < list_order.size(); i++) {\n total += list_order.get(i).getHarga();\n }\n totalHarga.setText(\"Rp. \" + total);\n }\n }", "@Override \r\n public double getPaymentAmount() \r\n { \r\n return getQuantity() * getPricePerItem(); // calculate total cost\r\n }", "public Money getTotalBalance();", "public double getCustomerMoney(){\n double total = 0.0;\n for(Coin c : customerMoney){\n total += c.getValue();\n }\n return total;\n }", "public double getTotal() {\n double total = 0.0;\n for (OrderItem i : getOrderItems()) {\n total += i.getOrderQuantity() * i.getPrice();\n }\n return total;\n }", "public static BigDecimal calcTotalMoney()\n {\n SharedPreferences defaultSP;\n defaultSP = PreferenceManager.getDefaultSharedPreferences(MainActivity.mActivity);\n manualTime = Integer.valueOf(defaultSP.getString(\"moneyMode\", \"4\"));\n boolean plus = PolyApplication.plus;\n PolyApplication app = ((PolyApplication) MainActivity.mActivity.getApplication());\n\n if(!plus)\n {\n\n if (manualTime == 4 && app.user.getMeals() > 0)\n {\n today.setToNow();\n int minutes = (today.hour * 60) + today.minute;\n if (minutes >= 420 && minutes <= 599)\n {\n money = mealWorth[0];\n } else if (minutes >= 600 && minutes <= 1019)\n {\n money = mealWorth[1];\n } else if (minutes >= 1020 && minutes <= 1214)\n {\n money = mealWorth[2];\n } else\n {\n money = mealWorth[3];\n }\n return money.subtract(moneySpent).setScale(2);\n } else if(app.user.getMeals() > 0)\n {\n return mealWorth[manualTime].subtract(moneySpent).setScale(2);\n }\n else\n {\n return new BigDecimal(0.00).subtract(moneySpent).setScale(2);\n }\n }\n else\n {\n return ((PolyApplication) MainActivity.mActivity.getApplication()).user.getPlusDollars().subtract(moneySpent);\n }\n }", "private double calculateMoneyInserted() {\r\n double amount = 0.0;\r\n\r\n for(VendingMachine.Coin coin : coins) {\r\n amount += coin.amount();\r\n }\r\n return amount;\r\n }", "private void getSum() {\n\t\tint sum =0;\r\n\t\t\r\n\t\tfor(int i=0; i<index; i++) {\r\n\t\t\tif(products[i] != null)\r\n\t\t\t\tsum += products[i].getPrice();\r\n\t\t}\r\n\t\tSystem.out.println(sum);\r\n\t}", "void calculateTotalPrice(){\n totalPrice = 0;\n cartContents.forEach(Product-> this.totalPrice = totalPrice + Product.getSellPrice());\n }", "public double getTotalCostOfOrder() {\n double total = 0;\n for (AbstractProduct item :\n this.itemsReceived) {\n total += item.getPrice();\n }\n return total;\n }", "public double getOrderTotalWithoutDiscount(String[] order) {\n\t\t//TODO\n\t\t\n\t\tdouble all=0.0;\n\t\tfor(String item:order) {\n\t\t\t\n\t\t\tall+=findItemPrice(item);\n\t\t}return all;\n\t\t\t\n\t\t\t\n\t\t}", "public void calculatePriceOrder() {\n log.info(\"OrdersBean : calculatePriceOrder!\");\n this.priceOrder = 0;\n for (ContractsEntity c : contractsBean.getContractsEntities()\n ) {\n this.priceOrder += c.getFinalPrice();\n }\n }", "public void addCash(double added_cash) {\n cash += added_cash;\n }", "public BigDecimal getGrandTotal();", "public BigDecimal getGrandTotal();", "@Override\n public double getTotalPrice(int BTWpercentage) {\n double price = 0.0;\n double percentage = BTWpercentage / 100;\n\n for (PurchaseOrderLine orderline : orderLines) {\n price += orderline.getLineTotal();\n }\n price += price * BTWpercentage;\n\n return price;\n }", "public BigDecimal countTotalOrderPrice(Order order) {\n BigDecimal totalSum = new BigDecimal(0);\n\n\n // iterate through all products and count total price of them -\n // TODO: can be speeded up by adding the order_total_price parameter to the order object/table\n if (order != null && order.getOrderProducts().size() > 0) {\n Set<Product> orderProducts = order.getOrderProducts();\n for (Product product : orderProducts) {\n totalSum = totalSum.add(product.getProduct_price());\n }\n\n }\n return totalSum;\n }", "public Integer calculateSum() {\n logger.debug(\"Calculating and returning the sum of expenses.\");\n return listOfTargets.stream().map(T::getAmount).reduce(0, Integer::sum);\n }", "public Double getBalance(){\n Double sum = 0.0;\n // Mencari balance dompet dari transaksi dengan cara menghitung total transaksi\n for (Transaction transaction : transactions) {\n sum += transaction.getAmount().doubleValue();\n }\n return sum;\n }", "public double getMarketTotal(double kilos) {\n double total;\n total = kilos * potatoesPrice;\n return total;\n }", "@Override\r\n\tpublic double calculate(double account, double money) {\n\t\treturn account-money;\r\n\t}", "public BigDecimal getOrderMoney() {\n return orderMoney;\n }", "BigDecimal getSumOfTransactions(StatisticalDTO dto) throws DaoException;", "public int purchase (CustomerOrder customerOrder){\n int price = 0;\n for (OrderedAmountPreProduct orderedAmountPreProduct : customerOrder.getOrderedAmountPreProducts()) {\n price += orderedAmountPreProduct.getProduct().getPrice() * orderedAmountPreProduct.getQte();\n }\n return price;\n\n\n }", "public void calculateOrderTotals() {\n NumberFormat formatter = NumberFormat.getCurrencyInstance();\n\n //order number increases for each order\n orderNo++;\n System.out.println(\"- \" + \"OrderNo: \" + orderNo + \" -\");\n\n //cycle through the items in the order and add to the totals\n for(Item i : items) {\n\n incrementOrderTotal(i.getNumOfItems() * i.getPriceWithTax());\n incrementOrderSalesTax(i.getNumOfItems() * i.getTaxOnItem());\n\n System.out.println(i.getDescrip() + formatter.format(i.getPriceWithTax()));\n }\n\n //print out totals\n System.out.println(\"Sales taxes: \" + formatter.format(Math.round(getOrderSalesTax() * 100.0) / 100.0));\n System.out.println(\"Order total: \" + formatter.format(Math.round(getOrderTotal() * 100.0) / 100.0));\n System.out.println(\"\\n\");\n }", "public KualiDecimal getCurrencyTotal(CashDrawer drawer);", "public BigDecimal getOrderTotal()\r\n\t{\r\n\t\tSystem.out.println(\"Order Total is: \" + subtotal);\r\n\t\treturn subtotal;\r\n\t}", "public void calculateAmount() {\n totalAmount = kurv.calculateTotalAmount() + \" DKK\";\n headerPrice.setText(totalAmount);\n }", "public double calcTotal(){\n\t\tdouble total; // amount to be returned\n\t\t\n\t\t// add .50 cents for any milk that isn't whole or skim, and .35 cents for flavoring\n\t\tif ((milk != \"whole\" && milk != \"skim\") && flavor != \"no\"){\n\t\t\tcost += 0.85;\t\n\t\t}\n\t\t\n\t\t// add .35 cents for flavoring\n\t\telse if (flavor != \"no\"){\n\t\t\tcost += 0.35;\t\n\t\t}\n\t\t\n\t\t// add .50 cents for milk that isn't whole or skim\n\t\telse if (milk != \"whole\" && milk != \"skim\"){\n\t\t\tcost += 0.50;\n\t\t}\n\t\t\n\t\telse{\n\t\t}\n\t\t\n\t\t// add .50 cents for extra shot of espresso\n\t\tif (extraShot != false){\n\t\t\ttotal = cost + 0.50;\n\t\t}\n\t\telse\n\t\t\ttotal = cost;\n\t\t\n\t\treturn total;\n\t}", "public BigDecimal getTotalCashPayment() {\n return totalCashPayment;\n }", "BigDecimal getAmount();", "private MMDecimal getCustomerReturnItemPrice(OrderDetail odetail) {\r\n MMDecimal result = MMDecimal.ZERO;\r\n MMDecimal itemCostAmt = odetail.getOrderItemPriceAmt() == null ? MMDecimal.ZERO : odetail\r\n .getOrderItemPriceAmt();\r\n \r\n MMDecimal itemTaxAmt = odetail.getOrderItemTaxAmt() == null ? MMDecimal.ZERO : odetail\r\n .getOrderItemTaxAmt();\r\n result = itemCostAmt.add(itemTaxAmt);\r\n return result;\r\n }", "int getMoney();", "public Double getTotalBuyMoney() {\r\n return totalBuyMoney;\r\n }", "public double getTotal(){\n\t\tBigDecimal total =BigDecimal.valueOf(0);\n\t\tfor(CartItem cartItem : map.values()){\n\t\t\ttotal = total.add(BigDecimal.valueOf(cartItem.getSubtotal())) ;\n\t\t}\t\t\n\t\treturn total.doubleValue();\n\t}", "public float getTotalPrice(){\n return price * amount;\n }", "public BigDecimal getPayAmt();", "public float totalCost() {\n\t\tttCost = 0;\n\t\tfor (int i = 0; i < itemsOrdered.size(); i++) {\n\t\t\tttCost += itemsOrdered.get(i).getCost();\n\t\t}\n\t\treturn ttCost;\n\t}", "public BigDecimal getTotalPrice() {\n\t\t// the current total cost which the customer owes in the transaction\n\t\tBigDecimal total = new BigDecimal(0);\n\n\t\tArrayList<Item> currentPurchases = purchaseList.getCurrentPurchases(); \n\n\t\tfor (Item item : currentPurchases) {\n\t\t\ttotal = total.add(this.getItemPrice(item));\n\t\t}\n\n\t\treturn total;\n\t}", "public BigDecimal getLineNetAmt();", "public static void extract_money(){\n TOTALCMONEY = TOTALCMONEY - BALANCERETRIEVE; //the total cashier money equals the total cashier money minus the retrieve request\r\n BALANCE = BALANCE - BALANCERETRIEVE; //the user balance equals the account minus the retrieve request\r\n }", "double getTotalProfit();", "BigDecimal getSubtotal();", "public BigDecimal getTotal() {\n BigDecimal total = new BigDecimal(0);\n for (Item item : items){\n int quantity = item.getQuantity();\n BigDecimal subtotal = item.getPrice().multiply(new BigDecimal(quantity));\n total = total.add(subtotal);\n }\n return total;\n }", "public synchronized double getTotal(){\n double totalPrice=0;\n \n for(ShoppingCartItem item : getItems()){\n totalPrice += item.getTotal();\n }\n \n return totalPrice;\n }", "public void addCash(double amount) {\r\n cash += amount;\r\n }", "public double obtener_total(){\r\n double total_ventas = precio*unidades;\r\n return total_ventas;\r\n }", "double getTotalCost();", "private double requestCashPayment(double total) {\n double paid = 0;\n while (paid < total) {\n double entered = ScannerHelper.getDoubleInput(\"Enter amount paid: \", 0);\n paid += entered;\n System.out.printf(\"Accepted $%.2f in cash, Remaining amount to pay: $%.2f\\n\", entered, (total - paid >= 0) ? total - paid : 0);\n }\n return paid;\n }", "public int calcTotalPrice(){\r\n\t\tint flightPrice = flight.getFlightPrice();\r\n\t\tint bagPrice = nrBag*LUGGAGE_PRICE;\r\n\t\tthis.totalPrice = bagPrice + nrAdult*flightPrice + nrChildren*1/2*flightPrice;\r\n\t\treturn this.totalPrice;\r\n\t}", "double getSubtotal();", "double getSubtotal();", "public double calculate_total_sales_of_transaction() {\n char ismember = 'n';\n discounts = 1;\n String member_typ = \"null\";\n ismember = order.getIsMember();\n member_typ = order_member.getMemberType();\n\n total_sales_of_transaction = order.getBike().getPrice();\n\n if (Character.toUpperCase(ismember) == 'Y') {\n if (member_typ == \"Premium\") {\n discounts = 0.85;\n } else {\n discounts = 0.9;\n }\n }\n double price = total_sales_of_transaction * discounts;\n return price;\n }", "public double getInvoiceAmount(){\n\t\t// declare a local variable of type double to store the invoice's total price\n\t\tdouble totalPrice;\n\t\t// the total price is given my multiplying the price per unit with the quantity\n\t\ttotalPrice = price * quantity;\t\t\n\t\t// return the value stored in the local variable totalPrice\n\t\treturn totalPrice;\n\t}", "private String getBillPrice() {\n double cost = 0.00;\n\n for (MenuItem item : bill.getItems()) {\n cost += (item.getPrice() * item.getQuantity());\n cost += item.getExtraIngredientPrice();\n cost -= item.getRemovedIngredientsPrice();\n }\n\n return String.format(\"%.2f\", cost);\n }", "BigDecimal getSumaryTechoCveFuente(BudgetKeyEntity budgetKeyEntity);", "public float totalCost() {\r\n float total = 0;\r\n for (int i=0; i<numItems; i++) {\r\n total += cart[i].getPrice();\r\n }\r\n return total;\r\n }", "private CharSequence calculateTotalPrice() {\n float totalPrice = 0.0f;\n totalPrice += UserScreen.fishingRodQuantity * 25.50;\n totalPrice += UserScreen.hockeyStickQuantity * 99.99;\n totalPrice += UserScreen.runningShoesQuantity * 85.99;\n totalPrice += UserScreen.proteinBarQuantity * 5.25;\n totalPrice += UserScreen.skatesQuantity * 50.79;\n return Float.toString(totalPrice);\n }", "public int getTotal() {\r\n\r\n\t\treturn getAmount() + getPrice();\r\n\r\n\t}", "org.adscale.format.opertb.AmountMessage.Amount getExchangeprice();", "public double sumTransactions() {\n\t\treturn checkIfTransactionsExist(true);\n\t}", "public BigDecimal total() {\n return executor.calculateTotal(basket);\n }" ]
[ "0.76328504", "0.7591799", "0.74239916", "0.7211771", "0.70817214", "0.7055743", "0.69442207", "0.6874344", "0.68077695", "0.68077695", "0.67669576", "0.67460436", "0.6715975", "0.6671724", "0.65934557", "0.6585992", "0.65277624", "0.6524952", "0.6521958", "0.6520399", "0.6494182", "0.64807254", "0.6471855", "0.6461431", "0.6461431", "0.6454039", "0.64464885", "0.6429899", "0.6422223", "0.6421649", "0.64055085", "0.64005363", "0.6375154", "0.6374922", "0.6367449", "0.63654053", "0.6362083", "0.6345151", "0.634169", "0.63342947", "0.63335675", "0.63161", "0.6315012", "0.6307427", "0.62956643", "0.62912947", "0.62596965", "0.62562305", "0.6252099", "0.62493503", "0.62467504", "0.624669", "0.624669", "0.6234848", "0.623306", "0.622084", "0.6208611", "0.6208383", "0.6205957", "0.6204482", "0.61981386", "0.61981106", "0.619131", "0.6172327", "0.61699957", "0.61638945", "0.61603415", "0.6156753", "0.6149922", "0.6147595", "0.61388874", "0.61351234", "0.61272794", "0.611454", "0.61098063", "0.6104209", "0.6095929", "0.60952514", "0.60888404", "0.6085561", "0.6084389", "0.60774285", "0.6074325", "0.60664785", "0.60635453", "0.60619706", "0.60556734", "0.6036936", "0.603534", "0.603534", "0.60193175", "0.60176855", "0.6008463", "0.6004518", "0.59995747", "0.59984213", "0.5992568", "0.5992183", "0.5988541", "0.598715" ]
0.81355935
0
Berkeley DB interface of DAO
public interface BerkeleydbDao<T> { /** * open database * */ public void openConnection(String filePath, String databaseName) throws DatabaseException; /** * 关闭数据库 * */ public void closeConnection() throws DatabaseException; /** * insert * */ public void save(String name, T t) throws DatabaseException; /** * delete * */ public void delete(String name) throws DatabaseException; /** * update * */ public void update(String name, T t) throws DatabaseException; /** * select * */ public T get(String name) throws DatabaseException; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract DbDAO AccessToDAO();", "public interface DAOjdbc\n{\n Boolean admin_log(String u,String p) throws SQLException, ClassNotFoundException;\n Boolean add_topic(String l,String n,String r) throws SQLException, ClassNotFoundException;\n List<Topic> topic(String t) throws SQLException, ClassNotFoundException;\n List<Topic> Select_topic(String i) throws SQLException, ClassNotFoundException;\n Boolean add_tou(String p) throws SQLException, ClassNotFoundException;\n Boolean add_Info(String n,String c,String t,String m) throws SQLException, ClassNotFoundException;\n Boolean add_user(String n,String p,String pw,String t,String m) throws SQLException, ClassNotFoundException;\n User select_user(String u,String p) throws SQLException, ClassNotFoundException;\n}", "public interface DAO <T> {\n void add (T t);\n void delete (T t);\n boolean find (T t);\n void addToBase(T t);\n}", "public abstract ODatabaseInternal<?> openDatabase();", "public interface UserDAO {\n int deleteByPrimaryKey(Long userId);\n\n void insert(User record);\n\n void insertSelective(User record);\n\n void insertBatch(List<User> records);\n\n User selectByPrimaryKey(Long userId);\n\n int updateByPrimaryKeySelective(User record);\n\n int updateByPrimaryKey(User record);\n}", "public interface ColumnDAO {\r\n public List queryObjs(Map condition) throws Exception;\r\n public List queryObjs(Map condition, int offset, int limit) throws Exception;\r\n public Column queryObj(String colid) throws Exception;\r\n public int queryCountObjs(Map condition) throws Exception;\r\n public int queryCountObj(String colid) throws Exception;\r\n public void execInsert(Column column) throws Exception;\r\n public void execUpdate(Column column) throws Exception;\r\n public void execDelete(String colid) throws Exception;\r\n}", "public interface BaseDao {\n\n int getTotalCount(SelectArgs selectArgs);\n\n List<Map<String,Object>> queryList(SelectArgs selectArgs);\n\n int addRecord (InsertArgs insertArgs);\n}", "public interface DAOOperations<T> {\n\t\n\t\n\t/**\n\t * Executes the SQL insert, update or delete statements and return the\n\t * number of affected rows.\n\t * @param sql the SQL statement\n\t * @return the number of executed inserts/deletes/updates\n\t * @throws DataAccessException\n\t */\n\tpublic int updateDb (final String sql) throws DataAccessException;\n\t\n\t/**\n\t * Gets the row count number given the sql query.\n\t * \n\t * @param sql the sql query.\n\t * @return the row count number.\n\t * @throws DataAccessException\n\t */ \n\tpublic int selectRowCount (final String sql) throws DataAccessException;\n\t\n\t/**\n\t * Gets a list of beans given a sql query.\n\t * \n\t * @param sql the sql query.\n\t * @return a list of beans.\n\t * @throws DataAccessException\n\t */\n\t@SuppressWarnings(\"hiding\")\n\tpublic <T> List<T> selectDb (final String sql, T bean) throws DataAccessException;\n\t\n\n}", "public interface DAO<T> {\n boolean save(T t);\n T get(Serializable id);\n boolean update(T t);\n boolean delete(Serializable id);\n}", "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 DAOCompanies {\n\n void create(Company company);\n boolean update (int companyId, Company company);\n Company read(int companyId);\n boolean delete(int companyId);\n void addCompanyToDeveloper(int compId, int devId);\n\n}", "public interface DBContext {\n <E> boolean persist(E entity) throws SQLException, IllegalAccessException;\n\n <E> Iterable<E> find(Class<E> table) throws SQLException, IllegalAccessException, ClassNotFoundException, InstantiationException;\n\n <E> Iterable<E> find(Class<E> table, String where) throws SQLException, IllegalAccessException, ClassNotFoundException, InstantiationException;\n\n <E> E findFirst(Class<E> table) throws SQLException, IllegalAccessException, InstantiationException;\n\n <E> E findFirst(Class<E> table, String where) throws SQLException, IllegalAccessException, InstantiationException;\n\n void closeConn() throws SQLException ;\n}", "public interface DAO {\n Connection getConexion() throws SQLException;\n void close() throws SQLException;\n}", "public interface DAOInterface<T> {\n T create();\n void adicionar(T obj);\n void excluir(T obj);\n void atualizar(T obj);\n List<T>listar();\n T findForId(int id);\n T findForString(String string);\n}", "public interface DcSquadDAO {\n /**\n * Insert one <tt>DcSquadDO</tt> object to DB table <tt>dc_squad</tt>, return primary key\n *\n * <p>\n * The sql statement for this operation is <br>\n * <tt>insert into dc_squad(squad_name,squad_desc,axiser,cubers,followers,investors,status,gmt_create,gmt_modify,attention) values (?, ?, ?, ?, ?, ?, ?, CURRENT_TIMESTAMP, CURRENT_TIMESTAMP, ?)</tt>\n *\n *\t@param dcSquad\n *\t@return long\n *\t@throws DataAccessException\n */\n public long insert(DcSquadDO dcSquad) throws DataAccessException;\n\n /**\n * Query DB table <tt>dc_squad</tt> for records.\n *\n * <p>\n * The sql statement for this operation is <br>\n * <tt>select * from dc_squad</tt>\n *\n *\t@return List<DcSquadDO>\n *\t@throws DataAccessException\n */\n public List<DcSquadDO> load() throws DataAccessException;\n\n /**\n * Query DB table <tt>dc_squad</tt> for records.\n *\n * <p>\n * The sql statement for this operation is <br>\n * <tt>select * from dc_squad where (id = ?)</tt>\n *\n *\t@param id\n *\t@return DcSquadDO\n *\t@throws DataAccessException\n */\n public DcSquadDO loadById(long id) throws DataAccessException;\n\n /**\n * Query DB table <tt>dc_squad</tt> for records.\n *\n * <p>\n * The sql statement for this operation is <br>\n * <tt>select * from dc_squad where (squad_name = ?)</tt>\n *\n *\t@param squadName\n *\t@return DcSquadDO\n *\t@throws DataAccessException\n */\n public DcSquadDO loadByName(String squadName) throws DataAccessException;\n\n /**\n * Update DB table <tt>dc_squad</tt>.\n *\n * <p>\n * The sql statement for this operation is <br>\n * <tt>update dc_squad set squad_name=?, squad_desc=?, axiser=?, cubers=?, followers=?, investors=?, status=?, gmt_modify=CURRENT_TIMESTAMP where (id = ?)</tt>\n *\n *\t@param dcSquad\n *\t@return int\n *\t@throws DataAccessException\n */\n public int update(DcSquadDO dcSquad) throws DataAccessException;\n\n /**\n * Delete records from DB table <tt>dc_squad</tt>.\n *\n * <p>\n * The sql statement for this operation is <br>\n * <tt>delete from dc_squad where (id = ?)</tt>\n *\n *\t@param id\n *\t@return int\n *\t@throws DataAccessException\n */\n public int deleteById(long id) throws DataAccessException;\n\n /**\n * Query DB table <tt>dc_squad</tt> for records.\n *\n * <p>\n * The sql statement for this operation is <br>\n * <tt>select * from dc_squad where ((squad_name = ?) AND (axiser = ?) AND (cubers = ?) AND (followers = ?) AND (investors = ?) AND (status = ?) AND (gmt_create = ?) AND (gmt_modify = ?))</tt>\n *\n *\t@param squadName\n *\t@param axiser\n *\t@param cubers\n *\t@param followers\n *\t@param investors\n *\t@param status\n *\t@param gmtCreate\n *\t@param gmtModify\n *\t@param pageSize\n *\t@param pageNum\n *\t@return PageList\n *\t@throws DataAccessException\n */\n public PageList query(String squadName, String axiser, String cubers, String followers,\n String investors, String status, Date gmtCreate, Date gmtModify,\n int pageSize, int pageNum) throws DataAccessException;\n\n /**\n * Update DB table <tt>dc_squad</tt>.\n *\n * <p>\n * The sql statement for this operation is <br>\n * <tt>update dc_squad set attention=? where (id = ?)</tt>\n *\n *\t@param attention\n *\t@param id\n *\t@return int\n *\t@throws DataAccessException\n */\n public int updateAttention(long attention, long id) throws DataAccessException;\n\n}", "public interface BannedDAO {\n public void addBanned(Banned banned) throws SQLException;\n public void updateBanned(Long banned_id, Banned banned) throws SQLException;\n public Banned getBannedById(Long banned_id) throws SQLException;\n public Collection getAllBanneds() throws SQLException;\n public void deleteBanned(Banned banned) throws SQLException;\n}", "public interface ItemDAO extends DSpaceObjectDAO<Item> {\n\n public Iterator<Item> findAll(Context context, boolean archived) throws SQLException;\n\n public Iterator<Item> findAll(Context context, boolean archived, boolean withdrawn) throws SQLException;\n\n public Iterator<Item> findBySubmitter(Context context, EPerson eperson) throws SQLException;\n\n public Iterator<Item> findByMetadataField(Context context, MetadataField metadataField, String value, boolean inArchive) throws SQLException;\n\n public Iterator<Item> findByAuthorityValue(Context context, MetadataField metadataField, String authority, boolean inArchive) throws SQLException;\n\n public Iterator<Item> findArchivedByCollection(Context context, Collection collection, Integer limit, Integer offset) throws SQLException;\n\n public Iterator<Item> findAllByCollection(Context context, Collection collection) throws SQLException;\n\n}", "public interface BaseDao<T> {\n\n T get(Long id);\n\n int save(T t);\n\n int update(T t);\n\n int delete(T t);\n\n int delete(Long id);\n\n T getObj(String sql, Object... args);\n\n Long count(String sql, Object... args);\n\n List<T> getList(String sql);\n\n List<T> getList(String frameSql, Object... args);\n\n Page<T> getPage(Page page, String frameSql, Object[] args);\n\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 NoteDAO {\r\n\t\r\n\t@RegisterMapper(NoteMapper.class)\r\n\t@SqlQuery(\"SELECT * FROM notes WHERE user_id = :user_id\")\r\n\tSet<Note> findByUserId(@Bind(\"user_id\") int userId);\r\n\t\r\n\t@RegisterMapper(NoteMapper.class)\r\n\t@SqlQuery(\"SELECT * FROM notes WHERE id = :id\")\r\n\tNote findById(@Bind(\"id\") int id);\r\n\t\r\n\t@RegisterMapper(NoteMapper.class)\r\n\t@SqlQuery(\"SELECT * FROM notes WHERE id = :id AND user_id = :user_id\")\r\n\tNote findByIdAndUserId(@Bind(\"id\") int id, @Bind(\"user_id\") int user_id);\r\n\t\r\n\t@SqlUpdate(\"INSERT INTO notes (title, note, user_id) VALUES (:s.title, :s.note, :user_id)\")\r\n\t@GetGeneratedKeys\r\n\tint create(@BindBean(\"s\") Note note, @Bind(\"user_id\") int user_id);\r\n\t\r\n\t@SqlUpdate(\"UPDATE notes SET title = :title, note = :note WHERE id = :id\")\r\n\tint save(@BindBean Note note);\r\n\t\r\n\t@SqlUpdate(\"DELETE FROM notes WHERE id = :id\")\r\n\tint delete(@Bind(\"id\") int id);\r\n}", "public interface DAO<T, ID> {\n\n /**\n * A method that saves the specified object.\n *\n * @param t - object name.\n * @return - this object.\n */\n T save(T t);\n\n /**\n * The method that gets the object by the identifier.\n *\n * @param id - ID.\n * @return - object by this ID.\n */\n T getById(ID id);\n\n /**\n * Method to delete an object.\n *\n * @param id - ID.\n * @return - true (if object was removed).\n */\n boolean delete(ID id);\n\n /**\n * Method for retrieving all table objects.\n *\n * @return - got objects.\n */\n List<T> getAll();\n\n}", "public interface UserDAO {\n\n boolean create(User user) throws SQLException;\n List<User> getAll();\n User getUser(Integer id);\n boolean update(User user);\n boolean delete(User user);\n}", "public interface WorkerDAO {\r\n \r\n\tpublic List<Worker> findById(Integer id);\r\n\tpublic List<Worker> findAll();\r\n\tpublic void save(Worker worker);\r\n\tpublic void edit(Worker worker);\r\n\tpublic void delete(Worker worker);\r\n public int getNextPrimaryKey(); \r\n}", "public interface ClerkShiftRecordDAO {\n\n int insert(ClerkShiftDO clerkShiftDO);\n\n Page<ClerkShiftVO> query(ClerkShiftBO clerkShiftBO,RowBounds build);\n}", "public interface LeadersDao {\r\n\r\n @Select(\"select * from leaders where dept_id=#{deptId}\")\r\n List<Leaders> selectLeadersByDept(@Param(\"deptId\") Integer dept_id);\r\n \r\n @Select(\"select * from leaders where lid=#{lid}\")\r\n Leaders selectLeadersByid(@Param(\"lid\") Integer lid);\r\n\r\n @Insert(\"INSERT INTO leaders (lid,dept_id) \" +\r\n \" VALUES (#{lid},#{deptId})\")\r\n int insertLeader(@Param(\"lid\")Integer lid, @Param(\"deptId\")Integer dept_id);\r\n\r\n @Delete(\"delete from leaders where lid = #{lid}\")\r\n int deleteLeader(Integer lid);\r\n}", "public interface SsoAuthDAO {\r\n\t/**\r\n\t * Insert one <tt>SsoAuthDO</tt> object to DB table <tt>sso_auth</tt>, return primary key\r\n\t *\r\n \t * <p>\r\n \t * Description for this operation is<br>\r\n \t * <tt></tt>\r\n\t * <p>\r\n\t * The sql statement for this operation is <br>\r\n\t * <tt>insert into sso_auth(auth_code,auth_name,app_id,is_enable,description,last_modifier,gmt_create,gmt_modified) values (?, ?, ?, ?, ?, ?, ?, ?)</tt>\r\n\t *\r\n\t *\t@param ssoAuth\r\n\t *\t@return Integer\r\n\t *\t@throws DataAccessException\r\n\t */\t \r\n public Integer insert(SsoAuthDO ssoAuth) throws DataAccessException;\r\n\r\n\t/**\r\n\t * Delete records from DB table <tt>sso_auth</tt>.\r\n\t *\r\n \t * <p>\r\n \t * Description for this operation is<br>\r\n \t * <tt></tt>\r\n\t * <p>\r\n\t * The sql statement for this operation is <br>\r\n\t * <tt>delete from sso_auth where (id = ?)</tt>\r\n\t *\r\n\t *\t@param id\r\n\t *\t@return int\r\n\t *\t@throws DataAccessException\r\n\t */\t \r\n public int delete(Integer id) throws DataAccessException;\r\n\r\n\t/**\r\n\t * Update DB table <tt>sso_auth</tt>.\r\n\t *\r\n \t * <p>\r\n \t * Description for this operation is<br>\r\n \t * <tt></tt>\r\n\t * <p>\r\n\t * The sql statement for this operation is <br>\r\n\t * <tt>update sso_auth set auth_code=?, auth_name=?, app_id=?, is_enable=?, description=?, last_modifier=?, gmt_modified=? where (id = ?)</tt>\r\n\t *\r\n\t *\t@param ssoAuth\r\n\t *\t@return int\r\n\t *\t@throws DataAccessException\r\n\t */\t \r\n public int update(SsoAuthDO ssoAuth) throws DataAccessException;\r\n\r\n\t/**\r\n\t * Query DB table <tt>sso_auth</tt> for records.\r\n\t *\r\n \t * <p>\r\n \t * Description for this operation is<br>\r\n \t * <tt></tt>\r\n\t * <p>\r\n\t * The sql statement for this operation is <br>\r\n\t * <tt>select id, auth_code, auth_name, app_id, is_enable, description, last_modifier, gmt_create, gmt_modified from sso_auth where (id = ?)</tt>\r\n\t *\r\n\t *\t@param id\r\n\t *\t@return SsoAuthDO\r\n\t *\t@throws DataAccessException\r\n\t */\t \r\n public SsoAuthDO query(Integer id) throws DataAccessException;\r\n\r\n\t/**\r\n\t * Query DB table <tt>sso_auth</tt> for records.\r\n\t *\r\n \t * <p>\r\n \t * Description for this operation is<br>\r\n \t * <tt></tt>\r\n\t * <p>\r\n\t * The sql statement for this operation is <br>\r\n\t * <tt>select id, auth_code, auth_name, app_id, is_enable, description, last_modifier, gmt_create, gmt_modified from sso_auth where (app_id = ?)</tt>\r\n\t *\r\n\t *\t@param appId\r\n\t *\t@return List<SsoAuthDO>\r\n\t *\t@throws DataAccessException\r\n\t */\t \r\n public List<SsoAuthDO> queryByAppId(Integer appId) throws DataAccessException;\r\n\r\n\t/**\r\n\t * Query DB table <tt>sso_auth</tt> for records.\r\n\t *\r\n \t * <p>\r\n \t * Description for this operation is<br>\r\n \t * <tt></tt>\r\n\t * <p>\r\n\t * The sql statement for this operation is <br>\r\n\t * <tt>select id, auth_code, auth_name, app_id, is_enable, description, last_modifier, gmt_create, gmt_modified from sso_auth where (auth_code = ?)</tt>\r\n\t *\r\n\t *\t@param authCode\r\n\t *\t@return SsoAuthDO\r\n\t *\t@throws DataAccessException\r\n\t */\t \r\n public SsoAuthDO queryByAuthCode(String authCode) throws DataAccessException;\r\n\r\n\t/**\r\n\t * Query DB table <tt>sso_auth</tt> for records.\r\n\t *\r\n \t * <p>\r\n \t * Description for this operation is<br>\r\n \t * <tt></tt>\r\n\t * <p>\r\n\t * The sql statement for this operation is <br>\r\n\t * <tt>select id, auth_code, auth_name, app_id, is_enable, description, last_modifier, gmt_create, gmt_modified from sso_auth where (auth_name = ?)</tt>\r\n\t *\r\n\t *\t@param authName\r\n\t *\t@return SsoAuthDO\r\n\t *\t@throws DataAccessException\r\n\t */\t \r\n public SsoAuthDO queryByAuthName(String authName) throws DataAccessException;\r\n\r\n\t/**\r\n\t * Query DB table <tt>sso_auth</tt> for records.\r\n\t *\r\n \t * <p>\r\n \t * Description for this operation is<br>\r\n \t * <tt></tt>\r\n\t * <p>\r\n\t * The sql statement for this operation is <br>\r\n\t * <tt>select b.id id, b.auth_code auth_code, b.auth_name auth_name, b.app_id app_id, b.is_enable is_enable, c.description description, b.last_modifier last_modifier, b.gmt_create gmt_create, b.gmt_modified gmt_modified from sso_role a, sso_auth b, sso_role_auth c where ((a.id = c.role_id) AND (b.id = c.auth_id))</tt>\r\n\t *\r\n\t *\t@param roleName\r\n\t *\t@return List<SsoAuthDO>\r\n\t *\t@throws DataAccessException\r\n\t */\t \r\n public List<SsoAuthDO> queryByRoleName(String roleName) throws DataAccessException;\r\n\r\n\t/**\r\n\t * Query DB table <tt>sso_auth</tt> for records.\r\n\t *\r\n \t * <p>\r\n \t * Description for this operation is<br>\r\n \t * <tt></tt>\r\n\t * <p>\r\n\t * The sql statement for this operation is <br>\r\n\t * <tt>select e.id id, e.app_id app_id, e.auth_code auth_code, e.auth_name auth_name, e.description description, e.is_enable is_enable, e.last_modifier last_modifier, e.gmt_create gmt_create, e.gmt_modified gmt_modified from sso_user a, sso_user_role b, sso_role c, sso_role_auth d, sso_auth e, sso_app f where ((a.id = b.user_id) AND (b.role_id = d.role_id) AND (d.auth_id = e.id) AND (e.app_id = f.id) AND (a.is_enable = 1) AND (e.is_enable = 1))</tt>\r\n\t *\r\n\t *\t@param userId\r\n\t *\t@param appName\r\n\t *\t@return List<SsoAuthDO>\r\n\t *\t@throws DataAccessException\r\n\t */\t \r\n public List<SsoAuthDO> queryByAppIdAndUserName(String userId, String appName) throws DataAccessException;\r\n\r\n\t/**\r\n\t * Delete records from DB table <tt>sso_auth</tt>.\r\n\t *\r\n \t * <p>\r\n \t * Description for this operation is<br>\r\n \t * <tt></tt>\r\n\t * <p>\r\n\t * The sql statement for this operation is <br>\r\n\t * <tt>delete from sso_auth where (description LIKE ?)</tt>\r\n\t *\r\n\t *\t@param description\r\n\t *\t@return int\r\n\t *\t@throws DataAccessException\r\n\t */\t \r\n public int deleteByDesc(String description) throws DataAccessException;\r\n\r\n}", "public interface GvEstadoDocumentoDAO extends GenericOracleAsignacionesDAO<GvEstadoDocumento, Long>{\n public GvEstadoDocumento buscarPorCodigo(long idEstadoDocumento);\n public GvEstadoDocumento buscarPorNombre(String descripcion);\n\tpublic List<GvEstadoDocumento> buscarGvEstadoDocumentos();\n\tpublic void guardarGvEstadoDocumento(GvEstadoDocumento gvEstadoDocumento) throws EducacionDAOException;\n}", "public interface BookDAO {\n\n\tvoid createBook(Book book) throws DuplicatedBookEntryException;\n\t\n\tCollection<Book> readBooks();\n\t\n\tvoid updateBook(Book book) throws EntryNotFoundExpcetion;\n\tvoid deleteBook(Book book) throws EntryNotFoundExpcetion;\n\t\n}", "public interface RelayDao {\n public void insert(RelayDto relay) throws SQLException;\n\n public void insertTranslation(Long relayId, Long langId, String translation) throws SQLException;\n\n public void update(RelayDto relay) throws SQLException;\n\n public void remove(Long relayId) throws SQLException;\n\n public RelayDto getById(Long id) throws SQLException;\n\n public List<RelayDto> getAll() throws SQLException;\n\n public List<RelayDto> getAll(Long langId) throws SQLException;\n}", "public interface BaseDao<T , PK> {\n\n /**\n * 获取列表\n *\n * @param queryRule\n * 查询条件\n * @return\n * @throws Exception\n */\n List<T> select(QueryRule queryRule) throws Exception;\n\n /**\n * 获取分页结果\n *\n * @param queryRule\n * 查询条件\n * @param pageNo\n * 页码\n * @param pageSize\n * 每页条数\n * @return\n * @throws Exception\n */\n Page<?> select(QueryRule queryRule , int pageNo , int pageSize) throws Exception;\n\n /**\n * 根据SQL获取列表\n *\n * @param sql\n * sql语句\n * @param args\n * 参数\n * @return\n * @throws Exception\n */\n List<Map<String , Object>> selectBySql(String sql , Object... args) throws Exception;\n\n /**\n * 根据SQL获取分页\n *\n * @param sql\n * SQL语句\n * @param param\n *\n * @param pageNo\n * 页码\n * @param pageSize\n * 每条页码数\n * @return\n * @throws Exception\n */\n Page<Map<String , Object>> selectBySqlToPage(String sql , Object[] param , int pageNo , int pageSize) throws Exception;\n\n /**\n * 删除一条记录\n * @param entity\n * entity中的id不能为空。如果id为空,其他条件不能为空。都为空不执行。\n * @return\n * @throws Exception\n */\n boolean delete(T entity) throws Exception;\n\n /**\n * 批量删除\n * @param list\n * @return 返回受影响的行数\n * @throws Exception\n */\n int deleteAll(List<T> list) throws Exception;\n\n /**\n * 插入一条记录并返回插入后的ID\n * @param entity\n * 只要entity不等于null,就执行插入\n * @return\n * @throws Exception\n */\n PK insertAndReturnId(T entity) throws Exception;\n\n /**\n * 插入一条记录,自增id\n * @param entity\n * @return\n * @throws Exception\n */\n boolean insert(T entity) throws Exception;\n\n /**\n * 批量插入\n *\n * @param list\n * @return\n * 返回受影响的行数\n * @throws Exception\n */\n int insertAll(List<T> list) throws Exception;\n\n /**\n * 修改一条记录\n * @param entity\n * entity中的ID不能为空。如果ID为空,其他条件不能为空。都为空不执行。\n * @return\n * @throws Exception\n */\n boolean update(T entity) throws Exception;\n}", "public interface DAO<PK extends Serializable, T> {\n\t/**\n\t * Enumerate para saber de que forma ordenar los resultados ASC o DESC\n\t * \n\t * @author Victor Huerta\n\t * \n\t */\n\tpublic enum Ord {\n\t\tASCENDING(\"ASC\"), DESCENDING(\"DESC\"), UNSORTED(\"\");\n\t\tprivate final String ord;\n\n\t\tprivate Ord(String ord) {\n\t\t\tthis.ord = ord;\n\t\t}\n\n\t\tpublic String getOrd() {\n\t\t\treturn ord;\n\t\t}\n\t}\n\n\t/**\n\t * Metodo para recuperar la session actual\n\t * \n\t * @return la session actual\n\t */\n\tSession getCurrentSession();\n\n\t/**\n\t * Metodo para guardar un registro\n\t * \n\t * @param entity\n\t * Entidad a guardar\n\t * @return true si se guardo correctamente false en otro caso\n\t */\n\tBoolean save(T entity);\n\n\t/**\n\t * Metodo para eliminar un registro\n\t * \n\t * @param entity\n\t * Registro a borrar\n\t * @return true si se elimino correctamente false en otro caso\n\t */\n\tBoolean delete(T entity);\n\n\t/**\n\t * Metodo para recuperar todos los objetos de la tabla\n\t * \n\t * @return lista con todos los objetos de la tabla\n\t */\n\tList<T> getAll();\n\n\t/**\n\t * Metodo para recuberar un objeto por el id, este metodo esta destinado a\n\t * los objetos que ya tienen definido el tipo T\n\t * \n\t * @param id\n\t * El id el objeto que se busca\n\t * @return El objeto encontrado\n\t */\n\tT getById(PK id);\n\n\t/**\n\t * Con este metodo se pueden buscar registros con propiedades similares a\n\t * las del objeto que se pasa, no sirve para buscaquedas por id.\n\t * \n\t * @param entity\n\t * Entidad con propiedades que se van a buscar\n\t * @return Lista de entidades encontradas\n\t */\n\tList<T> searchByExample(T entity);\n\n\t/**\n\t * Metodo para buscar registros con propiedades similares a la del objeto\n\t * que recibe, ordenarlos por el campo que manda con el limite y paginas\n\t * dadas\n\t * \n\t * @param entity\n\t * Ejemplo para la busqueda\n\t * @param sortBy\n\t * Campor por el que se desea ordenar\n\t * @param limit\n\t * Numero maximo de registros\n\t * @param page\n\t * Numero de pagina\n\t * @return\n\t */\n\tList<T> searchByExamplePages(T entity, String sortBy, Ord ord,\n\t\t\tInteger limit, Integer page);\n\n\t/**\n\t *\n\t * Metodo para buscar registros con propiedades similares a la del objeto\n\t * que recibe, ordenarlos por el campo que manda con el limite y paginas\n\t * dadas.\n\t * \n\t * @param entity\n\t * Ejemplo para la busqueda\n\t * @param sortBy\n\t * Campor por el que se desea ordenar\n\t * @param limit\n\t * Numero maximo de registros\n\t * @param page\n\t * Numero de pagina\n\t * @param associations\n\t * \t\t\t Mapa propiedad objeto\n\t * \n\t * @return List<T>\n\t */\n\n\tList<T> searchByExamplePages(T entity, String sortBy, Ord ord,\n\t\t\tInteger limit, Integer page, Map<String, Object> associations);\n\n\t/**\n\t * Cuenta todos los registros de la tabla\n\t * \n\t * @return Numero de registros en la tabla\n\t */\n\tInteger countAll();\n\n\t/**\n\t * Cuenta todos los resultados que coinciden con un ejemplo\n\t * \n\t * @param entity\n\t * Entidad de ejemplo para la busqueda\n\t * @return Numero de registros encontrados\n\t */\n\tInteger countByExample(T entity);\n\n\t/**\n\t * Numero de paginas que se obtendran buscando con el ejemplo dado y usando\n\t * un limite\n\t * \n\t * @param entity\n\t * Entidad de ejemplo para la busqueda\n\t * @param limit\n\t * Limite de registros por pagina\n\t * @return\n\t */\n\tInteger countByExamplePages(T entity, Integer limit);\n\n\t/**\n\t * Retorna la clase del tipo generico, la clase de la entidad. Destinada a\n\t * solo funcionar cuando se implemente esta interfaz definiendo el tipo T\n\t * \n\t * @return Clase del tipo generico\n\t */\n\tClass<?> getEntityClass();\n}", "public interface DBStructure {\n\n String save(DataSource dataSource);\n\n void update(DataSource dataSource, String fileMask) throws UpdateException;\n\n void dropAll(DataSource dataSource) throws DropAllException;\n\n String getSqlScript(DataSource dataSource);\n\n void unlock(DataSource dataSource);\n}", "public interface CashRegisterDAO {\n public void addCashRegister(CashRegister cashRegister ) throws SQLException;\n public void updateCashRegister(CashRegister cashRegister ) throws SQLException;\n public CashRegister getCashRegisterById(Long cashregister_id) throws SQLException;\n public Collection getAllCashRegister() throws SQLException;\n public void deleteCashRegister(CashRegister cashRegister) throws SQLException;\n}", "public interface BlogDAO extends DAO<Blog, ObjectId> {\n public String saveBlog(Blog blog);\n public List<Blog> getByTag(String tagName);\n public List<Blog> getAllBlogs();\n public Blog getBlog(String blogId);\n}", "public interface CityDao {\n\n List<City> queryAllCity() throws Exception;\n\n City queryCityByCode(String cityCode) throws Exception;\n\n List<City> queryCityByBmsCode(String code) throws Exception;\n\n List<City> insert(City city) throws Exception;\n\n}", "public interface RegionPlaceDAO {\r\n\tpublic List<RegionPlace> viewRegionPlace() throws SQLException, ClassNotFoundException, NamingException;\r\n\tpublic RegionPlace selectRegionPlace(RegionPlace region) throws SQLException, ClassNotFoundException, NamingException;\r\n\tpublic RegionPlace getRegionPlace(TypePlace typePlace) throws SQLException, ClassNotFoundException, NamingException;\r\n}", "public interface Database\r\n{\r\n\t/**\r\n\t * Opens a new database session.\r\n\t *\r\n\t * @return a database session\r\n\t */\r\n\tDatabaseSession openSession();\r\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}", "public interface DeptDao {\n\n public Dept selectDept(int id);\n\n public List<Dept> queryAll(@Param(\"tableName\") String tableName);\n\n public void login(@Param(\"name\") String name,@Param(\"password\") String password);\n}", "public abstract UserDAO getUserDAO();", "public interface VillageDao extends CrudDao<Village> {\n Village getById(String id);\n Village getByCoordinates(short xCoort, short yCoord);\n Village getByName(String name);\n}", "public interface TestDao {\n\n List query();\n\n}", "public interface SelectDao<T> {\n\t\n\tpublic T findByCode(String code);\n\t\n\tpublic List<T> findByName(String name);\n\t\n\tpublic List<T> findByPhone(String phone);\n\t\n\tpublic List<T> getData(String column);\n\t\n}", "public interface PersonDAO {\n public void add(Person p);\n public void delete(Person p);\n public List<Person> getList();\n public void update(Person p);\n public Person getPerson(int ID);\n\n}", "public interface DBDao {\n /**\n * 添加本地缓存\n * @param url 插入的数据的url\n * @param content 插入的数据的json串\n */\n public void insertData(String url,String content,String time);\n\n /**\n * 删除指定的本地存储数据\n * @param url 指定url\n */\n public void deleteData(String url);\n\n /**\n * 更新本地缓存数据\n * @param url 指定url\n * @param content 需要更新的内容\n * @param time 更新的时间\n */\n public void updateData(String url,String content,String time);\n\n /**\n * 查询指定url的缓存数据\n * @param url 指定的url\n * @return 返回缓存数据content\n */\n public String queryData(String url);\n /**\n * 查询指定url的缓存数据\n * @param url 指定的url\n * @return 返回缓存数据的存储时间\n */\n public String queryDataTime(String url);\n}", "public interface IPersonDAO {\n int insertUser(Person person);\n void deletePerson(int personID);\n void selectAllPerson();\n void selectPersonByName();\n}", "public interface DAOFactory {\n\n BalanceDAO createBalanceDAO();\n}", "public interface DAO {\n\n\t/**\n\t * Dohvaća entry sa zadanim <code>id</code>-em. Ako takav entry ne postoji,\n\t * vraća <code>null</code>.\n\t * \n\t * @param id ključ zapisa\n\t * @return entry ili <code>null</code> ako entry ne postoji\n\t * @throws DAOException ako dođe do pogreške pri dohvatu podataka\n\t */\n\tpublic BlogEntry getBlogEntry(Long id) throws DAOException;\n\n\t/**\n\t * Returns true if nick exists.\n\t * \n\t * @param nick to check\n\t * @return true if nick exists\n\t * @throws DAOException\n\t */\n\tpublic boolean nickExists(String nick) throws DAOException;\n\n\t/**\n\t * Returns BlogUser with given nick. Null if such user doesn't exist\n\t * \n\t * @param nick Nick\n\t * @return BlogUser with given nick or Null if such user doesn't exist\n\t * @throws DAOException\n\t */\n\tpublic BlogUser getUserByNick(String nick) throws DAOException;\n\t\n//\tpublic List<BlogUser> getUsers();\n\t\n\t/**\n\t * Registers user with information given in form\n\t * \n\t * @param form Informations about user\n\t * @throws DAOException\n\t */\n\tpublic void registerUser(RegisterForm form) throws DAOException;\n\t\n\t/**\n\t * Registers user\n\t * \n\t * @param user to register\n\t * @throws DAOException\n\t */\n\tpublic void registerUser(BlogUser user) throws DAOException;\n\n\t/**\n\t * Returns list of all users\n\t * \n\t * @return list of all users\n\t * @throws DAOException\n\t */\n\tpublic List<BlogUser> getAllUsers() throws DAOException;\n\t\n\t/**\n\t * Adds blog\n\t * \n\t * @param blog to add\n \t * @throws DAOException\n\t */\n\tpublic void addBlog(BlogEntry blog) throws DAOException;\n\t\n\t\n\t/**\n\t * Returns email of user with nick, null if no such user exists\n\t * \n\t * @param nick of user\n\t * @return email of user with nick, null if no such user exists\n\t * @throws DAOException\n\t */\n\tpublic String getUserEmail(String nick) throws DAOException;\n\n\t/**\n\t * Adds comment with informations from CommentForm to BlogEntry blog\n\t * \n\t * @param blog in which comment is added\n\t * @param comment to add\n\t */\n\tpublic void addComment(BlogEntry blog, CommentForm comment);\n\n\t/**\n\t * Updates blog values from values in form\n\t * @param blog to change\n\t * @param form with new values\n\t */\n\tpublic void changeBlog(BlogEntry blog, BlogForm form);\n}", "public interface ProductDAO {\n List<Product> getAll() throws DAOException;\n Product get(int id) throws DAOException;\n int add(Product product) throws DAOException;\n int update(Product product) throws DAOException;\n int remove(int id) throws DAOException;\n List<Product> search(String subject, String attribute) throws DAOException;\n int changeOwner(int productID, String newOwner) throws DAOException;\n}", "public interface CityDao {\n\n void insert(City city);\n City find(long id);\n}", "public interface OpenNetworkDB extends Database, CRUD<OpenNetwork, Integer>{\r\n\r\n Collection<OpenNetwork> getAllFromCity( String city ) throws DatabaseException;\r\n}", "public interface UserCredentialsDAO extends DBDAO<UserCredentials> {\n //Define non-standard CRUD methods.\n}", "public interface ILtiDao {\n \n /**\n * Add a key-secret pair to the database.\n * @param key Key to be added.\n * @param secret Secret to be added.\n * @throws ClassicDatabaseException\n */\n public void addKeySecretPair(String key, String secret) throws ClassicDatabaseException;\n \n /**\n * Delete a key-secret pair to the database.\n * @param key Key of the pair to be deleted\n * @throws ClassicDatabaseException\n * @throws ClassicNotFoundException\n */\n public void deleteKeySecretPair(String key) throws ClassicDatabaseException,ClassicNotFoundException;\n \n /**\n * Get a secret from the database.\n * @param key Key of the key-secret pair.\n * @return\n * @throws ClassicDatabaseException\n * @throws ClassicNotFoundException\n */\n public String getSecret(String key) throws ClassicDatabaseException,ClassicNotFoundException;\n \n /**\n * Delete all entries from the database\n * @throws ClassicDatabaseException\n */\n public void cleanTable() throws ClassicDatabaseException;\n}", "public interface DepartmentDAO {\n\n /**\n * This method is used to retrieve a list of all departments.\n *\n * @return List of generic type {@link Department}\n */\n public List<Department> getAllDepartments();\n\n /**\n * This method is used when adding a department.\n *\n * @param department of type {@link Department}\n */\n public void addDepartment(Department department);\n\n /**\n * This method is used to update the department table.\n *\n * @param department of type {@link Department}\n * @param newDeptName of type String *\n */\n public void updateDepartment(Department department, String newDeptName);\n\n /**\n * This method is used to delete departments by department number.\n *\n * @param dept_no of type integer\n */\n public void deleteDepartmentByDeptNo(int dept_no);\n\n /**\n * This method is use to delete departments by name.\n *\n * @param dept_name of type String\n */\n public void deleteDepartmentByDeptName(String dept_name);\n\n /**\n * This method is responsible for returning a department by dept_no.\n *\n * @param dept_no of type integer\n * @return ResultSet\n */\n public ResultSet getDepartmentByID(int dept_no);\n\n /**\n * This method is responsible for returning a department by dept_name\n *\n * @param dept_name of type String\n * @return ResultSet\n */\n public ResultSet getDepartmentByName(String dept_name);\n}", "public interface EmployeeDAO {\r\n\r\n\t\t\tpublic List<Employee> findAll();\r\n\r\n\t\t\tpublic Employee findById(int theId);\r\n\t\t\t\r\n\t\t\tpublic void save(Employee theEmployee);\r\n\r\n\t\t\tpublic void deleteById(int theId);\r\n}", "O obtener(PK id) throws DAOException;", "public interface UserDao {\n public void find() ;\n public void delete() ;\n public void save() ;\n public void update() ;\n}", "public interface DotaMaxDAO {\n\n\n /**\n * 将hero实例存储到数据库。\n */\n void insertHeroes(List<Heroes> heroList);\n\n /**\n * 将Item实例存储到数据库。\n */\n void insertItems(List<Items> itemsList);\n\n\n /**\n * 加载英雄列表\n * @return\n */\n Heroes getHeroes(int id);\n\n\n\n\n\n\n void insertMatch(MatchDetails match);\n\n /**\n * 加载数据库里已有的数据\n * @param id\n * @return\n */\n MatchDetails getMatch(long id);\n\n /**\n * 加载用户的数据\n * @param account_id\n * @return\n */\n List<MatchDetails> getMatchByAccountId(long account_id);\n\n\n String getItemsNameById(String item_id);\n\n\n\n /**\n * 添加到User表\n */\n boolean insertUser(User user);\n\n /**\n * 从User表读取所有的用户\n */\n List<Long> getUser();\n\n\n\n}", "public interface BookingDao extends Dao<Booking, Integer> {\n\n @Override\n int create(Booking booking) throws SQLException;\n}", "public interface ModuleDAO {\r\n\t/**\r\n\t * Saves a module.\r\n\t * \r\n\t * @param module\r\n\t * A module.\r\n\t * @return The identifier saved.\r\n\t * @throws DBException\r\n\t * If a problem occurs.\r\n\t */\r\n\tModule save(Module module) throws DBException;\r\n\r\n\t/**\r\n\t * Updates a module.\r\n\t * \r\n\t * @param module\r\n\t * A module.\r\n\t * @throws DBException\r\n\t * If a problem occurs.\r\n\t */\r\n\tvoid update(Module module) throws DBException;\r\n\r\n\t/**\r\n\t * Deletes a module.\r\n\t * \r\n\t * @param module\r\n\t * A module.\r\n\t * @throws DBException\r\n\t * If a problem occurs.\r\n\t */\r\n\tvoid delete(Module module) throws DBException;\r\n\r\n\t/**\r\n\t * Gets a module by identifier.\r\n\t * \r\n\t * @param module\r\n\t * A module.\r\n\t * @return Module found.\r\n\t * @throws DBException\r\n\t * If a problem occurs.\r\n\t */\r\n\tModule getById(Long identifier) throws DBException;\r\n\r\n\t/**\r\n\t * Gets all modules.\r\n\t * \r\n\t * @return A module list.\r\n\t * @throws DBException\r\n\t * If a problem occurs.\r\n\t */\r\n\tList<Module> getAll() throws DBException;\r\n}", "public interface BaseDao<T extends BaseEntity> {\r\n\t/**\r\n\t * Adds entity to database\r\n\t * \r\n\t * @param entity\r\n\t * creating entity\r\n\t */\r\n\tvoid create(T entity);\r\n\r\n\t/**\r\n\t * Gets entity from database\r\n\t * \r\n\t * @param id\r\n\t * id of entity\r\n\t * @return found entity\r\n\t */\r\n\tT read(int id);\r\n\r\n\t/**\r\n\t * Gets all certain kind entities from database\r\n\t * \r\n\t * @return List of all entities\r\n\t */\r\n\tList<T> readAll();\r\n\r\n\t/**\r\n\t * Updates entity in database\r\n\t * \r\n\t * @param entity\r\n\t * entity for update\r\n\t */\r\n\tvoid update(T entity);\r\n\r\n\t/**\r\n\t * Deletes entity from database\r\n\t * \r\n\t * @param entityId\r\n\t * id of entity\r\n\t */\r\n\tvoid delete(int entityId);\r\n\r\n\t/**\r\n\t * get values from ResultSet and set them to entity object\r\n\t * \r\n\t * @param rs\r\n\t * ResultSet object\r\n\t * \r\n\t * @return entity object\r\n\t * @throws SQLException\r\n\t * if the columnLabel is not valid;\r\n\t */\r\n\tT buidEntity(ResultSet rs) throws SQLException;\r\n}", "public interface UserDao {\n\n List<User> select(User user);\n\n List<User> selectAll();\n}", "public interface DaoInterface {}", "public interface DatabaseTool {\r\n\r\n\t\r\n\t/**\r\n\t * Get all objects from the database. It should retrieve all information and put it into the database. It is important\r\n\t * that the name in the database and the name in the class matches. It is not case sensitive. It will default follow\r\n\t * complex objects.\r\n\t * \r\n\t * This method will close the prepared statement and the connection.\r\n\t * \r\n\t * @param The SQL query to be executed..\r\n\t * @param clazz to be retrieved.\r\n\t * @return of all classes that is retrieved.\r\n\t */\r\n\tpublic <E extends Retrievable> List<E> getObjects(String sql, Class<E> clazz);\r\n\t\r\n\t/**\r\n\t * Get a single object from the database. It should retrieve all information and put it into the database. It is important\r\n\t * that the name in the database and the name in the class matches. It is not case sensitive. It will follow complex objects.\r\n\t * \r\n\t * This method will close the prepared statement and the connection.\r\n\t * \r\n\t * @param The SQL query to be executed.\r\n\t * @param clazz to be retrieved.\r\n\t * @return a instanced object.\r\n\t */\r\n\tpublic <E extends Retrievable> E getObject(String sql, Class<E> clazz);\r\n\t\r\n\t/**\r\n\t * Get a single object from the database. It should retrieve all information and put it into the database. It is important\r\n\t * that the name in the database and the name in the class matches. It is not case sensitive. It will follow complex objects.\r\n\t * \r\n\t * This method will close the prepared statement and the connection.\r\n\t * \r\n\t * @param The SQL query to be executed.\r\n\t * @param clazz to be retrieved.\r\n\t * @param id of the object to be retrieved.\r\n\t * @return a instanced object.\r\n\t */\r\n\tpublic <E extends Retrievable> E getObject(Class<E> clazz, int id);\r\n\t\r\n\t/**\r\n\t * Set a single object from the values. It should retrieve all information and put it into the database. It is important\r\n\t * that the name in the database and the name in the class matches. It is not case sensitive. It will follow complex objects.\r\n\t * \r\n\t * This method will close the prepared statement and the connection.\r\n\t * \r\n\t * @param The SQL query to be executed.\r\n\t * @param clazz to be retrieved.\r\n\t * @return a instanced object.\r\n\t */\r\n\tpublic <E extends Retrievable> void setObject(String sql, E e);\r\n\t\r\n\t/**\r\n\t * Get all objects from the database. It should retrieve all information and put it into the database. It is important\r\n\t * that the name in the database and the name in the class matches. It is not case sensitive.\r\n\t * \r\n\t * This method will close the prepared statement and the connection.\r\n\t * \r\n\t * @param The SQL query to be executed..\r\n\t * @param clazz to be retrieved.\r\n\t * @param follow complex objects as {@link ForeignKey}, {@link OneToMany} and {@link ManyToMany} \r\n\t * @return of all classes that is retrieved.\r\n\t */\r\n\tpublic <E extends Retrievable> List<E> getObjects(String sql, Class<E> clazz, boolean follow);\r\n\t\r\n\t/**\r\n\t * Get a single object from the database. It should retrieve all information and put it into the database. It is important\r\n\t * that the name in the database and the name in the class matches. It is not case sensitive.\r\n\t * \r\n\t * This method will close the prepared statement and the connection.\r\n\t * \r\n\t * @param The SQL query to be executed.\r\n\t * @param clazz to be retrieved.\r\n\t * @param follow complex objects as {@link ForeignKey}, {@link OneToMany} and {@link ManyToMany} \r\n\t * @return a instanced object.\r\n\t */\r\n\tpublic <E extends Retrievable> E getObject(String sql, Class<E> clazz, boolean follow);\r\n\t\r\n\t/**\r\n\t * Get a single object from the database. It should retrieve all information and put it into the database. It is important\r\n\t * that the name in the database and the name in the class matches. It is not case sensitive.\r\n\t * \r\n\t * This method will close the prepared statement and the connection.\r\n\t * \r\n\t * @param The SQL query to be executed.\r\n\t * @param clazz to be retrieved.\r\n\t * @param id of the object to be retrieved.\r\n\t * @param follow complex objects as {@link ForeignKey}, {@link OneToMany} and {@link ManyToMany} \r\n\t * @return a instanced object.\r\n\t */\r\n\tpublic <E extends Retrievable> E getObject(Class<E> clazz, int id, boolean follow);\r\n\t\r\n\t/**\r\n\t * Set a single object from the values. It should retrieve all information and put it into the database. It is important\r\n\t * that the name in the database and the name in the class matches. It is not case sensitive.\r\n\t * \r\n\t * This method will close the prepared statement and the connection.\r\n\t * \r\n\t * @param The SQL query to be executed.\r\n\t * @param clazz to be retrieved.\r\n\t * @param follow complex objects as {@link ForeignKey}, {@link OneToMany} and {@link ManyToMany} \r\n\t * @return a instanced object.\r\n\t */\r\n\tpublic <E extends Retrievable> void setObject(String sql, E e, boolean follow);\r\n\t\r\n\t/**\r\n\t * This will help write a object to a persistent store. \r\n\t * \r\n\t * \r\n\t * @param The SQL query to be executed.\r\n\t * @param clazz to be retrieved.\r\n\t * @return a instanced object.\r\n\t */\r\n\tpublic <E extends Writeable> void storeObject(String sql, E e);\r\n\t\r\n\t/**\r\n\t * This will remove a object from the database. \r\n\t * \r\n\t * \r\n\t * @param The SQL query to be executed.\r\n\t * @param clazz to be retrieved.\r\n\t * @return a instanced object.\r\n\t */\r\n\tpublic <E extends Writeable> void write(String sql);\r\n\r\n\t/**\r\n\t * Read from the database. It will return a cached result set. This result set is closed\r\n\t * and does not keep connection to the database.\r\n\t * \r\n\t * @param sql to be executed.\r\n\t * @return a cached result set.\r\n\t */\r\n\tpublic <E extends Writeable> ResultSet read(CharSequence sql);\r\n\t\r\n\t/**\r\n\t * Read from the database. It will first create a prepared statement before doing the read.\r\n\t * \r\n\t * @param sql to be executed. It must contain the amount ? as the length of the objects.\r\n\t * @return a cached result set.\r\n\t */\r\n\tpublic <E extends Retrievable> ResultSet read(CharSequence sql, Object... objects);\r\n\t\r\n\tpublic <E extends Retrievable> List<E> getObjects(ResultSet resultSet, Class<E> clazz, boolean follow);\r\n\t\r\n\tpublic <E extends Retrievable> E getObject(ResultSet resultSet, Class<E> clazz, boolean follow);\r\n\t\r\n\t/**\r\n\t * @param sql that is update/insert or both\r\n\t * @param objects that is to be used in store as parameters to the sql..\r\n\t * @return number of rows updated.\r\n\t */\r\n\tpublic int write(String sql, Object... objects);\r\n\t\r\n\tpublic int writeGetID(String sql, Object... objects);\r\n\t\r\n\tpublic QueryRunner getQueryRunner();\r\n\t\r\n\tpublic Retriver getRetriver();\r\n\r\n\tpublic <E extends Retrievable> E getObject(String sql, Class<E> clazz, Object... objects);\r\n\r\n\tpublic <E extends Retrievable> List<E> getObjects(String sql, Class<E> class1, Object... objects);\r\n\r\n\tpublic <E> E getValue(final String sql, final Class<E> clazz, final String column, final Object... objects);\r\n\t\r\n\tpublic List<Object> getValues(final String sql, final Object... objects);\r\n\t\r\n\tpublic String getServer();\r\n}", "public interface GenericDao<T extends Identified<PK>, PK extends Serializable> {\n\n /**\n * Creates new entry and returns corresponding domain object\n *\n * @return domain object\n * @throws SQLException\n */\n T create() throws PersistException;\n\n /**\n * Creates new entry corresponding to domain object\n *\n * @param obj domain object\n * @return domain object\n * @throws SQLException\n */\n T persist(T obj) throws PersistException;\n\n /**\n * Find entry corresponding to domain object by primary key\n *\n * @param key entity primary key\n * @return domain object if found, else null\n * @throws SQLException\n */\n T getByPk(int key) throws PersistException;\n\n /**\n * Update entry corresponding to domain object state\n *\n * @param obj domain object\n * @throws SQLException\n */\n void update(T obj) throws PersistException;\n\n /**\n * Delete entry corresponding to domain object from database\n *\n * @param obj domain object\n * @throws SQLException\n */\n void delete(T obj) throws PersistException;\n\n /**\n * Get all entries from database\n *\n * @return list of domain objects\n * @throws SQLException\n */\n List<T> getAll() throws PersistException;\n\n}", "D getDao();", "public interface modeloDAO {\n void insert(Object obj);\n void update(Object obj);\n void delete(Object obj);\n ArrayList<Object> get();\n}", "public interface StudentDao {\n /**\n * Method to find a student by its id\n * @param id\n * @return\n */\n Student findById(String id);\n\n /**\n * Creates a new entry in the table Book in the DB\n * @param entity\n * @return\n */\n void create(Student entity);\n\n /**\n * Updates an entry in the table Book in the DB\n * @param entity\n */\n void update(Student entity);\n\n /**\n * Remove an entry in the table Book in the DB\n * @param entity\n */\n void remove(Student entity);\n}", "public interface EmployeeDetailDAO {\r\n\t/**\r\n\t * Saves a employee detail.\r\n\t * \r\n\t * @param detail\r\n\t * The employee detail.\r\n\t * @return The identifier saved.\r\n\t * @throws DBException\r\n\t * If a problem occurs.\r\n\t */\r\n\tEmployeeDetail save(EmployeeDetail detail) throws DBException;\r\n\r\n\t/**\r\n\t * Updates a employee detail.\r\n\t * \r\n\t * @param detail\r\n\t * The employee detail.\r\n\t * @throws DBException\r\n\t * If a problem occurs.\r\n\t */\r\n\tvoid update(EmployeeDetail detail) throws DBException;\r\n\r\n\t/**\r\n\t * Deletes a module.\r\n\t * \r\n\t * @param detail\r\n\t * The employee detail.\r\n\t * @throws DBException\r\n\t * If a problem occurs.\r\n\t */\r\n\tvoid delete(EmployeeDetail detail) throws DBException;\r\n\r\n\t/**\r\n\t * Gets detail by identifier.\r\n\t * \r\n\t * @return The employee detail.\r\n\t * @throws DBException\r\n\t * If a problem occurs.\r\n\t */\r\n\tEmployeeDetail getById(long identifier) throws DBException;\r\n}", "public interface DAO<T> {\n T get(int ID);\n List<T> getAll();\n List<T> findByLastName(String string);\n boolean add(T t);\n boolean update(T t);\n boolean delete(T t);\n\n\n\n \n}", "public interface IDBQuery {\n String query();\n}", "BookDao getBookDao();", "public interface UserDAO {\n User selectUserByName(User user);\n User selectUserById(User user);\n void update(User user);\n}", "public interface UserDAO {\n /**\n *\n * @param user\n * @return\n */\n public int insertUser(User user);\n public List<User> finduserById();\n}", "public interface GenericDAO<T> {\n public T get(int id) throws PersistException;\n public void create(T e) throws PersistException;\n public void update(T e) throws PersistException;\n public void delete(T e) throws PersistException;\n public List<T> getAll() throws PersistException;\n}", "public interface EntityDAOInterface {\n}", "public interface TitanOpenOrgDao {\r\n\r\n\tint insert(TitanOpenOrg entity) throws DaoException;\r\n\t\r\n\tint delete(TitanOpenOrg entity) throws DaoException;\r\n\t\r\n\tList<TitanOpenOrgDTO> selectList(TitanOpenOrg entity) throws DaoException;\r\n\t\r\n\tList<String> selectMaxPrefix() throws DaoException;\r\n}", "public interface LugarDAO {\n\n /**\n * Obtiene un lugar dado el id\n * @param lugarId\n * @return Lugar {@link Lugar}\n */\n public Lugar findLugarByID(int lugarId);\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 interface PortionedDAO {\n\n String getDataPortion() throws DAOException;\n\n}", "public interface UserDao {\n\t\n\tpublic boolean isExist(String name) throws AppException;\n\t\n\tpublic boolean add(User user) throws AppException;\n\t\n\tpublic int login(String name,String password) throws AppException;\n\t\n\tpublic User getById(int id) throws AppException;\n\t\n\tpublic List<Integer> getIds() throws AppException;\n\t\n\tpublic boolean setUserDel(int user_id) throws AppException;\n\t\n}", "public interface BaseDao<T> {\n public void insert(T t);\n public void delete(String id);\n public void update(T t);\n public T queryOne(String id);\n public List<T> queryAll();\n}", "public interface TableDao extends GenericDao<Table> {\n}", "Object getDB();", "private DAOOfferta() {\r\n\t\ttry {\r\n\t\t\tClass.forName(driverName);\r\n\r\n\t\t\tconn = getConnection(usr, pass);\r\n\r\n\t\t\tps = conn.prepareStatement(createQuery);\r\n\r\n\t\t\tps.executeUpdate();\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} catch (ConnectionException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\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} finally {\r\n\t\t\t/*closeResource()*/;\r\n\t\t}\r\n\t}", "public interface DBCRUD<E extends DomainEntity> extends DBDAO<E> {\n\n /**\n * TODO comment<br>\n * \n * @param connection\n * @param entity\n * @throws DAOException\n */\n public void create(Connection connection, E entity) throws DAOException;\n\n \n \n /**\n * TODO comment<br>\n * \n * @param connection\n * @param entity\n * @throws DAOException\n */\n public void update(Connection connection, E entity) throws DAOException;\n\n \n \n /**\n * TODO comment<br>\n * \n * @param connection\n * @param entity\n * @throws DAOException\n */\n public void remove(Connection connection, E entity) throws DAOException;\n\n \n \n /**\n * TODO comment<br>\n * \n * @param connection\n * @param entity\n * @return\n * @throws DAOException\n */\n public E retrieve(Connection connection, E entity) throws DAOException;\n}", "public interface DaoFactory {\r\n\r\n\t/**\r\n\t * Returns objects for access to account table.\r\n\t * \r\n\t * @return DAO for account table.\r\n\t */\r\n\tpublic GenericDao<Account> getAccountDao();\r\n\r\n\t/**\r\n\t * Returns objects for access to client table.\r\n\t * \r\n\t * @return DAO for client table.\r\n\t */\r\n\tpublic GenericDao<Client> getClientDao();\r\n\r\n\t/**\r\n\t * Returns objects for access to payment table.\r\n\t * \r\n\t * @return DAO for payment table.\r\n\t */\r\n\tpublic GenericDao<Payment> getPaymentDao();\r\n\r\n\t/**\r\n\t * Returns objects for access to credit card table.\r\n\t * \r\n\t * @return DAO for credit card table.\r\n\t */\r\n\tpublic GenericDao<CreditCard> getCreditCardDao();\r\n\r\n\t/**\r\n\t * Returns objects for access to authorization table.\r\n\t * \r\n\t * @return DAO for authorization table.\r\n\t */\r\n\tpublic GenericDao<Autorization> getAutorizationDao();\r\n\r\n\t/**\r\n\t * This method returns connection for accessing to database.\r\n\t * \r\n\t * @return\r\n\t */\r\n\tpublic Connection getConnection();\r\n\r\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 DAO<M extends AbstractModel> {\n\n /**\n * @param value persistent (or transient) object to be saved / updated\n * @return saved object\n */\n M save(M value);\n\n /**\n * @param id id of the persistent object to be loaded\n * @return persisted object matching the given id\n */\n @SuppressWarnings(\"unchecked\")\n M get(Long id);\n\n /**\n * @param value persistent object to be deleted\n */\n void delete(M value);\n\n /**\n * Delete all instances of {@link M}\n */\n void deleteAll();\n\n /**\n * @return all instances of {@link M}\n */\n List<M> loadAll();\n}", "public interface UserDAO extends AbstractDAO<User> {\n\n /**\n * This method checks the availability of the <i>login</i> and <i>password</i> in the <i>users</i> database table.\n *\n * @param login - entered <i>login</i> filed of the user.\n * @param password - entered <i>password</i> field of the user.\n * @param connection - the current connection to a database. Transmitted from the service module to provide transactions.\n * @return - boolean value of the condition:\n * returns \"true\" if the incoming data correspond to the record of the database table;\n * returns \"false\" if the incoming data do not correspond to the record of the database table.\n */\n boolean isAuthorized(String login, String password, Connection connection) throws DAOException;\n\n /**\n * This method reads data from <i>users</i> database table, creates and returns User object according to the entered login.\n *\n * @param login - entered <i>login</i>.\n * @param connection - the current connection to a database. Transmitted from the service module to provide transactions.\n * @return - User object.\n */\n User getByLogin(String login, Connection connection) throws DAOException;\n\n /**\n * This method check the uniqueness of the user.\n *\n * @param login - entered <i>login</i>.\n * @param connection - the current connection to a database. Transmitted from the service module to provide transactions.\n * @return - boolean value of the condition:\n * returns \"false\" if the incoming data correspond to the record of the database table;\n * returns \"true\" if the incoming data do not correspond to the record of the database table.\n * @throws DAOException\n */\n boolean checkUniqueUser(String login, Connection connection) throws DAOException;\n\n /**\n * This method reads and returns information from a record (row) of a database table.\n *\n * @param id - id number of the record (row) in the database table..\n * @param connection - the current connection to a database. Transmitted from the service module to provide transactions.\n * @return - an entity from a database table according to the incoming id number.\n */\n User getById(String id, Connection connection) throws DAOException;\n\n /**\n * This method updates an existing record (row) in a database table.\n *\n * @param user - the current entity of user which will be updated.\n * @param connection - the current connection to a database. Transmitted from the service module to provide transactions.\n */\n void update(User user, Connection connection) throws DAOException;\n\n /**\n * This method creates entity of User class from data received from ResultSet.\n *\n * @param resultSet - a database result \"row\" with required values.\n * @param user - the entity of User with \"null\" value for setting corresponding values.\n * @return - created user with fields.\n * @throws SQLException\n */\n User createUser(ResultSet resultSet, User user) throws SQLException;\n}", "public interface MovieDAO {\r\n\r\n\tInteger create(Movie movie);\r\n\r\n\tvoid update(Movie movie);\r\n\r\n\tvoid delete(Movie movie);\r\n\r\n\tMovie findMovieById(Integer id);\r\n\r\n\tList<Movie> findAllMovie();\r\n\r\n}", "public interface DAOInterface {\r\n\tpublic Session getSession();\r\n}", "public interface PersonDao {\n boolean insertPerson(PersonDo personDo); //添加\n PersonDo queryPersonByName(String name); //添加\n// public boolean deleteById(int id); //删除\n// public boolean updatePerson(PersonDo personDo); //修改\n// public PersonDo queryById(int id); //根据ID查询\n List<PersonDo> queryPersonList(PersonDo personDo); //查询全部\n}", "public interface DAOProject {\n\n void create(Project project);\n boolean update (int projectId, Project project);\n Project read(int projectId);\n boolean delete(int projectId);\n\n}", "public interface BaseDAO<T> {\n /**\n * 添加\n *\n * @param t\n * @return\n */\n Integer addBean(T t);\n\n /**\n * 更新\n *\n * @param t\n */\n void updateBean(T t);\n\n /**\n * 查询\n *\n * @param t\n * @return\n */\n List<T> queryBeans(T t);\n\n\n /**\n * 统计\n *\n * @param t\n * @return\n */\n Integer countBean(T t);\n\n\n /**\n * 查找\n *\n * @param t\n * @return\n */\n T findBean(T t);\n\n void deleteBean(T t);\n}", "public interface CarrierDAOInterface {\n\n public void insert(Carrier entity);\n\n public void update(Carrier entity);\n\n public Carrier getById(Long id);\n\n public List<Carrier> getAll();\n\n public void delete(Carrier entity);\n\n public void deleteAll();\n\n}", "public interface HelloOracleDao {\n List<Map> listHello();\n\n int updateHello(@Param(\"id\") int id,@Param(\"userName\") String userName);\n}", "public interface OrderDAO {\r\n\r\n\t/**\r\n\t * @param Order\r\n\t * @return\r\n\t */\r\n\tString createOrder (OrderBean order);\r\n\t/**\r\n\t * @param OrderID\r\n\t * @return\r\n\t */\r\n\tint deleteOrder (ArrayList<String> orderID);\r\n\t/**\r\n\t * @param Order\r\n\t * @return\r\n\t */\r\n\tboolean updateOrder (OrderBean order);\r\n\t/**\r\n\t * @param OrderID\r\n\t * @return\r\n\t */\r\n\tOrderBean findByID (String orderID);\r\n\t/**\r\n\t * @return\r\n\t */\r\n\tArrayList<OrderBean> findAll ();\r\n\t\r\n\tpublic String findSequenceID ();\r\n}", "public interface DAOFactory {\n\n /**\n *\n * @param context\n * @return\n */\n public abstract DAO createPersonBeaconDAO(Context context);\n}", "public DerivedPartOfPerspectivesFKDAOJDBC() {\n \t\n }" ]
[ "0.77372783", "0.7325389", "0.70775384", "0.6921186", "0.6909953", "0.6869616", "0.6869337", "0.6862329", "0.68312556", "0.68247795", "0.6819552", "0.6816964", "0.67979956", "0.6780096", "0.6776775", "0.677065", "0.6765976", "0.6736329", "0.6717463", "0.67113316", "0.66670156", "0.66637194", "0.6651379", "0.66419035", "0.663947", "0.6632833", "0.66321915", "0.6610588", "0.66050524", "0.6604131", "0.66039157", "0.65998113", "0.6598635", "0.6598512", "0.6595675", "0.658582", "0.6576641", "0.657146", "0.65552324", "0.6539781", "0.6538876", "0.6529933", "0.6527798", "0.6526194", "0.65190804", "0.6510284", "0.65066785", "0.65047616", "0.6504101", "0.6502343", "0.6500432", "0.64917827", "0.6490834", "0.64882565", "0.6481402", "0.6479406", "0.64765334", "0.6476304", "0.64746535", "0.6474591", "0.64705056", "0.6469654", "0.6468849", "0.6467985", "0.6465208", "0.6461498", "0.64586306", "0.6456017", "0.64533937", "0.6451546", "0.6445762", "0.64452434", "0.6444698", "0.6443049", "0.64422226", "0.6440851", "0.6438315", "0.64343244", "0.64330435", "0.6432177", "0.64225286", "0.6421391", "0.6418036", "0.6417116", "0.64159465", "0.6413257", "0.64107203", "0.64106333", "0.6410468", "0.6408358", "0.6407357", "0.6404886", "0.6404093", "0.64014393", "0.63990676", "0.63949585", "0.63900924", "0.6388307", "0.6384315", "0.63820076" ]
0.7674714
1
TODO Autogenerated method stub
private void assertEquals(String t, String string) { }
{ "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
private void assertAll() { }
{ "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 static void main(String[] args) { System.out.println("Largest values in array: "+largest()); System.out.println("Largest values in arrays: "+largest()); }
{ "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}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "private stendhal() {\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\r\n\tpublic void dispase() {\n\r\n\t}", "@Override\n\tprotected void initialize() {\n\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.66708666", "0.65675074", "0.65229905", "0.6481001", "0.64770633", "0.64584893", "0.6413091", "0.63764185", "0.6275735", "0.62541914", "0.6236919", "0.6223816", "0.62017626", "0.61944294", "0.61944294", "0.61920846", "0.61867654", "0.6173323", "0.61328775", "0.61276996", "0.6080555", "0.6076938", "0.6041293", "0.6024541", "0.6019185", "0.5998426", "0.5967487", "0.5967487", "0.5964935", "0.59489644", "0.59404725", "0.5922823", "0.5908894", "0.5903041", "0.5893847", "0.5885641", "0.5883141", "0.586924", "0.5856793", "0.58503157", "0.58464456", "0.5823378", "0.5809384", "0.58089525", "0.58065355", "0.58065355", "0.5800514", "0.57912874", "0.57912874", "0.57912874", "0.57912874", "0.57912874", "0.57912874", "0.57896614", "0.5789486", "0.5786597", "0.5783299", "0.5783299", "0.5773351", "0.5773351", "0.5773351", "0.5773351", "0.5773351", "0.5760369", "0.5758614", "0.5758614", "0.574912", "0.574912", "0.574912", "0.57482654", "0.5732775", "0.5732775", "0.5732775", "0.57207066", "0.57149917", "0.5714821", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57115865", "0.57045746", "0.5699", "0.5696016", "0.5687285", "0.5677473", "0.5673346", "0.56716853", "0.56688815", "0.5661065", "0.5657898", "0.5654782", "0.5654782", "0.5654782", "0.5654563", "0.56536144", "0.5652585", "0.5649566" ]
0.0
-1
add the edges, if the task ids do not exist in the dag yet, create the node
public void addEdge(int parentId, int subId){ DagNode parent = nodes.get(parentId); DagNode sub = nodes.get(subId); if(parent == null){ DagNode newParent = new DagNode(parentId); nodes.put(parentId, newParent); parent = nodes.get(parentId); } if(sub == null){ DagNode newSub = new DagNode(subId); nodes.put(subId, newSub); sub = nodes.get(subId); } //only add the edge if it doesn't already exist if(!parent.getSubTaskIds().contains(sub)) { parent.addSubTask(sub); sub.addParentTask(parent); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void createEdges() throws IOException {\r\n\t\tString line;\r\n\t\tString fromVertex=null;\r\n\t\tString toVertex=null;\r\n\t\twhile((line=next(1))!=null) {\r\n\t\t\tif(line.startsWith(\"[\"))\r\n\t\t\t\t{\r\n\t\t\t\tthis.buffer=line;\r\n\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\tint colon=line.indexOf(':');\r\n\t\t\tif(colon==-1) continue;\r\n\t\t\tif(line.startsWith(\"id:\"))\r\n\t\t\t\t{\r\n\t\t\t\ttoVertex= line.substring(colon+1).trim();\r\n\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\tif(line.startsWith(\"is_a:\"))\r\n\t\t\t\t{\r\n\t\t\t\tfromVertex = nocomment(line.substring(colon+1));\r\n\t\t\t\t//System.out.println(fromVertex+\" to be connected to: \"+toVertex);\r\n\t\t\t\tTerm fromNode = terms.get(fromVertex);\r\n\t\t\t\tTerm toNode = terms.get(toVertex);\r\n\t\t\t\tif (fromNode.namespace.equals(\"molecular_function\") && toNode.namespace.equals(\"molecular_function\")){\r\n\t\t\t\t\tdagMF.addEdge(fromNode, toNode);\r\n\t\t\t\t}\r\n\t\t\t\telse if (fromNode.namespace.equals(\"biological_process\") && toNode.namespace.equals(\"biological_process\")){\r\n\t\t\t\t\tdagBP.addEdge(fromNode, toNode);\r\n\t\t\t\t} \r\n\t\t\t\telse if (fromNode.namespace.equals(\"cellular_component\") && toNode.namespace.equals(\"cellular_component\")){\r\n\t\t\t\t\tdagCC.addEdge(fromNode, toNode);\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tSystem.out.println(\"FAILED TO ADD TO DAG, not belonging to the same NAMESPACE\");\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t}\r\n\t}", "private void initGraph() {\n nodeMap = Maps.newIdentityHashMap();\n stream.forEach(t -> {\n Object sourceKey = sourceId.extractValue(t.get(sourceId.getTableId()));\n Object targetKey = targetId.extractValue(t.get(targetId.getTableId()));\n ClosureNode sourceNode = nodeMap.get(sourceKey);\n ClosureNode targetNode = nodeMap.get(targetKey);\n if (sourceNode == null) {\n sourceNode = new ClosureNode(sourceKey);\n nodeMap.put(sourceKey, sourceNode);\n }\n if (targetNode == null) {\n targetNode = new ClosureNode(targetKey);\n nodeMap.put(targetKey, targetNode);\n }\n sourceNode.next.add(targetNode);\n });\n\n }", "public void perform(int edges[][]) {\n System.out.println(\"Initial graph:\\n\" + this.toString());\n for (int[] i : edges) {\n int p = i[0];\n int q = i[1];\n if (!(this.isConnected(p, q))) {\n System.out.println(\"\\nCreate edge for \" + p + \" and \" + q);\n this.union(p, q);\n System.out.println(this.toString());\n }\n }\n\n System.out.println(\"\\nFinal graph with connected nodes:\\n\" + this.toString());\n }", "protected void addEdges(IWeightedGraph<GraphNode, WeightedEdge> graph) {\r\n\t\tQueue<GraphNode> nodesToWorkOn = new LinkedList<GraphNode>();\r\n\r\n\t\taddDefaultEdges(graph, nodesToWorkOn);\r\n\r\n\t\t// Check each already connected once node against all other nodes to\r\n\t\t// find a possible match between the combined effects of the path + the\r\n\t\t// worldState and the preconditions of the current node.\r\n\t\twhile (!nodesToWorkOn.isEmpty()) {\r\n\t\t\tGraphNode node = nodesToWorkOn.poll();\r\n\r\n\t\t\t// Select only node to which a path can be created (-> targets!)\r\n\t\t\tif (!node.equals(this.startNode) && !this.endNodes.contains(node)) {\r\n\t\t\t\ttryToConnectNode(graph, node, nodesToWorkOn);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "private void addLinkesToGraph()\n\t{\n\t\tString from,to;\n\t\tshort sourcePort,destPort;\n\t\tMap<Long, Set<Link>> mapswitch= linkDiscover.getSwitchLinks();\n\n\t\tfor(Long switchId:mapswitch.keySet())\n\t\t{\n\t\t\tfor(Link l: mapswitch.get(switchId))\n\t\t\t{\n\t\t\t\tfrom = Long.toString(l.getSrc());\n\t\t\t\tto = Long.toString(l.getDst());\n\t\t\t\tsourcePort = l.getSrcPort();\n\t\t\t\tdestPort = l.getDstPort();\n\t\t\t\tm_graph.addEdge(from, to, Capacity ,sourcePort,destPort);\n\t\t\t} \n\t\t}\n\t\tSystem.out.println(m_graph);\n\t}", "private static void addAllEdgeInstances (Graph graph, boolean isDirected){\n Collection<Node> noteSet = graph.getNodeSet();\n\n for (Iterator<Node> iterator = noteSet.iterator(); iterator.hasNext();) {\n Node startNode = (Node) iterator.next();\n\n for (Iterator<Node> iterator2 = noteSet.iterator(); iterator2.hasNext();) {\n Node endNode = (Node) iterator2.next();\n\n if (!(startNode == endNode)){\n graph.addEdge(startNode.toString().concat(endNode.toString()), startNode, endNode, isDirected);\n }\n\n }\n }\n }", "@Override\n public void addEdge(E pEdge, TimeFrame tf) {\n \n // If The Edge ID is not initialized yet, initalialize it\n if (pEdge.getId() < 0) {\n int id = edgeIdGen.getNextAvailableID();\n pEdge.setId(id);\n mapAllEdges.add(id, pEdge);\n //System.out.println(\"\\t\\t\\t\\t\\t\\t====***************** DynamicGraph.addEdge() edge (id, mapAllEdges.size) = \" + id + \", \" + mapAllEdges.size());\n }\n // Adding to the adjacent list\n if (!darrGlobalAdjList.get(pEdge.getSource().getId()).get(tf).contains(pEdge)) {\n darrGlobalAdjList.get(pEdge.getSource().getId()).get(tf).add(pEdge);\n //System.out.println(\"\\t\\t\\t\\t\\t\\t====***************** DynamicGraph.addEdge() ading to darrGlobalAdjList \");\n if(!pEdge.isDirected() &&\n !darrGlobalAdjList.get(pEdge.getDestination().getId()).get(tf).contains(pEdge)) {\n darrGlobalAdjList.get(pEdge.getDestination().getId()).get(tf).add(pEdge);\n }\n }\n \n hmpGraphsAtTimeframes.get(tf).addEdge(pEdge);\n \n }", "public void addEdge(){\n Node[] newAdjacent = new Node[adjacent.length + 1];\n for (int i = 0; i < adjacent.length; i++) {\n newAdjacent[i] = adjacent[i];\n }\n adjacent = newAdjacent;\n }", "private void createGraph() {\n \t\t\n \t\t// Check capacity\n \t\tCytoscape.ensureCapacity(nodes.size(), edges.size());\n \n \t\t// Extract nodes\n \t\tnodeIDMap = new OpenIntIntHashMap(nodes.size());\n \t\tginy_nodes = new IntArrayList(nodes.size());\n \t\t// OpenIntIntHashMap gml_id2order = new OpenIntIntHashMap(nodes.size());\n \n \t\tfinal HashMap gml_id2order = new HashMap(nodes.size());\n \n \t\tSet nodeNameSet = new HashSet(nodes.size());\n \n \t\tnodeMap = new HashMap(nodes.size());\n \n \t\t// Add All Nodes to Network\n \t\tfor (int idx = 0; idx < nodes.size(); idx++) {\n \t\t\t\n \t\t\tif (taskMonitor != null) {\n \t\t\t\ttaskMonitor.setPercentCompleted(percentUtil.getGlobalPercent(1,\n \t\t\t\t\t\tidx, nodes.size()));\n \t\t\t}\n \n \t\t\t// Get a node object (NOT a giny node. XGMML node!)\n \t\t\tfinal cytoscape.generated2.Node curNode = (cytoscape.generated2.Node) nodes\n \t\t\t\t\t.get(idx);\n \t\t\tfinal String nodeType = curNode.getName();\n \t\t\tfinal String label = (String) curNode.getLabel();\n \n \t\t\treadAttributes(label, curNode.getAtt(), NODE);\n \n \t\t\tnodeMap.put(curNode.getId(), label);\n \n \t\t\tif (nodeType != null) {\n \t\t\t\tif (nodeType.equals(\"metaNode\")) {\n \t\t\t\t\tfinal Iterator it = curNode.getAtt().iterator();\n \t\t\t\t\twhile (it.hasNext()) {\n \t\t\t\t\t\tfinal Att curAttr = (Att) it.next();\n \t\t\t\t\t\tif (curAttr.getName().equals(\"metanodeChildren\")) {\n \t\t\t\t\t\t\tmetanodeMap.put(label, ((Graph) curAttr.getContent()\n \t\t\t\t\t\t\t\t\t.get(0)).getNodeOrEdge());\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 (nodeNameSet.add(curNode.getId())) {\n \t\t\t\tfinal Node node = (Node) Cytoscape.getCyNode(label, true);\n \n \t\t\t\tginy_nodes.add(node.getRootGraphIndex());\n \t\t\t\tnodeIDMap.put(idx, node.getRootGraphIndex());\n \n \t\t\t\t// gml_id2order.put(Integer.parseInt(curNode.getId()), idx);\n \n \t\t\t\tgml_id2order.put(curNode.getId(), Integer.toString(idx));\n \n \t\t\t\t// ((KeyValue) node_root_index_pairs.get(idx)).value = (new\n \t\t\t\t// Integer(\n \t\t\t\t// node.getRootGraphIndex()));\n \t\t\t} else {\n \t\t\t\tthrow new XGMMLException(\"XGMML id \" + nodes.get(idx)\n \t\t\t\t\t\t+ \" has a duplicated label: \" + label);\n \t\t\t\t// ((KeyValue)node_root_index_pairs.get(idx)).value = null;\n \t\t\t}\n \t\t}\n \t\tnodeNameSet = null;\n \n \t\t// Extract edges\n \t\tginy_edges = new IntArrayList(edges.size());\n \t\tSet edgeNameSet = new HashSet(edges.size());\n \n \t\tfinal CyAttributes edgeAttributes = Cytoscape.getEdgeAttributes();\n \n \t\t// Add All Edges to Network\n \t\tfor (int idx = 0; idx < edges.size(); idx++) {\n \n \t\t\tif (taskMonitor != null) {\n \t\t\t\ttaskMonitor.setPercentCompleted(percentUtil.getGlobalPercent(2,\n \t\t\t\t\t\tidx, edges.size()));\n \t\t\t}\n \t\t\tfinal cytoscape.generated2.Edge curEdge = (cytoscape.generated2.Edge) edges\n \t\t\t\t\t.get(idx);\n \n \t\t\tif (gml_id2order.containsKey(curEdge.getSource())\n \t\t\t\t\t&& gml_id2order.containsKey(curEdge.getTarget())) {\n \n \t\t\t\tString edgeName = curEdge.getLabel();\n \n \t\t\t\tif (edgeName == null) {\n \t\t\t\t\tedgeName = \"N/A\";\n \t\t\t\t}\n \n \t\t\t\tint duplicate_count = 1;\n \t\t\t\twhile (!edgeNameSet.add(edgeName)) {\n \t\t\t\t\tedgeName = edgeName + \"_\" + duplicate_count;\n \t\t\t\t\tduplicate_count += 1;\n \t\t\t\t}\n \n \t\t\t\tEdge edge = Cytoscape.getRootGraph().getEdge(edgeName);\n \n \t\t\t\tif (edge == null) {\n \n \t\t\t\t\tfinal String sourceName = (String) nodeMap.get(curEdge\n \t\t\t\t\t\t\t.getSource());\n \t\t\t\t\tfinal String targetName = (String) nodeMap.get(curEdge\n \t\t\t\t\t\t\t.getTarget());\n \n \t\t\t\t\tfinal Node node_1 = Cytoscape.getRootGraph().getNode(\n \t\t\t\t\t\t\tsourceName);\n \t\t\t\t\tfinal Node node_2 = Cytoscape.getRootGraph().getNode(\n \t\t\t\t\t\t\ttargetName);\n \n \t\t\t\t\tfinal Iterator it = curEdge.getAtt().iterator();\n \t\t\t\t\tAtt interaction = null;\n \t\t\t\t\tString itrValue = \"unknown\";\n \t\t\t\t\twhile (it.hasNext()) {\n \t\t\t\t\t\tinteraction = (Att) it.next();\n \t\t\t\t\t\tif (interaction.getName().equals(\"interaction\")) {\n \t\t\t\t\t\t\titrValue = interaction.getValue();\n \t\t\t\t\t\t\tif (itrValue == null) {\n \t\t\t\t\t\t\t\titrValue = \"unknown\";\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t\tbreak;\n \t\t\t\t\t\t}\n \t\t\t\t\t}\n \n \t\t\t\t\tedge = Cytoscape.getCyEdge(node_1, node_2,\n \t\t\t\t\t\t\tSemantics.INTERACTION, itrValue, true);\n \n \t\t\t\t\t// Add interaction to CyAttributes\n \t\t\t\t\tedgeAttributes.setAttribute(edge.getIdentifier(),\n \t\t\t\t\t\t\tSemantics.INTERACTION, itrValue);\n \t\t\t\t}\n \n \t\t\t\t// Set correct ID, canonical name and interaction name\n \t\t\t\tedge.setIdentifier(edgeName);\n \n \t\t\t\treadAttributes(edgeName, curEdge.getAtt(), EDGE);\n \n \t\t\t\tginy_edges.add(edge.getRootGraphIndex());\n \t\t\t\t// ((KeyValue) edge_root_index_pairs.get(idx)).value = (new\n \t\t\t\t// Integer(\n \t\t\t\t// edge.getRootGraphIndex()));\n \t\t\t} else {\n \t\t\t\tthrow new XGMMLException(\n \t\t\t\t\t\t\"Non-existant source/target node for edge with gml (source,target): \"\n \t\t\t\t\t\t\t\t+ nodeMap.get(curEdge.getSource()) + \",\"\n \t\t\t\t\t\t\t\t+ nodeMap.get(curEdge.getTarget()));\n \t\t\t}\n \t\t}\n \t\tedgeNameSet = null;\n \n \t\tif (metanodeMap.size() != 0) {\n \t\t\tfinal Iterator it = metanodeMap.keySet().iterator();\n \t\t\twhile (it.hasNext()) {\n \t\t\t\tfinal String key = (String) it.next();\n \t\t\t\tcreateMetaNode(key, (List) metanodeMap.get(key));\n \t\t\t}\n \t\t}\n \t}", "public void addEdge(Node from, Node to);", "public void addEdge(int start, int end);", "public Graph createGraph() {\n String fileName;\n// fileName =\"./428333.edges\";\n String line;\n Graph g = new Graph();\n// List<String> vertexNames = new ArrayList<>();\n// try\n// {\n// BufferedReader in=new BufferedReader(new FileReader(fileName));\n// line=in.readLine();\n// while (line!=null) {\n////\t\t\t\tSystem.out.println(line);\n// String src = line.split(\" \")[0];\n// String dst = line.split(\" \")[1];\n//// vertexNames.add(src);\n//// vertexNames.add(dst);\n//// System.out.println(src+\" \"+dst);\n// g.addEdge(src, dst, 1);\n// line=in.readLine();\n// }\n// in.close();\n// } catch (Exception e) {\n//\t\t\te.printStackTrace();\n// }\n\n fileName=\"./788813.edges\";\n// List<String> vertexNames = new ArrayList<>();\n try\n {\n BufferedReader in=new BufferedReader(new FileReader(fileName));\n line=in.readLine();\n while (line!=null) {\n//\t\t\t\tSystem.out.println(line);\n String src = line.split(\" \")[0];\n String dst = line.split(\" \")[1];\n g.addEdge(src, dst, 1);\n line=in.readLine();\n }\n in.close();\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n// Graph g = new Graph(new String[]{\"v0\", \"v1\", \"v2\", \"v3\", \"v4\", \"v5\", \"v6\", \"v7\", \"v8\"});\n// // Add the required edges.\n// g.addEdge(\"v0\", \"v1\", 4); g.addEdge(\"v0\", \"v7\", 8);\n// g.addEdge(\"v1\", \"v2\", 8); g.addEdge(\"v1\", \"v7\", 11); g.addEdge(\"v2\", \"v1\", 8);\n// g.addEdge(\"v2\", \"v8\", 2); g.addEdge(\"v2\", \"v5\", 4); g.addEdge(\"v2\", \"v3\", 7);\n// g.addEdge(\"v3\", \"v2\", 7); g.addEdge(\"v3\", \"v5\", 14); g.addEdge(\"v3\", \"v4\", 9);\n// g.addEdge(\"v4\", \"v3\", 9); g.addEdge(\"v4\", \"v5\", 10);\n// g.addEdge(\"v5\", \"v4\", 10); g.addEdge(\"v5\", \"v3\", 9); g.addEdge(\"v5\", \"v2\", 4);\n// g.addEdge(\"v5\", \"v6\", 2);\n// g.addEdge(\"v6\", \"v7\", 1); g.addEdge(\"v6\", \"v8\", 6); g.addEdge(\"v6\", \"v5\", 2);\n// g.addEdge(\"v7\", \"v0\", 8); g.addEdge(\"v7\", \"v8\", 7); g.addEdge(\"v7\", \"v1\", 11);\n// g.addEdge(\"v7\", \"v6\", 1);\n// g.addEdge(\"v8\", \"v2\", 2); g.addEdge(\"v8\", \"v7\", 7); g.addEdge(\"v8\", \"v6\", 6);\n\n//\n return g;\n }", "public void createEdges() {\n \tfor(String key : ways.keySet()) {\n \t Way way = ways.get(key);\n \t if(way.canDrive()) {\n \t\tArrayList<String> refs = way.getRefs();\n \t\t\t\n \t\tif(refs.size() > 0) {\n \t\t GPSNode prev = (GPSNode) this.getNode(refs.get(0));\n \t\t drivableNodes.add(prev);\n \t\t \n \t\t GPSNode curr = null;\n \t\t for(int i = 1; i <refs.size(); i++) {\n \t\t\tcurr = (GPSNode) this.getNode(refs.get(i));\n \t\t\tif(curr == null || prev == null)\n \t\t\t continue;\n \t\t\telse {\n \t\t\t double distance = calcDistance(curr.getLatitude(), curr.getLongitude(),\n \t\t\t\t prev.getLatitude(), prev.getLongitude());\n\n \t\t\t GraphEdge edge = new GraphEdge(prev, curr, distance, way.id);\n \t\t\t prev.addEdge(edge);\n \t\t\t curr.addEdge(edge);\n \t\t\t \n \t\t\t drivableNodes.add(curr);\n \t\t\t prev = curr;\n \t\t\t}\n \t\t }\t\n \t\t}\n \t }\n \t}\n }", "void addEdges(Collection<ExpLineageEdge> edges);", "private static void addDepotToGraph(Depot newDepot, Graph<Node, WeightEdge> graph, List<Node> depots, List<Node> trips, Problem problem){\n Node depotSource = new Node(newDepot, newDepot.getNumberOfVehicles(), true);\n graph.addVertex(depotSource);\n depots.add(depotSource);\n\n // add the depot sink vertex\n Node depotSink = new Node(newDepot, -newDepot.getNumberOfVehicles(), false);\n graph.addVertex(depotSink);\n depots.add(depotSink);\n\n // add edges from this depot source to all existing trips entry\n // add edges from all existing trips exit to this depot sink\n for(Node trip : trips){\n if(!trip.isExitNode()){\n // from depot source to trip startPoint\n WeightEdge depotToTripWeightEdge = new BoundedWeightEdge(0, 1);\n graph.addEdge(depotSource, trip, depotToTripWeightEdge);\n graph.setEdgeWeight(depotToTripWeightEdge, problem.getCost(depotSource.getLocation(), trip.getLocation()).toMinutes());\n }else{ //ending point\n // from trip endPoint to depot sink\n WeightEdge tripToDepotWeightEdge = new BoundedWeightEdge(0, 1);\n graph.addEdge(trip, depotSink, tripToDepotWeightEdge);\n graph.setEdgeWeight(tripToDepotWeightEdge, problem.getCost(trip.getLocation(), depotSink.getLocation()).toMinutes());\n }\n }\n\n // add arc from depot source to depot sink with lowerBound: 0 end upperBound: depot.numberOfAvailableVehicles\n // this arc is necessary when some vehicles in the depot are nod used\n Integer numberOfAvailableVehicles = ((Depot) depotSource.getLocation()).getNumberOfVehicles();\n WeightEdge sourceToSinkWeightEdge = new BoundedWeightEdge(0, numberOfAvailableVehicles);\n graph.addEdge(depotSource, depotSink, sourceToSinkWeightEdge);\n graph.setEdgeWeight(sourceToSinkWeightEdge, 0);\n\n }", "private void initializeEdges() {\n for (NasmInst inst : nasm.listeInst) {\n if (inst.source == null || inst.destination == null)\n return;\n Node from = inst2Node.get(label2Inst.get(inst.source.toString()));\n Node to = inst2Node.get(label2Inst.get(inst.destination.toString()));\n if (from == null || to == null)\n return;\n graph.addEdge(from, to);\n }\n }", "void addEdge(int source, int destination, int weight);", "public void addUndirectedEdge(int v1, int v2, Object edgeInfo) {\n//your code here\n Edge edge1 = new Edge(v1, v2, edgeInfo);\n Edge edge2 = new Edge(v2, v1, edgeInfo);\n if(!adjLists[v1].contains(edge1)){\n adjLists[v1].addLast(edge1);\n }\n if(!adjLists[v2].contains(edge2)){\n adjLists[v2].addLast(edge2);\n }\n }", "public void buildGraph(long tailID, long headID, long weight){\n Node tailNode;\n Node headNode;\n\n if(!nodeArr.containsKey(tailID)){ //if the tail is not already in the node arr\n tailNode = new Node(tailID); //create a new node for tail\n nodeArr.put(tailID,tailNode); //add it to the map\n } else{tailNode = nodeArr.get(tailID);} //else get the tail node using tailID\n\n if(!nodeArr.containsKey(headID)){ //if the head is not already in the node arr\n headNode = new Node(headID); //create new node for head\n nodeArr.put(headID,headNode);\n } else{headNode = nodeArr.get(headID);} //else get the head node using headID\n\n //create edge\n Edge currEdge = new Edge(tailNode, headNode, weight);\n edgeArr.add(currEdge); //add that edge to current Array\n tailNode.connectingEdges.add(currEdge); //connect tail node to curr edge\n tailNode.nextNodeArr.add(headNode); //put it in the list\n// System.out.println(currEdge);\n }", "private Graph<Node, DefaultEdge> addNodes(Graph<Node, DefaultEdge> g) {\n List<Node> nodes = nodeRepository.findAll();\n nodes.forEach(g::addVertex);\n return g;\n }", "void addEdge(int x, int y);", "public Id addEdgeRint(Id nodeAIn, Id nodeBIn){//adds an edge to the list, returns ID instead of edge\n\n\t\tint i;\n\t\tEdge e = null;\n\t\tfor(i = 0; i < listOfEdges.size(); i++){\n\t\t\te = listOfEdges.get(i);\n\t\t\tif(e==null) continue;\n\t\t\tif((nodeAIn.compare(e.getNodeA()) && nodeBIn.compare(e.getNodeB())) || (nodeBIn.compare(e.getNodeA()) && nodeAIn.compare(e.getNodeB())))break;\n\t\t}\n\t\tif(i < listOfEdges.size()){ // found duplicate\n\t\t\t//System.out.println(\"found dupe\");\n\t\t\treturn e.getId();\n\t\t}\n\n\t\tNode A = returnNodeById(nodeAIn);\n\t\tNode B = returnNodeById(nodeBIn);\n\t\tif(A == null || B == null) return null;\n\t\tedge_count++;\n\t\tfor(; edge_arrayfirstopen < edge_arraysize && listOfEdges.get(edge_arrayfirstopen) != null; edge_arrayfirstopen++);\n\t\tif(edge_arrayfirstopen >= edge_arraysize){\t//resize\n\t\t\tedge_arraysize = edge_arrayfirstopen +1;\n\t\t\tlistOfEdges.ensureCapacity(edge_arraysize);\n\t\t\tlistOfEdges.setSize(edge_arraysize);\n\t\t}\n\t\tId eid = new Id(edge_arrayfirstopen, edge_count);\n\t\te = new Edge(nodeAIn, nodeBIn, eid);\n\t\tlistOfEdges.set(edge_arrayfirstopen, e);\n\t\t\n\t\tif(edge_arraylasttaken < edge_arrayfirstopen) edge_arraylasttaken = edge_arrayfirstopen; //todo redo\n\n\t\tA.addEdgeId(eid);\n\t\tB.addEdgeId(eid);\n\t\te.updateLength(this);\n\t\treturn eid;\n\t}", "public Edge addEdge(Id nodeAIn, Id nodeBIn){//adds an edge to the list\n\t\tint i;\n\t\tEdge e = null;\n\t\tfor(i = 0; i < listOfEdges.size(); i++){\n\t\t\te = listOfEdges.get(i);\n\t\t\tif(e==null) continue;\n\t\t\tif((nodeAIn.compare(e.getNodeA()) && nodeBIn.compare(e.getNodeB())) || (nodeBIn.compare(e.getNodeA()) && nodeAIn.compare(e.getNodeB()))) break;\n\t\t}\n\t\tif(i < listOfEdges.size()){ // found duplicate\n\t\t\t//System.out.println(\"found dupe\");\n\t\t\treturn e;\n\t\t}\n\t\tNode A = returnNodeById(nodeAIn);\n\t\tNode B = returnNodeById(nodeBIn);\n\t\tif(A == null || B == null) return null;\n\t\tedge_count++;\n\t\tfor(; edge_arrayfirstopen < edge_arraysize && listOfEdges.get(edge_arrayfirstopen) != null; edge_arrayfirstopen++);\n\t\tif(edge_arrayfirstopen >= edge_arraysize){\t//resize\n\t\t\tedge_arraysize = edge_arrayfirstopen+1;\n\t\t\tlistOfEdges.ensureCapacity(edge_arraysize);\n\t\t\tlistOfEdges.setSize(edge_arraysize);\n\t\t}\n\t\tId eid = new Id(edge_arrayfirstopen, edge_count);\n\t\te = new Edge(nodeAIn, nodeBIn, eid);\n\t\tlistOfEdges.set(edge_arrayfirstopen, e);\n\t\t\n\t\tif(edge_arraylasttaken < edge_arrayfirstopen) edge_arraylasttaken = edge_arrayfirstopen; //todo redo\n\n\t\tA.addEdgeId(eid);\n\t\tB.addEdgeId(eid);\n\t\te.updateLength(this);\n\t\treturn e;\n\t}", "public void addEdge(String node1, String node2) {\n\r\n LinkedHashSet<String> adjacent = map.get(node1);\r\n// checking to see if adjacent node exist or otherwise is null \r\n if (adjacent == null) {\r\n adjacent = new LinkedHashSet<String>();\r\n map.put(node1, adjacent);\r\n }\r\n adjacent.add(node2); // if exist we add the instance node to adjacency list\r\n }", "void addEdge(Edge e) {\n if (e.getTail().equals(this)) {\n outEdges.put(e.getHead(), e);\n\n return;\n } else if (e.getHead().equals(this)) {\n indegree++;\n inEdges.put(e.getTail(), e);\n\n return;\n }\n\n throw new RuntimeException(\"Cannot add edge that is unrelated to current node.\");\n }", "void addDirectedEdge(final Node first, final Node second)\n {\n if ( first == second )\n {\n return;\n }\n else if (first.connectedNodes.contains(second))\n return;\n else\n first.connectedNodes.add(second);\n }", "public void addEdge(Integer id, UNode n1, UNode n2, String edge)\r\n {\r\n UEdge e = new UEdge(id, n1, n2, edge);\r\n n1.addOutEdge(e);\r\n n2.addInEdge(e);\r\n uEdges.put (id, e);\r\n }", "private ScheduleGrph initializeIdenticalTaskEdges(ScheduleGrph input) {\n\n\t\tScheduleGrph correctedInput = (ScheduleGrph) SerializationUtils.clone(input);\n\t\t// FORKS AND TODO JOINS\n\t\t/*\n\t\t * for (int vert : input.getVertices()) { TreeMap<Integer, List<Integer>> sorted\n\t\t * = new TreeMap<Integer, List<Integer>>(); for (int depend :\n\t\t * input.getOutNeighbors(vert)) { int edge = input.getSomeEdgeConnecting(vert,\n\t\t * depend); int weight = input.getEdgeWeightProperty().getValueAsInt(edge); if\n\t\t * (sorted.get(weight) != null) { sorted.get(weight).add(depend); } else {\n\t\t * ArrayList<Integer> a = new ArrayList(); a.add(depend); sorted.put(weight, a);\n\t\t * }\n\t\t * \n\t\t * } int curr = -1; for (List<Integer> l : sorted.values()) { for (int head : l)\n\t\t * {\n\t\t * \n\t\t * if (curr != -1) { correctedInput.addDirectedSimpleEdge(curr, head); } curr =\n\t\t * head; }\n\t\t * \n\t\t * } }\n\t\t */\n\n\t\tfor (int vert : input.getVertices()) {\n\t\t\tfor (int vert2 : input.getVertices()) {\n\t\t\t\tint vertWeight = input.getVertexWeightProperty().getValueAsInt(vert);\n\t\t\t\tint vert2Weight = input.getVertexWeightProperty().getValueAsInt(vert2);\n\n\t\t\t\tIntSet vertParents = input.getInNeighbors(vert);\n\t\t\t\tIntSet vert2Parents = input.getInNeighbors(vert2);\n\n\t\t\t\tIntSet vertChildren = input.getOutNeighbors(vert);\n\t\t\t\tIntSet vert2Children = input.getOutNeighbors(vert2);\n\n\t\t\t\tboolean childrenEqual = vertChildren.containsAll(vert2Children)\n\t\t\t\t\t\t&& vert2Children.containsAll(vertChildren);\n\n\t\t\t\tboolean parentEqual = vertParents.containsAll(vert2Parents) && vert2Parents.containsAll(vertParents);\n\n\t\t\t\tboolean inWeightsSame = true;\n\t\t\t\tfor (int parent : vertParents) {\n\t\t\t\t\tfor (int parent2 : vert2Parents) {\n\t\t\t\t\t\tif (parent == parent2 && input.getEdgeWeightProperty()\n\t\t\t\t\t\t\t\t.getValue(input.getSomeEdgeConnecting(parent, vert)) == input.getEdgeWeightProperty()\n\t\t\t\t\t\t\t\t.getValue(input.getSomeEdgeConnecting(parent2, vert2))) {\n\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tinWeightsSame = false;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif (!inWeightsSame) {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tboolean outWeightsSame = true;\n\t\t\t\tfor (int child : vertChildren) {\n\t\t\t\t\tfor (int child2 : vert2Children) {\n\t\t\t\t\t\tif (child == child2 && input.getEdgeWeightProperty()\n\t\t\t\t\t\t\t\t.getValue(input.getSomeEdgeConnecting(vert, child)) == input.getEdgeWeightProperty()\n\t\t\t\t\t\t\t\t.getValue(input.getSomeEdgeConnecting(vert2, child2))) {\n\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\toutWeightsSame = false;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif (!outWeightsSame) {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tboolean alreadyEdge = correctedInput.areVerticesAdjacent(vert, vert2)\n\t\t\t\t\t\t|| correctedInput.areVerticesAdjacent(vert2, vert);\n\n\t\t\t\tif (vert != vert2 && vertWeight == vert2Weight && parentEqual && childrenEqual && inWeightsSame\n\t\t\t\t\t\t&& outWeightsSame && !alreadyEdge) {\n\t\t\t\t\tint edge = correctedInput.addDirectedSimpleEdge(vert, vert2);\n\t\t\t\t\tcorrectedInput.getEdgeWeightProperty().setValue(edge, 0);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn correctedInput;\n\t}", "void add(Edge edge);", "Graph(List<Edge> edges) {\n\n //one pass to find all vertices\n // this step avoid add isolated coordinates to the graph\n for (Edge e : edges) {\n if (!graph.containsKey(e.startNode)) {\n graph.put(e.startNode, new Node(e.startNode));\n }\n if (!graph.containsKey(e.endNode)) {\n graph.put(e.endNode, new Node(e.endNode));\n }\n }\n\n //another pass to set neighbouring vertices\n for (Edge e : edges) {\n graph.get(e.startNode).neighbours.put(graph.get(e.endNode), e.weight);\n //graph.get(e.v2).neighbours.put(graph.get(e.v1), e.dist); // also do this for an undirected graph\n }\n }", "int addEdge(int tail, int head);", "public void addEdge(int v1, int v2, Object edgeInfo) {\n//your code here\n Edge edge = new Edge(v1, v2, edgeInfo);\n if(adjLists[v1].contains(edge)){\n return;\n }\n adjLists[v1].addLast(edge);\n }", "public void initialisationComplete(Collection<DAGNode> nodes,\r\n\t\t\tCollection<DAGEdge> edges) {\r\n\t}", "private String createEdgeID(String node1ID, String node2ID) {\n\t\tString edgeID = Integer.toString(this.edgeCount);\n\t\tthis.edgeCount++;\n\n\t\treturn edgeID;\n\t}", "public abstract boolean addEdge(Node node1, Node node2, int weight);", "public void addEdge(E e){\n\t\tedges.add(e);\n\t}", "private static void addTripToGraph(Trip newTrip, Graph<Node, WeightEdge> graph, List<Node> depots, List<Node> trips, Problem problem){\n Node tripStart = new Node(newTrip, 0, false);\n Node tripEnd = new Node(newTrip, 0, true);\n\n graph.addVertex(tripStart);\n graph.addVertex(tripEnd);\n\n // Add weightEdgeWithBounders from trip startPoint to trip endPoint\n // lowerBound and upperBound for this edges is 1, because we are looking for solution that saturates all trips\n WeightEdge tripInternalWeightEdge = new BoundedWeightEdge(1,1);\n graph.addEdge(tripStart, tripEnd, tripInternalWeightEdge);\n graph.setEdgeWeight(tripInternalWeightEdge, 0);\n\n for(Node depot : depots){\n if(depot.isExitNode()){ // is source\n // add weightEdgeWithBounders from depot source to trip startPoint\n WeightEdge depotToTripWeightEdge = new BoundedWeightEdge(0, 1);\n graph.addEdge(depot, tripStart, depotToTripWeightEdge);\n graph.setEdgeWeight(depotToTripWeightEdge, problem.getCost(depot.getLocation(), tripStart.getLocation()).toMinutes());\n }else{ // is depot sink\n // add weightEdgeWithBounders from trip endPoint to depot sink\n WeightEdge tripToDepotWeightEdge = new BoundedWeightEdge(0, 1);\n graph.addEdge(tripEnd, depot, tripToDepotWeightEdge);\n graph.setEdgeWeight(tripToDepotWeightEdge, problem.getCost(tripEnd.getLocation(), depot.getLocation()).toMinutes());\n }\n }\n\n for(Node otherTrip : trips){\n if(otherTrip.isExitNode()){\n // add feasible edges from all trips endPoints to this trip startPoint\n if(isFeasibleEdge(otherTrip, tripStart, problem)){\n WeightEdge otherTripToThisTrip = new BoundedWeightEdge(0, 1);\n graph.addEdge(otherTrip, tripStart, otherTripToThisTrip);\n graph.setEdgeWeight(otherTripToThisTrip, problem.getCost(otherTrip.getLocation(), tripStart.getLocation()).toMinutes());\n }\n }else{\n // add feasible edges from this trip endPoint to all trips startPoints\n if(isFeasibleEdge(tripEnd, otherTrip, problem)){\n WeightEdge thisTripToOtherTrip = new BoundedWeightEdge(0, 1);\n graph.addEdge(tripEnd, otherTrip, thisTripToOtherTrip);\n graph.setEdgeWeight(thisTripToOtherTrip, problem.getCost(tripEnd.getLocation(), otherTrip.getLocation()).toMinutes());\n }\n }\n }\n\n // add this nodes in our trips list;\n trips.add(tripStart);\n trips.add(tripEnd);\n }", "private Graph<Node, DefaultEdge> addEdges(Graph<Node, DefaultEdge> g) {\n List<Edge> edges = edgeRepository.findAll();\n edges.forEach(e -> g.addEdge(new Node(e.getA()), new Node(e.getB())));\n return g;\n }", "private void attachEdges(Diagram d) {\n for (EdgeData edgeData : figEdges) {\n final FigEdge edge = edgeData.getFigEdge();\n\n Object modelElement = modelElementsByFigEdge.get(edge);\n if (modelElement != null) {\n if (edge.getOwner() == null) {\n edge.setOwner(modelElement);\n }\n }\n }\n\n for (EdgeData edgeData : figEdges) {\n final FigEdge edge = edgeData.getFigEdge();\n\n Fig sourcePortFig = findFig(edgeData.getSourcePortFigId());\n Fig destPortFig = findFig(edgeData.getDestPortFigId());\n final FigNode sourceFigNode = getFigNode(edgeData\n .getSourceFigNodeId());\n final FigNode destFigNode = getFigNode(edgeData.getDestFigNodeId());\n\n if (sourceFigNode instanceof FigEdgePort) {\n sourcePortFig = sourceFigNode;\n }\n\n if (destFigNode instanceof FigEdgePort) {\n destPortFig = destFigNode;\n }\n\n if (sourcePortFig == null && sourceFigNode != null) {\n sourcePortFig = getPortFig(sourceFigNode);\n }\n\n if (destPortFig == null && destFigNode != null) {\n destPortFig = getPortFig(destFigNode);\n }\n\n if (sourcePortFig == null || destPortFig == null\n || sourceFigNode == null || destFigNode == null) {\n LOG.log(Level.SEVERE,\n \"Can't find nodes for FigEdge: \" + edge.getId() + \":\"\n + edge.toString());\n edge.removeFromDiagram();\n } else {\n edge.setSourcePortFig(sourcePortFig);\n edge.setDestPortFig(destPortFig);\n edge.setSourceFigNode(sourceFigNode);\n edge.setDestFigNode(destFigNode);\n }\n }\n\n // Once all edges are connected do a compute route on each to make\n // sure that annotations and the edge port is positioned correctly\n // Only do this after all edges are connected as compute route\n // requires all edges to be connected to nodes.\n // TODO: It would be nice not to have to do this and restore annotation\n // positions instead.\n for (Object edge : d.getLayer().getContentsEdgesOnly()) {\n FigEdge figEdge = (FigEdge) edge;\n figEdge.computeRouteImpl();\n }\n }", "public void addEdge(int start, int end, double weight);", "public void addEdge(Edge edge){\n \n synchronized(vertexes){\n Long start = edge.getStart();\n Vertex sVertex = vertexes.get(start);\n if(sVertex != null){\n sVertex.addEdge(edge, true);\n }\n// if undirected graph then adds edge to the finish vertex too \n if(!edge.isDirected()){\n Long finish = edge.getFinish();\n Vertex fVertex = vertexes.get(finish);\n if(fVertex != null){\n fVertex.addEdge(edge, false);\n }\n }\n }\n \n }", "public void addEdge(N startNode, N endNode, E label)\r\n/* 43: */ {\r\n/* 44: 89 */ assert (checkRep());\r\n/* 45: 90 */ if (!contains(startNode)) {\r\n/* 46: 90 */ addNode(startNode);\r\n/* 47: */ }\r\n/* 48: 91 */ if (!contains(endNode)) {\r\n/* 49: 91 */ addNode(endNode);\r\n/* 50: */ }\r\n/* 51: 92 */ ((Map)this.map.get(startNode)).put(endNode, label);\r\n/* 52: 93 */ ((Map)this.map.get(endNode)).put(startNode, label);\r\n/* 53: */ }", "public void addEdge(List<List<Integer>> graph, int from, int to) {\r\n graph.get(from).add(to);\r\n graph.get(to).add(from);\r\n }", "void addEdge(Edge e) {\n edges.add(e);\n addVerticle(e.v1);\n addVerticle(e.v2);\n }", "void addEdge(Edge e) {\n\t\t\tif(!_edges.containsKey(e.makeKey())) {\n\t\t\t\t_edges.put(e.makeKey(),e);\n\t\t\t\te._one.addNeighborEdge(e);\n\t\t\t\te._two.addNeighborEdge(e);\n\t\t\t}\n\t\t}", "void addEdge(int from, int to) {\n\t\tadjList.get(from).add(to);\n\t}", "private void convertTasksToLinkedNodes(List<DependentTask> unorderedTasks, List<SimpleTask> orderedTasks, Queue<TaskNode> orderedTaskNodes) {\n Map<String, TaskNode> nodes = unorderedTasks.stream()\n .collect(Collectors.toMap(DependentTask::getName,\n (task) -> new TaskNode(new SimpleTask(task.getName(), task.getCommand())),\n (u, v) -> { throw new DublicateKeyException(\n \"There are multiple tasks with the same name.\"); },\n HashMap::new));\n //populate the nodes relations\n for (DependentTask dependentTask : unorderedTasks) {\n TaskNode taskNode = nodes.get(dependentTask.getName());\n List<String> requires = dependentTask.getRequires();\n if (requires == null || requires.isEmpty()) {\n orderedTasks.add(taskNode.getTask());\n orderedTaskNodes.add(taskNode);\n taskNode.setOrdered(true);\n continue;\n }\n for (String predecessor : requires) {\n TaskNode predecessorTaskNode = nodes.computeIfAbsent(predecessor, v -> {\n throw new NoSuchTaskException(predecessor);\n });\n taskNode.addPredecessor(predecessorTaskNode);\n predecessorTaskNode.addChild(taskNode);\n }\n }\n }", "private ITaskCluster createTaskGraphForTaskCluster(ITaskCluster taskCluster, ITaskObject... taskObjects) {\n List<IStatusTask> statusTasks = null;\n List<Pair<ITaskObject, IStatusTask>> taskObjectNodes = new ArrayList<>();\n if (taskObjects != null && taskObjects.length > 0) {\n statusTasks = new ArrayList<>();\n for (ITaskObject taskObject : taskObjects) {\n IStatusTask initTask = createInitTask(taskObject);\n taskObjectNodes.add(Pair.of(taskObject, initTask));\n }\n }\n\n ITaskCluster res = getTaskManagerConfiguration().getTaskManagerWriter().saveNewGraphFromTaskCluster(taskCluster, taskObjectNodes);\n\n onTodoTasks(res, statusTasks);\n onCurrentTasks(res, statusTasks);\n\n return res;\n }", "public boolean addNode(DAGNode node) {\r\n\t\treturn true;\r\n\t}", "public void conecta (Integer a, Integer b){\n listaEdges[a].add(b);\n listaEdges[b].add(a);\n }", "@DisplayName(\"Add edges\")\n @Test\n public void testAddEdges() {\n boolean directed1 = true;\n graph = new Graph(new Edge[0], directed1, 0, 5, GraphType.RANDOM);\n graph.addEdges(edges);\n List<Integer> l0 = new ArrayList<>();\n List<Integer> l1 = new ArrayList<>();\n List<Integer> l2 = new ArrayList<>();\n List<Integer> l4 = new ArrayList<>();\n l0.add(1);\n l1.add(2);\n l2.add(3);\n l4.add(0);\n\n Assertions.assertEquals(l0.get(0), graph.getNeighbours(0).get(0));\n Assertions.assertEquals(l1.get(0), graph.getNeighbours(1).get(0));\n Assertions.assertEquals(l2.get(0), graph.getNeighbours(2).get(0));\n Assertions.assertEquals(l4.get(0), graph.getNeighbours(4).get(0));\n }", "public void addEdge(Edge e){\n\t\tedges.put(e.hashCode(), e);\n\t\te.getHead().addConnection(e);\n\t\te.getTail().addConnection(e);\n\t}", "@FXML private void addEdges()\t\t\n\t{ \t\n\t\tif (getSelection().size() >= 2)\t\t\n\t\t{\n\t\t\tList<Edge> edges = getDrawModel().connectSelectedNodes();\n\t\t\tfor (Edge e: edges)\n\t\t\t\tadd(0, e, getActiveLayerName());\n\t\t}\n\t}", "void createGraphForDistributedSingleLoad();", "public void addEdge(Character sourceId, Character destinationId) {\n Node sourceNode = getNode(sourceId);\n Node destinationNode = getNode(destinationId);\n sourceNode.adjacent.add(destinationNode);\n }", "public void addEdge(Edge e){\n edgeList.add(e);\n }", "public void edgeMake(int vertex1, int vertex2) {\n addVertex(vertex1); // both vertices added to the set\n addVertex(vertex2);\n adjacencyMap.get(vertex1).add(vertex2); // both vertices receive the edge\n adjacencyMap.get(vertex2).add(vertex1);\n }", "public void insertEdges(Edge[] E){\n\t\tthis.edges = E;\n\t\tthis.nodesLength = nodesLength(E);\n\t\tthis.nodes = new Node[(int)this.nodesLength];\n\t\tfor (long n = 0; n < this.nodesLength; n++) {\n\t\t\tthis.nodes[(int)n] = new Node(n);\n\t\t}\n\t\tthis.edgesLength = E.length;\n\t\t\n\t\t\n\t\tfor (long edgeToAdd = 0; edgeToAdd < this.edgesLength; edgeToAdd++) {\n\t\t\tthis.nodes[(int)E[(int)edgeToAdd].getFrom()].getEdges().add(E[(int)edgeToAdd]);\n\t\t\tthis.nodes[(int)E[(int)edgeToAdd].getTo()].getEdges().add(E[(int)edgeToAdd]);\n\t\t}\n\t\t\n\t}", "public static void addEdge(List<List<Integer>> graph, int from, int to) {\n\t graph.get(from).add(to);\n\t graph.get(to).add(from);\n\t }", "public void addedge(String fro, String to, int wt) {\r\n Edge e = new Edge(fro, to, wt);\r\n\r\n\r\n Set<String> keys = graph.keySet();\r\n// Object[] arr = keys.toArray();\r\n int f = 0;\r\n if(graph.containsKey(fro)&&graph.containsKey(to))\r\n {\r\n\r\n int[] bb2 = new int[2000];\r\n for(int zz=0;zz<5000;zz++){\r\n\r\n\r\n ArrayList<Integer> abcd = new ArrayList<>();\r\n abcd.add(zz);\r\n\r\n if(zz<2500)\r\n zz++;\r\n else\r\n zz++;\r\n\r\n bb2[zz%500]=zz;\r\n\r\n\r\n int qq= 5000;\r\n\r\n qq--;\r\n\r\n String nnn = \"aaa aa\";\r\n nnn+=\"df\";\r\n\r\n\r\n }\r\n\r\n }\r\n else\r\n {\r\n\r\n\r\n System.out.println(\"some vertices are not present\");\r\n return;\r\n }\r\n for ( String y : keys) {\r\n if (fro.compareTo(y) == 0) {\r\n f = 1;\r\n ArrayList<Edge> ee =graph.get(y);\r\n\r\n\r\n ee.add(e);\r\n }\r\n\r\n\r\n }\r\n if (f == 0) {}\r\n }", "void nodeCreate( long id );", "private void addEdge(int from, int to, Edge e) {\n _edges.get(from).set(to, e);\n _edgeMap.put(e, new int [] {from, to});\n }", "public void addEdge(edge_type edge) {\n //first make sure the from and to nodes exist within the graph\n assert (edge.getFrom() < nextNodeIndex) && (edge.getTo() < nextNodeIndex) :\n \"<SparseGraph::AddEdge>: invalid node index\";\n\n //make sure both nodes are active before adding the edge\n if ((nodeVector.get(edge.getTo()).getIndex() != invalid_node_index)\n && (nodeVector.get(edge.getFrom()).getIndex() != invalid_node_index)) {\n //add the edge, first making sure it is unique\n if (isEdgeNew(edge.getFrom(), edge.getTo())) {\n edgeListVector.get(edge.getFrom()).add(edge);\n }\n\n //if the graph is undirected we must add another connection in the opposite\n //direction\n if (!isDirectedGraph) {\n //check to make sure the edge is unique before adding\n if (isEdgeNew(edge.getTo(), edge.getFrom())) {\n GraphEdge reversedEdge = new GraphEdge(edge.getTo(),edge.getFrom(),edge.getCost());\n edgeListVector.get(edge.getTo()).add(reversedEdge);\n }\n }\n }\n }", "void addSeeds(TaskList tasks);", "void addEdge(int a, int b) {\n Edge e = new Edge(V[a], V[b]);\n V[a].Adj.add(e);\n V[b].Adj.add(e);\n }", "void addAll(Graph graph);", "public void addEdge(Edge e){\n\t\tadjacentEdges.add(e);\n\t}", "protected void addDefaultEdges(IWeightedGraph<GraphNode, WeightedEdge> graph, Queue<GraphNode> nodesToWorkOn) {\r\n\r\n\t\t// graphNode.action != null -> start and ends\r\n\t\tfor (GraphNode graphNode : graph.getVertices()) {\r\n\t\t\tif (!this.startNode.equals(graphNode) && graphNode.action != null && (graphNode.preconditions.isEmpty()\r\n\t\t\t\t\t|| areAllPreconditionsMet(graphNode.preconditions, this.startNode.effects))) {\r\n\t\t\t\taddEgdeWithWeigth(graph, this.startNode, graphNode, new WeightedEdge(), 0);\r\n\t\t\t\tif (!nodesToWorkOn.contains(graphNode)) {\r\n\t\t\t\t\tnodesToWorkOn.add(graphNode);\r\n\t\t\t\t}\r\n\r\n\t\t\t\t// Add the path to the node to the GraphPath list in the node\r\n\t\t\t\t// since this is the first step inside the graph.\r\n\t\t\t\tList<GraphNode> vertices = new ArrayList<GraphNode>();\r\n\t\t\t\tList<WeightedEdge> edges = new ArrayList<WeightedEdge>();\r\n\r\n\t\t\t\tvertices.add(this.startNode);\r\n\t\t\t\tvertices.add(graphNode);\r\n\r\n\t\t\t\tedges.add(graph.getEdge(this.startNode, graphNode));\r\n\r\n\t\t\t\tWeightedPath<GraphNode, WeightedEdge> graphPathToDefaultNode = PathFactory.generateWeightedPath(graph,\r\n\t\t\t\t\t\tthis.startNode, graphNode, vertices, edges);\r\n\r\n\t\t\t\tgraphNode.addGraphPath(null, graphPathToDefaultNode);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "private static List<EventNode> addNodesToGraph(ChainsTraceGraph g,\n String[] labels) {\n LinkedList<EventNode> list = new LinkedList<EventNode>();\n for (String label : labels) {\n Event act = new Event(label);\n EventNode e = new EventNode(act);\n g.add(e);\n list.add(e);\n }\n\n g.tagInitial(list.get(0), Event.defTimeRelationStr);\n return list;\n }", "void addEdge(int vertex1, int vertex2){\n adjList[vertex1].add(vertex2);\n adjList[vertex2].add(vertex1);\n }", "private void addUndirectedEdge(int i, int j) {\n\t\tNode first = nodeList.get(i-1);\r\n\t\tNode second = nodeList.get(j-1);\r\n//\t\tSystem.out.println(first.name);\r\n//\t\tSystem.out.println(second.name);\r\n\t\tfirst.getNeighbors().add(second);//Neighbour of first is second. Store it.\r\n\t\tsecond.getNeighbors().add(first);\r\n\t}", "private static Map<String, Integer> assignVertexIds(DAG dag) {\n Map<String, Integer> vertexIdMap = new LinkedHashMap<>();\n final int[] vertexId = {0};\n dag.forEach(v -> vertexIdMap.put(v.getName(), vertexId[0]++));\n return vertexIdMap;\n }", "public boolean addEdge(T begin, T end, int weight);", "public Graph(){//constructor\n //edgemap\n srcs=new LinkedList<>();\n maps=new LinkedList<>();\n chkIntegrity(\"edgemap\");\n \n nodes=new LinkedList<>();\n //m=new EdgeMap();\n }", "public void addEdge(int v1, int v2) {\n\t\tedges[v1][v2] = 1;\n\t\tedges[v2][v1] = 1;\n\t\tsize++;\n\t}", "public boolean addEdge(String id1, String id2, Integer weight)\n\t{\n\t\t// if its a new edge, or a new edge weight\n\t\tif (!hasEdge(id1, id2) || (weight != null && edgeWeight(id1, id2) == null))\n\t\t{\n\t\t\tNode n1 = getNode(id1);\n\t\t\tNode n2 = getNode(id2);\n\t\t\tn1.addEdge(n2, weight);\n\t\t\tn2.addEdge(n1, weight);\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "public void addEdge(FlowEdge e){\n int v = e.getFrom();\n int w = e.getTo();\n adj[v].add(e); //add forward edge\n adj[w].add(e); //add backward edge\n }", "public void addVertex (){\t\t \n\t\tthis.graph.insert( new MyList<Integer>() );\n\t}", "protected void createTopologyGraph() {\n graph = new TopologyGraph(roots, boundaries);\n\n // check and resolve conflicts about input priorities\n AbstractExecNodeExactlyOnceVisitor inputPriorityVisitor =\n new AbstractExecNodeExactlyOnceVisitor() {\n @Override\n protected void visitNode(ExecNode<?> node) {\n if (!boundaries.contains(node)) {\n visitInputs(node);\n }\n updateTopologyGraph(node);\n }\n };\n roots.forEach(n -> n.accept(inputPriorityVisitor));\n }", "public void addEdge(Edge e) {\n incident.add(e);\n }", "public static void addEdge(List<List<Integer>> graph, int from, int to) {\n graph.get(from).add(to);\n }", "private void buildGraph()\n\t{\n\t\taddVerticesToGraph();\n\t\taddLinkesToGraph();\n\t}", "private void addEdge(int from, int to, int cost) {\r\n\t\tif (edges[from] == null)\r\n\t\t\tedges[from] = new HashMap<Integer, Integer>(INITIAL_MAP_SIZE);\r\n\t\tif (edges[from].put(to, cost) == null)\r\n\t\t\tnumEdges++;\r\n\t}", "public void addUndirectedEdge(int vertexOne, int vertexTwo) {\n\t\tGraphNode first = nodeList.get(vertexOne - 1);\n\t\tGraphNode second = nodeList.get(vertexTwo - 1);\n\t\tfirst.getNeighbors().add(second);//Neighbour of first is second. Store it.\n\t\tsecond.getNeighbors().add(first);//Neighbour of second is first. Store it.\n\t\tSystem.out.println(first.getNeighbors());\n\t\tSystem.out.println(second.getNeighbors());\n\t}", "public void addEdge(DirectedEdge e) \n {\n int v = e.from();\n adj[v].add(e);\n E++;\n }", "@Override\n\tpublic boolean addEdge(ET edge)\n\t{\n\t\tif (edge == null)\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t\tif (edgeList.contains(edge))\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t\tList<N> graphNodes = edge.getAdjacentNodes();\n\t\tfor (N node : graphNodes)\n\t\t{\n\t\t\taddNode(node);\n\t\t\tnodeEdgeMap.get(node).add(edge);\n\t\t}\n\t\tedgeList.add(edge);\n\t\tgcs.fireGraphEdgeChangeEvent(edge, EdgeChangeEvent.EDGE_ADDED);\n\t\treturn true;\n\t}", "@Test\n\tpublic void testDAG() {\n\t\tDirectedGraph<Integer, DirectedEdge<Integer>> directedGraph = new DirectedGraph<Integer, DirectedEdge<Integer>>();\n\t\tdirectedGraph.addNode(1);\n\t\tdirectedGraph.addNode(2);\n\t\tdirectedGraph.addNode(3);\n\t\tdirectedGraph.addNode(4);\n\t\tdirectedGraph.addNode(5);\n\t\tdirectedGraph.addDirectedEdge(new DirectedEdge<Integer>(1, 2));\n\t\tdirectedGraph.addDirectedEdge(new DirectedEdge<Integer>(1, 3));\n\t\tdirectedGraph.addDirectedEdge(new DirectedEdge<Integer>(2, 3));\n\t\tdirectedGraph.addDirectedEdge(new DirectedEdge<Integer>(4, 5));\n\t\t\n\t\t// tested method calls\n\t\tSet<Integer> reachableNodesFrom1 = service.getReachableNodes(directedGraph, 1);\n\t\tSet<Integer> reachableNodesFrom2 = service.getReachableNodes(directedGraph, 2);\n\t\tSet<Integer> reachableNodesFrom3 = service.getReachableNodes(directedGraph, 3);\n\t\tSet<Integer> reachableNodesFrom4 = service.getReachableNodes(directedGraph, 4);\n\t\tSet<Integer> reachableNodesFrom5 = service.getReachableNodes(directedGraph, 5);\n\t\t\n\t\t// assertions\n\t\tassertEquals(ImmutableSet.of(2, 3), reachableNodesFrom1);\n\t\tassertEquals(ImmutableSet.of(3), reachableNodesFrom2);\n\t\tassertEquals(ImmutableSet.of(), reachableNodesFrom3);\n\t\tassertEquals(ImmutableSet.of(5), reachableNodesFrom4);\n\t\tassertEquals(ImmutableSet.of(), reachableNodesFrom5);\n\t}", "protected void addGraph(IGraph graph) {\n\n if (graph != null) {\n\n this.ids.add(graph.getID());\n this.graphMap.put(graph.getID(), graph);\n }\n }", "private static void createNodeIfNonexisting(\n \t\t\tGraphDirected<NodeCppOSMDirected, EdgeCppOSMDirected> osmGraph,\n \t\t\tfinal Long nodeId) {\n \t\tif (osmGraph.getNode(nodeId) == null) {\n \t\t\tfinal NodeCppOSMDirected newNode = new NodeCppOSMDirected(nodeId);\n \t\t\tnewNode.setName(\"\"+nodeId);\n \t\t\tosmGraph.addNode(newNode);\n \t\t}\n \t}", "public void addEdge(int i, int j)\n {\n adjList[i].add(j);\n adjList[j].add(i);\n numEdges++;\n }", "@Test\n\tpublic void addEdgeTest() {\n\t\tList<Vertex> vertices = new ArrayList<>();\n\t\tvertices.add(C);\n\t\tvertices.add(D);\n\t\tedge_0.addVertices(vertices);\n\t\tassertTrue(graph.addEdge(edge_0));\n\t\tassertFalse(graph.addEdge(edge_0));\n\t}", "private void addNode(int nodeId, short startNodeOutgoingNodes) {\n if (!nodes.containsKey(nodeId)) {\n statistic.log(Type.LOADED_NODES);\n nodes.put(nodeId, new NodeBINE(nodeId, startNodeOutgoingNodes));\n maxNodeSize = Math.max(maxNodeSize,nodes.size());\n }\n }", "@Test\r\n void add_remove_add() {\r\n graph.addEdge(\"A\", \"B\");\r\n graph.addEdge(\"A\", \"C\");\r\n graph.addEdge(\"B\",\"D\");\r\n graph.addEdge(\"C\",\"D\");\r\n graph.addEdge(\"D\", \"E\"); \r\n // Check that E is in graph with correct edges\r\n List<String> adjacent = graph.getAdjacentVerticesOf(\"D\");\r\n vertices = graph.getAllVertices(); \r\n if(!vertices.contains(\"E\") | !adjacent.contains(\"E\")) {\r\n fail();\r\n }\r\n //Remove E\r\n graph.removeVertex(\"E\");\r\n if(vertices.contains(\"E\") | adjacent.contains(\"E\")) {\r\n fail();\r\n }\r\n \r\n //Add E back into graph with different edge\r\n graph.addEdge(\"B\", \"E\");\r\n adjacent = graph.getAdjacentVerticesOf(\"B\");\r\n if(!vertices.contains(\"E\") | !adjacent.contains(\"E\")) {\r\n fail();\r\n }\r\n }", "private void addVerticesToGraph()\n\t{\n\t\tString vertexName;\n\n\t\tMap<Long, IOFSwitch> switches = this.floodlightProvider.getSwitches();\n\t\tfor(IOFSwitch s :switches.values())\n\t\t{\n\t\t\tvertexName =Long.toString(s.getId());\n\t\t\tm_graph.addVertex(vertexName);\t\t\t \t\t\t \n\t\t}\n\t\tSystem.out.println(m_graph);\n\t}", "private void connectAll()\n {\n\t\tint i = 0;\n\t\tint j = 1;\n\t\twhile (i < getNodes().size()) {\n\t\t\twhile (j < getNodes().size()) {\n\t\t\t\tLineEdge l = new LineEdge(false);\n\t\t\t\tl.setStart(getNodes().get(i));\n\t\t\t\tl.setEnd(getNodes().get(j));\n\t\t\t\taddEdge(l);\n\t\t\t\tj++;\n\t\t\t}\n\t\t\ti++; j = i+1;\n\t\t}\n\n }", "public static void main(String[] args) {\n\t\tDirectedAcyclicGraph<String, DefaultEdge> dag = new DirectedAcyclicGraph<>(DefaultEdge.class);\r\n\t\t\r\n\t\t//Add some vertices to the DAG and display the contents\r\n\t\tdag.addVertex(\"1\");\r\n\t\tdag.addVertex(\"2\");\r\n\t\tdag.addVertex(\"3\");\r\n\t\tdag.addVertex(\"4\");\r\n\t\tSystem.out.println(dag.toString());\r\n\t\t\r\n\t\t//Properly use the addDagEdge() method and display the contents\r\n\t\ttry {\r\n\t\t\tdag.addDagEdge(\"1\", \"2\");\r\n\t\t\tdag.addDagEdge(\"2\", \"3\");\r\n\t\t\tdag.addDagEdge(\"3\", \"4\");\r\n\t\t} catch (CycleFoundException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\tSystem.out.println(dag.toString());\r\n\t\t\r\n\t\t//Purposefully have addDagEdge() throw an exception\r\n\t\ttry {\r\n\t\t\tdag.addDagEdge(\"4\", \"1\");\r\n\t\t} catch (CycleFoundException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t\t//Display the contents of the DAG\r\n\t\tSystem.out.println(dag.toString());\r\n\t\t\r\n\t\t//Acknowledge that the addEdge() method can work without a try-catch block\r\n\t\tdag.addEdge(\"2\", \"4\");\r\n\t\t\r\n\t\t//Display the contents of the DAG\r\n\t\tSystem.out.println(dag.toString());\r\n\t\t\r\n\t\t//Show that addEdge() throws an IllegalArgumentException when used improperly\r\n\t\ttry {\r\n\t\t\tdag.addEdge(\"4\", \"1\");\r\n\t\t} catch (IllegalArgumentException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t\t//Remove \"4\" from the DAG and display the contents\r\n\t\tdag.removeVertex(\"4\");\r\n\t\tSystem.out.println(dag.toString());\r\n\t\t\r\n\t\t//Add \"4\" and \"5\" and associated edges (3, 4) and (3, 5)\r\n\t\tdag.addVertex(\"4\");\r\n\t\tdag.addVertex(\"5\");\r\n\t\ttry {\r\n\t\t\tdag.addDagEdge(\"3\", \"4\");\r\n\t\t\tdag.addDagEdge(\"3\", \"5\");\r\n\t\t} catch (CycleFoundException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t\t//Display the ancestors of \"4\"\r\n\t\tSystem.out.println(dag.getAncestors(dag, \"4\").toString());\r\n\t\t\r\n\t\t//Display the descendants of \"2\"\r\n\t\tSystem.out.println(dag.getDescendants(dag, \"2\").toString());\r\n\t}", "public void testAddEdge() {\n System.out.println(\"addEdge\");\n\n Graph<Integer, Edge<Integer>> graph = newGraph();\n\n for (int i = 0; i < 25; i++) {\n graph.addVertex(new Integer(i));\n }\n\n for (int i = 0; i < 25; i++) {\n for (int j = 0; j < 25; j++) {\n Assert\n .assertTrue(graph.addEdge(new UnweightedEdge(new Integer(i), new Integer(j))));\n }\n }\n\n for (int i = 0; i < 25; i++) {\n for (int j = 0; j < 25; j++) {\n Assert\n .assertFalse(graph.addEdge(new UnweightedEdge(new Integer(i), new Integer(j))));\n }\n }\n }", "void schedule(Collection<ExportedTaskNode> taskNodes);", "public Graph(Collection<LabeledEdge> edges, Collection<Vertex> vertices) {\n\t\tthis.edges = new HashSet<>(edges);\n\t\tthis.vertices = new HashSet<>(vertices);\n\t\tthis.edgesByStart = new HashMap<>();\n\t\tthis.edgesByEnd = new HashMap<>();\n\t\tthis.edgesByAction = new HashMap<>();\n\t\tthis.searcher = null;\n\t\tfor(Vertex vertex : vertices){\n\t\t\tthis.edgesByStart.put(vertex, new HashSet<LabeledEdge>());\n\t\t\tthis.edgesByEnd.put(vertex, new HashSet<LabeledEdge>());\n\t\t}\n\t\tfor(LabeledEdge trans : edges){\n\t\t\tassert(edgesByStart.keySet().contains(trans.getStart()));\n\t\t\tassert(edgesByEnd.keySet().contains(trans.getEnd()));\n\t\t\tthis.edgesByStart.get(trans.getStart()).add(trans);\n\t\t\tthis.edgesByEnd.get(trans.getEnd()).add(trans);\n\t\t\tif(edgesByAction.get(trans.getLabel()) == null)\n\t\t\t\tedgesByAction.put(trans.getLabel(), new HashSet<LabeledEdge>());\n\t\t\tthis.edgesByAction.get(trans.getLabel()).add(trans);\n\t\t}\n\t}", "public void addFigEdge(final FigEdge figEdge, final String sourcePortFigId,\n final String destPortFigId, final String sourceFigNodeId,\n final String destFigNodeId) {\n figEdges.add(new EdgeData(figEdge, sourcePortFigId, destPortFigId,\n sourceFigNodeId, destFigNodeId));\n }" ]
[ "0.6331353", "0.58294857", "0.57886565", "0.57794935", "0.5756145", "0.574836", "0.5745825", "0.5737122", "0.56981516", "0.5665731", "0.56343645", "0.56037253", "0.5603231", "0.5575196", "0.556739", "0.55654985", "0.5560774", "0.55542225", "0.5521468", "0.5511027", "0.54841167", "0.5483907", "0.5479925", "0.54782695", "0.5462194", "0.5460655", "0.5443928", "0.5437249", "0.5435746", "0.542758", "0.5418547", "0.5404344", "0.539171", "0.53788334", "0.53750634", "0.5373701", "0.5372206", "0.53684217", "0.5365633", "0.535916", "0.5344452", "0.5292484", "0.52817273", "0.5273292", "0.52693796", "0.5257822", "0.52547944", "0.52461594", "0.5235876", "0.52344793", "0.52282995", "0.52278876", "0.52207506", "0.52204496", "0.5217535", "0.52148396", "0.5213894", "0.5210854", "0.5199281", "0.5195616", "0.5193912", "0.51900035", "0.51882726", "0.5176508", "0.51627856", "0.5160865", "0.5157132", "0.515627", "0.51557577", "0.51553774", "0.5145998", "0.51458377", "0.51446867", "0.5139579", "0.5134758", "0.5133669", "0.5120251", "0.51096815", "0.51032144", "0.5099717", "0.50902116", "0.5089115", "0.50866264", "0.508588", "0.5082711", "0.5082204", "0.5081959", "0.5078884", "0.50769913", "0.5073909", "0.50676316", "0.5065669", "0.50483525", "0.5046716", "0.50443435", "0.50364846", "0.5028919", "0.5018325", "0.5015593", "0.5012368" ]
0.6219943
1
will remove the corresponding node relations, provided they exist
public void removeEdge(int parentId, int subId){ DagNode parent = nodes.get(parentId); DagNode sub = nodes.get(subId); if(parent != null){ parent.removeSubTask(subId); } if(sub != null){ sub.removeParentTask(parentId); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void unsetFurtherRelations();", "public void delRelations();", "public void delIncomingRelations();", "abstract void removeNodeReferences(Node<T> node);", "public void purgeRelations() {\n this.purged = true;\n for (AS tCust : this.customers) {\n tCust.providers.remove(this);\n tCust.purgedNeighbors.add(this.asn);\n }\n for (AS tProv : this.providers) {\n tProv.customers.remove(this);\n tProv.purgedNeighbors.add(this.asn);\n }\n for (AS tPeer : this.peers) {\n tPeer.peers.remove(this);\n tPeer.purgedNeighbors.add(this.asn);\n }\n }", "void forceRemoveNodesAndExit(Collection<Node> nodesToRemove) throws Exception;", "private void clean() {\n // TODO: Your code here.\n for (Long id : vertices()) {\n if (adj.get(id).size() == 1) {\n adj.remove(id);\n }\n }\n }", "void tryRemoveNodes(Collection<Node> nodesToRemove) throws Exception;", "private void Clean(){\n \t NodeIterable nodeit = graphModel.getGraph().getNodes();\n \t\n \t for (Node node : nodeit) {\n\t\t\t\n \t\t \n \t\t \n\t\t}\n \t\n }", "public void delRelations(XDI3Segment arcXri);", "void removeNodes(List<CyNode> nodes);", "public void freeNodes(){\n\t\t//android.util.Log.d(TAG,\"freeNodes()\");\n\t\tfinal int size = this.nodes.size();\n\t\tfor(int index=0; index < size; index++){\n\t\t\tthis.nodes.delete(this.nodes.keyAt(index));\n\t\t}\n\t}", "public void delContextNodes();", "void clearAssociations();", "private void clean() {\n nodesToRemove.clear();\n edgesToRemove.clear();\n }", "private void deleteConnections() {\n for (int i = 0; !this.sourceConnections.isEmpty(); ) {\n LinkElement wire = (LinkElement) this.sourceConnections.get(i);\n wire.detachSource();\n wire.detachTarget();\n this.graphElement.removeEdge(wire.getEdgeId(), wire);\n }\n\n for (int i = 0; !this.targetConnections.isEmpty(); ) {\n LinkElement wire = (LinkElement) this.targetConnections.get(i);\n wire.detachSource();\n wire.detachTarget();\n this.graphElement.removeEdge(wire.getEdgeId(), wire);\n }\n }", "private void removeNodeAndChildren(Node node) {\n Pane container = node.getContainerPane();\n\n if (container.getChildren().size() < 2) {\n return;\n }\n\n Iterator<javafx.scene.Node> iterator = container.getChildren().iterator();\n while (iterator.hasNext()) {\n javafx.scene.Node nextNode = iterator.next();\n if (nextNode instanceof Edge) {\n edges.remove(nextNode);\n iterator.remove();\n }\n }\n\n for (javafx.scene.Node genericNode : node.getChildrenVBox().getChildren()) {\n Pane containerPane = (Pane) genericNode;\n Node childNode = (Node) containerPane.getChildren().get(0);\n nodes.remove(childNode);\n removeNodeAndChildren(childNode);\n }\n node.getChildrenVBox().getChildren().clear();\n clearEdgeLinks();\n }", "private void clearNodes()\r\n\t{\r\n\t clearMetaInfo();\r\n\t nodeMap.clear();\r\n\t}", "@DELETE\n\t@Produces(\"application/json\")\n\tpublic Response deleteGraphNodes() {\n\t\tcurrentGraph.getNodes().clear();\n\t\t\treturn Response.status(200)\n\t\t\t\t\t.entity(DB.grafos)\n\t\t\t\t\t.build();\n\t}", "private void removeNoMoreExistingOriginalNodes() {\n for (Node mirrorNode : mirrorGraph.nodes()) {\n if (!isPartOfMirrorEdge(mirrorNode) && !originalGraph.has(mirrorNode)) {\n mirrorGraph.remove(mirrorNode);\n }\n }\n }", "private void clean() {\n //use iterator\n Iterator<Long> it = nodes.keySet().iterator();\n while (it.hasNext()) {\n Long node = it.next();\n if (nodes.get(node).adjs.isEmpty()) {\n it.remove();\n }\n }\n }", "void removeRelated(int i);", "public void deleteCause() {\n\t\tfor (Relation relation : causeRelations) {\n\t\t\trelation.causeFrom.effectRelations.remove(relation);\n\t\t}\n\t\tfor (Relation relation : effectRelations) {\n\t\t\trelation.causeTo.causeRelations.remove(relation);\n\t\t}\n\t}", "public void clear(){\n this.entities.clear();\n /*for(QuadTree node: this.getNodes()){\n node.clear();\n this.getNodes().remove(node);\n }*/\n this.nodes.clear();\n }", "void removeRelation(IViewRelation relation);", "public void delRelation(XDI3Segment arcXri, XDI3Segment targetContextNodeXri);", "public void clear()\t{nodes.clear(); allLinks.clear();}", "public Node removeFromChain();", "private void clearEdgeLinks() {\n edges.clear();\n //keep whole tree to maintain its position when it is expanded (within scroll pane bounds)\n Node rootNode = nodes.get(0);\n VBox rootVBox = (VBox) rootNode.getContainerPane().getParent();\n rootVBox.layout();\n Bounds rootNodeChildrenVBoxBounds = rootNode.getChildrenVBox().getBoundsInLocal();\n rootVBox.setLayoutY(Math.abs(rootVBox.getLayoutY() - ((rootNodeChildrenVBoxBounds.getHeight()) - rootNode.getHeight()) / 2 + rootNode.getLayoutY()));\n rootVBox.layout();\n\n for (int i = 0; i < nodes.size(); i++) {\n Pane containerPane = nodes.get(i).getContainerPane();\n //reposition node to the center of its children\n ObservableList<javafx.scene.Node> genericNodes = nodes.get(i).getChildrenVBox().getChildren();\n if (!genericNodes.isEmpty()) {\n nodes.get(i).setLayoutY(((nodes.get(i).getChildrenVBox().getBoundsInLocal().getHeight()) - rootNode.getHeight()) / 2);\n }\n\n for (int j = 0; j < containerPane.getChildren().size(); j++) {\n if (containerPane.getChildren().get(j) instanceof Edge) {\n containerPane.getChildren().remove(j);\n j--;\n }\n }\n }\n redrawEdges(rootNode);\n }", "public void removeNode(Node... nodes) {\n\t\tfor (Node node : nodes) {\n\t\t\twhile(this.nodes.remove(node));\n\t\t\tremoveConnections(node.getAllConnection());\n\t\t}\n\t}", "private void removeEdges()\r\n\t{\r\n\t final String edgeTypeName = edgeType.getName();\r\n\t for (final Edge e : eSet)\r\n\t\te.getSource().removeEdge(edgeTypeName, e.getDest());\r\n\t eSet.clear();\r\n\t}", "public void filter11Relations() {\n this.relations.removeIf(relationship -> !relationship.isOneToOne());\n }", "public void filter1NRelations() {\n this.relations.removeIf(Relationship::isOneToOne);\n }", "private void deleteNode(Node n) {\n n.next.pre = n.pre;\n n.pre.next = n.next;\n }", "public static void removeSample() {\n Node ll1 = new Node(1, new Node(2, new Node(3, new Node(4, new Node(5, null)))));\n Node ll2 = new Node(1, new Node(2, new Node(3, new Node(4, new Node(5, null)))));\n Node ll3 = new Node(1, new Node(2, new Node(3, new Node(4, new Node(5, null)))));\n Node ll4 = new Node(1, new Node(2, new Node(3, new Node(4, new Node(5, null)))));\n Node ll5 = new Node(1, new Node(2, new Node(3, new Node(4, new Node(5, null)))));\n Node ll6 = new Node(1, new Node(2, new Node(3, new Node(4, new Node(5, null)))));\n\n System.out.println(\"remove 1==\");\n Node r1 = ll1.remove(0);\n r1.printList();\n System.out.println(\"remove 2==\");\n Node r2 = ll2.remove(1);\n r2.printList();\n System.out.println(\"remove 3==\");\n Node r3 = ll3.remove(2);\n r3.printList();\n System.out.println(\"remove 4==\");\n Node r4 = ll4.remove(3);\n r4.printList();\n System.out.println(\"remove 5==\");\n Node r5 = ll5.remove(4);\n r5.printList();\n System.out.println(\"remove 6==\");\n Node r6 = ll6.remove(5);\n r6.printList();\n\n }", "private void clean() {\n Iterable<Long> v = vertices();\n Iterator<Long> iter = v.iterator();\n while (iter.hasNext()) {\n Long n = iter.next();\n if (world.get(n).adj.size() == 0) {\n iter.remove();\n }\n }\n }", "public void removeChildren(QueryNode childNode);", "public abstract boolean deleteOrphans();", "public final void clean() {\n distributed_graph.unpersist(true);\n }", "private void removeFromModel(DefaultMutableTreeNode node, DefaultTreeModel model) {\n \t\tmodel.removeNodeFromParent(node);\n \t\tnodeTable.remove(node.getUserObject()); \n \t}", "void removeLine(PNode c){\n\t\tLinkSet ls = null;\n\t\tLink l = null;\n\t\tLinkSet ls1 = new LinkSet();\n\t\tfor(int i=0;i<linksets.size();i++){\n\t\t\tfor(int j=0;j<linksets.get(i).getLinks().size();j++){\n\t\t\t\tif(c==linksets.get(i).getLinks().get(j).getNode1()||c==linksets.get(i).getLinks().get(j).getNode2()){\n\t\t\t\t\tls = linksets.get(i);\n\t\t\t\t\tl = ls.getLinks().get(j);\n\t\t\t\t\tls.removeLink(l);\n\t\t\t\t\tif(ls.getLinks().size()==0){\n\t\t\t\t\t\tlinksets.remove(ls);//remove linkset if it is empty\n\t\t\t\t\t\tls = null;\n\t\t\t\t\t\tl = null;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif(ls!=null){\n\t\t\tLink tlink = null;\n\t\t\tfor(Link lnk: ls.getLinks()){\n\t\t\t\tif(lnk.getNode1().getOwner()==l.getNode1().getOwner() && lnk.getNode1().getSignal()==l.getNode1().getSignal()\n\t\t\t\t\t\t|| lnk.getNode2().getOwner()==l.getNode1().getOwner() && lnk.getNode2().getSignal()==l.getNode1().getSignal()){\n\t\t\t\t\ttlink = lnk;\n\t\t\t\t}\n\t\t\t\t\t\n\t\t\t}\n\t\t\tif(tlink!=null){\n\t\t\t\tls1.addLink(tlink);\n\t\t\t\tls.removeLink(tlink);\n\t\t\t\tcheckForNextLink(ls1, ls, tlink);\n\t\t\t}\n\t\t\tif(ls.getLinks().size()==0){\n\t\t\t\tlinksets.remove(ls);\n\t\t\t}\n\t\t\tlinksets.add(ls1);\n\t\t}\n\t\tfor(int i=0; i<links.size();i++){\n\t\t\tLink lnk = links.get(i);\n\t\t\tif (c == lnk.getNode1() || c == lnk.getNode2()){\n\t\t\t\tlayer.removeChild(links.get(i).getPPath());\n\t\t\t\tlinks.remove(i);\n\t\t\t\tremoveLine(c);\n\t\t\t}\n\t\t}\n\t}", "void removeNode(Entity entity) {\n\t\tProcessing.nodeSet.remove(entity);\n\t\tProcessing.friendMap.remove(entity);\n\n\t\tSystem.out.println(\"the person was successfully removed from the network.\");\n\t}", "@PortedFrom(file = \"Taxonomy.h\", name = \"deFinalise\")\n public void deFinalise() {\n boolean upDirection = true;\n TaxonomyVertex bot = getBottomVertex();\n for (TaxonomyVertex p : bot.neigh(upDirection)) {\n p.removeLink(!upDirection, bot);\n }\n bot.clearLinks(upDirection);\n willInsertIntoTaxonomy = true; // it's possible again to add entries\n }", "void deleteNodes(ZVNode[] nodes);", "public void unassociate(Node otherNode, QName associationTypeQName, Directionality directionality);", "void removeRelationship(DbRelationship rel) {\n objectList.remove(rel);\n fireTableDataChanged();\n }", "@Override\n public void remove() {\n deleteFromModel();\n deleteEdgeEndpoints();\n\n setDeleted(true);\n if (!isCached()) {\n HBaseEdge cachedEdge = (HBaseEdge) graph.findEdge(id, false);\n if (cachedEdge != null) cachedEdge.setDeleted(true);\n }\n }", "void arbitraryRemove(Nodefh node){\n\t\n\t\tif(node.Parent.Child == node){\n\t\t\tif(node.Right != null && node.Right != node){\n\t\t\t\tnode.Parent.Child = node.Right;\n\t\t\t\tif(node.Left!=null && node.Left != node){\n\t\t\t\t\tnode.Left.Right = node.Right;\n\t\t\t\t\tnode.Right.Left = node.Left;\n\t\t\t\t\tnode.Parent = null;\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tnode.Right.Left = node.Right;\n\t\t\t\t\tnode.Parent = null;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse{\n\t\t\t\tnode.Parent.Child = null;\n\t\t\t\tnode.Parent = null;\n\t\t\t}\n\t\t}\n\t\telse{\n\t\t\tif(node.Left != null && node.Left != node){\n\t\t\t\tnode.Left.Right = node.Right;\n\t\t\t\tnode.Right.Left = node.Left;\n\t\t\t}\n\t\t\tnode.Parent = null;\n\n\t\t}\n\t\tif(node.Child!=null){\n\t\t\tNodefh temp = node.Child;\n\t\t\tif(node.Child.Right!=null){\n\t\t\t\ttemp = node.Child.Right;\n\t\t\t}\n\t\t\tfhInsert(node.Child);\n\t\t\twhile(temp!=node.Child.Right){\n\t\t\t\tfhInsert(temp);\n\t\t\t\ttemp = temp.Right;\n\t\t\t}\n\n\t\t}\n\n\t}", "public void deleteNode(GraphNode node){\n // 1. remove node from list\n graphNodes.remove(node);\n // 2. remove node from all adjacent nodes\n for(GraphNode s: node.getAdjacent()){\n s.removeAdjacent(node);\n }\n }", "void removeHasNodeSettings(NodeSettings oldHasNodeSettings);", "public static void delete(Nodelink node){\n\n Nodelink temp = node.next;\n node = null;\n\n node = temp;\n\n }", "public void remove() {\n removeNode(this);\n }", "protected void _removeLinks() throws java.rmi.RemoteException, javax.ejb.RemoveException {\n\tjava.util.Enumeration links = _getLinks().elements();\n\twhile (links.hasMoreElements()) {\n\t\ttry {\n\t\t\t((com.ibm.ivj.ejb.associations.interfaces.Link) (links.nextElement())).remove();\n\t\t}\n\t\tcatch (javax.ejb.FinderException e) {} //Consume Finder error since I am going away\n\t}\n}", "void removeConstraintRelation(IViewRelation relation);", "private void removeNode(Node<E> node) {\n node.prev.next = node.next;\n node.next.prev = node.prev;\n }", "public void dies(){\n currentNode.deleteAnt(this);\n \n }", "public void clear()\n {\n nodes.clear();\n }", "public void onRemoveNode(Node node) {\n\t}", "void removeEdges(List<CyEdge> edges);", "private void removeNode(DNode node) {\n node.prev.next = node.next;\n node.next.prev = node.prev;\n }", "protected void clearNodeMap() {\n\n for (String id : this.nodeMap.keySet()) {\n\n this.ids.remove(id);\n }\n this.nodeMap.clear();\n }", "public void updateChildNodes() {\n\t\tList<FTNonLeafNode> nodesToRemove = new ArrayList<FTNonLeafNode>();\n\t\tfor (FTNonLeafNode intermediateNode : intermediateNodes.values()) {\n\t\t\tList<FTNode> childNodesToRemove = new ArrayList<FTNode>();\n\t\t\tfor (String childName : intermediateNode.childNodes.keySet()) {\n\t\t\t\tif (intermediateNodes.containsKey(childName)) {\n\t\t\t\t\t// update child node if it has child node\n\t\t\t\t\tFTNonLeafNode childNode = intermediateNodes.get(childName);\n\t\t\t\t\tif ((childNode instanceof FTOrNode) || (childNode instanceof FTAndNode)) {\n\t\t\t\t\t\tintermediateNode.addChildNode(childName, intermediateNodes.get(childName));\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\t// if parent node is an OR node\n\t\t\t\t\t\t// remove this child\n\t\t\t\t\t\tif (intermediateNode instanceof FTOrNode) {\n\t\t\t\t\t\t\tchildNodesToRemove.add(childNode);\n\t\t\t\t\t\t\tnodesToRemove.add(childNode);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// if parent node is an AND node\n\t\t\t\t\t\t// remove the parent node and child node\n\t\t\t\t\t\t// and set their values to false in case they are referenced by other nodes\n\t\t\t\t\t\telse if (intermediateNode instanceof FTAndNode) {\n\t\t\t\t\t\t\tnodesToRemove.add(intermediateNode);\n\t\t\t\t\t\t\tnodesToRemove.add(childNode);\n\t\t\t\t\t\t\t// mark the nodes as they are not getting removed till after the loop\n\t\t\t\t\t\t\tintermediateNode.resolved = true;\n\t\t\t\t\t\t\tintermediateNode.nodeValue = false;\n\t\t\t\t\t\t\tchildNode.resolved = true;\n\t\t\t\t\t\t\tchildNode.nodeValue = false;\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\tintermediateNode.removeChildNodes(childNodesToRemove);\n\t\t\t// if no child node left for this intermediate node,\n\t\t\t// then its parent node should remove this intermediate node as well\n\t\t}\n\t\t// remove the no child nodes\n\t\tfor (FTNonLeafNode node : nodesToRemove) {\n\t\t\tintermediateNodes.remove(node.nodeName);\n\t\t}\n\t}", "private void RemoveRootNode() {\n\t\t\n\t\troot_map.remove(this);\n\t\tis_node_set = false;\n\t\tif(left_ptr == null && right_ptr == null) {\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tleft_ptr.RemoveRootNode();\n\t\tright_ptr.RemoveRootNode();\n\t}", "private void deleteNode(Node node) {\n node.prev.next = node.next;\n node.next.prev = node.prev;\n }", "public void clearLinkRemovalTags() {\n\tfor (Link l : allLinks)\n\t l.clearRemovalTag();\n }", "private void removeNodeById(Integer id)\n {\n if (allNodes.size() == 0)\n {\n return;\n }\n nodeIds.remove(id);\n CommunicationLink removedNode = allNodes.remove(id);\n removedNode.close();\n }", "public void remove() {\r\n\t\theadNode.link = headNode.link.link;\r\n\t\tsize--;\r\n\t}", "public void cleanUp() {\n if (penv != null) {\n penv.cleanup();\n }\n List<ONDEXGraph> indexed = new LinkedList<ONDEXGraph>();\n Set<String> graphFolders = new HashSet<String>();\n for (Entry<ONDEXGraph, String> ent : indexedGraphs.entrySet()) {\n if (!indeciesToRetain.contains(ent.getValue())) graphFolders.add(new File(ent.getValue()).getParent());\n indexed.add(ent.getKey());\n }\n for (ONDEXGraph graph : indexed) removeIndex(graph, null);\n for (String graphDir : graphFolders) {\n try {\n DirUtils.deleteTree(graphDir);\n } catch (IOException e) {\n }\n }\n }", "public void clear()\n {\n if (nodes != null)\n {\n detachNodes(nodes);\n nodes = null;\n namedNodes = null;\n }\n }", "private void removeNoMoreExistingOriginalEdges() {\n for (MirrorEdge mirrorEdge : directEdgeMap.values()) {\n if (!originalGraph.has(mirrorEdge.original)) {\n for (Edge segment : mirrorEdge.segments) {\n mirrorGraph.forcedRemove(segment);\n reverseEdgeMap.remove(segment);\n }\n for (Node bend : mirrorEdge.bends) {\n mirrorGraph.forcedRemove(bend);\n reverseEdgeMap.remove(bend);\n }\n directEdgeMap.remove(mirrorEdge.original);\n }\n }\n }", "@Override\n\t\tprotected void deleteRelations(EspStatusDTO espStatusDTO) throws SQLException {\n\t\t\t\n\t\t}", "@Override\n public void cascadeRemove(RDFPersistent rootRDFEntity, RDFEntityManager rdfEntityManager) {\n //Preconditions\n assert rdfEntityManager != null : \"rdfEntityManager must not be null\";\n assert roles != null : \"roles must not be null\";\n assert !roles.isEmpty() : \"roles must not be empty for node \" + name;\n\n stateValueBindings.stream().forEach((stateValueBinding) -> {\n stateValueBinding.cascadeRemove(\n rootRDFEntity,\n rdfEntityManager);\n });\n roles.stream().forEach((role) -> {\n role.cascadeRemove(\n rootRDFEntity,\n rdfEntityManager);\n });\n rdfEntityManager.remove(this);\n }", "@Override\n \t\t\t\tpublic void deleteGraph() throws TransformedGraphException {\n \n \t\t\t\t}", "public void removed()\n {\n if (prev == null) {\n IBSPColChecker.setNodeForShape(shape, next);\n }\n else {\n prev.next = next;\n }\n\n if (next != null) {\n next.prev = prev;\n }\n }", "public boolean removeNode(Node n);", "void removeNode(NodeKey key);", "public void removeNodes(String nodeType, boolean force)\r\n {\r\n\tfinal NodeTypeHolder nt = ntMap.get(nodeType);\r\n\t\r\n\t// If the nodeType doesn't exist, then throw.\r\n\tif (nt == null)\r\n\t throw new RuntimeException(\"Can't find nodeType <\"+nodeType+\">\");\r\n\r\n\t// Look for EdgeTypes connecting Nodes of type nodeType.\r\n\tfor (final EdgeTypeHolder eth : ethMap.values())\r\n\t{\r\n\t final EdgeType et = eth.getEdgeType();\r\n\t if (et.getSourceType().equals(nodeType)\r\n\t\t|| et.getDestType().equals(nodeType))\r\n\t {\r\n\t\t// If we find any Edges matching this EdgeType...\r\n\t\tif (eth.numEdges() > 0)\r\n\t\t // If we're forcing then remove them, otherwise throw.\r\n\t\t if (force)\r\n\t\t {\r\n\t\t\t// Only remove the Edges, not the EdgeType itself!\r\n\t\t\teth.removeEdges();\r\n\t\t\t// Invalidate the Edge array cache.\r\n\t\t\tedges = null;\r\n\t\t }\r\n\t\t else\r\n\t\t\tthrow new RuntimeException(\"Edges already exist which connect Nodes of type <\"\r\n\t\t\t\t\t\t +nodeType+\">\");\r\n\t }\r\n\t}\r\n\t// Now clear out matching Nodes, not the nodeType itself!\r\n\tnt.clearNodes();\r\n\t// Invalidate the nodes array cache.\r\n\tnodes = null;\r\n }", "@Override\n public void markChildrenDeleted() throws DtoStatusException {\n if (polymorphismSite != null) {\n for (com.poesys.db.dto.IDbDto dto : polymorphismSite) {\n dto.cascadeDelete();\n }\n }\n }", "void deleteAll(Node N){\n if( N != null ){\n deleteAll(N.left);\n deleteAll(N.right);\n }\n }", "public void clear() {\r\n for (Edge edge : edges)\r\n edge.disconnect();\r\n for (Vertex vertex : vertices)\r\n vertex.disconnect();\r\n edges.clear();\r\n vertices.clear();\r\n getChildren().remove(1, getChildren().size());\r\n }", "@Override\n public synchronized boolean deleteNode(Node n){\n if((n.getNodes().size() > 0)) {\n return false;\n }\n //delete all node-tags\n for(Tag t : n.getTags()){\n removeNodeTag(n,t);\n }\n boolean dbResult = dbHandler.deleteNode(n.getID());\n if(dbResult) {\n this.allNodes.remove(n);\n return true;\n }\n else {\n return false;\n }\n }", "public void remove() {\n\n\t\t\tsuprimirNodo(anterior);\n\n\t\t}", "void deleteNavigationEntries(final String navigationNodeUid) throws CMSItemNotFoundException;", "protected void xremove(Node<T> u) {\n\t\tif (u == r) {\n\t\t\tremove();\n\t\t} else {\n\t\t\tif (u == u.parent.left) {\n\t\t\t\tu.parent.left = nil;\n\t\t\t} else {\n\t\t\t\tu.parent.right = nil;\n\t\t\t}\n\t\t\tu.parent = nil;\n\t\t\tr = merge(r, u.left);\n\t\t\tr = merge(r, u.right);\n\t\t\tr.parent = nil;\n\t\t\tn--;\n\t\t}\n\t}", "public boolean deleteOrphans() {\n\t\t\treturn true;\n\t\t}", "public boolean deleteOrphans() {\n\t\t\treturn true;\n\t\t}", "private void removeNode(DLinkedNode node){\n DLinkedNode pre = node.pre;\n DLinkedNode post = node.post;\n\n pre.post = post;\n post.pre = pre;\n }", "public void execute() {\n TerroristAgent agent = (TerroristAgent)((TNSRole)oldRole).getAgent();\n Hashtable relationshipTable = agent.getRelationshipTable();\n String relationshipName = null;\n Vector relationshipNames = ((TNSRole)oldRole).getRelationships();\n Iterator i = relationshipNames.iterator();\n while (i.hasNext()) {\n relationshipName = (String)i.next();\n Object temp = relationshipTable.get(relationshipName);\n if (temp instanceof Vector) {\n Vector removeRelationships = (Vector)temp;\n Vector copyOfRelationshipVector = new Vector();\n Iterator i2 = removeRelationships.iterator();\n while (i2.hasNext()) {\n Relationship r = (Relationship)i2.next();\n copyOfRelationshipVector.add(r);\n } // end while\n i2 = copyOfRelationshipVector.iterator();\n while (i2.hasNext()) {\n Relationship removeRelationship = (Relationship)i2.next();\n // System.out.println(\"Attempting to remove \" + agent.getEntityName() + \" from relationship \" + removeRelationship.toString());\n if (removeRelationship.getMembers().contains(agent)) {\n removeRelationship.removeAgent(agent);\n } else {\n // System.out.println(\"Not in this relationship.\");\n } // end if-else\n } // end while\n /* System.out.println(\"Remaining relationships\");\n i2 = removeRelationships.iterator();\n while (i2.hasNext()) {\n Relationship r = (Relationship)i2.next();\n System.out.println(r.toString());\n } // end while*/\n relationshipTable.remove(relationshipName);\n } // end if\n } // end while\n agent.removeRole(oldRole);\n Role addRole = createRole(newRole, agent);\n ((TerroristAgent)agent).addRole(addRole);\n }", "public void resetRelatesToList(MappingType mapping) {\n\t\tmapping.getRelatesTo().clear();\n\t}", "public void removeDups(Instance instance) {\n ArrayList<Instance> toRemove = backRelation.get(instance);\n if(toRemove == null)\n return;\n for (Instance remove : toRemove) {\n relatedInstances.get(remove).remove(instance);\n toLink.remove(remove.getId());\n }\n backRelation.remove(instance);\n\n }", "protected void _removeLinks() throws java.rmi.RemoteException, javax.ejb.RemoveException {\n\t\tjava.util.List links = _getLinks();\n\t\tfor (int i = 0; i < links.size(); i++) {\n\t\t\ttry {\n\t\t\t\t((com.ibm.ivj.ejb.associations.interfaces.Link) links.get(i)).remove();\n\t\t\t} catch (javax.ejb.FinderException e) {\n\t\t\t} //Consume Finder error since I am going away\n\t\t}\n\t}", "void removeDirectedEdge(final Node first, final Node second)\n {\n if (first.connectedNodes.contains(second))\n first.connectedNodes.remove(second);\n\n }", "private void removeDeadModels(List<Organism> dead)\n\t{\n\t\tfor (Organism org : dead)\n\t\t{\n\t\t\tSystem.out.println(\"REMOVING \" + org + \" FROM VIEW.\");\n\t\t\trootNode.getChild(org.toString()).removeFromParent();\n\t\t\torganismViewData.removeOrganism(org);\n\t\t}\n\t}", "public void clear(){\n firstNode = null;\n lastNode = null;\n }", "@Override\n \tpublic void removeIsCitedBy(Reference reference) {\n \t\tList<Reference> isCitedBy = getIsCitedBy();\n \t\t// check for no existing relationship\n \t\tif (reference == null || !isCitedBy.contains(reference))\n \t\t\treturn;\n \t\t// remove both sides of relationship\n \t\treference.getCitationList().remove(this);\n \t\tisCitedBy.remove(reference);\n \n \t}", "private void remove() {\n if (prev != null) {\n prev.next = next;\n }\n if (next != null) {\n next.prev = prev;\n }\n }", "private void remove(Node node) {\n Node next = node.next;\n Node previous = node.previous;\n previous.next = next;\n next.previous = previous;\n }", "public void removeNeighbours(){\n\t\tgetNeighbours().removeAll(getNeighbours());\n\t}", "public void unassociate(Node targetNode, QName associationTypeQName);", "void tryRemoveMultipleVariants(Collection<Collection<Node>> variants) throws Exception;", "public void manyToManyDeleteOwningSideTest() throws Exception {\n EntityManager em = createEntityManager();\n \n em.getTransaction().begin();\n \n EntityA a1 = new EntityA();\n a1.setName(\"EntityA1\");\n EntityB b1 = new EntityB();\n b1.setName(\"EntityB1\");\n\n a1.getBs().add(b1);\n b1.getAs().add(a1);\n\n em.persist(a1);\n\n em.getTransaction().commit();\n\n Integer idA1 = a1.getId();\n Integer idB1 = b1.getId();\n \n em.getTransaction().begin();\n \n // remove the relationship\n a1.getBs().remove(b1);\n b1.getAs().remove(a1);\n\n // remove the non-owning side\n em.remove(a1);\n try {\n em.getTransaction().commit();\n } catch (RuntimeException ex) {\n if (em.getTransaction().isActive()) {\n em.getTransaction().rollback();\n }\n em.close();\n \n throw ex;\n }\n \n clearCache();\n \n assertTrue(\"EntityA a1 should have been removed!\", \n em.createQuery(\"SELECT a FROM EntityA a WHERE a.id = ?1\").setParameter(1, idA1).getResultList().size() == 0);\n assertTrue(\"EntityB b1 should not have been removed!\", \n em.createQuery(\"SELECT b FROM EntityB b WHERE b.id = ?1\").setParameter(1, idB1).getResultList().size() != 0);\n\n em.close();\n }" ]
[ "0.78338015", "0.77833533", "0.76203644", "0.66689736", "0.6450368", "0.6447412", "0.63691896", "0.63386196", "0.6329109", "0.62929875", "0.626311", "0.6248313", "0.62265426", "0.61960965", "0.6151838", "0.6087527", "0.6060991", "0.60240614", "0.6018475", "0.6009467", "0.5980042", "0.5939523", "0.5927258", "0.58754504", "0.5867695", "0.58307016", "0.581915", "0.58154196", "0.5808331", "0.58043903", "0.5795289", "0.57835793", "0.57786906", "0.5771172", "0.57431376", "0.57416004", "0.57395864", "0.57246435", "0.5709654", "0.56973714", "0.56875104", "0.5671904", "0.5627707", "0.56173724", "0.56114024", "0.56110793", "0.5588543", "0.55798584", "0.5564336", "0.55620337", "0.55566347", "0.5545937", "0.5538386", "0.5537297", "0.55365455", "0.5535036", "0.5528369", "0.5527046", "0.5521027", "0.5520115", "0.55194926", "0.5511944", "0.55102444", "0.55092955", "0.55068344", "0.5503864", "0.5502072", "0.5486496", "0.54785794", "0.5476692", "0.5475249", "0.5475113", "0.547332", "0.54667723", "0.5464497", "0.5463644", "0.54600656", "0.54586947", "0.54574865", "0.54556555", "0.54504794", "0.5447107", "0.54358023", "0.5435777", "0.54351616", "0.54351616", "0.5432437", "0.5429791", "0.5428619", "0.5427337", "0.54245263", "0.5418976", "0.5417193", "0.541578", "0.5412526", "0.54102564", "0.5407525", "0.5396631", "0.53868467", "0.53856325", "0.5378863" ]
0.0
-1
will preform a depth first search of the dag, and return the ids of all parent nodes
public ArrayList<Integer> getForbiddenIds(int taskId){ ArrayList<Integer> forbiddenIds = new ArrayList<>(); DagNode node = nodes.get(taskId); forbiddenIds.add(taskId); //list will be empty if the task id does not correspond to a node if(node != null) { //the given task id will automatically be in the list //get all of the parent nodes this node node.setDiscovered(true); for (DagNode parent : getAllParentNodes(node)) { //add each node to the forbidden list forbiddenIds.add(parent.getTaskId()); } //be sure to un-mark all nodes for(DagNode n: nodes.values()){ n.setDiscovered(false); } } return forbiddenIds; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ArrayList<DagNode> getAllParentNodes(DagNode node){\n node.setDiscovered(true);\n ArrayList<DagNode> allParentNodes = new ArrayList<>();\n allParentNodes.add(node);\n for(DagNode parentNode : node.getParentTaskIds()){\n if(!parentNode.isDiscovered()){\n //if it has not been discoverd yet, add it to the list to return\n allParentNodes.addAll(getAllParentNodes(parentNode));\n }\n }\n return allParentNodes;\n }", "public abstract Graph getParents(String childVertexHash);", "java.util.List<java.lang.String>\n getParentIdList();", "@Override\n public Iterable<Id> depthIdIterable() {\n return idDag.depthIdIterable();\n }", "int getParentIdCount();", "public List<Long> depthTraverse(){\n return depthTraverseGen(null);\n }", "public List<Integer> getDepthFirstSearchTraversal(GraphStructure graph) {\r\n\t\tpathList = new ArrayList<Integer>();\r\n\t\tint numberOfVertices = graph.getNumberOfVertices();\r\n\t\tisVisited = new boolean [graph.getNumberOfVertices()];\r\n\t\tadjacencyList = graph.getAdjacencyList();\r\n\t\ttraverseRecursively(graph,0);\r\n\t\treturn pathList;\r\n\t}", "private List<PSRelationship> getParentRelationships(Collection<Integer> ids) \n throws PSException\n {\n PSRelationshipFilter filter = new PSRelationshipFilter();\n filter.setDependentIds(ids);\n filter.setCategory(PSRelationshipFilter.FILTER_CATEGORY_ACTIVE_ASSEMBLY);\n filter.limitToEditOrCurrentOwnerRevision(true);\n \n return ms_rel.findByFilter(filter);\n }", "public VNode[] getParents() throws VlException // for Graph\n {\n VNode parent=getParent();\n \n if (parent==null)\n return null; \n \n VNode nodes[]=new VNode[1]; \n nodes[0]=parent; \n return nodes;\n }", "public TaskGroup[] getSelectedTaskParents()\n {\n int selectedItemCount = getSelectedTaskCount();\n TaskGroup[] parents = new TaskGroup[selectedItemCount];\n\n Iterator<AUndertaking> selectedTasks = getSelectedTaskIterator();\n int i = 0;\n\n while (selectedTasks.hasNext()) {\n AUndertaking task = selectedTasks.next();\n\n parents[i++] = task.getTaskGroup();\n }\n\n return parents;\n }", "public void selectParents() {\n // Create a new parent list for this reproductive cycle. Let the garbage\n // handler dispose of the old list, if there was one.\n switch (Defines.parentAlgo) {\n case Defines.PA_RANDOM:\n this.parents = this.selectParentsRandom();\n break;\n\n case Defines.PA_ROULETTE:\n this.parents = this.selectParentsRoulette();\n break;\n\n case Defines.PA_TOURNAMENT:\n this.parents = this.selectParentsTournament();\n break;\n }\n// this.howGoodAreParents();\n }", "public static Set<List<Vertex>> depthFirstSearch(Graph graph) {\n Set<List<Vertex>> arrayListHashSet=new HashSet<>();\n\n for(int i=0;i<graph.getVertices().size();i++){\n ArrayList<Vertex> visitedArrayList=new ArrayList<>();\n for(int j=0;j<graph.getVertices().size();j++){\n if(visitedArrayList.size()==0){\n if(!visitedArrayList.contains(graph.getVertices().get(i))){\n depthFirstSearch(graph.getVertices().get(i),visitedArrayList,graph);\n }\n }\n else{\n if(!visitedArrayList.contains(graph.getVertices().get(j))){\n depthFirstSearch(graph.getVertices().get(j),visitedArrayList,graph);\n }\n }\n }\n arrayListHashSet.add(visitedArrayList);\n }\n return arrayListHashSet; // this should be changed\n }", "public List<List<Integer>> allPathsSourceTarget(int[][] graph) {\n \n boolean[] visited = new boolean[graph.length];\n \n List<Integer> paths = new ArrayList();\n paths.add(0);\n \n List<List<Integer>> allPaths = new ArrayList();\n \n dfs(0,graph.length-1, paths,allPaths,visited,graph);\n \n return allPaths;\n }", "protected final int[] findParentDirectoryIdList(DBDeviceContext ctx, String path, boolean filePath) {\n\n // Validate the paths and check for the root path\n \n String[] paths = FileName.splitAllPaths(path);\n \n if ( paths == null || paths.length == 0)\n return null;\n if ( paths[0].compareTo(\"*.*\") == 0 || paths[0].compareTo(\"*\") == 0 ||\n (filePath == true && paths.length == 1)) {\n int[] ids = { 0 };\n return ids;\n }\n if ( paths[0].startsWith(\"\\\\\")) {\n \n // Trim the leading slash from the first path\n \n paths[0] = paths[0].substring(1);\n }\n \n // Find the directory id by traversing the list of directories\n \n int endIdx = paths.length - 1;\n if ( filePath == true)\n endIdx--;\n \n // If there are no paths to check then return the root directory id\n \n if ( endIdx <= 1 && paths[0].length() == 0) {\n int[] ids = new int[1];\n ids[0] = 0;\n return ids;\n }\n\n // Allocate the directory id list\n \n int[] ids = new int[paths.length];\n for ( int i = 0; i < ids.length; i++)\n ids[i] = -1;\n \n // Build up the current path as we traverse the list\n \n StringBuffer pathStr = new StringBuffer(\"\\\\\");\n \n // Check for paths in the file state cache\n \n FileStateCache cache = ctx.getStateCache();\n FileState fstate = null;\n\n // Traverse the path list, initialize the directory id to the root id\n \n int dirId = 0;\n int parentId = -1;\n int idx = 0;\n\n try {\n \n // Loop until the end of the path list\n\n while ( idx <= endIdx) {\n \n // Get the current path, and add to the full path string\n \n String curPath = paths[idx];\n pathStr.append(curPath);\n \n // Check if there is a file state for the current path\n \n fstate = cache.findFileState(pathStr.toString());\n \n if ( fstate != null && fstate.getFileId() != -1) {\n \n // Get the file id from the cached information\n\n ids[idx] = fstate.getFileId();\n parentId = dirId;\n dirId = ids[idx];\n }\n else {\n \n // Search for the current directory in the database\n\n parentId = dirId;\n dirId = ctx.getDBInterface().getFileId(dirId, curPath, true, true);\n \n if ( dirId != -1) {\n \n // Get the next directory id\n\n ids[idx] = dirId;\n \n // Check if we have a file state, or create a new file state for the current path\n \n if ( fstate != null) {\n \n // Set the file id for the file state\n \n fstate.setFileId(dirId);\n }\n else {\n \n // Create a new file state for the current path\n \n fstate = cache.findFileState(pathStr.toString(), true);\n \n // Get the file information\n \n DBFileInfo finfo = ctx.getDBInterface().getFileInformation(parentId, dirId, DBInterface.FileAll);\n fstate.addAttribute(FileState.FileInformation, finfo);\n fstate.setFileStatus( finfo.isDirectory() ? FileStatus.DirectoryExists : FileStatus.FileExists);\n fstate.setFileId(dirId);\n }\n }\n else\n return null;\n }\n \n // Update the path index\n \n idx++;\n \n // Update the current path string\n \n pathStr.append(\"\\\\\");\n }\n }\n catch (DBException ex) {\n Debug.println(ex);\n return null;\n }\n \n // Return the directory id list\n \n return ids;\n }", "public List<DataNodeId> getDataNodeIds();", "public List<Long> depthTraverse(Long start){\n return depthTraverseGen(start);\n }", "public ResultSet leesParentIdLijst() {\n String sql = \"select distinct f2.id parent_id\\n\" +\n \" from bookmarkfolders f1\\n\" +\n \" join bookmarkfolders f2 on f1.parent_id = f2.id\\n\" +\n \" order by f2.id;\";\n ResultSet rst = execute(sql);\n\n ResultSet result = null;\n try {\n result = rst;\n } catch(Exception e) {\n System.out.println(e.getMessage() + \" - \" + sql);\n }\n\n return result;\n }", "public List getAllParentTrees(List source, String treeid, List result) {\n\t\tMap tree = this.getTree(source, treeid);\r\n\t\tresult.add(tree);\r\n\t\tif (tree.get(StringPool.TREE_PARENTID) != null) {\r\n\t\t\tif (this.getTree(source, tree.get(StringPool.TREE_PARENTID)\r\n\t\t\t\t\t.toString()) != null) {\r\n\t\t\t\tthis.getAllParentTrees(source, tree.get(\r\n\t\t\t\t\t\tStringPool.TREE_PARENTID).toString(), result);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn result;\r\n\t}", "public java.lang.Integer getParentId();", "String getFullParentId();", "public List<AbstractFamixEntity> getParentEntities(AbstractFamixEntity entity) {\n List<AbstractFamixEntity> parentEntities = new ArrayList<AbstractFamixEntity>();\n if (entity.getParent() != null) {\n parentEntities.add(entity.getParent());\n parentEntities.addAll(getParentEntities(entity.getParent()));\n }\n\n return parentEntities;\n }", "private void computeParentCount() {\n parentCountArray = new int[numNodes+1];\n for(int i = 0; i < parentCountArray.length;i++){\n parentCountArray[i] = 0;\n }\n for(int i = 0; i < adjMatrix.length; i++){\n int hasParentCounter = 0;\n for(int j = 0; j < adjMatrix[i].length; j++){\n if(allNodes[i].orphan){\n hasParentCounter = -1;\n break;\n }\n if(adjMatrix[j][i] == 1) {\n hasParentCounter++;\n }\n }\n parentCountArray[i] = hasParentCounter;\n }\n\n\n for(int i = 0; i < adjMatrix.length;i++){\n for(int j =0; j < adjMatrix[i].length;j++){\n if(adjMatrix[j][i] == 1){\n if(allNodes[j].orphan && allNodes[i].orphan == false){\n parentCountArray[i]--;\n }\n }\n }\n }\n\n\n\n\n for(int i = 0; i < parentCountArray.length; i++){\n // System.out.println(i + \" has parent \" +parentCountArray[i]);\n }\n\n\n\n\n\n }", "public void ids (String input, int limit)\r\n\t\t{\r\n\t\t\tNode root_ids= new Node (input);\r\n\t\t\tNode current = new Node(root_ids.getState());\r\n\t\t\t\r\n\t\t\tArrayList<String> visited = new ArrayList<String>();\r\n\t\t\tArrayList<String> children = new ArrayList<String>();\r\n\t\t\tStack<Node> stack_dfs = new Stack<Node>();\r\n\t\t\t\r\n\t\t\tint nodes_popped = 0;\r\n\t\t\tint stack_max_size = 0;\r\n\t\t\tint stack_max_total = 0;\r\n\t\t\tint depth = 0;\r\n\t\t\t\r\n\t\t\tcurrent.cost = 0;\r\n\t\t\tcurrent.depth = 0;\r\n\t\t\t\r\n\t\t\tgoal_ids = isGoal(current.getState());\r\n\t\t\t\r\n\t\t\twhile(depth <= limit)\r\n\t\t\t{\r\n\t\t\t\tif (goal_ids == true)\r\n\t\t\t\t{\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t// Clear the visited array for backtracking purposes\r\n\t\t\t\tvisited.clear();\r\n\t\t\t\t\r\n\t\t\t\twhile(!goal_ids)\r\n\t\t\t\t{\r\n\t\t\t\t\tvisited.add(current.getState());\r\n\t\t\t\t\tchildren = Successor.findChildren(current.getState());\r\n\t\t\t\t\r\n\t\t\t\t\t// Depth limit check. This loop never runs if the node depth is greater then the limit\r\n\t\t\t\t\tif (current.getDepth() < limit)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tfor (String a : children)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tif (visited.contains(a))\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tNode nino = new Node(a);\r\n\t\t\t\t\t\t\tcurrent.children_nodes.add(nino);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tint cost = isCost(current.getState(), nino.getState());\r\n\t\t\t\t\t\t\tnino.cost = cost;\r\n\t\t\t\t\t\t\tnino.parent = current;\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t// Repeated state check\r\n\t\t\t\t\t\t\tif (!stack_dfs.contains(nino))\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tstack_dfs.add(nino);\r\n\t\t\t\t\t\t\t\tstack_max_size++;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\tif (current.getDepth() >= limit - 1)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tint copy = stack_max_size;\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tif (copy > stack_max_total)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tstack_max_total = copy;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\tdepth++;\r\n\t\t\t\t\t\r\n\t\t\t\t\t// If there is no solution found at the depth limit, return no solution\r\n\t\t\t\t\tif (stack_dfs.empty() == true)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSolution.noSolution(limit);\t\r\n\t\t\t\t\t\t\treturn;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\tcurrent = stack_dfs.pop();\r\n\t\t\t\t\t\r\n\t\t\t\t\t// Set depth of node so it can be checked in next iteration\r\n\t\t\t\t\tcurrent.setDepth(current.parent.getDepth() + 1);\r\n\t\t\t\t\tnodes_popped++;\r\n\t\t\t\t\tstack_max_size--;\r\n\t\t\t\t\tgoal_ids = isGoal(current.getState());\r\n\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tgoal_ids = false;\r\n\t\t\tSystem.out.println(\"IDS Solved!!\");\r\n\t\t\t\r\n\t\t\tif (stack_max_total > stack_max_size)\r\n\t\t\t{\r\n\t\t\t\tstack_max_size = stack_max_total;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tSolution.performSolution(current, root_ids, nodes_popped, stack_max_size);\r\n\t\t}", "public static Map<Integer, List<Integer>> getChildParentMapping( int [][] relations ) {\n Map<Integer, List<Integer>> tracking = new HashMap<Integer, List<Integer>>();\n\n if( relations != null ) {\n for(int i = 0; i < relations.length; i++) {\n if( !tracking.containsKey(relations[i][0]) ) {\n System.out.println(\"TRACKER : \" + tracking);\n tracking.put(relations[i][0], new ArrayList<Integer>());\n //System.out.println(\"Parent : \" + relations[ i ][ 0 ] );\n }\n //System.out.println(relations[i][j]);\n List<Integer> parents = null;\n if( tracking.containsKey(relations[i][1]) ) {\n parents = tracking.get( relations[i][1]);\n } else {\n parents = new ArrayList<Integer>();\n }\n parents.add( relations[i][0]);\n tracking.put( relations[i][ 1 ], parents);\n System.out.println(\"Child : \" + relations[ i ][ 1 ] + \" Parent :\" + relations[i][0]);\n }\n }\n return displayResult(tracking);\n }", "private List<Path> expandExecution(Path input) {\n\t\tList<Path> childInputs = new ArrayList<>(); //store the paths generated from given path\n\t\t\n\t\t//search from the top node which have not been searched before\n\t\tfor(int j = input.bound; j < input.path.size() - 1; j++){\n\t\t\tdouble[] probabilityArray = cfg.getTransition_matrix().getRow(input.path.get(j));\n\t\t\tfor(int i = 0; i < probabilityArray.length; i++){\n\t\t\t\t//the node been visited before only have two situation:1.has been searched,2.the path contains it in the workList \n\t\t\t\tif(probabilityArray[i] > 0 && i != input.path.get(j + 1) && unvisited.contains(i)){\n\t\t\t\t\tList<Integer> tempPath = new ArrayList<>();\n\t\t\t\t\tfor(int index = 0; index < j + 1; index++)\n\t\t\t\t\t\ttempPath.add(input.path.get(index));\n\t\t\t\t\ttempPath.add(i);\n\t\t\t\t\t\n\t\t\t\t\tPath newInput = new Path(tempPath, j + 1);\n\t\t\t\t\tchildInputs.add(newInput);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\treturn childInputs;\n\t}", "String getParentId(String nodeId) throws PortalException;", "public Set<Long> getParents() {\n String key = parentName + parentGenus;\n if (!parentNameToParentBlocks.containsKey(key)) {\n return null;\n }\n return parentNameToParentBlocks.get(key);\n }", "public TreeNode getParent() { return par; }", "@Override\n\tpublic ParentEntityNode findEntityRelationTreeByParentEntityId(String entityId) {\n\t\tLosConfigDetails owner = configLookupRepository.findByConfigId(LOSEntityConstants.OWNER);\n\t\tLosConfigDetails owned = configLookupRepository.findByConfigId(LOSEntityConstants.OWNED);\n\t\tLosConfigDetails affilated = configLookupRepository.findByConfigId(LOSEntityConstants.AFFILIATED);\n\t\tLosConfigDetails subsidary = configLookupRepository.findByConfigId(LOSEntityConstants.SUBSIDIARY);\n\t\tString commercialSuffix = LOSEntityConstants.COMMERCIAL_SUFFIX_CODE;\n\t\tLong parentCount = findParentEntityCount(entityId);\n\t\tList<EntityRelationshipType> relationDetails = entityRelationshipTypeRepository\n\t\t\t\t.findByEntityId1AndDeleted(Arrays.asList(entityId));\n\t\tif (!relationDetails.isEmpty()) {\n\t\t\tList<String> iterationChildIds = new ArrayList<>();\n\t\t\tList<EntityRelationshipType> isOwnerRelation = relationDetails.stream().filter(\n\t\t\t\t\tcheckRelationType -> getEntityRelationId(checkRelationType).equals(LOSEntityConstants.OWNER))\n\t\t\t\t\t.collect(Collectors.toList());\n\t\t\tif (!isOwnerRelation.isEmpty()) {\n\t\t\t\tList<String> entityIds = new ArrayList<>();\n\t\t\t\tList<ParentEntityNode> treeData = new ArrayList<>();\n\t\t\t\tList<String> levelTwoChildIds = new ArrayList<>();\n\t\t\t\tfor (EntityRelationshipType eachRelation : relationDetails) {\n\t\t\t\t\tif (getEntityRelationId(eachRelation).equals(LOSEntityConstants.OWNER)\n\t\t\t\t\t\t\t&& eachRelation.getEntityId1().endsWith(commercialSuffix)\n\t\t\t\t\t\t\t&& eachRelation.getEntityId2().endsWith(commercialSuffix)) {\n\t\t\t\t\t\tentityIds.add(eachRelation.getEntityId2());\n\t\t\t\t\t\tList<ParentEntityNode> rootData = parentEntityNodeRepository.findEntityTreeData(entityId);\n\t\t\t\t\t\ttreeData.addAll(rootData);\n\t\t\t\t\t}\n\t\t\t\t\tif (!entityIds.isEmpty()) {\n\t\t\t\t\t\treturn cToCOwnerCheckLeveOneHavingParentOrChildren(entityId, owner, affilated, commercialSuffix, // NOSONAR\n\t\t\t\t\t\t\t\titerationChildIds, entityIds, treeData, levelTwoChildIds);// NOSONAR\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (parentCount == 0) {\n\t\t\tList<ParentEntityNode> treeData = entityParentIsNotPresent(entityId, subsidary, affilated, owner,\n\t\t\t\t\tcommercialSuffix);\n\t\t\treturn entityRelationshipTreeServiceImpl.createTreeFromParent(treeData, entityId);\n\t\t} else if (parentCount > 0) {\n\t\t\tList<ParentEntityNode> treeData = entityParentIsPresent(entityId, owner, owned, affilated, subsidary,\n\t\t\t\t\tcommercialSuffix);\n\t\t\treturn entityRelationshipTreeServiceImpl.createTreeFromParent(treeData, entityId);\n\t\t}\n\t\tList<ParentEntityNode> parentEntityNode = parentEntityNodeRepository.findEntityTreeData(entityId);\n\t\treturn entityRelationshipTreeServiceImpl.createTreeFromParent(parentEntityNode, entityId);\n\t}", "private static Map<String, Integer> assignVertexIds(DAG dag) {\n Map<String, Integer> vertexIdMap = new LinkedHashMap<>();\n final int[] vertexId = {0};\n dag.forEach(v -> vertexIdMap.put(v.getName(), vertexId[0]++));\n return vertexIdMap;\n }", "ArrayList<Node> DFSIter( Graph graph, final Node start, final Node end)\n {\n boolean visited[] = new boolean[graph.numNodes];\n Stack<Node> stack = new Stack<Node>();\n Map< Node,Node> parentPath = new HashMap< Node,Node>(); \n stack.push(start);\n\n while ( !stack.isEmpty() )\n {\n Node currNode = stack.pop();\n // end loop when goal node is found\n if ( currNode == end )\n break;\n // If node has already been visited, skip it\n if ( visited[currNode.id] )\n continue;\n else\n {\n visited[currNode.id] = true;\n int numEdges = currNode.connectedNodes.size();\n\n for ( int i = 0; i < numEdges; i++ )\n {\n Node edgeNode = currNode.connectedNodes.get(i);\n if ( !visited[edgeNode.id] )\n {\n stack.push( edgeNode );\n parentPath.put( edgeNode, currNode);\n }\n }\n \n }\n }\n\n ArrayList<Node> path = new ArrayList<Node>();\n Node currNode = end;\n while ( currNode != null )\n {\n path.add(0, currNode);\n currNode = parentPath.get(currNode);\n }\n\n return path;\n }", "public TreeNode getParentNode();", "public Collection<List<EfoTermCount>> getTermParentPaths(String id) {\n Collection<List<EfoTerm>> paths = efo.getTermParentPaths(id, true);\n if (paths == null)\n return null;\n\n List<List<EfoTermCount>> result = new ArrayList<List<EfoTermCount>>();\n for (List<EfoTerm> path : paths) {\n int depth = 0;\n List<EfoTermCount> current = new ArrayList<EfoTermCount>();\n Collections.reverse(path);\n for (EfoTerm term : path) {\n Long count = getCount(term.getId());\n if (count != null) {\n current.add(new EfoTermCount(new EfoTerm(term, depth++), count));\n }\n }\n if (!current.isEmpty()) {\n Long count = getCount(id);\n if (count != null) {\n current.add(new EfoTermCount(new EfoTerm(efo.getTermById(id), depth), count));\n result.add(current);\n }\n }\n }\n return result;\n }", "public void getAllPaths(Graph<Integer> graph) {\n\t\tTopologicalSort obj = new TopologicalSort();\r\n\t\tStack<Vertex<Integer>> result = obj.sort(graph);\r\n\t\t\r\n\t\t// source (one or multiple) must lie at the top\r\n\t\twhile(!result.isEmpty()) {\r\n\t\t\tVertex<Integer> currentVertex = result.pop();\r\n\t\t\t\r\n\t\t\tif(visited.contains(currentVertex.getId())) {\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tstack = new Stack<Vertex<Integer>>();\r\n\t\t\tSystem.out.println(\"Paths: \");\r\n\t\t\tvisited = new ArrayList<Long>();\r\n\t\t\tdfs(currentVertex);\r\n\t\t\t//System.out.println(stack);\r\n\t\t\t//GraphUtil.print(stack);\t\t\t\r\n\t\t}\r\n\r\n\t}", "public abstract Graph getChildren(String parentHash);", "int[] getInEdges(int... nodes);", "int[] getEdgesIncidentTo(int... nodes);", "public static int[] getParents(EdgeScores scores) {\n // \n int n = scores.root.length;\n int[] parents = new int[n];\n Arrays.fill(parents, ParentsArray.EMPTY_POSITION);\n if (InsideOutsideDepParse.singleRoot) {\n ProjectiveDependencyParser.parseSingleRoot(scores.root, scores.child, parents);\n } else {\n ProjectiveDependencyParser.parseMultiRoot(scores.root, scores.child, parents);\n }\n return parents;\n }", "public List<AlfClass> getParents() {\t\r\n\t\tList<AlfClass> parents = new ArrayList<AlfClass>(this.strongParents);\r\n\t\tparents.addAll(this.weakParents);\r\n\t\treturn Collections.unmodifiableList(parents);\r\n\t}", "private ArrayList<Chromosome> selectParentsTournament() {\n ArrayList<Chromosome> parents = new ArrayList<Chromosome>(Defines.crossoverParentCt);\n ArrayList<Chromosome> matingPool = new ArrayList<Chromosome>(Defines.crossoverParentCt);\n\n // Run tournaments to select parents - for each parent\n for (int parentIdx = 0; parentIdx < Defines.crossoverParentCt; parentIdx++) {\n\n // Run tournaments - get random contestants (run.getPaTournamentSize())\n for (int tournIdx = 0; tournIdx < Defines.tournamentSize; tournIdx++) {\n int contestantID = Defines.randNum(0, this.chromosomes.size() - 1);\n matingPool.add(this.chromosomes.get(contestantID));\n }\n Collections.sort(matingPool);\n parents.add(matingPool.get(0));\n }\n\n return parents;\n }", "public int returnGraphRoot() {\n\t\tfor(int i = 0; i < sc.getInitPos().size(); i++) {\r\n\t\t\tfor(int j = 0; j < sc.getInitPos().size(); j++) {\r\n\t\t\t\tif(graph[i][j]) {\r\n\t\t\t\t\t//means i -> j\r\n\t\t\t\t\t// therefore we need to see if i has a parent\r\n\t\t\t\t\tboolean hasPred = true;\r\n\t\t\t\t\tint pred = -1;\r\n\t\t\t\t\twhile(hasPred) {\r\n\t\t\t\t\t\tfor(int k = 0; k < sc.getInitPos().size(); k++) {\r\n\t\t\t\t\t\t\tif(graph[k][i]) {\r\n\t\t\t\t\t\t\t\t//k is a parent of i\r\n\t\t\t\t\t\t\t\tpred = k;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif(pred == -1) {\r\n\t\t\t\t\t\t\t//i has no predecessor\r\n\t\t\t\t\t\t\thasPred = false;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\ti = pred;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\t//TODO: remove i from graph\r\n\t\t\t\t\treturn i;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn 0;\r\n\t}", "public Map getDirectParentTree(List source, String treeid) {\n\t\tMap reuslt = null;\r\n\t\tMap tree = this.getTree(source, treeid);\r\n\t\tif (tree.get(StringPool.TREE_PARENTID) != null) {\r\n\t\t\treuslt = this.getTree(source, tree.get(StringPool.TREE_PARENTID)\r\n\t\t\t\t\t.toString());\r\n\t\t}\r\n\r\n\t\treturn reuslt;\r\n\t}", "Set<String> dfsTraversal(Graph graph, String root) {\n Set<String> seen = new LinkedHashSet<String>();\n Stack<String> stack = new Stack<String>();\n stack.push(root);\n\n while (!stack.isEmpty()) {\n String node = stack.pop();\n if (!seen.contains(node)) {\n seen.add(node);\n for (Node n : graph.getAdjacentNodes(node)) {\n stack.push(n.data);\n }\n\n }\n }\n\n return seen;\n }", "Iterable<Long> vertices() {\n return nodes.keySet();\n }", "public long getParentId()\n {\n return parentId;\n }", "public MyArrayList<MyArrayList<Node>> DFSRecursive() {\n t = 0;\n for (int i = 0; i < nodes.size(); i++) {\n Node node = nodes.get(i);\n // reset all nodes in the graph to the initial DFS state\n node.setColor(Color.WHITE);\n node.setD(0);\n node.setParent(null);\n }\n MyArrayList<MyArrayList<Node>> components = new MyArrayList<>();\n for (int i = 0; i < nodes.size(); i++) {\n Node node = nodes.get(i);\n if (node.getColor() == Color.WHITE) {\n MyArrayList<Node> component = new MyArrayList<>();\n this.dfsVisitRecursive(node, component);\n components.add(component);\n }\n }\n return components;\n }", "@Override\r\n\tpublic List<Integer> getReachableVertices(GraphStructure graph,int vertex) {\r\n\t\tadjacencyList=graph.getAdjacencyList();\r\n\t\tpathList=new ArrayList<Integer>();\r\n\t\tisVisited=new boolean [graph.getNumberOfVertices()];\r\n\t\ttraverseRecursively(graph, vertex);\r\n\t\treturn pathList;\r\n\t}", "public void inOrderTraverseRecursive();", "private static void DepthFirstSearch(int i, ArrayList<ArrayList<Integer>> nodes, boolean[] visited) {\n\t\tif(nodes == null) return;\n\t\tvisited[i] = true;\n\t\tSystem.out.println(i);\n\t\tfor(int p : nodes.get(i)) {\n\t\t\tif(!visited[p]) {\n\t\t\t\tDepthFirstSearch(p,nodes, visited);\n\t\t\t}\n\t\t}\n\t\t\t\n\t}", "public void selectParents1() {\n // Create a new parent list for this reproductive cycle. Let the garbage\n // handler dispose of the old list, if there was one.\n switch (Defines.parentAlgo) {\n case Defines.PA_RANDOM:\n this.parents = this.selectParentsRandom();\n break;\n\n case Defines.PA_ROULETTE:\n this.parents = this.selectParentsRoulette();\n break;\n\n case Defines.PA_TOURNAMENT:\n this.parents = this.selectParentsTournament();\n break;\n }\n// this.howGoodAreParents();\n }", "public ArrayList<Integer> getPath(int destination){\n\t\tif(parent[destination] == NOPARENT || hasNegativeCycle[destination] == true){ //will crash if out of bounds!\n\t\t\treturn null; //Never visited or is part of negative cycle, path is undefined!\n\t\t}\n\t\tint curr = destination; \n\t\t//Actually build the path\n\t\tArrayList<Integer> nodesInPath = new ArrayList<Integer>();\n\t\twhile(parent[curr] != curr){ //has itself as parent\n\t\t\tnodesInPath.add(curr);\n\t\t\tcurr = parent[curr];\n\t\t}\n\t\tnodesInPath.add(curr); //add start node too!\n\t\treturn nodesInPath;\n\t}", "private List<Long> getOrderedListOfChainNodes(String path, boolean watch)\n throws KeeperException, InterruptedException {\n List<String> children = getChildren(path, watch);\n List<Long> sessionIds = new ArrayList<>();\n for (String child : children) {\n try {\n sessionIds.add(Utils.getLongSid(child));\n } catch (NumberFormatException e) {\n // skip non-numbers\n }\n }\n sessionIds.sort(Long::compare);\n return sessionIds;\n }", "public Integer getParentId() {\n return parentId;\n }", "public Integer getParentId() {\n return parentId;\n }", "public Integer getParentId() {\n return parentId;\n }", "String getParentGroupId();", "public List<Integer> eventualSafeNodes(int[][] graph) {\n boolean[] visited = new boolean[graph.length];\n boolean[] onStack = new boolean[graph.length];\n boolean[] onCycle = new boolean[graph.length];\n\n for (int i = 0; i < graph.length; i++) {\n if (!visited[i]) {\n if (hasCycle(i, graph, visited, onStack, onCycle)) {\n onCycle[i] = true;\n }\n }\n // System.out.println(i+ \"-->\"+Arrays.toString(onCycle));\n }\n\n List<Integer> res = new ArrayList<>(visited.length);\n for (int i = 0; i < onCycle.length; i++) {\n if (!onCycle[i]) {\n res.add(i);\n }\n }\n return res;\n }", "@Override\r\n public Set<List<String>> findAllPaths(int sourceId, int targetId, int reachability) {\r\n //all paths found\r\n Set<List<String>> allPaths = new HashSet<List<String>>();\r\n //collects path in one iteration\r\n Set<List<String>> newPathsCollector = new HashSet<List<String>>();\r\n //same as the solution but with inverted edges\r\n Set<List<String>> tmpPathsToTarget = new HashSet<List<String>>();\r\n //final solution\r\n Set<List<String>> pathsToTarget = new HashSet<List<String>>();\r\n \r\n String[] statementTokens = null; \r\n Set<Integer> allProcessedNodes = new HashSet<Integer>(); //to avoid duplicates\r\n List<String> statementsFound = new ArrayList<String>();\r\n \r\n for (int i = 0; i < reachability; i++) {\r\n if (i == 0) { \r\n Collection<String> inEdges = jungCompleteGraph.getInEdges(sourceId);\r\n for (String inEdge: inEdges) {\r\n \r\n statementsFound = new ArrayList<String>();\r\n statementTokens = inEdge.split(\"->\");\r\n int inNodeId = Integer.parseInt(statementTokens[0]);\r\n //allProcessedNodes.add(inNodeId); \r\n //Incoming nodes are reversed\r\n statementsFound.add(new StringBuilder(inEdge).reverse().toString());\r\n allPaths.add(statementsFound);\r\n if (inNodeId == targetId) tmpPathsToTarget.add(statementsFound);\r\n }\r\n \r\n Collection<String> outEdges = jungCompleteGraph.getOutEdges(sourceId);\r\n \r\n for (String outEdge: outEdges) {\r\n \r\n statementsFound = new ArrayList<String>();\r\n statementTokens = outEdge.split(\"->\");\r\n int outNodeId = Integer.parseInt(statementTokens[2]);\r\n statementsFound.add(outEdge);\r\n allPaths.add(statementsFound);\r\n if (outNodeId == targetId) tmpPathsToTarget.add(statementsFound);\r\n \r\n }\r\n \r\n } else {\r\n newPathsCollector = new HashSet<List<String>>();\r\n\r\n for (List<String> statements: allPaths) {\r\n allProcessedNodes = new HashSet<Integer>(); //to avoid duplicates\r\n int lastNodeInPath = 0;\r\n \r\n for (String predicate: statements) {\r\n if (predicate.contains(\">-\")) {\r\n statementTokens = predicate.split(\">-\");\r\n allProcessedNodes.add(Integer.parseInt(\r\n new StringBuilder(statementTokens[0]).reverse().toString()));\r\n allProcessedNodes.add(Integer.parseInt(\r\n new StringBuilder(statementTokens[2]).reverse().toString()));\r\n lastNodeInPath = Integer.parseInt(\r\n new StringBuilder(statementTokens[2]).reverse().toString());\r\n } else {\r\n statementTokens = predicate.split(\"->\"); \r\n allProcessedNodes.add(Integer.parseInt(statementTokens[0]));\r\n allProcessedNodes.add(Integer.parseInt(statementTokens[2]));\r\n lastNodeInPath = Integer.parseInt(statementTokens[2]);\r\n }\r\n }\r\n \r\n Collection<String> inEdges = jungCompleteGraph.getInEdges(lastNodeInPath);\r\n for (String inEdge: inEdges) {\r\n \r\n statementsFound = new ArrayList<String>();\r\n statementsFound.addAll(statements);\r\n statementTokens = inEdge.split(\"->\");\r\n int inNodeId = Integer.parseInt(statementTokens[0]);\r\n if (allProcessedNodes.contains(inNodeId)) continue;\r\n \r\n //Incoming nodes are reversed \r\n statementsFound.add(new StringBuilder(inEdge).reverse().toString());\r\n newPathsCollector.add(statementsFound);\r\n if (inNodeId == targetId) tmpPathsToTarget.add(statementsFound);\r\n \r\n }\r\n \r\n Collection<String> outEdges = jungCompleteGraph.getOutEdges(lastNodeInPath);\r\n for (String outEdge: outEdges) {\r\n \r\n statementsFound = new ArrayList<String>();\r\n statementsFound.addAll(statements);\r\n statementTokens = outEdge.split(\"->\");\r\n int outNodeId = Integer.parseInt(statementTokens[2]);\r\n if (allProcessedNodes.contains(outNodeId)) continue;\r\n \r\n //Incoming nodes are reversed \r\n statementsFound.add(outEdge);\r\n newPathsCollector.add(statementsFound);\r\n if (outNodeId == targetId) tmpPathsToTarget.add(statementsFound);\r\n }\r\n }\r\n allPaths.addAll(newPathsCollector);\r\n }\r\n \r\n //System.out.println(\"*****End of iteration \" + i);\r\n //System.out.println(\"#SIZE OF allPaths: \" + allPaths.size());\r\n int numItems = 0;\r\n for (List<String> currList: allPaths) {\r\n numItems = numItems + currList.size();\r\n }\r\n //System.out.println(\"#NUMBER OF ELEMS OF ALL LISTS: \" + numItems);\r\n //System.out.println(\"#SIZE OF tmpPathsToTarget : \" + tmpPathsToTarget.size());\r\n }\r\n \r\n //We need to reverse back all the predicates\r\n for (List<String> statements: tmpPathsToTarget) { \r\n List<String> fixedStatements = new ArrayList<String>(); \r\n for (int i = 0; i < statements.size(); i++) { \r\n String statement = statements.get(i); \r\n if (statement.contains(\">-\")) {\r\n fixedStatements.add(new StringBuilder(statement).reverse().toString());\r\n } else {\r\n fixedStatements.add(statement);\r\n } \r\n }\r\n pathsToTarget.add(fixedStatements);\r\n }\r\n return pathsToTarget;\r\n }", "public int getNodeCount(){\r\n HashSet<FlowGraphNode> visited = new HashSet<>();\r\n LinkedList<FlowGraphNode> queue = new LinkedList<>();\r\n queue.add(start);\r\n visited.add(start);\r\n while(!queue.isEmpty()){\r\n FlowGraphNode node = queue.pop();\r\n for(FlowGraphNode child : node.to){\r\n if(visited.add(child)){\r\n queue.add(child);\r\n }\r\n }\r\n }\r\n return visited.size();\r\n }", "public int depthFirstSearch(List<Integer>[] adj){\n int connected = 0;\n for(int i = 0; i < n; i++){\n if(visited[i] == false){\n connected ++;\n dfsRecursive(adj, i);\n }\n }\n return connected;\n }", "private Queue<Integer> findChildren(int node, int[] parents) {\n Queue<Integer> children = new LinkedList<>();\n for (int i = 0; i < parents.length; i++) {\n if (node != i && node == parents[i]) {\n children.add(i);\n }\n }\n return children;\n }", "public void depthFirstTraverse() {\n\t\tInteger first = (Integer) edges.keySet().toArray()[0];\n\t\t// track whether vertex was visited\n\t\tHashMap<Integer, Boolean> visited = buildVisited();\n\t\tdepthFirstTraverse(first, visited);\n\t}", "int getParentID(int nodeID){\n check(nodeID);\n return nodes_[nodeID].parent_;\n }", "public StructuredId getParent()\r\n {\r\n return parent;\r\n }", "TreeNode<T> getParent();", "protected abstract Set<T> findNeighbors(T node, Map<T, T> parentMap);", "public Object[] getParentInfo(String path);", "Group[] getParents() throws AccessManagementException;", "private void mapChildren(SortedSet<Integer> parents) {\n\n\t\tIterator<Integer> iterator = parents.iterator();\n\t\twhile (iterator.hasNext()) {\n\t\t\tint next = iterator.next();\n\t\t\tthis.children.put(next, new ArrayList<Integer>());\n\n\t\t}\n\t\t// save the parent of every id in par and check if they are contained in\n\t\t// parent list\n\n\t\tfor (int i : this.idMap.keySet()) {\n\n\t\t\tint par = Integer.parseInt(this.idMap.get(i).get(1));\n\t\t\tthis.children.get(par).add(i);\n\n\t\t}\n\n\t}", "private Stack<ShuffleDependency<?, ?, ?>> getMissingAncestorShuffleDependencies(RDD<?> rdd) {\n Stack<ShuffleDependency<?, ?, ?>> ancestors = new Stack<>();\n Set<RDD<?>> visited = Sets.newHashSet();\n // We are manually maintaining a stack here to prevent StackOverflowError\n // caused by recursively visiting\n Stack<RDD<?>> waitingForVisit = new Stack<>();\n waitingForVisit.push(rdd);\n while (waitingForVisit.size() > 0) {\n RDD<?> toVisit = waitingForVisit.pop();\n if (!visited.contains(toVisit)) {\n visited.add(toVisit);\n Set<ShuffleDependency<?, ?, ?>> shuffleDependencies = getShuffleDependencies(toVisit);\n if (shuffleDependencies == null || shuffleDependencies.size() == 0) {\n continue;\n }\n shuffleDependencies.forEach(shuffleDep -> {\n if (!shuffleIdToMapStage.containsKey(shuffleDep.shuffleId())) {\n ancestors.push(shuffleDep);\n waitingForVisit.push(shuffleDep.rdd());\n }\n });\n }\n }\n return ancestors;\n }", "private List<Integer> findMinNodes() {\n\t\tint minLabel = Integer.MAX_VALUE;\n\t\tList<Integer> result = new ArrayList<Integer>();\n\n\t\tfor (int node = 0; node < vertices.length; node++) {\n\t\t\tint nodeLabel = connectivity[node][node];\n\t\t\tif (nodeLabel < minLabel) {\n\t\t\t\tresult.clear();\n\t\t\t\tresult.add(node);\n\t\t\t\tminLabel = nodeLabel;\n\t\t\t} else if (nodeLabel == minLabel) {\n\t\t\t\tresult.add(node);\n\t\t\t} else\n\t\t\t\tcontinue;\n\t\t}\n\t\treturn result;\n\t}", "public ArrayList<String> depthFirstSearch(Character sourceId, Character destinationId) {\n // Safety check first if the hashmap contains the key\n if(!graph.containsKey(sourceId) || !graph.containsKey(destinationId)) {\n throw new NullPointerException(\"The graph does not contain the source or the destination node ID\");\n }\n\n // Initialize empty array list of paths\n paths = new ArrayList<>();\n\n // Get the node from the graph\n Node sourceNode = getNode(sourceId);\n Node destinationNode = getNode(destinationId);\n // Mark the visited nodes in a HashSet so that it will not re-visit\n HashSet<Character> visited = new HashSet<>();\n\n depthFirstSearch(sourceNode, destinationNode, \"\", visited);\n\n // Call the private recursive function\n return paths;\n }", "public String getParentId() {\n return parentId;\n }", "public String getParentId() {\n return parentId;\n }", "public String getParentId() {\n return parentId;\n }", "public String getParentId() {\n return parentId;\n }", "public String getParentId() {\n return parentId;\n }", "public String getParentId() {\n return parentId;\n }", "public String getParentId() {\n return parentId;\n }", "public String getParentId() {\n return parentId;\n }", "public String getParentId() {\n return parentId;\n }", "public Future<List<CtxEntityIdentifier>> retrieveParentCommunities(CtxEntityIdentifier community);", "public Long getParentId() {\n return parentId;\n }", "public Long getParentId() {\n return parentId;\n }", "public Long getParentId() {\n return parentId;\n }", "public Long getParentId() {\n return parentId;\n }", "public int getParentId() {\r\n\t\treturn parentId;\r\n\t}", "public Node getParent();", "public static Tree solve() {\n Scanner scan = new Scanner(System.in);\n int n = scan.nextInt();\n\n int[] arrayNode = new int[n + 1];\n for (int i = 1; i <= n; i++) {\n arrayNode[i] = scan.nextInt();\n }\n\n Color[] arrayColor = new Color[n + 1];\n for (int i = 1; i <= n; i++) {\n if (scan.nextInt() == 0) {\n arrayColor[i] = Color.RED;\n } else {\n arrayColor[i] = Color.GREEN;\n }\n }\n\n List<Integer>[] adjacentsList = new List[n + 1];\n for (int i = 1; i <= n; i++) {\n adjacentsList[i] = new ArrayList<Integer>();\n }\n\n for (int i = 0; i < n - 1; i++) {\n int x = scan.nextInt();\n int y = scan.nextInt();\n\n adjacentsList[x].add(y);\n adjacentsList[y].add(x);\n }\n\n scan.close();\n\n List<Integer>[] childrenList = new List[n + 1];\n for (int i = 1; i <= n; i++) {\n childrenList[i] = new ArrayList<Integer>();\n }\n\n int[] depths = new int[n + 1];\n boolean[] visited = new boolean[n + 1];\n\n Queue<Integer> queue = new LinkedList<Integer>();\n depths[1] = 0;\n queue.offer(1);\n while (!queue.isEmpty()) {\n int head = queue.poll();\n\n if (visited[head]) {\n continue;\n }\n visited[head] = true;\n\n for (int adjacent : adjacentsList[head]) {\n if (!visited[adjacent]) {\n childrenList[head].add(adjacent);\n depths[adjacent] = depths[head] + 1;\n queue.offer(adjacent);\n }\n }\n }\n\n Tree[] nodes = new Tree[n + 1];\n for (int i = 1; i <= n; i++) {\n if (childrenList[i].isEmpty()) {\n nodes[i] = new TreeLeaf(arrayNode[i], arrayColor[i], depths[i]);\n } else {\n nodes[i] = new TreeNode(arrayNode[i], arrayColor[i], depths[i]);\n }\n }\n for (int i = 1; i <= n; i++) {\n for (int child : childrenList[i]) {\n ((TreeNode) nodes[i]).addChild(nodes[child]);\n }\n }\n return nodes[1];\n }", "public static Node searchParent(Node root, int taskId) {\n Queue<Node> queue = new LinkedList<>();\n queue.add(root);\n\n while (queue.size() > 0) {\n Node current = queue.poll();\n if (current.getAllChildrenIds().contains(taskId)) {\n return current;\n } else {\n queue.addAll(current.getChildren());\n }\n }\n\n return null;\n }", "public List<Long> findStatesInTraversalPath(Context context, StateMachine stateMachine, Long initialStateId)\n throws RuntimeException {\n List<Long> traversalPathStateIds = new ArrayList<>();\n\n // Map to mark visitedState in BFS path search, memoization for BFS path\n Map<Long, Boolean> visitedStateIds = new HashMap<>();\n\n // Map to store stateId and its corresponding outputEvent\n Map<Long, String> stateOutputEvents = new HashMap<>();\n\n for (State state : stateMachine.getStates()) {\n try {\n stateOutputEvents.put(state.getId(), getOutputEventName(state.getOutputEvent()));\n visitedStateIds.put(state.getId(), Boolean.FALSE);\n } catch (IOException ex) {\n throw new RuntimeException(\"Error occurred while deserializing task outputEvent for stateMachineId: \"\n + stateMachine.getId() + \" stateId: \" + state.getId());\n }\n }\n // For all states in a state machine which are not yet visited, compute path from given initial state\n for (State state : stateMachine.getStates()) {\n if(!visitedStateIds.get(state.getId())) {\n if(initialStateId != state.getId()) {\n visitedStateIds = searchPaths(context, initialStateId, state.getId(), visitedStateIds,\n stateOutputEvents);\n }\n else {\n visitedStateIds.put(state.getId(), Boolean.TRUE);\n }\n }\n }\n for (Map.Entry<Long, Boolean> isStateVisited : visitedStateIds.entrySet()) {\n if(isStateVisited.getValue()) {\n traversalPathStateIds.add(isStateVisited.getKey());\n }\n }\n return traversalPathStateIds;\n }", "private Set<ShuffleDependency<?, ?, ?>> getShuffleDependencies(RDD<?> rdd) {\n Set<ShuffleDependency<?, ?, ?>> parents = Sets.newHashSet();\n // 已遍历RDD\n Set<RDD<?>> visited = Sets.newHashSet();\n // 深度优先遍历\n Stack<RDD<?>> waitingForVisit = new Stack<>();\n waitingForVisit.push(rdd);\n\n while (waitingForVisit.size() > 0) {\n RDD<?> toVisit = waitingForVisit.pop();\n if (!visited.contains(toVisit)) {\n visited.add(toVisit);\n // 递归调用结束条件: RDD.dependencies() == null, 说明为DAG图入口\n if (toVisit.dependencies() != null) {\n for (Dependency<?> dep : toVisit.dependencies()) {\n if (dep instanceof ShuffleDependency) {\n parents.add((ShuffleDependency<?, ?, ?>) dep);\n } else {\n // dep依赖的RDD入栈, 深度遍历\n waitingForVisit.add(dep.rdd());\n }\n }\n }\n }\n }\n return parents;\n }", "private void setParentBounds() {\n GraphRepresentation baseGraph = graphRepresentationFactory.getBaseGraph();\n\n Iterator<Task> iterator = tasks.iterator();\n while (iterator.hasNext()) {\n Task nextTask = iterator.next();\n List<Integer> nextTaskParents = baseGraph.getParents(nextTask.getIdentifier());\n nextTask.setParentBound(nextTaskParents.size());\n }\n }", "public IRNode getParent(IRNode node);", "public Kynamic getParentNode(Long kid) {\n\t\treturn this.kynamicDao.getParentNode(kid);\r\n\t}", "public Set<SwitchId> getAllInvolvedSwitches() {\n Set<SwitchId> switchIds = new HashSet<>();\n for (FlowPath subPath : getSubPaths()) {\n for (PathSegment segment : subPath.getSegments()) {\n switchIds.add(segment.getSrcSwitchId());\n switchIds.add(segment.getDestSwitchId());\n }\n }\n return switchIds;\n }", "public SearchTreeNode getParent() { return parent; }", "public abstract List<ResolvedReferenceType> getDirectAncestors();", "private List<Long> createParents(List<Chromosome> parents) {\n IgniteCache<Long, Chromosome> cache = ignite.cache(GAGridConstants.POPULATION_CACHE);\n cache.clear();\n\n List<Long> keys = new ArrayList();\n\n parents.stream().forEach((x) -> {\n long[] genes = x.getGenes();\n Chromosome newparent = new Chromosome(genes);\n cache.put(newparent.id(), newparent);\n keys.add(newparent.id());\n });\n\n return keys;\n }", "private int findAllPathsUtil(int s, int t, boolean[] isVisited, List<Integer> localPathList,int numOfPath,LinkedList<Integer>[] parent )\n {\n\n if (t==s) {\n numOfPath++;\n return numOfPath;\n }\n isVisited[t] = true;\n\n for (Integer i : parent[t]) {\n if (!isVisited[i]) {\n localPathList.add(i);\n numOfPath =findAllPathsUtil(s,i , isVisited, localPathList,numOfPath,parent);\n localPathList.remove(i);\n }\n }\n isVisited[t] = false;\n return numOfPath;\n }", "public List<Graph> search() {\n\n long start = System.currentTimeMillis();\n TetradLogger.getInstance().log(\"info\", \"Starting ION Search.\");\n logGraphs(\"\\nInitial Pags: \", this.input);\n TetradLogger.getInstance().log(\"info\", \"Transfering local information.\");\n long steps = System.currentTimeMillis();\n\n /*\n * Step 1 - Create the empty graph\n */\n List<Node> varNodes = new ArrayList<>();\n for (String varName : variables) {\n varNodes.add(new GraphNode(varName));\n }\n Graph graph = new EdgeListGraph(varNodes);\n\n /*\n * Step 2 - Transfer local information from the PAGs (adjacencies\n * and edge orientations)\n */\n // transfers edges from each graph and finds definite noncolliders\n transferLocal(graph);\n // adds edges for variables never jointly measured\n for (NodePair pair : nonIntersection(graph)) {\n graph.addEdge(new Edge(pair.getFirst(), pair.getSecond(), Endpoint.CIRCLE, Endpoint.CIRCLE));\n }\n TetradLogger.getInstance().log(\"info\", \"Steps 1-2: \" + (System.currentTimeMillis() - steps) / 1000. + \"s\");\n System.out.println(\"step2\");\n System.out.println(graph);\n\n /*\n * Step 3\n *\n * Branch and prune step that blocks problematic undirectedPaths, possibly d-connecting undirectedPaths\n */\n steps = System.currentTimeMillis();\n Queue<Graph> searchPags = new LinkedList<>();\n // place graph constructed in step 2 into the queue\n searchPags.offer(graph);\n // get d-separations and d-connections\n List<Set<IonIndependenceFacts>> sepAndAssoc = findSepAndAssoc(graph);\n this.separations = sepAndAssoc.get(0);\n this.associations = sepAndAssoc.get(1);\n Map<Collection<Node>, List<PossibleDConnectingPath>> paths;\n// Queue<Graph> step3PagsSet = new LinkedList<Graph>();\n HashSet<Graph> step3PagsSet = new HashSet<>();\n Set<Graph> reject = new HashSet<>();\n // if no d-separations, nothing left to search\n if (separations.isEmpty()) {\n // makes orientations preventing definite noncolliders from becoming colliders\n // do final orientations\n// doFinalOrientation(graph);\n step3PagsSet.add(graph);\n }\n // sets length to iterate once if search over path lengths not enabled, otherwise set to 2\n int numNodes = graph.getNumNodes();\n int pl = numNodes - 1;\n if (pathLengthSearch) {\n pl = 2;\n }\n // iterates over path length, then adjacencies\n for (int l = pl; l < numNodes; l++) {\n if (pathLengthSearch) {\n TetradLogger.getInstance().log(\"info\", \"Braching over path lengths: \" + l + \" of \" + (numNodes - 1));\n }\n int seps = separations.size();\n int currentSep = 1;\n int numAdjacencies = separations.size();\n for (IonIndependenceFacts fact : separations) {\n if (adjacencySearch) {\n TetradLogger.getInstance().log(\"info\", \"Braching over path nonadjacencies: \" + currentSep + \" of \" + numAdjacencies);\n }\n seps--;\n // uses two queues to keep up with which PAGs are being iterated and which have been\n // accepted to be iterated over in the next iteration of the above for loop\n searchPags.addAll(step3PagsSet);\n recGraphs.add(searchPags.size());\n step3PagsSet.clear();\n while (!searchPags.isEmpty()) {\n System.out.println(\"ION Step 3 size: \" + searchPags.size());\n double currentUsage = Runtime.getRuntime().totalMemory() - Runtime.getRuntime().freeMemory();\n if (currentUsage > maxMemory) maxMemory = currentUsage;\n // deques first PAG from searchPags\n Graph pag = searchPags.poll();\n // Part 3.a - finds possibly d-connecting undirectedPaths between each pair of nodes\n // known to be d-separated\n List<PossibleDConnectingPath> dConnections = new ArrayList<>();\n // checks to see if looping over adjacencies\n if (adjacencySearch) {\n for (Collection<Node> conditions : fact.getZ()) {\n // checks to see if looping over path lengths\n if (pathLengthSearch) {\n dConnections.addAll(PossibleDConnectingPath.findDConnectingPathsOfLength\n (pag, fact.getX(), fact.getY(), conditions, l));\n } else {\n dConnections.addAll(PossibleDConnectingPath.findDConnectingPaths\n (pag, fact.getX(), fact.getY(), conditions));\n }\n }\n } else {\n for (IonIndependenceFacts allfact : separations) {\n for (Collection<Node> conditions : allfact.getZ()) {\n // checks to see if looping over path lengths\n if (pathLengthSearch) {\n dConnections.addAll(PossibleDConnectingPath.findDConnectingPathsOfLength\n (pag, allfact.getX(), allfact.getY(), conditions, l));\n } else {\n dConnections.addAll(PossibleDConnectingPath.findDConnectingPaths\n (pag, allfact.getX(), allfact.getY(), conditions));\n }\n }\n }\n }\n // accept PAG go to next PAG if no possibly d-connecting undirectedPaths\n if (dConnections.isEmpty()) {\n// doFinalOrientation(pag);\n// Graph p = screenForKnowledge(pag);\n// if (p != null) step3PagsSet.add(p);\n step3PagsSet.add(pag);\n continue;\n }\n // maps conditioning sets to list of possibly d-connecting undirectedPaths\n paths = new HashMap<>();\n for (PossibleDConnectingPath path : dConnections) {\n List<PossibleDConnectingPath> p = paths.get(path.getConditions());\n if (p == null) {\n p = new LinkedList<>();\n }\n p.add(path);\n paths.put(path.getConditions(), p);\n }\n // Part 3.b - finds minimal graphical changes to block possibly d-connecting undirectedPaths\n List<Set<GraphChange>> possibleChanges = new ArrayList<>();\n for (Set<GraphChange> changes : findChanges(paths)) {\n Set<GraphChange> newChanges = new HashSet<>();\n for (GraphChange gc : changes) {\n boolean okay = true;\n for (Triple collider : gc.getColliders()) {\n\n if (pag.isUnderlineTriple(collider.getX(), collider.getY(), collider.getZ())) {\n okay = false;\n break;\n }\n\n }\n if (!okay) {\n continue;\n }\n for (Triple collider : gc.getNoncolliders()) {\n if (pag.isDefCollider(collider.getX(), collider.getY(), collider.getZ())) {\n okay = false;\n break;\n }\n }\n if (okay) {\n newChanges.add(gc);\n }\n }\n if (!newChanges.isEmpty()) {\n possibleChanges.add(newChanges);\n } else {\n possibleChanges.clear();\n break;\n }\n }\n float starthitset = System.currentTimeMillis();\n Collection<GraphChange> hittingSets = IonHittingSet.findHittingSet(possibleChanges);\n recHitTimes.add((System.currentTimeMillis() - starthitset) / 1000.);\n // Part 3.c - checks the newly constructed graphs from 3.b and rejects those that\n // cycles or produce independencies known not to occur from the input PAGs or\n // include undirectedPaths from definite nonancestors\n for (GraphChange gc : hittingSets) {\n boolean badhittingset = false;\n for (Edge edge : gc.getRemoves()) {\n Node node1 = edge.getNode1();\n Node node2 = edge.getNode2();\n Set<Triple> triples = new HashSet<>();\n triples.addAll(gc.getColliders());\n triples.addAll(gc.getNoncolliders());\n if (triples.size() != (gc.getColliders().size() + gc.getNoncolliders().size())) {\n badhittingset = true;\n break;\n }\n for (Triple triple : triples) {\n if (node1.equals(triple.getY())) {\n if (node2.equals(triple.getX()) ||\n node2.equals(triple.getZ())) {\n badhittingset = true;\n break;\n }\n }\n if (node2.equals(triple.getY())) {\n if (node1.equals(triple.getX()) ||\n node1.equals(triple.getZ())) {\n badhittingset = true;\n break;\n }\n }\n }\n if (badhittingset) {\n break;\n }\n for (NodePair pair : gc.getOrients()) {\n if ((node1.equals(pair.getFirst()) && node2.equals(pair.getSecond())) ||\n (node2.equals(pair.getFirst()) && node1.equals(pair.getSecond()))) {\n badhittingset = true;\n break;\n }\n }\n if (badhittingset) {\n break;\n }\n }\n if (!badhittingset) {\n for (NodePair pair : gc.getOrients()) {\n for (Triple triple : gc.getNoncolliders()) {\n if (pair.getSecond().equals(triple.getY())) {\n if (pair.getFirst().equals(triple.getX()) &&\n pag.getEndpoint(triple.getZ(), triple.getY()).equals(Endpoint.ARROW)) {\n badhittingset = true;\n break;\n\n }\n if (pair.getFirst().equals(triple.getZ()) &&\n pag.getEndpoint(triple.getX(), triple.getY()).equals(Endpoint.ARROW)) {\n badhittingset = true;\n break;\n }\n }\n if (badhittingset) {\n break;\n }\n }\n if (badhittingset) {\n break;\n }\n }\n }\n if (badhittingset) {\n continue;\n }\n Graph changed = gc.applyTo(pag);\n // if graph change has already been rejected move on to next graph\n if (reject.contains(changed)) {\n continue;\n }\n // if graph change has already been accepted move on to next graph\n if (step3PagsSet.contains(changed)) {\n continue;\n }\n // reject if null, predicts false independencies or has cycle\n if (predictsFalseIndependence(associations, changed)\n || changed.existsDirectedCycle()) {\n reject.add(changed);\n }\n // makes orientations preventing definite noncolliders from becoming colliders\n // do final orientations\n// doFinalOrientation(changed);\n // now add graph to queue\n\n// Graph p = screenForKnowledge(changed);\n// if (p != null) step3PagsSet.add(p);\n step3PagsSet.add(changed);\n }\n }\n // exits loop if not looping over adjacencies\n if (!adjacencySearch) {\n break;\n }\n }\n }\n TetradLogger.getInstance().log(\"info\", \"Step 3: \" + (System.currentTimeMillis() - steps) / 1000. + \"s\");\n Queue<Graph> step3Pags = new LinkedList<>(step3PagsSet);\n\n /*\n * Step 4\n *\n * Finds redundant undirectedPaths and uses this information to expand the list\n * of possible graphs\n */\n steps = System.currentTimeMillis();\n Map<Edge, Boolean> necEdges;\n Set<Graph> outputPags = new HashSet<>();\n\n while (!step3Pags.isEmpty()) {\n Graph pag = step3Pags.poll();\n necEdges = new HashMap<>();\n // Step 4.a - if x and y are known to be unconditionally associated and there is\n // exactly one trek between them, mark each edge on that trek as necessary and\n // make the tiples on the trek definite noncolliders\n // initially mark each edge as not necessary\n for (Edge edge : pag.getEdges()) {\n necEdges.put(edge, false);\n }\n // look for unconditional associations\n for (IonIndependenceFacts fact : associations) {\n for (List<Node> nodes : fact.getZ()) {\n if (nodes.isEmpty()) {\n List<List<Node>> treks = treks(pag, fact.x, fact.y);\n if (treks.size() == 1) {\n List<Node> trek = treks.get(0);\n List<Triple> triples = new ArrayList<>();\n for (int i = 1; i < trek.size(); i++) {\n // marks each edge in trek as necessary\n necEdges.put(pag.getEdge(trek.get(i - 1), trek.get(i)), true);\n if (i == 1) {\n continue;\n }\n // makes each triple a noncollider\n pag.addUnderlineTriple(trek.get(i - 2), trek.get(i - 1), trek.get(i));\n }\n }\n // stop looping once the empty set is found\n break;\n }\n }\n }\n // Part 4.b - branches by generating graphs for every combination of removing\n // redundant undirectedPaths\n boolean elimTreks;\n // checks to see if removing redundant undirectedPaths eliminates every trek between\n // two variables known to be nconditionally assoicated\n List<Graph> possRemovePags = possRemove(pag, necEdges);\n double currentUsage = Runtime.getRuntime().totalMemory() - Runtime.getRuntime().freeMemory();\n if (currentUsage > maxMemory) maxMemory = currentUsage;\n for (Graph newPag : possRemovePags) {\n elimTreks = false;\n // looks for unconditional associations\n for (IonIndependenceFacts fact : associations) {\n for (List<Node> nodes : fact.getZ()) {\n if (nodes.isEmpty()) {\n if (treks(newPag, fact.x, fact.y).isEmpty()) {\n elimTreks = true;\n }\n // stop looping once the empty set is found\n break;\n }\n }\n }\n // add new PAG to output unless a necessary trek has been eliminated\n if (!elimTreks) {\n outputPags.add(newPag);\n }\n }\n }\n outputPags = removeMoreSpecific(outputPags);\n// outputPags = applyKnowledge(outputPags);\n\n TetradLogger.getInstance().log(\"info\", \"Step 4: \" + (System.currentTimeMillis() - steps) / 1000. + \"s\");\n\n /*\n * Step 5\n *\n * Generate the Markov equivalence classes for graphs and accept only\n * those that do not predict false d-separations\n */\n steps = System.currentTimeMillis();\n Set<Graph> outputSet = new HashSet<>();\n for (Graph pag : outputPags) {\n Set<Triple> unshieldedPossibleColliders = new HashSet<>();\n for (Triple triple : getPossibleTriples(pag)) {\n if (!pag.isAdjacentTo(triple.getX(), triple.getZ())) {\n unshieldedPossibleColliders.add(triple);\n }\n }\n\n PowerSet<Triple> pset = new PowerSet<>(unshieldedPossibleColliders);\n for (Set<Triple> set : pset) {\n Graph newGraph = new EdgeListGraph(pag);\n for (Triple triple : set) {\n newGraph.setEndpoint(triple.getX(), triple.getY(), Endpoint.ARROW);\n newGraph.setEndpoint(triple.getZ(), triple.getY(), Endpoint.ARROW);\n }\n doFinalOrientation(newGraph);\n }\n for (Graph outputPag : finalResult) {\n if (!predictsFalseIndependence(associations, outputPag)) {\n Set<Triple> underlineTriples = new HashSet<>(outputPag.getUnderLines());\n for (Triple triple : underlineTriples) {\n outputPag.removeUnderlineTriple(triple.getX(), triple.getY(), triple.getZ());\n }\n outputSet.add(outputPag);\n }\n }\n }\n\n// outputSet = applyKnowledge(outputSet);\n outputSet = checkPaths(outputSet);\n\n output.addAll(outputSet);\n TetradLogger.getInstance().log(\"info\", \"Step 5: \" + (System.currentTimeMillis() - steps) / 1000. + \"s\");\n runtime = ((System.currentTimeMillis() - start) / 1000.);\n logGraphs(\"\\nReturning output (\" + output.size() + \" Graphs):\", output);\n double currentUsage = Runtime.getRuntime().totalMemory() - Runtime.getRuntime().freeMemory();\n if (currentUsage > maxMemory) maxMemory = currentUsage;\n return output;\n }" ]
[ "0.67178947", "0.6400834", "0.63396895", "0.6112408", "0.60874605", "0.5839285", "0.58108264", "0.57652", "0.573318", "0.5707754", "0.5676228", "0.5615989", "0.55435085", "0.5526865", "0.55059224", "0.5501387", "0.5479953", "0.5473785", "0.5455977", "0.54263955", "0.5419631", "0.541509", "0.5403415", "0.5392944", "0.53911316", "0.5386097", "0.5353921", "0.5311609", "0.530634", "0.5299214", "0.52934176", "0.5288356", "0.5280291", "0.5277431", "0.5275414", "0.5268808", "0.5241441", "0.5240739", "0.52359146", "0.52215827", "0.52208245", "0.52079016", "0.519975", "0.5198385", "0.51951253", "0.517241", "0.5164365", "0.5146775", "0.51443064", "0.5139801", "0.51312643", "0.51256835", "0.51222426", "0.51222426", "0.51222426", "0.5121191", "0.51194644", "0.5115168", "0.5107535", "0.51071304", "0.5098601", "0.5088029", "0.5078516", "0.5073128", "0.506879", "0.5062416", "0.5054896", "0.5052138", "0.50515866", "0.50460124", "0.5041627", "0.5041406", "0.5035572", "0.5035572", "0.5035572", "0.5035572", "0.5035572", "0.5035572", "0.5035572", "0.5035572", "0.5035572", "0.5027859", "0.5025148", "0.5025148", "0.5025148", "0.5025148", "0.5021608", "0.502049", "0.50175816", "0.50171965", "0.50142527", "0.5008688", "0.5003142", "0.49980423", "0.4993246", "0.4988233", "0.49781898", "0.49712008", "0.49706516", "0.49645793", "0.49638686" ]
0.0
-1
mark this node as discovered and find all of its parents, calling this function on each
public ArrayList<DagNode> getAllParentNodes(DagNode node){ node.setDiscovered(true); ArrayList<DagNode> allParentNodes = new ArrayList<>(); allParentNodes.add(node); for(DagNode parentNode : node.getParentTaskIds()){ if(!parentNode.isDiscovered()){ //if it has not been discoverd yet, add it to the list to return allParentNodes.addAll(getAllParentNodes(parentNode)); } } return allParentNodes; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void updateAllParentsBelow();", "public void selectParents() {\n // Create a new parent list for this reproductive cycle. Let the garbage\n // handler dispose of the old list, if there was one.\n switch (Defines.parentAlgo) {\n case Defines.PA_RANDOM:\n this.parents = this.selectParentsRandom();\n break;\n\n case Defines.PA_ROULETTE:\n this.parents = this.selectParentsRoulette();\n break;\n\n case Defines.PA_TOURNAMENT:\n this.parents = this.selectParentsTournament();\n break;\n }\n// this.howGoodAreParents();\n }", "public void inOrderTraverseRecursive();", "public void selectParents1() {\n // Create a new parent list for this reproductive cycle. Let the garbage\n // handler dispose of the old list, if there was one.\n switch (Defines.parentAlgo) {\n case Defines.PA_RANDOM:\n this.parents = this.selectParentsRandom();\n break;\n\n case Defines.PA_ROULETTE:\n this.parents = this.selectParentsRoulette();\n break;\n\n case Defines.PA_TOURNAMENT:\n this.parents = this.selectParentsTournament();\n break;\n }\n// this.howGoodAreParents();\n }", "public void resetParents() {\r\n }", "public void discover(Node n) {}", "public void traversePreOrder() {\n\t\tpreOrder(this);\n\t}", "protected abstract void traverse();", "public void preTraverse() {\n // ensure not an empty tree\n while (root != null) {\n \n }\n }", "public void resetVisited() {\r\n\t\tvisited = false;\r\n\t\tfor (ASTNode child : getChildren()) {\r\n\t\t\tif (!visited)\r\n\t\t\t\tcontinue;\r\n\t\t\tchild.resetVisited();\r\n\t\t}\r\n\t}", "@Override\n\tpublic void find() {\n\n\t}", "Iterable<T> followNodeAndSelef(T start) throws NullPointerException;", "protected void findNewParent() {\n\t\t\tif (parent != null)\n\t\t\t\tparent.children.remove(this);\n\t\t\tNodeLayout[] predecessingNodes = node.getPredecessingNodes();\n\t\t\tparent = null;\n\t\t\tfor (int i = 0; i < predecessingNodes.length; i++) {\n\t\t\t\tTreeNode potentialParent = (TreeNode) owner.layoutToTree\n\t\t\t\t\t\t.get(predecessingNodes[i]);\n\t\t\t\tif (!children.contains(potentialParent)\n\t\t\t\t\t\t&& isBetterParent(potentialParent))\n\t\t\t\t\tparent = potentialParent;\n\t\t\t}\n\t\t\tif (parent == null)\n\t\t\t\tparent = owner.superRoot;\n\n\t\t\tparent.addChild(this);\n\t\t}", "public void depthFirstSearch() {\n List<Vertex> visited = new ArrayList<Vertex>();\r\n // start the recursive depth first search on the current vertex\r\n this.dfs(visited);\r\n }", "protected void scanNodesForRecursion(Cell cell, HashSet<Cell> markCellForNodes, NodeProto [] nil, int start, int end)\n \t{\n \t\tfor(int j=start; j<end; j++)\n \t\t{\n \t\t\tNodeProto np = nil[j];\n \t\t\tif (np instanceof PrimitiveNode) continue;\n \t\t\tCell otherCell = (Cell)np;\n \t\t\tif (otherCell == null) continue;\n \n \t\t\t// subcell: make sure that cell is setup\n \t\t\tif (markCellForNodes.contains(otherCell)) continue;\n \n \t\t\tLibraryFiles reader = this;\n \t\t\tif (otherCell.getLibrary() != cell.getLibrary())\n \t\t\t\treader = getReaderForLib(otherCell.getLibrary());\n \n \t\t\t// subcell: make sure that cell is setup\n \t\t\tif (reader != null)\n \t\t\t\treader.realizeCellsRecursively(otherCell, markCellForNodes, null, 0);\n \t\t}\n \t\tmarkCellForNodes.add(cell);\n \t}", "Iterable<T> followNode(T start) throws NullPointerException;", "void didVisitNode(PathFindingNode node);", "public void depthFirstTraverse() {\n\t\tInteger first = (Integer) edges.keySet().toArray()[0];\n\t\t// track whether vertex was visited\n\t\tHashMap<Integer, Boolean> visited = buildVisited();\n\t\tdepthFirstTraverse(first, visited);\n\t}", "public void preorderTraverse(){\n\t\tpreorderHelper(root);\n\t\tSystem.out.println();\n\t}", "protected abstract Set<T> findNeighbors(T node, Map<T, T> parentMap);", "private void preOrder(int node, int[] parents) {\n currTour.add(node + 1);\n Queue<Integer> children = findChildren(node, parents);\n while(!children.isEmpty()) {\n preOrder(children.remove(), parents);\n }\n }", "@BeforeAll\n\tstatic void setNodes() {\n\t\tLCA = new LowestCommonAncestor();\n\t\tnine = new Node(9,null);\n\t\tten = new Node(10, null);\n\t\teight = new Node(8, null);\n\t\tseven = new Node(7, new Node[] {ten});\n\t\tfour = new Node(4, new Node[] {ten});\n\t\tthree = new Node(3, new Node[] {four});\n\t\tfive = new Node(5, new Node[] {nine, eight, seven});\n\t\ttwo = new Node(2, new Node[] {three, five});\n\t\tone = new Node(1, new Node[] {two});\n\t}", "private void listChildren(Node current) {\n if(current instanceof Element){ //finds the element tags in the XML document with XOM parser\n Element temp = (Element) current;\n switch(temp.getQualifiedName()) {\n case (\"grapes\"): //grapes tag doesn't do anything in particular except instantiating the file\n break;\n\n case (\"grape\"):\n createGrape(temp);\n break;\n\n case (\"seed\"):\n createSeed(temp);\n break;\n\n default:\n throw new IllegalArgumentException(\"Invalid input in XML \" ); //any other element type is not supported in our XML formatted file\n }\n }\n\n for (int i = 0; i < current.getChildCount(); i++) {\n listChildren(current.getChild(i)); //recursive call traverses the XML document in preorder\n }\n\n }", "private Node<E> findSet(Node<E> x) {\n if (x != x.parent) {\n Node<E> p = findSet(x.parent);\n x.parent.children.remove(x);\n p.children.add(x);\n x.parent = p;\n }\n return x.parent;\n }", "@Override\n\tpublic void run() {\n\t\tMap<Integer, Location> possibleStartLocations = possibleStartLocations();\n\n\t\tfor(Entry<Integer, Location> startLocation : possibleStartLocations.entrySet()) {\n\t\t\t// Add startLocation to visited locations\n\t\t\tMap<Integer, Location> visitedLocations = new HashMap<Integer, Location>();\n\t\t\tvisitedLocations.put(startLocation.getKey(), startLocation.getValue());\n\t\t\t\n\t\t\t// Add startLocation to visited order\n\t\t\tList<Location> visitedOrder = new LinkedList<Location>();\n\t\t\tvisitedOrder.add(startLocation.getValue());\n\t\t\t\n\t\t\t// Start the recursion for the following start node\n\t\t\tfindSolution(startLocation, startLocation, visitedLocations, visitedOrder, 0);\n\t\t}\n\t}", "public Node findSet(Node node ){\n Node parent = node.parent;\n //it means no one is parent\n if( parent == node ){\n return parent;\n }\n //do compression\n node.parent = findSet( parent );\n return node.parent;\n }", "void setParentsFirst( int parentsFirst );", "public void dfs(int root, int at, int parent) {\n if (parent == root) rootNodeOutComingEdgeCount ++;//base case\r\n visited[at] = true;\r\n lowLinkValues[at] = ids[at] = id ++;//assign a new id at each recursion\r\n List<Integer> edges = graph.get(at);//wills store all neighbors of current node\r\n for (Integer neighbor : edges) {//for each neighbor current node has\r\n if (neighbor == parent) continue;//base case\r\n if (!visited[neighbor]) {//if it is not visited\r\n dfs(root, neighbor, at);//recurse and explore its neighbors\r\n lowLinkValues[at] = Math.min(lowLinkValues[at], lowLinkValues[neighbor]);//update lowLInkValue\r\n if (ids[at] <= lowLinkValues[neighbor]) {//if id of current node < lowLInk of neighbor\r\n isArticulationPoint[at] = true;//it is an AP\r\n }\r\n else {//if lowLinkValue is greater than id number\r\n lowLinkValues[at] = Math.min(lowLinkValues[at], ids[neighbor]);//update and minimize lowLinkValue\r\n }\r\n }\r\n }\r\n }", "private void depthFirstSearch(Slot start, ArrayList<Pair<Slot, Slot>> moves, HashMap<Slot, Slot> parents) {\n boolean[][] visitedSlots = new boolean[Board.MAX_ROW][Board.MAX_COLUMN];\n\n setSlotsAsNotVisited(visitedSlots);\n\n Stack<Slot> dfsStack = new Stack<>();\n int color = start.getColor();\n\n dfsStack.push(start);\n Slot previous = start;\n\n boardObject.setSlotColor(boardObject.getSlot(start.getRow(), start.getColumn()), Slot.EMPTY);\n\n while (!dfsStack.empty()) {\n Pair<Slot, Slot> next;\n Slot current = dfsStack.pop();\n\n if (!visitedSlots[current.getRow()][current.getColumn()] && !current.equals(previous)) {\n if (!current.equals(start)) {\n visitedSlots[current.getRow()][current.getColumn()] = true;\n }\n\n next = new Pair<>(start, current);\n\n moves.add(next);\n }\n\n Slot up = getUp(current);\n Slot down = getDown(current);\n Slot left = getLeft(current);\n Slot right = getRight(current);\n\n if (left != null && !visitedSlots[left.getRow()][left.getColumn()]) {\n if (!isChild(current, left, parents)) {\n dfsStack.push(left);\n parents.put(left, current);\n }\n }\n\n if (down != null && !visitedSlots[down.getRow()][down.getColumn()]) {\n if (!isChild(current, down, parents)) {\n dfsStack.push(down);\n parents.put(down, current);\n }\n }\n\n if (right != null && !visitedSlots[right.getRow()][right.getColumn()]) {\n if (!isChild(current, right, parents)) {\n dfsStack.push(right);\n parents.put(right, current);\n }\n }\n\n if (up != null && !visitedSlots[up.getRow()][up.getColumn()]) {\n if (!isChild(current, up, parents)) {\n dfsStack.push(up);\n parents.put(up, current);\n }\n }\n\n previous = current;\n }\n\n boardObject.setSlotColor(boardObject.getSlot(start.getRow(), start.getColumn()), color);\n }", "public abstract List<ResolvedReferenceType> getDirectAncestors();", "private void findNext() {\n \tthis.find(true);\n }", "public void visit() {\n visited = true;\n }", "private ArrayList<ASTNode> getAllNodesImpl(ArrayList<ASTNode> childs) {\r\n\t\tif (visited)\r\n\t\t\treturn childs;\r\n\t\tchilds.add(this);\r\n\t\tvisited = true;\r\n\r\n\t\tfor (ASTNode child : getChildren()) {\r\n\t\t\tchild.getAllNodesImpl(childs);\r\n\t\t}\r\n\r\n\t\treturn childs;\r\n\t}", "public void setParent(SearchNode<S, A> parent) {\r\n\t\tthis.parent = parent;\r\n\t}", "public BSCObjSiblingsIter(BSCObject source)\n {\n curr_ci = null;\n p_iter = source.getParents();\n ready_for_fetch = false;\n \n // initialize the HashSet with the source object\n prevobjs = new HashSet<BSCObject>();\n prevobjs.add(source);\n\n // get the children iterator from the first parent\n if (p_iter.hasNext())\n curr_ci = p_iter.next().getChildren();\n }", "public void setVisited()\n {\n visited = true;\n }", "private void DFS() {\n\t\tfor(Node node: nodeList) {\r\n\t\t\tif(!node.isVisited())\r\n\t\t\t\tdfsVisit(node);\r\n\t\t}\r\n\t}", "@Override\n\tpublic List<Node> chilren() {\n\t\treturn children;\n\t}", "public void findPaths(LinkedList<Node> path,Node caller){\n pathsToBaseStation.add(path);\n LinkedList<Node> nextPath = new LinkedList<>(path);\n nextPath.addFirst(this);\n for(Node node: neighbors){\n if(!path.contains(node)){\n node.findPaths(nextPath,this);\n }\n }\n }", "@Override\n\tpublic Iterator<E> iterator() {\n\n\t\tNode tempRoot = root;\n\t\tinOrder(tempRoot);\n\t\treturn null;\n\t}", "public void printTreeNodes(){\n logger.trace(\"Name: \"+this.getName());\n for(int i=0;i<this.getChildCount();i++){\n SearchBaseNode node = (SearchBaseNode) this.getChildAt(i);\n node.printTreeNodes();\n }\n }", "protected boolean traverseThisNode(iNamedObject node)\n\t{\n\t\treturn true;\n\t}", "public abstract List<Node> getChildNodes();", "public Collection<Kynamic> getSiblingsNodes(Long kid) {\n\t\treturn this.kynamicDao.getSiblingNodes(kid);\r\n\t}", "public void traverseIncludeSelf(INext<T> next){\n if(next==null){\n return;\n }\n traverse(this,next,true);\n }", "NodeVector getMatchingAncestors(\n XPathContext xctxt, int node, boolean stopAtFirstFound)\n throws javax.xml.transform.TransformerException\n {\n\n NodeSetDTM ancestors = new NodeSetDTM(xctxt.getDTMManager());\n XPath countMatchPattern = getCountMatchPattern(xctxt, node);\n DTM dtm = xctxt.getDTM(node);\n\n while (DTM.NULL != node)\n {\n if ((null != m_fromMatchPattern)\n && (m_fromMatchPattern.getMatchScore(xctxt, node)\n != XPath.MATCH_SCORE_NONE))\n {\n\n // The following if statement gives level=\"single\" different \n // behavior from level=\"multiple\", which seems incorrect according \n // to the XSLT spec. For now we are leaving this in to replicate \n // the same behavior in XT, but, for all intents and purposes we \n // think this is a bug, or there is something about level=\"single\" \n // that we still don't understand.\n if (!stopAtFirstFound)\n break;\n }\n\n if (null == countMatchPattern)\n System.out.println(\n \"Programmers error! countMatchPattern should never be null!\");\n\n if (countMatchPattern.getMatchScore(xctxt, node)\n != XPath.MATCH_SCORE_NONE)\n {\n ancestors.addElement(node);\n\n if (stopAtFirstFound)\n break;\n }\n\n node = dtm.getParent(node);\n }\n\n return ancestors;\n }", "public void determinePartitions( Callback c ){\n mCurrentDepth = 0;\n GraphNode node;\n GraphNode child;\n int depth = 0;\n List levelList = new java.util.LinkedList();\n int i = 0;\n //they contain those nodes whose parents have not been traversed as yet\n //but the BFS did it.\n List orphans = new java.util.LinkedList();\n\n\n //set the depth of the dummy root as 0\n mRoot.setDepth( mCurrentDepth );\n\n mQueue.addLast( mRoot );\n\n while( !mQueue.isEmpty() ){\n node = (GraphNode)mQueue.getFirst();\n depth = node.getDepth();\n if( mCurrentDepth < depth ){\n\n if( mCurrentDepth > 0 ){\n //we are done with one level!\n constructPartitions( c, levelList, mCurrentDepth );\n }\n\n\n //a new level starts\n mCurrentDepth++;\n levelList.clear();\n }\n mLogger.log( \"Adding to level \" + mCurrentDepth + \" \" + node.getID(),\n LogManager.DEBUG_MESSAGE_LEVEL);\n levelList.add( node );\n\n //look at the orphans first to see if any\n //of the dependency has changed or not.\n /*it = orphans.iterator();\n while(it.hasNext()){\n child = (GraphNode)it.next();\n if(child.parentsBlack()){\n child.setDepth(depth + 1);\n System.out.println(\"Set depth of \" + child.getID() + \" to \" + child.getDepth());\n\n child.traversed();\n mQueue.addLast(child);\n }\n\n //remove the child from the orphan\n it.remove();\n }*/\n\n\n node.setColor( GraphNode.BLACK_COLOR );\n for( Iterator it = node.getChildren().iterator(); it.hasNext(); ){\n child = (GraphNode)it.next();\n if(!child.isColor( GraphNode.GRAY_COLOR ) &&\n child.parentsColored( GraphNode.BLACK_COLOR )){\n mLogger.log( \"Adding to queue \" + child.getID(),\n LogManager.DEBUG_MESSAGE_LEVEL );\n child.setDepth( depth + 1 );\n child.setColor( GraphNode.GRAY_COLOR );\n mQueue.addLast( child );\n }\n /*else if(!child.isTraversed() && !child.parentsBlack()){\n //we have to do the bumping effect\n System.out.println(\"Bumping child \" + child);\n orphans.add(child);\n }*/\n }\n node = (GraphNode)mQueue.removeFirst();\n mLogger.log( \"Removed \" + node.getID(),\n LogManager.DEBUG_MESSAGE_LEVEL);\n }\n\n //handle the last level of the BFS\n constructPartitions( c, levelList, mCurrentDepth );\n\n\n //all the partitions are dependant sequentially\n for( i = mCurrentDepth; i > 1; i-- ){\n constructLevelRelations( c, i - 1, i );\n\n }\n\n done( c );\n }", "public void updateNodeAndParents( TreeNode node )\n {\n viewer.update( node, null );\n TreeNode parent = node.getParent();\n while ( parent != null )\n {\n viewer.update( parent, null );\n parent = parent.getParent();\n }\n }", "public SearchNode<S, A> getParent() {\r\n\t\treturn parent;\r\n\t}", "@Override\n public Iterator<T> iterator() {\n return new UsedNodesIterator<>(this);\n }", "protected abstract Node[] getAllNodes();", "@Override\n\tprotected void nodesInserted ( TreeModelEvent event ) {\n\t\tif ( this.jumpNode != null ) {\n\t\t\treturn;\n\t\t}\n\n\t\tObject[] children = event.getChildren ( );\n\n\t\tif ( children != null ) {\n\n\t\t\t// only problem with this could occure when\n\t\t\t// then children[0] element isn't the topmost element\n\t\t\t// in the tree that has been inserted. at this condition \n\t\t\t// that behaviour is undefined\n\t\t\tthis.jumpNode = ( ProofNode ) children[0];\n\t\t} else {\n\t\t\tthis.jumpNode = null;\n\t\t}\n\t}", "public void preOrderTraversal() {\n beginAnimation();\n treePreOrderTraversal(root);\n stopAnimation();\n\n }", "public void addParents(Collection<Integer> ids)\n {\n PSStopwatch watch = new PSStopwatch();\n watch.start();\n\n if (ids == null)\n throw new IllegalArgumentException(\"ids may not be null\");\n \n if (ids.isEmpty())\n return;\n \n try\n {\n List<PSRelationship> rels = getParentRelationships(ids);\n Set<Integer> parents = new HashSet<>();\n for (PSRelationship rel : rels)\n {\n Integer parentid = rel.getOwner().getId();\n parents.add(parentid);\n }\n addGrandParents(parents);\n\n if (ms_log.isDebugEnabled()) \n {\n watch.stop();\n ms_log.debug(\"[addParents] elapse = \" + watch.toString()\n + \". ids: \" + ids.size() + \". m_items: \" + m_items.size());\n }\n }\n catch (PSException e)\n {\n ms_log.error(\"Problem finding parents\", e);\n }\n }", "private void backToParent(){\n\t\tList<Node> tmp = new ArrayList<Node>();\n\t\t\n\t\tfor(int i = 0; i < r.size(); i++){\n\t\t\tif(r.get(i).getNodeType() == Node.ATTRIBUTE_NODE){\n\t\t\t\tNode localNode = ((Attr)r.get(i)).getOwnerElement();\n\t\t\t\tif(localNode != null)\n\t\t\t\t\ttmp.add(localNode);\n\t\t\t} else {\n\t\t\t\tNode localNode = r.get(i).getParentNode();\n\t\t\t\tif(localNode != null && localNode.getNodeType() != Node.DOCUMENT_NODE && !listContainsElement(tmp, localNode)){\n\t\t\t\t\ttmp.add(localNode);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tr = tmp;\n\t}", "public void visit() {\n\t\tvisited = true;\n\t}", "public void inOrderTraverseIterative();", "private void findPrev() {\n \tthis.find(false);\n }", "private void preOrdertraverse(Node root){\n System.out.println(root.value);\n for(var child : root.getChildren())\n preOrdertraverse(child); //recursively travels other childrens in current child\n }", "Liste<? extends Binarbre<E>> ancestors();", "public void iterate() {\n\t\t// iterator\n\t\tQueue<NDLMapEntryNode<T>> nodes = new LinkedList<NDLMapEntryNode<T>>();\n\t\tnodes.add(rootNode);\n\t\twhile(!nodes.isEmpty()) {\n\t\t\t// iterate BFSwise\n\t\t\tNDLMapEntryNode<T> node = nodes.poll();\n\t\t\tif(node.end) {\n\t\t\t\t// end of entry, call processor\n\t\t\t\tif(keyProcessor != null) {\n\t\t\t\t\tkeyProcessor.process(node.data);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(node.keys != null) {\n\t\t\t\t// if available\n\t\t\t\tnodes.addAll(node.keys.values()); // next nodes to traverse\n\t\t\t}\n\t\t}\n\t}", "@Override\n protected void iterChildren(TreeFunction f) {\n }", "@Override\n protected void iterChildren(TreeFunction f) {\n }", "@Override\n protected void iterChildren(TreeFunction f) {\n }", "public ResultMap<BaseNode> listChildren();", "private void scanForLocations(Element elem) {\n \n String location = getLocation(elem);\n if (location != null) {\n locationToElement.put(location, elem);\n DOM.setInnerHTML(elem, \"\");\n } else {\n int len = DOM.getChildCount(elem);\n for (int i = 0; i < len; i++) {\n scanForLocations(DOM.getChild(elem, i));\n }\n }\n }", "public void shortestPathList() {\n Cell cell = maze.getGrid()[r - 1][r - 1];\n\n parents.add(cell);\n\n while (cell.getParent() != null) {\n parents.add(cell.getParent());\n cell = cell.getParent();\n }\n\n Collections.reverse(parents);\n }", "static void setupLCA() {\n maxDepth = 0;\n depth = new int[N]; // store the depth of each node\n firstParents = new int[N]; // the immediate parent\n firstParents[0] = 0;\n depth[0] = 0;\n dfs(0);\n int power = 1;\n // Increase the power higher until we go over the maxDepth\n // This will be one more than we need\n while (1 << power <= maxDepth) {\n power++;\n }\n parent = new int[power][N]; // go up 2^power from node i of N\n // Now, use that initial information acquired from the dfs to build\n // base cases of the sparse tables!\n for (int node = 0; node < N; node++) {\n parent[0][node] = firstParents[node];\n }\n // Necessary to set everything else to zero for now, so\n // that we never get confused if we are out of bounds\n\n // Must fill it up with -1's\n for (int p = 1; p < parent.length; p++) {\n for (int i = 0; i < N; i++) {\n parent[p][i] = -1;\n }\n }\n // p represents going up by 1 << p\n for (int p = 1; p < parent.length; p++) {\n for (int node = 0; node < N; node++) {\n if (parent[p - 1][node] != -1) {\n int myParent = parent[p - 1][node];\n parent[p][node] = parent[p-1][myParent];\n }\n }\n }\n }", "public List<AlfClass> getParents() {\t\r\n\t\tList<AlfClass> parents = new ArrayList<AlfClass>(this.strongParents);\r\n\t\tparents.addAll(this.weakParents);\r\n\t\treturn Collections.unmodifiableList(parents);\r\n\t}", "@Override\n\tpublic WhereNode getParent() {\n\t\treturn parent;\n\t}", "public void clickTravellersChildrenInc() {\n\t\ttravellersChildInc.click();\n\t}", "protected SiblingIterator(TreeNode<T> node) {\n\t\t\tstartNode = node;\n\t\t}", "@Override\n public ArrayList<Node> getAllNodes() {\n return getAllNodesRecursive(root);\n\n }", "void expandChilds() {\n\t\t\tenumAndExpand(this.parentItem);\n\t\t}", "public Node getParent();", "public void resetDescendants() {\n MapleFamilyCharacter mfc = getMFC(leaderid);\n if (mfc != null) {\n mfc.resetDescendants(this);\n }\n bDirty = true;\n }", "public void prepareForEnumeration() {\n if (isPreparer()) {\n for (NodeT node : nodeTable.values()) {\n // Prepare each node for traversal\n node.initialize();\n if (!this.isRootNode(node)) {\n // Mark other sub-DAGs as non-preparer\n node.setPreparer(false);\n }\n }\n initializeDependentKeys();\n initializeQueue();\n }\n }", "void DFSearch(BFSNode n){\n\t\tn.discovered=true;\r\n\t\tSystem.out.print(\" discovered\");\r\n\t\tn.preProcessNode();\r\n\t\tfor( Integer edg: n.edges){\r\n\t\t\tn.processEdge(edg);\r\n\t\t\tif(!nodes[edg].discovered){\r\n\t\t\t\tnodes[edg].parent = n; \r\n\t\t\t\tnodes[edg].depth = n.depth +1;\r\n\t\t\t\t\r\n\t\t\t\tSystem.out.print(\"{new track with parent [\"+ nodes[edg].parent.value+\"] }\");\r\n\t\t\t\tDFSearch(nodes[edg]);\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\tif(nodes[edg] != n.parent){\r\n\t\t\t\t\tSystem.out.print(\"{LOOP}\");\r\n\t\t\t\t\tif(nodes[edg].depth < n.reachableLimit.depth){\r\n\t\t\t\t\t\tn.reachableLimit = nodes[edg];\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\tSystem.out.print(\"{second visit}\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tSystem.out.println(\"back from node [ \"+n.value +\" ]\");\r\n\t\tn.postProcessNode();\r\n\t\tn.processed = true;\r\n\t\t\r\n\t}", "public void preorder() {\n\t\tpreorder(root);\n\t}", "public void inOrderTraversal() {\n beginAnimation();\n treeInOrderTraversal(root);\n stopAnimation();\n\n }", "public void getAlreadyConnectedPeers() {\n ArrayList<Peer> alreadyConnected = parent.getConnections(name);\n for(Peer p : alreadyConnected) {\n if(p.connected()) {\n addPeer(p.getIP());\n nodeConnection(p.getIP());\n }\n }\n }", "public void dfs (Node node) {\r\n\t\t\r\n\t\tSystem.out.print(node.data+\" \");\r\n\t\tList<Node> adding = node.getPartners();\r\n\t\tnode.visited = true;\r\n\t\t\tfor(int loop=0; loop<adding.size(); loop++) {\r\n\t\t\t\tNode n = adding.get(loop);\r\n\t\t\t\t\tif (n!=null && !n.visited) {\r\n\t\t\t\t\t\tdfs(n);\r\n\t\t\t\t\t} // if loop ends here\r\n\t\t\t\t\t\r\n\t\t\t} // for loop ends here\r\n\t\t\r\n\t}", "public void replaceBy(Set set, boolean removeSelf) {\n if (TRACE_INTRA) out.println(\"Replacing \"+this+\" with \"+set+(removeSelf?\", and removing self\":\"\"));\n if (set.contains(this)) {\n if (TRACE_INTRA) out.println(\"Replacing a node with itself, turning off remove self.\");\n set.remove(this);\n if (set.isEmpty()) {\n if (TRACE_INTRA) out.println(\"Replacing a node with only itself! Nothing to do.\");\n return;\n }\n removeSelf = false;\n }\n if (VERIFY_ASSERTIONS) Assert._assert(!set.contains(this));\n if (this.predecessors != null) {\n for (Iterator i=this.predecessors.entrySet().iterator(); i.hasNext(); ) {\n java.util.Map.Entry e = (java.util.Map.Entry)i.next();\n jq_Field f = (jq_Field)e.getKey();\n Object o = e.getValue();\n if (removeSelf)\n i.remove();\n if (TRACE_INTRA) out.println(\"Looking at predecessor on field \"+f+\": \"+o);\n if (o == null) continue;\n if (o instanceof Node) {\n Node that = (Node)o;\n //Object q = null;\n //if (TRACK_REASONS && edgesToReasons != null)\n // q = edgesToReasons.get(Edge.get(that, this, f));\n if (removeSelf)\n that._removeEdge(f, this);\n if (that == this) {\n // add self-cycles on f to all nodes in set.\n if (TRACE_INTRA) out.println(\"Adding self-cycles on field \"+f);\n for (Iterator j=set.iterator(); j.hasNext(); ) {\n Node k = (Node)j.next();\n k.addEdge(f, k);\n }\n } else {\n for (Iterator j=set.iterator(); j.hasNext(); ) {\n that.addEdge(f, (Node)j.next());\n }\n }\n } else {\n for (Iterator k=((Set)o).iterator(); k.hasNext(); ) {\n Node that = (Node)k.next();\n if (removeSelf) {\n k.remove();\n that._removeEdge(f, this);\n }\n //Object q = null;\n //if (TRACK_REASONS && edgesToReasons != null)\n // q = edgesToReasons.get(Edge.get(that, this, f));\n if (that == this) {\n // add self-cycles on f to all mapped nodes.\n if (TRACE_INTRA) out.println(\"Adding self-cycles on field \"+f);\n for (Iterator j=set.iterator(); j.hasNext(); ) {\n Node k2 = (Node)j.next();\n k2.addEdge(f, k2);\n }\n } else {\n for (Iterator j=set.iterator(); j.hasNext(); ) {\n that.addEdge(f, (Node)j.next());\n }\n }\n }\n }\n }\n }\n if (this.addedEdges != null) {\n for (Iterator i=this.addedEdges.entrySet().iterator(); i.hasNext(); ) {\n java.util.Map.Entry e = (java.util.Map.Entry)i.next();\n jq_Field f = (jq_Field)e.getKey();\n Object o = e.getValue();\n if (removeSelf)\n i.remove();\n if (o == null) continue;\n if (TRACE_INTRA) out.println(\"Looking at successor on field \"+f+\": \"+o);\n if (o instanceof Node) {\n Node that = (Node)o;\n if (that == this) continue; // cyclic edges handled above.\n //Object q = (TRACK_REASONS && edgesToReasons != null) ? edgesToReasons.get(Edge.get(this, that, f)) : null;\n if (removeSelf) {\n boolean b = that.removePredecessor(f, this);\n if (TRACE_INTRA) out.println(\"Removed \"+this+\" from predecessor set of \"+that+\".\"+f);\n Assert._assert(b);\n }\n for (Iterator j=set.iterator(); j.hasNext(); ) {\n Node node2 = (Node)j.next();\n node2.addEdge(f, that);\n }\n } else {\n for (Iterator k=((Set)o).iterator(); k.hasNext(); ) {\n Node that = (Node)k.next();\n if (removeSelf)\n k.remove();\n if (that == this) continue; // cyclic edges handled above.\n //Object q = (TRACK_REASONS && edgesToReasons != null) ? edgesToReasons.get(Edge.get(this, that, f)) : null;\n if (removeSelf) {\n boolean b = that.removePredecessor(f, this);\n if (TRACE_INTRA) out.println(\"Removed \"+this+\" from predecessor set of \"+that+\".\"+f);\n Assert._assert(b);\n }\n for (Iterator j=set.iterator(); j.hasNext(); ) {\n Node node2 = (Node)j.next();\n node2.addEdge(f, that);\n }\n }\n }\n }\n }\n if (this.accessPathEdges != null) {\n for (Iterator i=this.accessPathEdges.entrySet().iterator(); i.hasNext(); ) {\n java.util.Map.Entry e = (java.util.Map.Entry)i.next();\n jq_Field f = (jq_Field)e.getKey();\n Object o = e.getValue();\n if (removeSelf)\n i.remove();\n if (o == null) continue;\n if (TRACE_INTRA) out.println(\"Looking at access path successor on field \"+f+\": \"+o);\n if (o instanceof FieldNode) {\n FieldNode that = (FieldNode)o;\n if (that == this) continue; // cyclic edges handled above.\n if (removeSelf) {\n that.field_predecessors.remove(this);\n if (TRACE_INTRA) out.println(\"Removed \"+this+\" from access path predecessor set of \"+that);\n }\n for (Iterator j=set.iterator(); j.hasNext(); ) {\n Node node2 = (Node)j.next();\n if (TRACE_INTRA) out.println(\"Adding access path edge \"+node2+\"->\"+that);\n node2.addAccessPathEdge(f, that);\n }\n } else {\n for (Iterator k=((Set)o).iterator(); k.hasNext(); ) {\n FieldNode that = (FieldNode)k.next();\n if (removeSelf)\n k.remove();\n if (that == this) continue; // cyclic edges handled above.\n if (removeSelf)\n that.field_predecessors.remove(this);\n for (Iterator j=set.iterator(); j.hasNext(); ) {\n Node node2 = (Node)j.next();\n node2.addAccessPathEdge(f, that);\n }\n }\n }\n }\n }\n if (this.passedParameters != null) {\n if (TRACE_INTRA) out.println(\"Node \"+this+\" is passed as parameters: \"+this.passedParameters+\", adding those parameters to \"+set);\n for (Iterator i=this.passedParameters.iterator(); i.hasNext(); ) {\n PassedParameter pp = (PassedParameter)i.next();\n for (Iterator j=set.iterator(); j.hasNext(); ) {\n ((Node)j.next()).recordPassedParameter(pp);\n }\n }\n }\n }", "public void traverseLevelOrder() {\n\t\tlevelOrder(this);\n\t}", "void findSearchOrder() {\n boolean filled = false;\n for(int node: queryGraphNodes.keySet()) {\n\n vertexClass vc = queryGraphNodes.get(node);\n searchOrderSeq.add(node);\n for(int edge: queryGraphNodes.get(node).edges.keySet()) {\n filled = calcOrdering(edge);\n if (filled)\n break;\n }\n if(searchOrderSeq.size() == queryGraphNodes.size())\n break;\n\n }\n\n }", "private void mapChildren(SortedSet<Integer> parents) {\n\n\t\tIterator<Integer> iterator = parents.iterator();\n\t\twhile (iterator.hasNext()) {\n\t\t\tint next = iterator.next();\n\t\t\tthis.children.put(next, new ArrayList<Integer>());\n\n\t\t}\n\t\t// save the parent of every id in par and check if they are contained in\n\t\t// parent list\n\n\t\tfor (int i : this.idMap.keySet()) {\n\n\t\t\tint par = Integer.parseInt(this.idMap.get(i).get(1));\n\t\t\tthis.children.get(par).add(i);\n\n\t\t}\n\n\t}", "public void depthFirstSearch(int current) throws Exception {\n /* Mark the current vertex visited. */\n visited[current] = true;\n\n discoveryOrder[discoverIndex++] = current;\n /* Examine each vertex adjacent to the current vertex */\n Iterator<Edge> itr = graph.edgeIterator(current);\n while (itr.hasNext()) {\n int neighbor = itr.next().getDest();\n /* Process a neighbor that has not been visited */\n if (!visited[neighbor]) {\n /* Insert (current, neighbor) into the depthFirst search tree. */\n parent[neighbor] = current;\n /* Recursively apply the algorithm starting at neighbor. */\n depthFirstSearch(neighbor);\n }\n }\n\n /* Mark current finished. */\n finishOrder[finishIndex++] = current;\n }", "private void copyFksToParents( EntityInstanceImpl ei, DataRecord dataRecord )\n {\n RelRecord relRecord = dataRecord.getRelRecord();\n for ( RelField relField : relRecord.getRelFields() )\n {\n final RelFieldParser p = new RelFieldParser();\n p.parse( relField, ei );\n p.copySrcToRel();\n }\n }", "private static void searchchildren(String keyword, Individual root, ListView<Individual> list) {\n\t\tif(root.getName().toLowerCase().contains(keyword.toLowerCase())){\n\t\t\t//System.out.println(root.getInfo());\n\t\t\tlist.getItems().add(root);\n\t\t\thits++;\n\t\t}\n\t\tif(root.getChildren()!=null){\n\t\t\tList<Individual> children = root.getChildren();\n\t\t\tfor(Individual e: children){\n\t\t\t\tsearchchildren(keyword, e, list);\n\t\t\t}\n\t\t}\n\t}", "private static void dfsRecursive(Node node) {\n\t\t//if the node state isn't undiscovered it has already been accounted for\n\t\tif(node == null || node.state != Node.State.UNDISCOVERED) {\n\t\t\treturn;\n\t\t}\n\t\tnode.state = Node.State.DISCOVERED;\n\n\t\t//process node\n\t\tSystem.out.print(node.name + \" -> \");\n\t\t\n\t\tfor(Edge e : node.edges) {\n\t\t\tdfsRecursive(e.getNeighbor(node));\n\t\t}\n\t\t\t\n\t\t//finished with this node\n\t\tnode.state = Node.State.COMPLETE;\n\t}", "public void registerParent(){\n \t\tparent = manager.getList(parentName);\n \t}", "final void updateParent(){\n clearSpanCache();\n editedChild = true;\n if (this instanceof Document){\n ((Document)this).updateDoc();\n } else {\n getParent().updateParent();\n }\n }", "Collection<Node> allNodes();", "public void printIterativePreorderTraversal() {\r\n\t\tprintIterativePreorderTraversal(rootNode);\r\n\t}", "private void breadthFirstSearch (int start, int[] visited, int[] parent){\r\n Queue< Integer > theQueue = new LinkedList< Integer >();\r\n boolean[] identified = new boolean[getNumV()];\r\n identified[start] = true;\r\n theQueue.offer(start);\r\n while (!theQueue.isEmpty()) {\r\n int current = theQueue.remove();\r\n visited[current] = 1; //ziyaret edilmis vertexler queuedan cikarilan vertexlerdir\r\n Iterator < Edge > itr = edgeIterator(current);\r\n while (itr.hasNext()) {\r\n Edge edge = itr.next();\r\n int neighbor = edge.getDest();\r\n if (!identified[neighbor]) {\r\n identified[neighbor] = true;\r\n theQueue.offer(neighbor);\r\n parent[neighbor] = current;\r\n }\r\n }\r\n }\r\n }", "public List<Object> traverse() {\n return traverse(new PreorderTraversal());\n }", "public ArrayList<SearchNode> neighbors() {\n ArrayList<SearchNode> neighbors = new ArrayList<SearchNode>();\n // StdOut.println(\"before: \" + this.snBoard);\n Iterable<Board> boards = new ArrayList<Board>();\n boards = this.snBoard.neighbors();\n // StdOut.println(\"after: \" + this.snBoard);\n for (Board b: boards) {\n // StdOut.println(b);\n // StdOut.println(\"checking: \"+b);\n // StdOut.println(\"checking father: \"+this.getPredecessor());\n if (this.getPredecessor() == null) {\n SearchNode sn = new SearchNode(b,\n b.hamming(),\n this,\n b.manhattan(),\n this.moves+1);\n // StdOut.println(\"checking: \"+(this.priority - this.snBoard.hamming()));\n // StdOut.println(\"checking: \"+(this.priority - this.snBoard.hamming()));\n // sn.addMovesToPriority(this.priority - this.snBoard.hamming()+1);\n neighbors.add(sn);\n } else { \n if (!b.equals(this.getPredecessor().snBoard)) {\n SearchNode sn = new SearchNode(b,\n b.hamming(),\n this,\n b.manhattan(),\n this.moves+1);\n neighbors.add(sn);\n }\n }\n \n }\n return neighbors;\n }", "public List<T> wantedNodesRecursive(Predicate<T> p) {\n return wantedNodesRecursive(p, root);\n }", "public List<TempTableHeader> getParents() {\r\n\t\t\treturn parents;\r\n\t\t}", "public List<T> wantedNodesIterative(Predicate<T> p) {\n //PART 4 \n if(root == null){\n return null;\n }\n LinkedList<TreeNode<T>> stack = new LinkedList<>();\n stack.add(root);\n \n List<T> wantedNodes =new LinkedList<>();\n TreeNode<T> current;\n \n while(!stack.isEmpty()){\n current = stack.pop();\n if(p.check(current.data)){\n wantedNodes.add(current.data);\n }\n if(current.right != null){\n stack.addFirst(current.right);\n }\n if(current.left != null){\n stack.addFirst(current.left);\n }\n }\n return wantedNodes;\n }" ]
[ "0.60156167", "0.60148", "0.57599825", "0.568186", "0.563942", "0.56210107", "0.55401725", "0.5526044", "0.5429099", "0.54027003", "0.53695077", "0.5347814", "0.533628", "0.5301", "0.5287042", "0.5270353", "0.52603364", "0.52569586", "0.52522826", "0.5226693", "0.5221032", "0.5212971", "0.5197473", "0.517876", "0.51781225", "0.51347095", "0.510341", "0.5100904", "0.5081774", "0.5070626", "0.50681674", "0.50564104", "0.5037558", "0.5024889", "0.50183994", "0.50170916", "0.5015821", "0.5007898", "0.50061846", "0.49930638", "0.4981763", "0.497248", "0.49659145", "0.49632788", "0.49621266", "0.49617985", "0.49542007", "0.4951203", "0.4942008", "0.4935964", "0.49247262", "0.4913823", "0.49133596", "0.49123463", "0.49104285", "0.49061093", "0.4904578", "0.4902631", "0.4900071", "0.48999724", "0.4892326", "0.48918453", "0.48918453", "0.48918453", "0.48846444", "0.488455", "0.4882472", "0.48822796", "0.48804706", "0.48694563", "0.48674807", "0.48639587", "0.48574919", "0.48562258", "0.48506093", "0.48477668", "0.484689", "0.4845854", "0.48408863", "0.48391822", "0.48379812", "0.48356947", "0.48337677", "0.48294166", "0.4826544", "0.48227865", "0.4820835", "0.48186672", "0.48185813", "0.48176914", "0.48161274", "0.48110735", "0.48060492", "0.4804318", "0.48036602", "0.47980618", "0.47926506", "0.47907978", "0.47880396", "0.47811082" ]
0.57552356
3
these are more for testing
public HashMap<Integer, DagNode> getDagNodes(){ return nodes; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\t\t\tpublic void test() {\n\t\t\t}", "private void test() {\n\n\t}", "private test5() {\r\n\t\r\n\t}", "private stendhal() {\n\t}", "private void kk12() {\n\n\t}", "public void testGetInsDyn() {\n }", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Test\r\n\tpublic void testFrontTimes() {\r\n//\t\tassertEquals(\"ChoCho\", WarmUpTwo.frontTimes)\r\n\t\tfail(\"Not yet implemented\");\r\n\t\t\r\n\t}", "public void test5() {\n\t\t\n\t}", "protected boolean func_70814_o() { return true; }", "public void testPerformance() {\n \t}", "@Test\r\n\tpublic void testSanity() {\n\t}", "@Override\n\tpublic void test() {\n\t\t\n\t}", "@Test\n public void testDAM30103001() {\n // settings as done for testDAM30102001 are identical\n testDAM30102001();\n }", "public void testSetBasedata() {\n }", "public void smell() {\n\t\t\n\t}", "public void testGetBasedata() {\n }", "@Override\n public void test() {\n \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 }", "public void mo55254a() {\n }", "public void mo38117a() {\n }", "public void testBidu(){\n\t}", "public void testaReclamacao() {\n\t}", "private void poetries() {\n\n\t}", "@Test\n public void testDAM30203001() {\n testDAM30102001();\n }", "private static void cajas() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "private void testProXml(){\n\t}", "public void mo55254a() {\n }", "public void testCheckOxyEmpty() {\n }", "@Before\n\tpublic void setup() {\n\t\t\n\t\t\n\t}", "@Before\n\t public void setUp() {\n\t }", "public void mo21877s() {\n }", "@Test\n\tpublic void testTotalPuzzleGenerated() {\n\t}", "public void testEntrySetIteratorHasProperMappings() {\n return;\r\n }", "private ProtomakEngineTestHelper() {\r\n\t}", "public void mo4359a() {\n }", "@Override\n protected void setup() {\n }", "private void strin() {\n\n\t}", "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Test\n public void testQuickMapList() {\n//TODO: Test goes here... \n }", "protected void mo6255a() {\n }", "@Test\r\n public void elCerdoNoSePuedeAtender() {\n }", "@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}", "public void method_4270() {}", "@Test\n public void testDAM30601001() {\n testDAM30102001();\n }", "@Test\n\tpublic void Account_test() { Using HamCrest \t\t\n\t\t// Exercise code to run and test\n\t\t//\n\t\tmiCuenta.setHolder(this.arg1);\n\t\tString resHolder = miCuenta.getHolder(); \n\t\t//\n\t\tmiCuenta.setBalance(this.arg2);\n\t\tint resBalance = miCuenta.getBalance(); \n\t\t//\n\t\tmiCuenta.setZone(this.arg3);\n\t\tint resZone = miCuenta.getZone(); \n\t\t\t\t\t\t\n\t\t// Verify\n\t\tassertThat(this.arg1, is(resHolder));\n\t\tassertThat(this.arg2, is(resBalance)); \n\t\tassertThat(this.arg3, is(resZone)); \n\t}", "@Test\n public void testDAM30402001() {\n testDAM30101001();\n }", "@Test\n public void testDAM30903001() {\n testDAM30802001();\n }", "@Test\n\tpublic void getWorksTest() throws Exception {\n\t}", "public void mo38850q() {\n }", "void mo57277b();", "@Test\n\tpublic void getStartingSpaceCorrect(){\n\t\tassertEquals(11, adventurer1.getStartingSpace());\n\t}", "@Test\n public void testGetProductInfo() throws Exception {\n }", "public final void mo51373a() {\n }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Test\r\n\tpublic void contents() throws Exception {\n\t}", "@Test\n public void testAddACopy() {\n }", "public void mo12930a() {\n }", "public abstract void mo70713b();", "@Override\n public void runTest() {\n }", "@Test\n public void testOncoKBInfo() {\n // TODO: test OncoKBInfo\n }", "protected TestBench() {}", "public void mo3376r() {\n }", "@Test\n\tpublic void testReadDataFromFiles2(){\n\t\tassertEquals((Integer)1 , DataLoader.data.get(\"http\"));\n\t\tassertEquals((Integer)1, DataLoader.data.get(\"search\"));\n\t}", "@Test\n\tpublic void testEvilPuzzleGeneration() {\n\t}", "abstract int pregnancy();", "public static void hvitetest1w(){\r\n\t}", "@Before\r\n\tpublic void setup() {\r\n\t}", "public void test() {\n\t}", "@Test\n\tpublic void testNormalPuzzleGeneration() {\n\t}", "protected void setupParameters() {\n \n \n\n }", "@Override\n public void func_104112_b() {\n \n }", "public void mo9848a() {\n }", "@Test \n\tpublic void get() \n\t{\n\t\tassertTrue(true);\n\t}", "@Test\n\tpublic void testReadTicketOk() {\n\t}", "public void testLoadOrder() throws Exception {\n }", "public abstract void mo56925d();", "public void mo21878t() {\n }", "@Override\n public void testTwoRequiredGroups() {\n }", "@Override\n public void testTwoRequiredGroups() {\n }", "public void testGetStartValue2() {\n TaskSeriesCollection c = createCollection2();\n TaskSeriesCollection c3 = createCollection3();\n }", "private void m50366E() {\n }", "public void mo1531a() {\n }", "@Test\r\n public void test4(){\n\t E1.setSocialSecurityNumber(\"SSN1\");\r\n\t\tE2.setSocialSecurityNumber(\"SSN2\");\r\n String actual = E1.getSocialSecurityNumber();\r\n String expected = \"SSN1\";\r\n assertEquals(actual,expected);\r\n }", "@Override\n public void setup() {\n }", "@Override\n public void setup() {\n }", "public void testAddEntry(){\n }", "private void getStatus() {\n\t\t\n\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Test\n\tpublic void testDoGeneration() {\n\t}", "@Override\n public void testCreateRequestListSomeFilteredBySourceSystem(){\n }", "public void testWriteOrders() throws Exception {\n }", "protected void setup() {\r\n }", "public void mo6081a() {\n }" ]
[ "0.64704365", "0.6374891", "0.62049913", "0.58628875", "0.58248216", "0.58217126", "0.5809297", "0.5795751", "0.5770866", "0.5755291", "0.5747461", "0.5702181", "0.57002896", "0.5691404", "0.5685962", "0.56811506", "0.56725866", "0.5661676", "0.56457156", "0.56457156", "0.56457156", "0.56457156", "0.56457156", "0.56457156", "0.56457156", "0.5642851", "0.5600796", "0.5598897", "0.5597899", "0.55929875", "0.5585513", "0.5582801", "0.55690604", "0.5567163", "0.55550784", "0.5552301", "0.55497515", "0.5539665", "0.553816", "0.5532537", "0.5531978", "0.5530542", "0.5528393", "0.55277157", "0.55234367", "0.55225813", "0.5511976", "0.5510437", "0.550478", "0.5504202", "0.5500063", "0.5493982", "0.54919904", "0.5491495", "0.5486093", "0.54799384", "0.54711246", "0.5455969", "0.54545534", "0.54503715", "0.5448831", "0.5447314", "0.54462296", "0.5445546", "0.54452246", "0.54387987", "0.5430476", "0.5428889", "0.5426248", "0.54180825", "0.5414152", "0.54103893", "0.5390975", "0.5387517", "0.5383164", "0.53830177", "0.5379961", "0.53789055", "0.5374263", "0.5370673", "0.536512", "0.5359648", "0.5358376", "0.53539413", "0.5346949", "0.53466225", "0.53466225", "0.533945", "0.5338386", "0.5333403", "0.5332423", "0.53315455", "0.53315455", "0.5326739", "0.5324403", "0.53241855", "0.53228205", "0.5322245", "0.53192306", "0.5315299", "0.5314506" ]
0.0
-1
Gets the value of the note origin x as a string.
public String getOriginXText() { return originX.getText(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void getOriginX(){\n\t\toriginX.setText(Double.toString(note.getOriginX()));\n\t}", "public String getXAsString()\n {\n return String.valueOf(rettangoloX);\n }", "public String getx()\n\t{\n\t\treturn x.getText();\n\t}", "public String getX2RealStr() {\n this.polySolve();\n return this.x2real;\n }", "public String getValue() {\r\n return xValue;\r\n }", "public String toString() {\n\t\treturn (\"The value of \\\"x\\\" is: \" + x + \"\\n\"\n\t\t\t + \"The value of \\\"y\\\" is: \" + y);\n\t}", "public org.apache.xmlbeans.XmlString xgetOrigin()\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(ORIGIN$16, 0);\n return target;\n }\n }", "public java.lang.String getOrigin()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(ORIGIN$16, 0);\n if (target == null)\n {\n return null;\n }\n return target.getStringValue();\n }\n }", "public java.lang.String getX() {\n java.lang.Object ref = x_;\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 x_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public String getX1RealStr() {\n this.polySolve();\n return this.x1real;\n }", "public java.lang.String getX() {\n java.lang.Object ref = x_;\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 x_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public double getX() {\n return origin.getX();\n }", "public static int getX(){\n return \"3.1415\";\n }", "java.lang.String getX();", "public java.lang.String getX() {\n java.lang.Object ref = x_;\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 x_ = s;\n return s;\n }\n }", "public int getLocationX() {\r\n\t\treturn x;\r\n\t}", "@Override\n public String toString()\n {\n return \"xValue: \" + xValue;\n }", "String getPosX();", "public String getX3RealStr() {\n this.polySolve();\n return this.x3real;\n }", "public int x() {\r\n\t\treturn xCoord;\r\n\t}", "@java.lang.Override\n public java.lang.String getX() {\n java.lang.Object ref = x_;\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 x_ = s;\n return s;\n }\n }", "public String getX1SubRealStr() {\n this.polySubSolve();\n return this.x1realsub;\n }", "public int getXOrigin() {\n return ic.getXOrigin();\n }", "public static int getOrigX() {\n return 1;\n }", "protected Number getX() {\n return this.xCoordinate;\n }", "public String toString() {\r\n \treturn new String(\"x: \" + x + \" y: \" + y);\r\n }", "public String toString() {\n return TrackerRes.getString(\"OffsetOrigin.Name\"); //$NON-NLS-1$\n }", "public String getLocationString(){\n return \"(\" + x + \", \" + y + \")\";\n }", "public String getxValueAdded() {\n String text = xValueAdded.getText();\n if(text == null) {\n return(\"numGenerations\");\n } else {\n return (text);\n }\n}", "public int getX() {\n return xCoord;\n }", "public String getX2SubRealStr() {\n this.polyAddSolve();\n return this.x2realsub;\n }", "public int getX(){\n\t\treturn this.x_location;\n\t}", "public int getX()\r\n {\r\n return xCoord;\r\n }", "public int getxCoordinate() {\n return xCoordinate;\n }", "public int getxCoordinate() {\n return xCoordinate;\n }", "public String toString() {\n\t\treturn String.format(\"%.0f-%s note [%d]\", this.getValue(),this.getCurrency(),this.getSerial());\n\t}", "@Override\r\n\tpublic String getFormatedCoordinates() {\n\t\treturn \"Drone position: (\"+x+\",\"+y+\",\"+z+\")\";\r\n\t}", "public String getXm() {\n return xm;\n }", "public int getX() {\n return this.coordinate.x;\n }", "public final double getX()\n {\n return m_jso.getX();\n }", "public float getX() { return xCoordinate;}", "public double getX() {\n return x;\r\n }", "public int getX ()\n {\n return coX;\n }", "public String getOrigin(){\r\n\t\treturn this.getChild(\"origin\").getAttribute(\"ref\").getValue();\r\n\t}", "public double getX() {\n return x;\n }", "public int getX()\r\n {\r\n return xLoc;\r\n }", "public String toString()\n {\n return _xstr.subSequence(_start, _end).toString();\n }", "public int getXCoordinate ()\n {\n return xCoordinate;\n }", "public java.lang.CharSequence getOriginp() {\n return originp;\n }", "public org.apache.xmlbeans.XmlString xgetNotes()\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(NOTES$14, 0);\n return target;\n }\n }", "public String getXq() {\n\t\treturn xq;\n\t}", "public String getX1AddRealStr() {\n this.polyAddSolve();\n return this.x1realadd;\n }", "public String toString()\n {\n return getValue(12);\n }", "public double getX_location() {\n return x_location;\n }", "public int getX() {\r\n\t\treturn xcoord;\r\n\t}", "public double getX() {\n return x;\n }", "public double getX() {\n return x;\n }", "public double getX() {\n return x;\n }", "public double getX() {\n return x;\n }", "public double getX() {\n return x;\n }", "public double getX() {\n return x;\n }", "public double getX() {\n return x;\n }", "public java.lang.CharSequence getOriginp() {\n return originp;\n }", "public String getX3SubRealStr() {\n this.polySubSolve();\n return this.x3realsub;\n }", "public double getX() {\r\n return x;\r\n }", "public int getXcoord(){\n\t\treturn this.coordinates[0];\n\t}", "public static double getOrigX() {\n return 2.926776647567749;\n }", "public String toString()\n\t{\n\t\tString data = \"(\" + x + \", \" + y + \")\";\n\t\treturn data;\t\t\t\t\t\t\t\t\t\t\t// Return point's data \n\t}", "public String getX2AddRealStr() {\n this.polyAddSolve();\n return this.x2realadd;\n }", "public static double getOrigX() {\n return 0.12999999523162842;\n }", "public static double getOrigX() {\n return 0.12999999523162842;\n }", "public static double getOrigX() {\n return 0.12999999523162842;\n }", "public double getX()\n {\n return x;\n }", "public double getxCoordinate() {\n return xCoordinate;\n }", "public double getX() {\r\n\t\t return this.xCoord;\r\n\t }", "public String toString()\r\n\t{\r\n\t\tStringBuffer buffer = new StringBuffer(\"{X = \");\r\n\t\tbuffer.append(this.x);\r\n\t\tbuffer.append(\", Y = \");\r\n\t\tbuffer.append(this.y);\r\n\t\tbuffer.append('}');\r\n\t\treturn buffer.toString();\r\n\t}", "public int getX() {\n return x;\r\n }", "public double getX() {\n return x_;\n }", "public double getX() {\n return x_;\n }", "public double getX() {\n return x_;\n }", "public double getX() {\n return x_;\n }", "public double getX() {\n return x_;\n }", "public double getX() {\n return x_;\n }", "public double getX() {\n return x_;\n }", "public double getX() {\n return x_;\n }", "public double getX() {\n return this.x;\n }", "public double getX() {\n return this.x;\n }", "public double getX() {\n return this.x;\n }", "public double getX() {\n return this.x;\n }", "public double getXOffset() {\n if (isReal) {\n return get(\"tx\");\n } else {\n return simTx.getDouble(0.0);\n }\n }", "public String toString()\n\t{\n\t\treturn getX()+\" \"+getY();\n\t}", "@Basic\n\tpublic double getXCoordinate() {\n\t\treturn this.x;\n\t}", "org.apache.xmlbeans.XmlString xgetValue();", "public String getPointMessageInString() {\r\n\t\treturn pointMessage.get();\r\n\t}", "public double getX() { return x; }", "public double getX(){\n\t\treturn x;\n\t}", "public int getX() {\n return x;\n }", "public int getX() {\n return x;\n }", "public int getX() {\n return x;\n }", "public int getX() {\n return x;\n }" ]
[ "0.7617858", "0.7126383", "0.6967104", "0.6667067", "0.6580142", "0.655041", "0.64754105", "0.6452961", "0.6440441", "0.643394", "0.6428107", "0.6405549", "0.63483053", "0.633951", "0.6239305", "0.615014", "0.61419094", "0.61378527", "0.6119168", "0.6111661", "0.6091048", "0.60731447", "0.6046367", "0.6021622", "0.6000619", "0.5996536", "0.5994185", "0.59918636", "0.5965082", "0.5962898", "0.59551066", "0.5952532", "0.59515935", "0.59493494", "0.59493494", "0.5947152", "0.5945649", "0.5941463", "0.5936834", "0.59272176", "0.5915377", "0.59121215", "0.5893082", "0.58920044", "0.5888442", "0.5887728", "0.588679", "0.58841676", "0.5882898", "0.58811647", "0.58770967", "0.5871784", "0.58707875", "0.5868423", "0.5859413", "0.58591396", "0.58591396", "0.58591396", "0.58591396", "0.58591396", "0.58591396", "0.58591396", "0.58442825", "0.58400565", "0.58315617", "0.58278763", "0.582338", "0.5821863", "0.5820716", "0.5814567", "0.5814567", "0.5814567", "0.58118445", "0.58103275", "0.57967407", "0.57965237", "0.5793592", "0.57933015", "0.57933015", "0.57933015", "0.57933015", "0.57933015", "0.57933015", "0.57933015", "0.57933015", "0.57862884", "0.57862884", "0.57862884", "0.57862884", "0.57790595", "0.5778708", "0.57679975", "0.5767188", "0.5765592", "0.5761601", "0.5752672", "0.5746979", "0.5746979", "0.5746979", "0.5746979" ]
0.753568
1
Gets the value of the note origin y as a string.
public String getOriginYText() { return originY.getText(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void getOriginY(){\n\t\toriginY.setText(Double.toString(note.getOriginY()));\n\t}", "public String getYAsString()\n {\n return String.valueOf(rettangoloY);\n }", "public String gety()\n\t{\n\t\treturn y.getText();\n\t}", "java.lang.String getY();", "public java.lang.String getY() {\n java.lang.Object ref = y_;\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 y_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getY() {\n java.lang.Object ref = y_;\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 y_ = s;\n return s;\n }\n }", "public String getYx() {\n return yx;\n }", "public java.lang.String getY() {\n java.lang.Object ref = y_;\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 y_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "@java.lang.Override\n public java.lang.String getY() {\n java.lang.Object ref = y_;\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 y_ = s;\n return s;\n }\n }", "public double getY() {\n return origin.getY();\n }", "public double getYOffset() {\n if (isReal) {\n return get(\"ty\");\n } else {\n return simTy.getDouble(0.0);\n }\n }", "public double y() {\r\n return this.y;\r\n }", "public static int getOrigY() {\n return 5;\n }", "public double getY() { return y; }", "public int gety() {\n return y;\n }", "public int y() {\n\t\treturn this.y;\n\t}", "public double getY() {\n return y;\n }", "public double getY() {\n return y;\r\n }", "public double getY()\n {\n return y;\n }", "public final double getY()\n {\n return m_jso.getY();\n }", "public double y() {\n return _y;\n }", "public double y() {\n return _y;\n }", "public int y() {\r\n\t\treturn yCoord;\r\n\t}", "public double getY() {\n return y;\n }", "public double getY() {\n return y;\n }", "public double getY() {\n return y;\n }", "public double getY() {\n return y;\n }", "public double getY() {\n return y;\n }", "public double getY() {\n return y;\n }", "public double getY() {\r\n return y;\r\n }", "public double getY(){\r\n return y;\r\n }", "public double getY() {\n return y_;\n }", "public double getY() {\n return y_;\n }", "public double getY() {\n return y_;\n }", "public double getY() {\n return y_;\n }", "public double getY() {\n return y_;\n }", "public double getY() {\n return y_;\n }", "public double getY() {\n return y_;\n }", "public double getY() {\n return y_;\n }", "public final double getY() {\n return y;\n }", "public int y() {\n\t\treturn _y;\n\t}", "public double y() { return y; }", "public String toString(){\n\t\t return y; \n\t\t }", "public double getY(){\n return y;\n }", "public final double getY() {\n return y;\n }", "double getY() { return pos[1]; }", "protected Number getY() {\n return this.yCoordinate;\n }", "public double getY(){\n\t\treturn y;\n\t}", "public double getY() {\n return y_;\n }", "public double getY() {\n return y_;\n }", "public double getY() {\n return y_;\n }", "public double getY() {\n return y_;\n }", "public double getY() {\n return y_;\n }", "public double getY() {\n return y_;\n }", "public double getY() {\n return y_;\n }", "public double getY() {\n return y_;\n }", "public int getLocationY() {\r\n\t\treturn y;\r\n\t}", "public double getY() {\n\t\treturn y;\n\t}", "public double getY() {\n\t\treturn y;\n\t}", "public double getY() {\n\t\treturn y;\n\t}", "public double getY() {\n\t\treturn y;\n\t}", "public double getY()\n\t{\n\t\treturn y;\n\t}", "public int getY()\n {\n return rettangoloY; \n }", "public double getY()\n\t\t{\n\t\t\treturn this.y[0];\n\t\t}", "@Override\n\tpublic double getYLoc() {\n\t\treturn y;\n\t}", "public double getY() {\n return this.y;\n }", "public double getY() {\n return this.y;\n }", "public double getY() {\n return this.y;\n }", "public double getyCoord() {\n\t\treturn yCoord;\n\t}", "long getY();", "public double getY() {\r\n return this.y;\r\n }", "public double getY();", "public double getY() {\n\t\treturn point[1];\n\t}", "public Double y() {\n return y;\n }", "@Override\n\tpublic double getY() {\n\t\treturn y;\n\t}", "public static double getOrigY() {\n return 0.3987833857536316;\n }", "public int y() {\n\t\treturn y;\n\t}", "public static double getOrigY() {\n return 3.906404972076416;\n }", "public int getYcoord(){\n\t\treturn this.coordinates[1];\n\t}", "public double getY(){\n return this.y;\n }", "public double getY() {\n return mY;\n }", "public static double getY() {\n return NetworkTableInstance.getDefault().getTable(\"limelight\").getEntry(\"ty\").getDouble(0);\n }", "@Basic\n\tpublic double getY() {\n\t\treturn this.y;\n\t}", "public int getYOrigin() {\n return ic.getYOrigin();\n }", "public Double getY() {\n\t\treturn y;\n\t}", "public int getProgresionY(){\n return this.ubicacion.y;\n }", "@Basic\n\tpublic double getYCoordinate() {\n\t\treturn this.y;\n\t}", "public int getY ()\n {\n return coY;\n }", "@java.lang.Override\n public long getY() {\n return y_;\n }", "public double getY() {\r\n\t\t return this.yCoord;\r\n\t }", "public double GetY(){\n return this._Y;\n }", "double getY(){\r\n\t\treturn y;\r\n\t}", "public byte[] getY() {\n return y;\n }", "public double getyCoordinate() {\n return yCoordinate;\n }", "public double Y()\r\n {\r\n return curY;\r\n }", "double getY();", "double getY();", "double getY();", "double getY();", "double getY();" ]
[ "0.79822737", "0.76350135", "0.75183415", "0.7460028", "0.71168005", "0.7090479", "0.7077989", "0.70614594", "0.69785047", "0.6858725", "0.6823775", "0.6808208", "0.679291", "0.6791639", "0.6790234", "0.6780399", "0.67595416", "0.67490196", "0.67163146", "0.67142045", "0.67106277", "0.67106277", "0.67090523", "0.66976404", "0.66976404", "0.66976404", "0.66976404", "0.66976404", "0.66976404", "0.6694151", "0.6676599", "0.6667647", "0.6667647", "0.6667647", "0.6667647", "0.6667647", "0.6667207", "0.6667207", "0.6667207", "0.66621137", "0.6660124", "0.66593754", "0.664851", "0.66374767", "0.66343707", "0.6631501", "0.66292846", "0.6627599", "0.66254926", "0.66254926", "0.66254926", "0.66254926", "0.66254926", "0.66254926", "0.66254926", "0.66253906", "0.66228837", "0.66109705", "0.66109705", "0.66109705", "0.66109705", "0.6610832", "0.66001666", "0.6595471", "0.6589974", "0.65766555", "0.65766555", "0.65766555", "0.65753686", "0.6566468", "0.65613776", "0.65594345", "0.6552399", "0.6547867", "0.6542515", "0.65424263", "0.6539912", "0.6534279", "0.6526473", "0.6525887", "0.65212166", "0.65202004", "0.65013003", "0.6482172", "0.64812934", "0.64775187", "0.6476289", "0.64696765", "0.6466291", "0.6461623", "0.645926", "0.64571893", "0.6456787", "0.6453538", "0.6446224", "0.6445951", "0.6445951", "0.6445951", "0.6445951", "0.6445951" ]
0.8022245
0
Sets the value of the note coordinates as strings.
public void setOriginCoordinatesText(double x, double y) { originX.setText(Double.toString(x)); originY.setText(Double.toString(y)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setCoordinates(String coordinates) {\n this.coordinates = coordinates;\n }", "public String getCoordinatesAsString() {\r\n return String.format(\"%s, %s, %s, %s\\n\", p1, p2, p3, p4);\r\n }", "public String getCoordinates() {\n return this.coordinates;\n }", "public void xsetNotes(org.apache.xmlbeans.XmlString notes)\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(NOTES$14, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(NOTES$14);\n }\n target.set(notes);\n }\n }", "public void setNotes(java.lang.String notes)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(NOTES$14, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(NOTES$14);\n }\n target.setStringValue(notes);\n }\n }", "@Override\r\n\tpublic String getFormatedCoordinates() {\n\t\treturn \"Drone position: (\"+x+\",\"+y+\",\"+z+\")\";\r\n\t}", "public void setPoints(String points);", "public void setLocation(Coordinate coordinate);", "@Override\n\tpublic void getCoordinates() {\n\t\tSystem.out.println(\"Your Coordinates: 18.1124° N, 79.0193° E \");\n\t}", "public String getLocationString(){\n return \"(\" + x + \", \" + y + \")\";\n }", "void setNotes(String notes);", "public void setCoordinates(double[] pos) {\n \tthis.currentX = pos[0];\n \tthis.currentY = pos[1];\n }", "public String getGVCoordsForPosition() {\n return \"\\\"\" + coords[0] + \",\" + coords[1] + \"!\\\"\";\n }", "public void setNote(String note);", "void editCell(Coord coord, String string);", "public void setLatitude (String strLatitude){\n this.latitude = strLatitude;\n }", "@Override\n public void setLocation(String latitude, String longitude) {\n lat = latitude;\n lon = longitude;\n }", "@NotNull\n public static final String toValue(@NotNull Coordinates coordinates) {\n Intrinsics.checkNotNullParameter(coordinates, \"$this$toValue\");\n StringBuilder sb = new StringBuilder();\n sb.append(coordinates.getLatitude());\n sb.append(',');\n sb.append(coordinates.getLongitude());\n return sb.toString();\n }", "public String toString() {\n\t\t\n\t\treturn (\"(\" + getX() + \", \" + getY() + \")\");\t\t\t// Returns a string representing the Coordinate object\n\t}", "@Test\n\tpublic void testLocation() {\n\t\tString location = \"A-3\";\n\t\tString notes = \"vetran\";\n\t\tPlot plot = new Plot();\n\t\t\n\t\tplot.setLocation(location);\n\t\tassertEquals(plot.getLocation(), \"A-3\");\n\t\t\n\t\tplot.setNotes(\"vetran\");\n\t\tassertEquals(plot.getNotes(), notes);\n\t\t\n\t\tSystem.out.println(\"Location, notes were successsful.\");\n\t}", "public void setLatitud(String latitud);", "public void setLocs(String newValue);", "private void setPoints(String stringTriangle) {\n\n StringTokenizer tokenizer = new StringTokenizer(stringTriangle,\" \");\n double cornetX, cornetY;\n\n int counter = 0;\n\n while (tokenizer.hasMoreTokens()) {\n cornetX = Double.parseDouble(tokenizer.nextToken());\n points[counter].setX(cornetX);\n\n if (tokenizer.hasMoreTokens()){\n cornetY = Double.parseDouble(tokenizer.nextToken());\n points[counter].setY(cornetY);\n }\n\n counter++;\n }\n\n }", "@Override\n\tpublic void setProperty(int index, Object value) {\n\t\tswitch (index) {\n\t\tcase 0:\n\t\t\tMaTinhThanh = value.toString();\n\t\t\tbreak;\n\t\tcase 1:\n\t\t\tLong = value.toString();\n\t\t\tbreak;\n\t\tcase 2:\n\t\t\tLat = value.toString();\n\t\t\tbreak;\n\t\tcase 3:\n\t\t\tUserName = value.toString();\n\t\t\tbreak;\n\t\tcase 4:\n\t\t\tObjectId = (long) Float.parseFloat(value.toString());\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\t}", "public void getOriginX(){\n\t\toriginX.setText(Double.toString(note.getOriginX()));\n\t}", "public void setNotes(String notes);", "public void setTextAreaValue(String str){\n\t\tcenterPanel.setTextAreaValue(str);\n\t}", "@Override\n public String toString() {\n if (isValid()) {\n return String.format(\n Locale.US,\n \"%+02f%+02f%s/\",\n coordinates.get(1), coordinates.get(0), coordinateSystem.toString());\n }\n return \"\";\n }", "public void setNote( final Double note )\r\n {\r\n this.note = note;\r\n }", "public void setX(String s)\n\t{\n\t\tx.setText(s);\n\t}", "public void setDocumentNote (String DocumentNote);", "@Test\n public void addCoordinate(){\n final double[] location = {1.0, 2.0};\n body.setBodyCoordinate(location);\n assertEquals(\"check to see if it set correctly\", body.getBodyCoordinate(), location);\n }", "public void setNote(String note) {\n if(note==null){\n note=\"\";\n }\n this.note = note;\n }", "void setPosNr(String posNr);", "private void setModelValue(String str) {\n SwingUtilities.invokeLater(new Runnable() {\n @Override\n public void run() {\n model.setValueAt(str, x, y);\n }\n });\n }", "public void getText(){\n\t\tnoteText.setText(note.getText());\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn \"Coord[\" + this.x0 + \",\" + this.y0 + \"]\";\n\t}", "public void setPosition(Coordinate coord) {\n this.coordinate = coord;\n }", "public String toString() {\n\t\treturn (\"The value of \\\"x\\\" is: \" + x + \"\\n\"\n\t\t\t + \"The value of \\\"y\\\" is: \" + y);\n\t}", "public void setNotes(String v) \n {\n \n if (!ObjectUtils.equals(this.notes, v))\n {\n this.notes = v;\n setModified(true);\n }\n \n \n }", "public String getLocationString() {\r\n\t\treturn \"Location = (\" + Math.round(getLocationX() * 10) / 10.0 + \", \" + Math.round(getLocationY() * 10) / 10.0 + \")\";\r\n\t}", "private void setCoordsByCommaSeparatedString(final String sCoords) {\n \n \t\tStringTokenizer sToken = new StringTokenizer(sCoords, \",\");\n \n \t\tshArCoords = new short[sToken.countTokens() / 2][2];\n \n \t\tint iCount = 0;\n \n \t\twhile (sToken.hasMoreTokens()) {\n \t\t\t// Filter white spaces\n \t\t\tshort shXCoord = Short.valueOf(sToken.nextToken().replace(\" \", \"\")).shortValue();\n \n \t\t\tif (!sToken.hasMoreTokens())\n \t\t\t\treturn;\n \n \t\t\tshort shYCoord = Short.valueOf(sToken.nextToken().replace(\" \", \"\")).shortValue();\n \n \t\t\tshArCoords[iCount][0] = shXCoord;\n \t\t\tshArCoords[iCount][1] = shYCoord;\n \n \t\t\tiCount++;\n \t\t}\n \t}", "public void setPos(double[] coords) {\r\n\t\tthis.pos.setCoord(coords);\r\n\t\tthis.setD(norm.dot(this.pos.toVec()));\r\n\t}", "public void changeNotes(String a) {\r\n notes = a;\r\n }", "public void displayCoordsInDegrees() {\n DecimalFormat formatter = new DecimalFormat(\"0.000\");\n\n String latFormat = formatter.format(posMarker.getPosition().latitude);\n String lonFormat = formatter.format(posMarker.getPosition().longitude);\n\n TextView latitude = (TextView) findViewById(R.id.image_latitude);\n TextView longitude = (TextView) findViewById(R.id.image_longitude);\n\n latitude.setText(latFormat); //Use posMarker location as field actually reflects marker position\n longitude.setText(lonFormat); //Use posMarker location as field actually reflects marker position\n }", "public void plotCoordinatesFromText(String text){\n String[] coords = text.split(\",\");\r\n float lat = Float.parseFloat(coords[1]);\r\n float lng = Float.parseFloat(coords[0]);\r\n float ticks = Float.parseFloat(coords[2]);\r\n\r\n double total = (4400.0 - 0.1707*ticks)/44.00;//computers battery life\r\n int total_ = (int)(total + 0.5);\r\n\r\n VariablesSingleton.getInstance().setBATTERY(Double.toString(total_));\r\n TextView t = (TextView)findViewById(R.id.textView2);\r\n t.setText(VariablesSingleton.getInstance().getBATTERY()+\"%\");//displays battery life\r\n\r\n LatLng pos = new LatLng(lat,lng);//\r\n points.add(pos);//adds the point on the google maps\r\n //BikePath = mMap.addPolyline(new PolylineOptions());\r\n BikePath.setPoints(points);//adds the line connecting the markers\r\n\r\n mMap.addMarker(new MarkerOptions()//displays the marker on google map\r\n .title(\"Position\")\r\n .position(pos)\r\n );\r\n Log.d(TAG,coords[0]);\r\n Log.d(TAG,coords[1]);\r\n }", "public void setPointMessage(String newValue) {\r\n\t\ttry {\r\n\t\t\tthis.pointMessage.setValue(newValue);\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t}", "public void setCoord(Coords coord) {\r\n\t\tthis.coord = coord;\r\n\t}", "public boolean setGPS(String longitude, String latitude);", "@Override\n\tpublic void onLocationChanged(Location location) {\n\t\tlatitude = String.valueOf(location.getLatitude());\n\t\tlongitude = String.valueOf(location.getLongitude());\n\t}", "public void setNote(int note)\r\n {\r\n if (note >= 1 && note <= 5)\r\n this.note = note;\r\n else\r\n System.out.println(\"ungültige Note\");\r\n }", "private String coords(int x, int y) {\n return String.format(\"%d,%d\", x, y);\n }", "public void setCoordinate(LatLng coordinate) {\n this.coordinate = coordinate;\n }", "void setLocationCells(ArrayList<String> loc){\r\n locationCells = loc;\r\n }", "public void SetPOS (String pos) {\n pos_ = pos;\n }", "@Override\n\tpublic void setRemarks(java.lang.String remarks) {\n\t\t_dmGTShipPosition.setRemarks(remarks);\n\t}", "public Builder setNotes(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000040;\n notes_ = value;\n onChanged();\n return this;\n }", "public final void setNotes(java.lang.String notes)\n\t{\n\t\tsetNotes(getContext(), notes);\n\t}", "@AutoEscape\n\tpublic String getLatitud();", "@Override\r\n\tpublic String toString() {\n\t\tString rtn=this.x+\".\"+this.y;\r\n\t\treturn rtn;\r\n\t}", "public abstract void setAddressLine1(String sValue);", "public void setNote(String v) {\n if (MetadataUGWD_Type.featOkTst && ((MetadataUGWD_Type)jcasType).casFeat_note == null)\n jcasType.jcas.throwFeatMissing(\"note\", \"de.aitools.ie.uima.type.argumentation.MetadataUGWD\");\n jcasType.ll_cas.ll_setStringValue(addr, ((MetadataUGWD_Type)jcasType).casFeatCode_note, v);}", "public void setXCoordinates(double newX) { this.xCoordinates = newX; }", "public String toString(){\n return \"(\" + this.x + \",\" + this.y + \")\";\n }", "public Builder setNotes(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n notes_ = value;\n onChanged();\n return this;\n }", "public void setToCoordinates(int toX, int toY);", "public void setNote(Note note) {\n this.note = note;\n\n noteContent.setText(note.getNoteText().toString());\n noteContent.setPromptText(\"Enter note here.\");\n }", "private void setNote() {\n\t\tNoteOpt.add(\"-nd\");\n\t\tNoteOpt.add(\"/nd\");\n\t\tNoteOpt.add(\"notedetails\");\n\n\t}", "public void setValue( String value )\n\t{\n//\t\tbyte[] bytes = value.getBytes(StandardCharsets.US_ASCII);\n//\t\tint max = Math.min( 11, value.length() );\n//\t\tfor( int i = 0; i < max; i++ )\n//\t\t\tthis.markingData.get(i).setValue( bytes[i] );\n//\t\t\n\t\t\n\t\tbyte[] bytes = value.getBytes(StandardCharsets.US_ASCII);\n\t\tint max = Math.min( 11, value.length() );\n\t\tfor( int i = 0; i < 11; i++ )\n\t\t{\n\t\t\tif( i >= max )\n\t\t\t\tthis.markingData.get(i).setValue( (byte)0 );\n\t\t\telse\n\t\t\t\tthis.markingData.get(i).setValue( bytes[i] );\n\t\t}\n\t\t\n\t\t\n\t\t\n\t}", "public String toString(){\n if(trackLat != null && trackLon != null)\n return (trackNumber+\"; lat=\" + trackLat.getValue() + \";lon=\" + trackLon.getValue());\n else\n return (trackNumber+\" No location detail\");\n }", "public String toString() {\n checkRep();\n return \"(latitude,longitude)=(\" + this.latitude + \",\" + this.longitude + \") \\n\";\n\n }", "@Override\n\tpublic void setGeometry(String geometry) {\n\t\t\n\t}", "@NonNull\n @Override\n public String toString() {\n return y + \",\" + x;\n }", "public Builder setCoordInfo(protodef.b_math.coord value) {\n if (coordInfoBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n coordInfo_ = value;\n onChanged();\n } else {\n coordInfoBuilder_.setMessage(value);\n }\n bitField0_ |= 0x00000004;\n return this;\n }", "public String toString()\r\n\t{\r\n\t\tStringBuffer buffer = new StringBuffer(\"{X = \");\r\n\t\tbuffer.append(this.x);\r\n\t\tbuffer.append(\", Y = \");\r\n\t\tbuffer.append(this.y);\r\n\t\tbuffer.append('}');\r\n\t\treturn buffer.toString();\r\n\t}", "public final void setXDPosition(final String xpos) {_xdpos = xpos;}", "public void setA(String units,float value){\r\n\t\t//this.addChild(new PointingMetadata(\"lat\",\"\"+latitude));\r\n\t\tthis.setFloatField(\"a\", value);\r\n\t\tthis.setUnit(\"a\", units);\r\n\t}", "public final void setNote(java.lang.String note)\r\n\t{\r\n\t\tsetNote(getContext(), note);\r\n\t}", "public void setLon(double value) {\n lon = value;\n }", "private void setNotes(String[] songArray){\n\n for(int i = 0; i < currentNotes.length; i++){\n currentNotes[i] = songArray[notePointer];\n notePointer++;\n }\n\n t1.setText(currentNotes[0]);\n t2.setText(currentNotes[1]);\n t3.setText(currentNotes[2]);\n t4.setText(currentNotes[3]);\n t5.setText(currentNotes[4]);\n t6.setText(currentNotes[5]);\n t7.setText(currentNotes[6]);\n t8.setText(currentNotes[7]);\n\n //display notes here\n }", "@Override\n\tpublic void setOffsetBackToFile() {\n\t\tString newXString;\n\t\tString newYString;\n\t\t newXString = String.valueOf(getX().getValueInSpecifiedUnits())+getX().getUserUnit();\n\t newYString = String.valueOf(getY().getValueInSpecifiedUnits())+getY().getUserUnit();\n\t\tjc.getElement().setAttribute(\"x\", newXString);\n\t\tjc.getElement().setAttribute(\"y\", newYString);\n\t\ttry {\n\t\t\tjc.getView().getFrame().writeFile();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} \n\t}", "public void setNote(String note) {\r\n this.note = note; \r\n }", "public String gpsString() {\n return \"(\" + gps.getLatitude() + \",\" + gps.getLongitude() + \")\";\n }", "@Override\n\tpublic void setNote(java.lang.String note) {\n\t\t_esfShooterAffiliationChrono.setNote(note);\n\t}", "public String toString()\n {\n return (\"x,y\" + x + y);\n }", "@Override\n public String toString() {\n return value + \" \" + position.name();\n }", "@Override\n public void onLocationChanged(Location location) {\nString x=\"Latitude is--> \"+location.getLatitude();\nString y=\"Longtitude is--> \"+location.getLongitude();\n Toast.makeText(this.context,\"LATITUDE=\"+x+\" LONGTITUDE=\"+y, Toast.LENGTH_LONG).show();\n txtview.setText(x+\"\\n\"+y);\n\n }", "public String toString() {\n\t return \"(\" + this.x + \",\" + this.y + \")\";\n\t }", "public\t\tvoid\t\tsetValue(String value)\n\t\t{\n\t\tdouble val = Utility.toDouble(value);\n\t\tsetNormalizedValue(val);\n\t\t}", "@Override\n public String toString() {\n String s = \"(\" + this.getY() + \",\" + this.getX() + \")\";\n return s;\n }", "public void setTicksForNote(int ticks) {\n\t\tthis.ticksForNote = ticks;\n\t}", "@Override\n public CharSequence convertToString(Cursor cursor) {\n int j = cursor.getColumnIndex(\"LONGITUDE\");\n return cursor.getString(j);\n }", "public void fillString(float x, float y, String text);", "@Override\r\n protected void saveStrings() {\r\n \r\n settings.setProperty(\"mfile\" , mfile);\r\n settings.setProperty( \"rmode\", rmode);\r\n settings.setProperty( \"cmap\" , cmap );\r\n settings.setProperty(\"cmapMin\", Double.toString( cmapMin ) ); \r\n settings.setProperty(\"cmapMax\", Double.toString( cmapMax ) ); \r\n \r\n }", "public String toString() {\n return \"(\"+this.x + \", \" + this.y+\")\";\n }", "void setLocation(int x, int y);", "@Override\n public String toString() {\n return String.format(\"position X is='%s' ,position Y is='%s'\" , positionX , positionY);\n }", "public void setNotes(Set<INote> notes) {\r\n this.no = new NoteOperations(notes);\r\n\r\n // the total beats onscreen.\r\n this.totalBeats = no.pieceLength();\r\n\r\n this.setPreferredSize(getPreferredSize());\r\n }", "public void setLocation(String location);", "private void writeActualLocation(Location location)\n {\n //textLat.setText( \"Lat: \" + location.getLatitude() );\n //textLong.setText( \"Long: \" + location.getLongitude() );\n //T.t(MapsActivity.this, \"\" + \"Lat: \" + location.getLatitude() + \"\" + \"Long: \" + location.getLongitude());\n markerLocation(new LatLng(location.getLatitude(), location.getLongitude()));\n }" ]
[ "0.6461475", "0.6045203", "0.60242337", "0.58536327", "0.5812757", "0.5749589", "0.5622834", "0.5610916", "0.55504096", "0.5547235", "0.5547166", "0.5519594", "0.5466454", "0.5391422", "0.5387909", "0.53638744", "0.5355118", "0.5340783", "0.53318155", "0.5324063", "0.5281802", "0.52755105", "0.5247993", "0.52462", "0.5242101", "0.5227707", "0.5227108", "0.52056247", "0.52006537", "0.5192616", "0.51888543", "0.5186744", "0.5160395", "0.5158246", "0.5156657", "0.5150557", "0.5140105", "0.5114944", "0.5108309", "0.5106546", "0.5098825", "0.5093624", "0.5075633", "0.5058656", "0.5055054", "0.50371087", "0.5026011", "0.50252324", "0.5019072", "0.5017283", "0.50157726", "0.5013217", "0.49907044", "0.49768642", "0.49721223", "0.49662527", "0.49624163", "0.49615073", "0.4956422", "0.49519467", "0.49452886", "0.49429187", "0.49383885", "0.49371168", "0.49364752", "0.49359706", "0.49349308", "0.49315137", "0.49301708", "0.4928141", "0.491847", "0.49165383", "0.491384", "0.49068967", "0.48989427", "0.48876807", "0.48819727", "0.48797607", "0.4877375", "0.48698285", "0.486779", "0.48662138", "0.48660403", "0.48650905", "0.48649606", "0.48646793", "0.48626995", "0.48610535", "0.48610243", "0.48526636", "0.48474315", "0.48461735", "0.48400763", "0.48369956", "0.48358166", "0.48356166", "0.48346472", "0.48341927", "0.48274404", "0.4822774" ]
0.5561084
8
Basic Getter to receive the UMLObject
public void getNote(UMLObject object){ note = (Note) object; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Objet getObjetAlloue();", "public Object getObject() ;", "public Object getObject();", "UmlElement getUmlElement();", "Uom getUom();", "@Override\n public T getObjRaiz() {\n return (super.getObjRaiz());\n }", "eu.learnpad.transformations.metamodel_corpus.xwiki.Object getObject();", "public abstract String getObjectType();", "Object getObject();", "Object getObject();", "Object getObject();", "Object getObject();", "public LiveObject getLiveObject();", "public Object getObject()\n {\n return m_object;\n }", "@Override\n public Object getAsObject(FacesContext context, UIComponent component, String value) {\n \n return value;\n }", "@Override\n\tpublic String getObjetivo() {\n\t\treturn model.getObjetivo();\n\t}", "@SuppressWarnings(\"unchecked\")\n\tpublic U accessObject()\n\t{\n\t\treturn (primaryKey == null)?(null):\n\t\t (U)bean(GetUnity.class).getUnited(primaryKey);\n\t}", "public <U extends T> U get();", "public Object getObject() {\n return getObject(null);\n }", "T getObject() {\n\t\t\treturn data;\n\t\t}", "public Object getUserObject();", "slco.Object getObject2();", "public String get();", "public abstract Object getObservedObject();", "public String getObj1 () {\r\n return Obj1; \r\n }", "public ObjectReference getObject();", "public abstract String get();", "@Override\n String get();", "public Object getObject() {\n return this.object;\n }", "Input getObjetivo();", "slco.Object getObject1();", "public abstract org.omg.CORBA.Object read_Object();", "public Object getObject() {\n\t\treturn object;\n\t}", "String objectRead();", "public T getObject()\n\t{\n\t\treturn object;\n\t}", "public String getObject() {\n return mObject;\n }", "public abstract Object getUnderlyingObject();", "public Object getObject() {\r\n\t\treturn this.object;\r\n\t}", "public T get() {\n return object;\n }", "public Object getObject() {\r\n/* 109 */ return this.object;\r\n/* */ }", "public Object getValue() {\n\t\treturn object;\n\t}", "public Object objectValue();", "public ViewObjectImpl getFindYourOilVO1() {\n return (ViewObjectImpl) findViewObject(\"FindYourOilVO1\");\n }", "@Override\n public Object getObject()\n {\n return null;\n }", "GameObject getObject();", "public abstract Object getCustomData();", "public final Object get() {\n return getValue();\n }", "TetrisObject getCurrentTetrisObject();", "public NetObject getObject();", "@Override\n public T getValue(T object) {\n return object;\n }", "public Value makeGetter() {\n Value r = new Value(this);\n r.getters = object_labels;\n r.object_labels = null;\n return canonicalize(r);\n }", "public T get() {\n return this.elemento;\n }", "ObjectProperty<Piece> getPieceProperty();", "public Object getElement();", "public Object getModel();", "public Room getTheObject(){\n return this;\n }", "public interface Meta {\r\n\r\n /**\r\n * Get the Type of the OSM object\r\n * \r\n * @return the Type\r\n */\r\n @NotNull\r\n default Type getType() {\r\n throw new IllegalArgumentException(\"getType is unsupported\");\r\n }\r\n\r\n /**\r\n * Get the OSM elements tags\r\n * \r\n * @return a Map of KV tupels\r\n */\r\n @Nullable\r\n default Map<String, String> getTags() {\r\n throw new IllegalArgumentException(\"getTags is unsupported\");\r\n }\r\n\r\n /**\r\n * Get the OSM display name\r\n * \r\n * @return the OSM display name\r\n */\r\n String getUser();\r\n\r\n /**\r\n * Get the OSM id of the object\r\n * \r\n * @return the OSM id of the object\r\n */\r\n long getId();\r\n\r\n /**\r\n * Get the version of the object\r\n * \r\n * @return the version of the object\r\n */\r\n long getVersion();\r\n\r\n /**\r\n * Get the changeset id for this object\r\n * \r\n * @return the changeset id for this object\r\n */\r\n long getChangeset();\r\n\r\n /**\r\n * Get the timestamp (when this version of the object was created)\r\n * \r\n * @return the timestamp in seconds since the Unic EPOCH\r\n */\r\n long getTimestamp();\r\n\r\n /**\r\n * Get the state of the object\r\n * \r\n * @return a State\r\n */\r\n @NotNull\r\n State getState();\r\n\r\n /**\r\n * If the object is a Way check if it is closed\r\n * \r\n * @return true if the way is closed\r\n */\r\n boolean isClosed();\r\n\r\n /**\r\n * If the object is a Way return the number of way nodes\r\n * \r\n * @return the number of way nodes\r\n */\r\n int getNodeCount();\r\n\r\n /**\r\n * If the object is a Node return the number of ways it is a member of\r\n * \r\n * @return the number of ways the Node is a member of\r\n */\r\n int getWayCount();\r\n\r\n /**\r\n * If the object is a Relation return the number of members it has\r\n * \r\n * If not implemented this returns -1 which should always evaluate to false\r\n * \r\n * @return the number of members the Relation has\r\n */\r\n default int getMemberCount() {\r\n return Range.UNINITALIZED;\r\n }\r\n\r\n /**\r\n * If the object is a Way and closed return the area it covers\r\n * \r\n * @return the area it covers in m^2\r\n */\r\n int getAreaSize();\r\n\r\n /**\r\n * If the object is a Way return its length\r\n * \r\n * @return the the length in m\r\n */\r\n int getWayLength();\r\n\r\n /**\r\n * Get any roles the element has in Relations\r\n * \r\n * @return a Collection containing the roles\r\n */\r\n @NotNull\r\n Collection<String> getRoles();\r\n\r\n /**\r\n * Check if the element is selected\r\n * \r\n * @return true if selected\r\n */\r\n boolean isSelected();\r\n\r\n /**\r\n * Check if a relation has a member with role\r\n * \r\n * @param role the role\r\n * @return true if there is a member with the role\r\n */\r\n boolean hasRole(@NotNull String role);\r\n\r\n /**\r\n * Get a preset from a path specification\r\n * \r\n * @param presetPath the path\r\n * @return an Object that should be a instance of a preset for the syste,\r\n */\r\n @Nullable\r\n Object getPreset(@NotNull String presetPath);\r\n\r\n /**\r\n * Check if the object matches with a preset or a preset group\r\n * \r\n * @param preset the path to the preset or group\r\n * @return true if the object matches\r\n */\r\n boolean matchesPreset(@NotNull Object preset);\r\n\r\n /**\r\n * Check if the element is incomplete (this is not defined in the documentation)\r\n * \r\n * @return true if incomplete\r\n */\r\n boolean isIncomplete();\r\n\r\n /**\r\n * Check if the element is in the current view\r\n * \r\n * @return true if in view\r\n */\r\n boolean isInview();\r\n\r\n /**\r\n * Check if the element and all member elements is in the current view\r\n * \r\n * @return true if in view\r\n */\r\n boolean isAllInview();\r\n\r\n /**\r\n * Check if the element is in the downloaded areas\r\n * \r\n * @return true if in view\r\n */\r\n boolean isInDownloadedArea();\r\n\r\n /**\r\n * Check if the element and all member elements is in the downloaded areas\r\n * \r\n * @return true if in view\r\n */\r\n boolean isAllInDownloadedArea();\r\n\r\n /**\r\n * Check if the current element is a child of an element\r\n * \r\n * @param type type of the element\r\n * @param element the meta interface to the element\r\n * @param parents a List of elements\r\n * @return true if element is a child\r\n */\r\n default boolean isChild(@NotNull Type type, @NotNull Meta element, @NotNull List<Object> parents) {\r\n return false;\r\n }\r\n\r\n /**\r\n * Check if the current element is a parent of an element\r\n * \r\n * @param type type of the element\r\n * @param meta the meta interface to the element\r\n * @param children a List of elements\r\n * @return true if element is a parent\r\n */\r\n default boolean isParent(@NotNull Type type, @NotNull Meta meta, @NotNull List<Object> children) {\r\n return false;\r\n }\r\n\r\n /**\r\n * Return a List of Elements that match the condition c\r\n * \r\n * This is necessary so that we can cache these results in the caller\r\n * \r\n * @param c the Condition\r\n * @return a List of elements\r\n */\r\n @NotNull\r\n default List<Object> getMatchingElements(@NotNull Condition c) {\r\n return new ArrayList<>();\r\n }\r\n \r\n /**\r\n * Get an Meta implementing object \r\n * \r\n * @param o imput object\r\n * @return returns something that implements this interface\r\n */\r\n @NotNull\r\n Meta wrap(Object o);\r\n}", "PropertyRealization createPropertyRealization();", "@java.lang.Override\n public com.google.protobuf2.Any getObject() {\n return object_ == null ? com.google.protobuf2.Any.getDefaultInstance() : object_;\n }", "public Rectangle getUbicacion(){\n return ubicacion;\n }", "ObjectRealization createObjectRealization();", "public PropositionOrPrimitive to() {\n //the value is an element or a link\n\t\tString v = value;\n\t\tif (v.startsWith(\"Element\") || v.startsWith(\"Link\")\n\t\t\t\t|| v.startsWith(\"SerializedViewObject\")) {\n\t\t\tTelosParserKB kb = this.telosKB;\n\t\t\tTelosParserIndividual ind = (TelosParserIndividual) kb.individual(v);\n\t\t\treturn ind;\n\t\t}\n\t\t//the value is one of the individual in the KB\n\t\tTelosParserKB kb = this.telosKB;\n\t\tTelosParserIndividual ind = (TelosParserIndividual) kb.individual(v);\n\t\tif(ind!=null){\n\t\t\treturn ind;\n\t\t}\n\t\t//the value is a primitive\n\t\tint size = v.length();\n\t\ttry {\n\t\t\tInteger.parseInt(v);\n\t\t} catch (NumberFormatException nfe) {\n\t\t\ttry {\n\t\t\t\tDouble.parseDouble(v);\n\t\t\t} catch (NumberFormatException nfe2) {\n\t\t\t\t//the value is a string\n\t\t\t\tif (size > 1 && (v.substring(0, 1)).equals(\"\\\"\"))\n\t\t\t\t\treturn (new TelosString(v.substring(1, size-1)));\n\t\t\t\telse\n\t\t\t\t\treturn (new TelosString(v.substring(0, size)));\t\t\n\t\t\t}\n\t\t\treturn (new TelosReal(v));\n\t\t}\n\t\treturn (new TelosInteger(v));\n\t}", "@java.lang.Override\n public com.google.protobuf2.AnyOrBuilder getObjectOrBuilder() {\n return getObject();\n }", "UserProperty getUserProperty(BaseUser u);", "public abstract <T> T readObject();", "public Object getGuiObject();", "public abstract O value();", "@Override\n\tpublic Object getValue() {\n\t\treturn this ;\n\t}", "@Override\n\tpublic Object getValue() {\n\t\treturn this ;\n\t}", "public interface ViewObject {\n\n Integer getReferenceID();\n}", "public Object getUserData();", "abstract public Object getUserData();", "@Override\r\n\tpublic String get() {\n\t\treturn null;\r\n\t}", "public String getModel();", "public IAuthor getAuthor();", "abstract Object getXMLProperty(XMLName name);", "Property getProperty();", "Property getProperty();", "@Override\n\tpublic GamePiece getObject() {\n\t\treturn null;\n\t}", "protected T getManusia(){\r\n return Manusia;\r\n }", "public StringProperty userProperty() {\n return user;\n }", "@java.lang.Override\n public java.lang.String getObject() {\n java.lang.Object ref = object_;\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 object_ = s;\n return s;\n }\n }", "public XMLEleObject getObject() {\n if (Location != null) {\n SecName newName = new SecName(Location);\n newName.setAll(Name, Location, MyFont);\n return newName;\n }\n return null;\n }", "public String getObj3 () {\r\n return Obj3; \r\n }", "@Override\n\tpublic AbstractItem getObject() {\n\t\tif(item == null) {\n\t\t\titem = new HiTechItem();\n\t\t}\n\t\treturn item;\n\t}", "@Override\n public Person get(Object o) {\n return myPerson;\n }", "public Rectangle getRectangle();", "public org.omg.uml.behavioralelements.commonbehavior.Instance getValue();", "public String objectName() {\n return this.objectName;\n }", "message.Figure.FigureData.FigureProperty getProperty();", "@Override\n\t\t\tpublic Object getPropertyValue() {\n\t\t\t\treturn null;\n\t\t\t}", "public abstract DrawingComponent getObjectByPathId(UUID uid);", "public Object obj()\n\t{\n\t\treturn object;\n\t}", "public String getObj2 () {\r\n return Obj2; \r\n }", "public T get() {\n return value;\n }", "@Override\n\tpublic String get() {\n\t\treturn null;\n\t}", "public interface Tile {\n\n /**\n * JAVAFX property that stores the piece currently on this tile.\n *\n * @return The corresponding property.\n * */\n ObjectProperty<Piece> getPieceProperty();\n\n /**\n * JAVAFX property that stores the X coordinate of the tile on the board.\n *\n * @return The corresponding property.\n * */\n IntegerProperty getXProperty();\n\n /**\n * JAVAFX property that stores the Y coordinate of the tile on the board.\n *\n * @return The corresponding property.\n * */\n IntegerProperty getYProperty();\n\n}", "public Model getModel () { return _model; }", "public Rectangle getShape(){\n return myRectangle;\n }", "public People getObjUser() {\n return instance.getObjUser();\n }" ]
[ "0.6813797", "0.6595449", "0.6433289", "0.64260995", "0.6416912", "0.63867533", "0.6327973", "0.6203312", "0.6184577", "0.6184577", "0.6184577", "0.6184577", "0.61030763", "0.6069462", "0.603805", "0.6013767", "0.6012159", "0.59989667", "0.5988599", "0.59831834", "0.5972018", "0.5965297", "0.59528327", "0.5946363", "0.5944274", "0.5943604", "0.5940629", "0.5936248", "0.59322006", "0.59289277", "0.5913887", "0.5904929", "0.5901615", "0.58992964", "0.58869123", "0.58810014", "0.5863757", "0.5843235", "0.5811016", "0.57828283", "0.5779334", "0.57729965", "0.5770124", "0.5752323", "0.57415694", "0.5733963", "0.5714651", "0.57035154", "0.568901", "0.568348", "0.56714916", "0.5663258", "0.5633832", "0.56285995", "0.56193376", "0.56180716", "0.5604791", "0.55889255", "0.55877316", "0.55858314", "0.55780315", "0.5566248", "0.5562138", "0.55543745", "0.55542743", "0.5553853", "0.55465555", "0.5542718", "0.5542718", "0.55405235", "0.55326074", "0.55282843", "0.5526318", "0.5525904", "0.55236524", "0.5521917", "0.5504702", "0.5504702", "0.55034935", "0.5501515", "0.5499148", "0.54921466", "0.549157", "0.5491119", "0.54910266", "0.54875976", "0.54865354", "0.5484066", "0.5481935", "0.5476774", "0.5473523", "0.54674125", "0.5464036", "0.54629904", "0.5458883", "0.5458432", "0.5456731", "0.5452985", "0.54487765", "0.5446258" ]
0.58990425
34
Updates the Note.fxml file with the string from the name variable of the Note
public void getText(){ noteText.setText(note.getText()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void chang_scene_method(String FXML_Name) {\n try {\n AnchorPane pane = FXMLLoader.load(getClass().getResource(FXML_Name));\n anchorPane.getChildren().setAll(pane);\n } catch (IOException e) {\n JOptionPane.showMessageDialog(null, \"Error: \" + e);\n }\n }", "@FXML\n void viewNotes(ActionEvent event) {\n Parent root;\n try {\n //Loads library scene using library.fxml\n root = FXMLLoader.load(getClass().getResource(model.NOTES_VIEW_PATH));\n model.getNotesViewController().setPodcast(this.podcast);\n Stage stage = new Stage();\n stage.setTitle(this.podcast.getTitle()+\" notes\");\n stage.setScene(new Scene(root));\n stage.getIcons().add(new Image(getClass().getResourceAsStream(\"resources/musicnote.png\")));\n stage.setResizable(false);\n stage.showAndWait();\n }\n catch (IOException e) {\n e.printStackTrace();\n }\n\n }", "public void updateDeleteButtonClicked(){\n loadNewScene(apptStackPane, \"Update_Delete_Appointment.fxml\");\n }", "@FXML\n void onActionInHouse(ActionEvent event){\n labelPartSource.setText(\"Machine ID\");\n }", "@FXML\n public void onRename(ActionEvent event) {\n try {\n folders.update(oldName.getText(), newName.getText());\n stage.close();\n tree.displayTree();\n } catch (SQLException ex) {\n errorRename.setText(ex.getMessage());\n }\n }", "@FXML\n void onActionOutsourced(ActionEvent event){\n labelPartSource.setText(\"Company Name\");\n }", "@FXML\n public void saveNotes() {\n try {\n Interview selectedInterview = this.listInterview.getSelectionModel().getSelectedItem();\n selectedInterview.setNotes(txtNote.getText());\n selectedInterview.setRecommended(chkRecommended.isSelected());\n\n AlertHelper.showInformationAlert(\"Interview information have been saved.\");\n\n // Reset view\n this.populateInterviewInfo(selectedInterview);\n } catch (Exception ex) {\n AlertHelper.showErrorAlert(\"Unable to save notes: \" + ex.getLocalizedMessage());\n }\n }", "@Override\n\t\t\tpublic void changed(ObservableValue<? extends String> observable, String oldValue, String newValue) {\n\t\t\t\tObservableList<Node> list = stratrgyPane.getChildren();\n\t\t\t\tString newNode=null;\n\t\t\t\n\t\t\t\tif(newValue!=null){\n\t\t\t\t\tswitch(newValue){\n\t\t\t\t\t\tcase \"节日促销策略\" : newNode=\"FestivalStrategyForm.fxml\";\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t break;\n\t\t\t\t\t\tcase \"生日促销策略\" : newNode=\"BirthdayStrategyForm.fxml\";\n\t\t\t\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t\t\t\t break;\n\t\t\t\t\t\tcase \"合作企业促销策略\" : newNode=\"CompanyStrategyForm.fxml\";\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase \"房间预订促销策略\" : newNode=\"RoomPrebookStrategyForm.fxml\";\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase \"VIP商圈促销策略\" : newNode=\"VIPTradeStrategyForm.fxml\";\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tfor (Node node:list){\n\t\t\t\t\tString value = (String) node.getProperties().get(\"NAME\");\n\t\t\t\t\tif (value!=null&&value.equals(oldValue)){\n\t\t\t\t\t\tlist.remove(node);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\ttry {\n\t\t\t\t\tFXMLLoader loader = new FXMLLoader(getClass().getResource(newNode));\n\t\t\t\t\tParent newStrategyForm = loader.load();\n\t\t\t\t\tnewStrategyForm.getProperties().put(\"NAME\", newValue);\n\t\t\t\t\tStrategyController.this.controller = loader.getController();\n\t\t\t\t\tstratrgyPane.add(newStrategyForm, 0,1,4,2);\n\t\t\t\t\tcontroller.initial();\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t//日志\n\t\t\t\t\tSystem.out.println(e.getCause()+e.getMessage());\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}", "public void setNote(String note);", "@FXML\r\n void upload(ActionEvent event) {\r\n \tif(p!=null){\r\n \ttry {\r\n \t\tString note = null;\r\n \t\tif(Note.getText().isEmpty()){note=(\"\");} else {note=Note.getText();}\r\n\t\t\t\tPlacementSQL.UploadNote(String.valueOf(p.getId()),note);\r\n\t\t\t\tGeneralMethods.show(\"Uploaded note for placement \"+ p.getId(), \"Upload Success\");\r\n\t \t\r\n \t} catch (Exception e) {\r\n\t\t\t\tGeneralMethods.show(\"Error in uploading note to placement\", \"Error\");\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n \t} else {\r\n \t\tGeneralMethods.show(\"No placement selected\", \"Error\");\r\n \t}\r\n }", "@FXML\n public void Modify_Item(ActionEvent actionEvent) {\n try {\n FXMLLoader fxmlLoader = new FXMLLoader(getClass().getResource(\"ModifyItemlist.fxml\"));\n Parent root1 = (Parent) fxmlLoader.load();\n Stage stage = new Stage();\n stage.initModality(Modality.APPLICATION_MODAL);\n stage.initStyle(StageStyle.UNDECORATED);\n stage.setTitle(\"New Item\");\n stage.setScene(new Scene(root1));\n stage.show();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "@FXML protected void editPatient(ActionEvent event) throws Exception{\n Parent root = FXMLLoader.load(getClass().getResource(\"EditPatientInformation.fxml\"));\n Stage stage = new Stage();\n Scene scene = new Scene(root);\n \n stage.setScene(scene);\n stage.show();\n }", "public void updateFileName()\n {\n\n String fn= presenter.getCurrentTrack().getFileName();\n if(fn!=null && !fn.isEmpty()) {\n File file = new File(fn);\n fn=file.getName();\n }\n if(fn==null || fn.isEmpty())\n fn=\"*\";\n fileNameTextView.setText(fn);\n }", "@FXML\n public void openFile(Event e) {\n String inputData = \"\";\n File file = chooser.showOpenDialog(open.getScene().getWindow());\n\n try {\n inputData = new String(Files.readAllBytes(file.toPath()));\n } catch (IOException error) {\n error.getSuppressed();\n }\n\n input.setFont(Font.font(\"monospaced\"));\n input.setText(inputData);\n\n Stage primary = (Stage) open.getScene().getWindow();\n primary.setTitle(file.getName());\n }", "private void renameFileWithExtension() {\n TreeNode node = treeGrid.getSelectedRecord();\n VMResource resource = ((FileTreeNode) node).getResource();\n String resourceFullName;\n if (resource instanceof VMFile) {\n String resourceExtension = ((VMFile) resource).getExtensionStr();\n resourceFullName = resource.getName() + \".\" + resourceExtension;\n } else {\n resourceFullName = resource.getName();\n }\n\n final Window winModal = new Window();\n winModal.setHeight(100);\n winModal.setWidth(310);\n winModal.setTitle(\"Rename Resource\");\n winModal.setShowMinimizeButton(false);\n winModal.setIsModal(true);\n winModal.setShowModalMask(true);\n winModal.setKeepInParentRect(true);\n winModal.setAutoCenter(true);\n winModal.addCloseClickHandler(e -> winModal.markForDestroy());\n\n DynamicForm form = new DynamicForm();\n form.setHeight100();\n form.setWidth100();\n form.setPadding(5);\n form.setNumCols(5);\n form.setColWidths(70, 70, 5, 70, 70);\n form.setLayoutAlign(VerticalAlignment.BOTTOM);\n form.setAutoFocus(true);\n\n TextItem renameText = new TextItem();\n renameText.setTitle(\"New Name\");\n renameText.setTitleColSpan(1);\n renameText.setColSpan(4);\n renameText.setValue(resourceFullName);\n\n ButtonItem okButton = new ButtonItem();\n okButton.setTitle(\"OK\");\n okButton.setColSpan(2);\n okButton.setWidth(80);\n okButton.setAlign(Alignment.RIGHT);\n okButton.setStartRow(false);\n okButton.setEndRow(false);\n okButton.addClickHandler(new com.smartgwt.client.widgets.form.fields.events.ClickHandler() {\n @Override\n public void onClick(com.smartgwt.client.widgets.form.fields.events.ClickEvent event) {\n String inputValue = renameText.getValueAsString();\n\n if (inputValue == null || inputValue.isEmpty()) {\n // \"\"を入力する際に、もう一度入力を要求する\n SC.warn(\"Please enter the new name.\");\n return;\n } else {\n String newFileFullName = inputValue.trim();\n TreeNode selectedNode = treeGrid.getSelectedRecord();\n TreeNode parentNode = tree.getParent(selectedNode);\n TreeNode[] nodes = tree.getChildren(parentNode);\n ArrayList<TreeNode> nodeList = new ArrayList<TreeNode>();\n for (TreeNode treeNode : nodes) {\n if (!treeNode.equals(node)) {\n nodeList.add(treeNode);\n }\n }\n VMResource resource = fileTreeNodeFactory.getResource(selectedNode);\n\n if (resource instanceof VMFile) {\n // check the inputed extension if it is correct\n if ((newFileFullName.lastIndexOf(\".\") == -1) || newFileFullName.substring(newFileFullName.lastIndexOf(\".\") + 1).isEmpty()) {\n winModal.markForDestroy();\n renameFileWithExtension();\n SC.warn(\"There is no Extension with your file! Please write a correct file name.\");\n return;\n } else if (!isAbailableExtension(newFileFullName.substring(newFileFullName.lastIndexOf(\".\") + 1))) {\n winModal.markForDestroy();\n renameFileWithExtension();\n SC.warn(\"The Extension you inputed is not available! Please write a correct file name.\");\n return;\n } else if (newFileFullName.substring(0, newFileFullName.lastIndexOf(\".\")).isEmpty()) {\n winModal.markForDestroy();\n renameFileWithExtension();\n SC.warn(\"Please enter the new name.\");\n return;\n }\n }\n int index = newFileFullName.lastIndexOf(\".\");\n String newBaseName = newFileFullName.substring(0, newFileFullName.lastIndexOf(\".\"));\n String newExtension = newFileFullName.substring(newFileFullName.lastIndexOf(\".\") + 1);\n if (!checkSameName(nodeList.toArray(new TreeNode[nodeList.size()]), index != -1 ? newBaseName : newFileFullName, resource instanceof VMDirectory,\n resource instanceof VMFile ? newExtension : \"\")) {\n winModal.markForDestroy();\n renameFileWithExtension();\n SC.warn(\"An item with this name has been already existed. Please change a new name and try again.\");\n return;\n }\n\n ZGRenameCommand renameCommand = new ZGRenameCommand(editResourceService, viewHandler, resource.getId(), newFileFullName, resource.getName());\n renameCommand.addCommandListener(new CommandListener() {\n\n @Override\n public void executeEvent() {\n renameTreeView(renameCommand.getNewName(), selectedNode, parentNode);\n }\n\n @Override\n public void undoEvent() {\n renameTreeView(renameCommand.getOldName(), selectedNode, parentNode);\n }\n\n @Override\n public void redoEvent() {\n renameTreeView(renameCommand.getNewName(), selectedNode, parentNode);\n }\n\n @Override\n public void bindEvent() {\n viewHandler.clear();\n registerRightClickEvent();\n }\n });\n CompoundCommand c = new CompoundCommand();\n c.append(renameCommand);\n manager.execute(c.unwrap());\n }\n winModal.markForDestroy();\n }\n });\n ButtonItem canselButton = new ButtonItem();\n canselButton.setTitle(\"Cancel\");\n canselButton.setColSpan(2);\n canselButton.setWidth(80);\n canselButton.setStartRow(false);\n canselButton.addClickHandler(new com.smartgwt.client.widgets.form.fields.events.ClickHandler() {\n\n @Override\n public void onClick(ClickEvent event) {\n winModal.markForDestroy();\n }\n });\n SpacerItem space = new SpacerItem();\n space.setWidth(5);\n form.setFields(renameText, okButton, space, canselButton);\n form.addKeyPressHandler(new KeyPressHandler() {\n @Override\n public void onKeyPress(KeyPressEvent event) {\n if (KeyNames.ENTER.equals(event.getKeyName())) {\n okButton.fireEvent(new com.smartgwt.client.widgets.form.fields.events.ClickEvent(okButton.getJsObj()));\n }\n }\n });\n winModal.addItem(form);\n winModal.show();\n renameText.setSelectionRange(0, renameText.getValueAsString().indexOf(\".\"));\n }", "private void updateName(Widget sender){\r\n\t\tint index = getWidgetIndex(sender) - 1;\r\n\t\tTaskParam param = taskDef.getParamAt(index);\r\n\t\tparam.setName(((TextBox)sender).getText());\r\n\t\ttaskDef.setDirty(true);\r\n\t}", "public static void updateNote(int tenantID, String noteName, String content) throws RegistryException, NotePersistenceException {\n UserRegistry userRegistry = ServiceHolder.getRegistryService().getConfigSystemRegistry(tenantID);\n String noteLocation = getNoteLocation(noteName);\n\n if (userRegistry.resourceExists(noteLocation)) {\n Resource resource = userRegistry.get(noteLocation);\n resource.setContent(content);\n resource.setMediaType(NoteConstants.NOTE_MEDIA_TYPE);\n userRegistry.put(noteLocation, resource);\n } else {\n log.warn(\"Cannot update note with name \" + noteName + \" for tenant with tenant ID \" + tenantID +\n \" because it does not exist. Creating new note and adding the content.\");\n addNewNote(tenantID, noteName, content);\n }\n }", "@FXML\n public void editSet(MouseEvent e) {\n AnchorPane root = null;\n FXMLLoader loader = new FXMLLoader(getClass().getResource(\"/view/learn_update.fxml\"));\n try {\n root = loader.load();\n } catch (IOException ex) {\n ex.printStackTrace();\n }\n LearnUpdateController controller = loader.getController();\n controller.initData(txtTitle.getText(), rootController, learnController, apnLearn);\n rootController.setActivity(root);\n root.requestFocus();\n }", "protected void editNote()\n\t{\n\t\tActivity rootActivity = process_.getRootActivity();\n\t\tActivityPanel rootActivityPanel = processPanel_.getChecklistPanel().getActivityPanel(rootActivity);\n\t\tActivityNoteDialog activityNoteDialog = new ActivityNoteDialog(rootActivityPanel);\n\t\tint dialogResult = activityNoteDialog.open();\n\t\tif (dialogResult == SWT.OK) {\n\t\t\t// Store the previous notes to determine below what note icon to use\n\t\t\tString previousNotes = rootActivity.getNotes();\n\t\t\t// If the new note is not empty, add it to the activity notes\n\t\t\tif (activityNoteDialog.getNewNote().trim().length() > 0)\n\t\t\t{\n\t\t\t\t// Get the current time\n\t\t\t\tString timeStamp = new SimpleDateFormat(\"d MMM yyyy HH:mm\").format(Calendar.getInstance().getTime());\n\t\t\t\t// Add the new notes (with time stamp) to the activity's notes.\n\t\t\t\t//TODO: The notes are currently a single String. Consider using some more sophisticated\n\t\t\t\t// data structure. E.g., the notes for an activity can be a List of Note objects. \n\t\t\t\trootActivity.setNotes(rootActivity.getNotes() + timeStamp + \n\t\t\t\t\t\t\" (\" + ActivityPanel.AGENT_NAME + \"):\\t\" + activityNoteDialog.getNewNote().trim() + \"\\n\");\n\t\t\t}\n\t\t\t\n\t\t\t// Determine whether the note icon should change.\n\t\t\tif (previousNotes.trim().isEmpty())\n\t\t\t{\n\t\t\t\t// There were no previous notes, but now there are -- switch to image of note with text \n\t\t\t\tif (!rootActivity.getNotes().trim().isEmpty())\n\t\t\t\t\tactivityNoteButton_.setCurrentImage(noteWithTextImage_);\n\t\t\t}\n\t\t\telse // There were previous notes, but now there aren't -- switch to blank note image\n\t\t\t\tif (rootActivity.getNotes().trim().isEmpty())\n\t\t\t\t\tactivityNoteButton_.setCurrentImage(noteWithoutTextImage_);\n\t\t\t// END of determine whether the note icon should change\n\t\t\t\n\t\t\t// Set the tooltip text of the activityNoteButton_ to the current notes associated with the activity. \n\t\t\tactivityNoteButton_.setToolTipText(rootActivity.getNotes());\n\t\t\t\n\t\t\tprocessHeaderComposite_.redraw();\t// Need to redraw the activityNoteButton_ since its image changed.\n\t\t\t// We redraw the entire activity panel, because redrawing just the activityNoteButton_ \n\t\t\t// causes it to have different background color from the activity panel's background color\n\t\t\tSystem.out.println(\"Activity Note is \\\"\" + rootActivity.getNotes() + \"\\\".\");\n\t\t}\n\t}", "public final void setNote(java.lang.String note)\r\n\t{\r\n\t\tsetNote(getContext(), note);\r\n\t}", "public void setNote(String note) {\r\n this.note = note; \r\n }", "public void gotoMyInfo(){\n try {\n FXMLMyInfoController verMyInfo = (FXMLMyInfoController) replaceSceneContent(\"FXMLMyInfo.fxml\");\n verMyInfo.setApp(this);\n } catch (Exception ex) {\n Logger.getLogger(IndieAirwaysClient.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "@FXML\n private void pickDiscFive() {\n activeDisc = \"Disc 5\";\n discSwitchButton.setText(\"Disc 5\");\n displayFilesFromDisc();\n }", "@FXML\n private void pickDiscOne() {\n activeDisc = \"Disc 1\";\n discSwitchButton.setText(\"Disc 1\");\n displayFilesFromDisc();\n }", "public void setDocumentNote (String DocumentNote);", "@FXML\n public void editRuleFilePath(ActionEvent event) throws IOException {\n FileChooser chooser = new FileChooser();\n //Create filter for just rule files.\n\t\tFileChooser.ExtensionFilter filter = new FileChooser.ExtensionFilter(\"Rule files\", \"*.rules\");\n\t\tchooser.getExtensionFilters().add(filter);\n chooser.setTitle(\"Open Rule File\");\n File path = chooser.showOpenDialog(new Stage());\n\n if (path != null) {\n //get string path of file selected\n String pathString = path.getAbsolutePath();\n DetectionHandler.setPATH_TO_RULES(pathString);\n System.out.println(\"Set new rule file.\");\n pathString = getShortenedPath(pathString);\n rulePathLabel.setText(pathString);\n }\n }", "@FXML\n void OnActionShowUpdateCustomerScreen(ActionEvent event) throws IOException {\n stage = (Stage)((Button)event.getSource()).getScene().getWindow();\n scene = FXMLLoader.load(getClass().getResource(\"/View/ModifyCustomer.fxml\"));\n stage.setTitle(\"Modify Customer\");\n stage.setScene(new Scene(scene));\n stage.show();\n }", "@FXML\n public void editDescription(ActionEvent actionEvent) {\n\n }", "public void handleModifyParts()\n {\n FXMLLoader fxmlLoader = new FXMLLoader(getClass().getResource(\"/UI/Views/parts.fxml\"));\n Parent root = null;\n try {\n root = (Parent) fxmlLoader.load();\n\n // Get controller and configure controller settings\n PartController partController = fxmlLoader.getController();\n\n if (getPartToModify() != null)\n {\n partController.setModifyParts(true);\n partController.setPartToModify(getPartToModify());\n partController.setInventory(inventory);\n partController.setHomeController(this);\n\n // Spin up part form\n Stage stage = new Stage();\n stage.initModality(Modality.APPLICATION_MODAL);\n stage.initStyle(StageStyle.DECORATED);\n stage.setTitle(\"Modify Parts\");\n stage.setScene(new Scene(root));\n stage.show();\n\n }\n else {\n Alert alert = new Alert(Alert.AlertType.ERROR);\n alert.setTitle(\"Input Invalid\");\n alert.setHeaderText(\"No part was selected!\");\n alert.setContentText(\"Please select a part to modify from the part table!\");\n alert.show();\n }\n\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public void setNote(Note note) {\n this.note = note;\n\n noteContent.setText(note.getNoteText().toString());\n noteContent.setPromptText(\"Enter note here.\");\n }", "@FXML\n private void writeFiles(){\n setProfileUNr();\n PonsFileFactory ponsFileFactory = new PonsFileFactory();\n ponsFileFactory.setKykgat(isKykgat.isSelected());\n for (Profile profile : profiles) {\n createFile(ponsFileFactory,profile);\n }\n moveXBy.setText(\"0\");\n }", "@FXML\n public void Edit_Name_List(ActionEvent actionEvent) {\n }", "@FXML\r\n void go_to_link(){\r\n String key= wordName.getText().toLowerCase();\r\n String link= dictionary.get_key_link(key);\r\n link = link.replaceAll(\"^\\\"|\\\"S\",\"\");\r\n File file = new File(link);\r\n\r\n try{\r\n if(!Desktop.isDesktopSupported()){\r\n System.out.println(\"Desktop is not supported\");\r\n return;\r\n }\r\n Desktop desktop = Desktop.getDesktop();\r\n if (file.exists())\r\n desktop.edit(file);\r\n } catch (IOException e1){\r\n e1.printStackTrace();\r\n }\r\n }", "@FXML\n private void editSong(ActionEvent event) {\n Parent root;\n try{\n FXMLLoader loader = new FXMLLoader(getClass().getResource(\"/mytunes/gui/view/EditSong.fxml\"));\n root = loader.load();\n Stage stage = new Stage();\n \n EditSongController esc = loader.getController();\n esc.acceptSong(lstSongs.getSelectionModel().getSelectedItem());\n \n stage.setTitle(\"Edit Song\");\n stage.setScene(new Scene(root, 550,450));\n stage.show();\n stage.setOnHiding(new EventHandler<WindowEvent>() {\n @Override\n public void handle(WindowEvent event) {\n bllfacade.init();\n \n init();\n }\n });\n }catch(IOException e){e.printStackTrace();}\n \n }", "@FXML\r\n void myBookmarkAction(ActionEvent event) {\r\n try{\r\n FXMLLoader fxmlLoader = new FXMLLoader(getClass().getResource(\"myDictionaryyy.fxml\"));\r\n Parent root1 = (Parent) fxmlLoader.load();\r\n Stage stage = new Stage();\r\n stage.setScene(new Scene(root1));\r\n stage.show();\r\n } catch (Exception e){\r\n System.out.println(\"Can't load\");\r\n }\r\n }", "@FXML\n\tpublic void saveFile() {\n\t\tif (file == null) {\n\t\t\tFileChooser saveFileChooser = new FileChooser();\n\t\t\tsaveFileChooser.setInitialDirectory(userWorkspace);\n\t\t\tsaveFileChooser.getExtensionFilters().add(new FileChooser.ExtensionFilter(\"Text doc(*.txt)\", \"*.txt\"));\n\t\t\tfile = saveFileChooser.showSaveDialog(ap.getScene().getWindow());\n\t\t}\n\n\t\tif (file.getName().endsWith(\".txt\")) {\n\t\t\ttry {\n\t\t\t\tfilePath = file.getAbsolutePath();\n\t\t\t\tStage primStage = (Stage) ap.getScene().getWindow();\n\t\t\t\tprimStage.setTitle(filePath);\n\t\t\t\tTab tab = tabPane.getSelectionModel().getSelectedItem();\n\t\t\t\ttab.setId(filePath);\n\t\t\t\ttab.setText(file.getName());\n\n\t\t\t\tBufferedWriter writer = new BufferedWriter(new FileWriter(file));\n\t\t\t\tPrintWriter output = new PrintWriter(writer);\n\t\t\t\toutput.write(userText.getText());\n\t\t\t\toutput.flush();\n\t\t\t\toutput.close();\n\t\t\t} catch (IOException e) {\n\t\t\t\tSystem.out.println(file.getName() + \" has no valid file-extenstion.\");\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\n\t}", "public void setNote(String note) {\r\n\r\n this.note = note;\r\n }", "public void setNewFilePath(String newValue);", "private void jFileChooser1PropertyChange(java.beans.PropertyChangeEvent evt) {\n System.out.println(\"----------------------------------------------------\");\r\n path = \"\"+ jFileChooser1.getSelectedFile();\r\n pathTextField.setText(path);\r\n pathTextField.setToolTipText(path);\r\n }", "@FXML\n void editTimeline (Timeline timeline) {\n\n// changes the Timeline name\n timeline.name = timeline_nameField.getText().trim();\n\n// exits the add window\n cancelTimelineEdit();\n\n setMessage(\"Successfully edited Timeline.\", false);\n }", "@FXML\n private void pickDiscThree() {\n activeDisc = \"Disc 3\";\n discSwitchButton.setText(\"Disc 3\");\n displayFilesFromDisc();\n }", "public void setNote(String note) {\r\n this.note = note;\r\n }", "@FXML\n public void editRuleFile(ActionEvent event) throws IOException {\n RuleFileEditorGUI ruleFileEditor = new RuleFileEditorGUI();\n ruleFileEditor.start(new Stage());\n \n }", "@FXML\n private void newSong(ActionEvent event) {\n Parent root; \n try{\n root = FXMLLoader.load(getClass().getResource(\"/mytunes/gui/view/NewSong.fxml\"));\n Stage stage = new Stage();\n \n stage.setTitle(\"New Song\");\n stage.setScene(new Scene(root, 550,450));\n stage.show();\n stage.setOnHiding(new EventHandler<WindowEvent>() {\n @Override\n public void handle(WindowEvent event) {\n bllfacade.reloadSongs();\n init();\n }\n });\n } catch (IOException ex) {\n Logger.getLogger(AppController.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "@FXML\n\tprivate void openConfigFile() {\n\t\tFileChooser fileChooser = new FileChooser();//Allows opening and saving files\n\t\tFileChooser.ExtensionFilter extFilter = new FileChooser.ExtensionFilter(\"CFG files (*.cfg)\", \"*.cfg\"); //sets extension filter\n\t\tfileChooser.getExtensionFilters().add(extFilter);\n\t\tScene scene = mainWindow.getScene();//grabs the scene from the window that initialized this event, required for file selector\n\t\tif (scene != null) {\n\t\t\tWindow window = scene.getWindow();\n\t\t\tif (window != null) {\n\n\t\t\t\tFile file = fileChooser.showOpenDialog(window);\n\t\t\t\tif (file != null) {\n\n\t\t\t\t\tString filePath = file.getAbsolutePath();\n\n\n\t\t\t\t\tNodeController.getNodeController().clear();//wipe all current nodes for new nodes to be generated\n\n\t\t\t\t\tConfigFile.readFile(filePath);//generates the controller with the config file\n\t\t\t\t\trefreshAll();\n\t\t\t}\n\t\t}\n\n\t\t}\n\n\t}", "@FXML\n\tpublic void newFile() {\n\t\tuserText.clear();\n\t\tfile = null;\n\t}", "private Initializable replaceSceneContent(String fxml) throws Exception {\n FXMLLoader loader = new FXMLLoader();\n InputStream in = IndieAirwaysClient.class.getResourceAsStream(fxml);\n loader.setBuilderFactory(new JavaFXBuilderFactory());\n loader.setLocation(IndieAirwaysClient.class.getResource(fxml));\n AnchorPane page;\n try {\n page = (AnchorPane) loader.load(in);\n } finally {\n in.close();\n }\n Scene scene = new Scene(page, WINDOW_WIDTH, WINDOW_HEIGHT);\n stage.setScene(scene);\n stage.sizeToScene();\n return (Initializable) loader.getController();\n }", "@FXML\n private void pickDiscTwo() {\n activeDisc = \"Disc 2\";\n discSwitchButton.setText(\"Disc 2\");\n displayFilesFromDisc();\n }", "public void setNote(String note) {\n if(note==null){\n note=\"\";\n }\n this.note = note;\n }", "@FXML\r\n void actionInHouseRadioButton(ActionEvent event) {\r\n\r\n labelPartIdName.setText(\"Machine ID\");\r\n }", "private void swapViewFX(String viewName, GenericViewFX controller) throws IOException {\r\n FXMLLoader loader = new FXMLLoader();\r\n loader.setLocation(CtrlPresentation.class.getResource(\"/presentation/view/\" + viewName + \".fxml\"));\r\n loader.setController(controller);\r\n controller.setStage(primaryStage);\r\n BorderPane layoutFX = loader.load();\r\n baseLayout.setCenter(layoutFX);\r\n controller.display();\r\n }", "@FXML\n private void pickDiscFour() {\n activeDisc = \"Disc 4\";\n discSwitchButton.setText(\"Disc 4\");\n displayFilesFromDisc();\n }", "public void createNewButtonClicked(){\n loadNewScene(apptStackPane, \"Create_New_Appointment.fxml\");\n }", "public void changeNotes(String a) {\r\n notes = a;\r\n }", "@FXML\n private void saveFile() {\n FileHandler.saveFileData(stage, dRegister);\n }", "public static void markAsModified() {\n\t\tif(isSensorNetworkAvailable()) {\n\t\t\tsaveMenuItem.setEnabled(true);\n\t\t\tif(GUIReferences.currentFile != null) {\n\t\t\t\tGUIReferences.viewPort.setTitle(\"*\"+GUIReferences.currentFile.getName());\n\t\t\t} else {\n\t\t\t\tGUIReferences.viewPort.setTitle(\"*Untitled\");\n\t\t\t}\n\t\t}\n\t}", "public void setNote(String note) {\n\t\tthis._note = note;\n\t}", "@FXML\n void readFromFile(ActionEvent event)throws FileNotFoundException {\n BoxSetting bx = new BoxSetting(devTempBox,devHumBox,presDevBox,maxTempDevBox,minTempDevBox,measTxt,presChart,humidChart,tempChart,tempBox,humidBox,presBox,maxTempBox,minTempBox,meanTempBox,meanHumidBox,meanPresBox,meanMaxTempBox,meanMinTempBox,meanTempBox,meanHumidBox,meanPresBox);\n cityBox.setText(readNameBox.getText());\n bx.fromFileDisp(tc.fromFile(readNameBox.getText()));\n }", "public void setNote(String note) {\n this.note = note;\n }", "public void setNote(String note) {\n this.note = note;\n }", "public void setNote(String note) {\n this.note = note;\n }", "public void setNote(String note) {\n this.note = note;\n }", "public void setNote(String note) {\n this.note = note;\n }", "@FXML\n\tpublic void openFile() {\n\t\tFileChooser openFileChooser = new FileChooser();\n\t\topenFileChooser.setInitialDirectory(userWorkspace);\n\t\topenFileChooser.getExtensionFilters().add(new FileChooser.ExtensionFilter(\"Text doc(*.txt)\", \"*.txt\"));\n\t\tfile = openFileChooser.showOpenDialog(ap.getScene().getWindow());\n\n\t\tuserText.clear();\n\n\t\tif (file != null) {\n\t\t\tif (file.getName().endsWith(\".txt\")) {\n\t\t\t\tfilePath = file.getAbsolutePath();\n\t\t\t\tStage primStage = (Stage) ap.getScene().getWindow();\n\t\t\t\tprimStage.setTitle(filePath);\n\t\t\t\tTab tab = tabPane.getSelectionModel().getSelectedItem();\n\t\t\t\ttab.setId(filePath);\n\t\t\t\ttab.setText(file.getName());\n\n\t\t\t\twriteToUserText();\n\t\t\t}\n\t\t}\n\t}", "public void setNotes(java.lang.String notes)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(NOTES$14, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(NOTES$14);\n }\n target.setStringValue(notes);\n }\n }", "@FXML\n private void editTest(ActionEvent event)\n {\n }", "private void setNote() {\n\t\tNoteOpt.add(\"-nd\");\n\t\tNoteOpt.add(\"/nd\");\n\t\tNoteOpt.add(\"notedetails\");\n\n\t}", "public void updateWidgetFor(String name) {\n }", "@FXML\n public void MealAddBtnClicked(){\n //display the correct panes\n subMenuDisplay(MealSubMenuPane);\n MealsAddPane.toFront();\n MenuPane.toFront();\n //load ingredients from the database ingredients that will be set to the ingredients All ingredients cupboard\n //ListView\n loadIngredients();\n searchIngredient.setText(\"\");\n quantityNameLabel.setText(\"\");\n }", "private void updateTexts(DocumentEvent e) {\n\n Document doc = e.getDocument();\n\n if (doc == projectNameTextField.getDocument() || doc == projectLocationTextField.getDocument()) {\n // Change in the project name\n\n String projectName = projectNameTextField.getText();\n String projectFolder = projectLocationTextField.getText();\n\n //if (projectFolder.trim().length() == 0 || projectFolder.equals(oldName)) {\n createdFolderTextField.setText(projectFolder + File.separatorChar + projectName);\n //}\n\n }\n panel.fireChangeEvent(); // Notify that the panel changed\n }", "public void setNote(String note) {\n\t\tthis.note = note;\n\t}", "void setNote(int note) {\n\t\tthis.note = note;\n\t}", "@FXML\n void UpdateCustomer(ActionEvent event) throws IOException {\n\n customer customer = customerTableView.getSelectionModel().getSelectedItem();\n if(customer == null)\n return;\n \n FXMLLoader loader = new FXMLLoader();\n loader.setLocation(getClass().getResource(\"/view/UpdateCustomer.fxml\"));\n loader.load();\n\n UpdateCustomerController CustomerController = loader.getController();\n CustomerController.retrieveCustomer(customer);\n\n stage = (Stage)((Button)event.getSource()).getScene().getWindow();\n Parent scene = loader.getRoot();\n stage.setScene(new Scene(scene));\n stage.show();\n\n }", "@FXML\n void save () {\n try {\n String message = app.saveToFile();\n setMessage(message, false);\n } catch (Exception exception) {\n showError(\"saving to file\", exception.toString());\n }\n }", "private void itemFileButtonActionPerformed(java.awt.event.ActionEvent evt) {\n JFileChooser chooser = new JFileChooser();\n chooser.setDialogTitle(\"Select Raffle Items File\");\n File workingDirectory = new File(System.getProperty(\"user.dir\"));\n chooser.setCurrentDirectory(workingDirectory);\n if (chooser.showSaveDialog(this) == JFileChooser.APPROVE_OPTION) {\n itemFile = chooser.getSelectedFile();\n itemFileLabel.setText(getFileName(itemFile));\n pcs.firePropertyChange(\"ITEM\" , null, itemFile);\n }\n }", "@FXML\n private void newPlaylist(ActionEvent event){\n Parent root;\n try{\n root = FXMLLoader.load(getClass().getResource(\"/mytunes/gui/view/NewPlaylist.fxml\"));\n Stage stage = new Stage();\n \n stage.setTitle(\"New/Edit Playlist\");\n stage.setScene(new Scene(root, 350,250));\n stage.show();\n stage.setOnHiding(new EventHandler<WindowEvent>() {\n @Override\n public void handle(WindowEvent event) {\n bllfacade.reloadPlaylists();\n init();\n }\n });\n }catch(IOException e){e.printStackTrace();}\n }", "public void goToModifyPartScene(ActionEvent event) throws IOException {\n\n if(partTableView.getSelectionModel().isEmpty())\n {\n alert.setAlertType(Alert.AlertType.ERROR);\n alert.setContentText(\"Please make sure you've added a Part and selected the Part you want to modify.\");\n alert.show();\n } else {\n int i = partTableView.getSelectionModel().getFocusedIndex();\n setFocusedIndex(i);\n Parent addPartParent = FXMLLoader.load(getClass().getResource(\"ModifyPart.fxml\"));\n Scene modifyPartScene = new Scene(addPartParent);\n\n Stage window = (Stage) ((Node)event.getSource()).getScene().getWindow();\n\n window.setScene(modifyPartScene);\n window.show();\n }\n\n\n }", "public void setText(String txt)\n {\n fileName.setText(txt);\n }", "public void setNote(String v) {\n if (MetadataUGWD_Type.featOkTst && ((MetadataUGWD_Type)jcasType).casFeat_note == null)\n jcasType.jcas.throwFeatMissing(\"note\", \"de.aitools.ie.uima.type.argumentation.MetadataUGWD\");\n jcasType.ll_cas.ll_setStringValue(addr, ((MetadataUGWD_Type)jcasType).casFeatCode_note, v);}", "public void update(String name) {\n\n\t}", "@FXML\n public void New_List(ActionEvent actionEvent) {\n\n //Here we are going to open a window to create a list.\n //Working!!\n try {\n FXMLLoader fxmlLoader = new FXMLLoader(getClass().getResource(\"NewTodolist.fxml\"));\n Parent root1 = (Parent) fxmlLoader.load();\n Stage stage = new Stage();\n stage.initModality(Modality.APPLICATION_MODAL);\n stage.initStyle(StageStyle.UNDECORATED);\n stage.setTitle(\"New List\");\n stage.setScene(new Scene(root1));\n stage.show();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "void setNotes(String notes);", "public void setJNDIName(String newValue);", "@FXML\n void changeToDetailsView(PhotoUnit photoUnit) throws IOException {\n\n FXMLLoader loader = new FXMLLoader();\n loader.setLocation(getClass().getResource(\"/Views/photoView.fxml\"));\n Parent root = loader.load();\n\n Scene scene = new Scene(root);\n\n scene.getStylesheets().add(\"Views/styles.css\");\n Stage primaryStage = (Stage) listView.getScene().getWindow();\n primaryStage.setScene(scene);\n\n //access the controller\n PhotoViewController controller = loader.getController();\n controller.initData(photoUnit);\n\n Image icon = new Image(\"/img/mars.png\");\n primaryStage.getIcons().add(icon);\n primaryStage.setTitle(\" MARS \");\n primaryStage.show();\n\n\n }", "@FXML\n private void updateSelectedPairing(String pairing)\n {pairingSelected.setText(pairing);}", "@FXML\r\n\tprivate void choisirFichier()\r\n\t{\r\n\t\tFileChooser fileChooser = new FileChooser();\r\n\r\n\t\tfileChooser\r\n\t\t\t\t.setInitialDirectory(new File(System.getProperty(\"user.dir\")));\r\n\t\tFile fichier = fileChooser.showOpenDialog(new Stage());\r\n\r\n\t\tif (fichier != null)\r\n\t\t{\r\n\t\t\ttextFieldFichier.setText(fichier.getPath());\r\n\t\t}\r\n\t}", "void updateTaskName(int id, String name);", "@FXML\r\n private void modifyPartAction() throws IOException {\r\n \r\n if (!partsTbl.getSelectionModel().isEmpty()) {\r\n Part selected = partsTbl.getSelectionModel().getSelectedItem();\r\n partToMod = selected.getId();\r\n generateScreen(\"AddModifyPartScreen.fxml\", \"Modify Part\");\r\n }\r\n else {\r\n displayMessage(\"No part selected for modification\");\r\n }\r\n \r\n }", "private void renameTreeView(String value, TreeNode selectedNode, TreeNode parentNode) {\n VMResource resource = fileTreeNodeFactory.getResource(selectedNode);\n String tabId = selectedNode.getAttribute(\"UniqueId\");\n if (resource instanceof VMFile) {\n int index = value.lastIndexOf(\".\");\n if (index != -1) {\n String newBaseName = value.substring(0, index);\n String newExtension = value.substring(index + 1);\n resource.setName(newBaseName);\n ((VMFile) resource).setExtension(Extension.getByCode(newExtension));\n selectedNode.setIcon(((VMFile) resource).getExtension().getImgPath());\n } else {\n SC.warn(\"Extension is lost!\");\n return;\n }\n } else {\n resource.setName(value);\n }\n TreeNode treeNode;\n if (\"/\".equals(tree.getPath(parentNode))) {\n treeNode = fileTreeNodeFactory.getFileTreeNode(tree, rootId, resource);\n } else {\n treeNode = fileTreeNodeFactory.getFileTreeNode(tree, ((FileTreeNode) parentNode).getResource().getId(), resource);\n }\n if (tabId != null) {\n treeNode.setAttribute(\"UniqueId\", tabId);\n if (editorTabSet.getTab(tabId) != null) {\n editorTabSet.getTab(tabId).setTitle(getTabImgTitle(value, ((VMFile) resource).getExtension()));\n editorTabSet.getTab(tabId).setAttribute(\"ref\", resource.getId());\n editorTabSet.getTab(tabId).setAttribute(\"TabName\", value);\n }\n }\n fileTreeNodeFactory.refresh(editorTabSet, tree, tabRegs);\n treeGrid.sort();\n treeGrid.redraw();\n }", "@FXML\r\n private void updateNumDotsLabel() {\r\n numDotsLabel.setText(\"Number of Dots: \" + picture.getNumDots());\r\n }", "@FXML\n private void toggleFavorite() {\n raise(new ToggleFavoritePersonEvent(id.getText().substring(0, id.getText().indexOf(\".\"))));\n }", "@FXML\r\n void save(ActionEvent event) {\r\n \tFileChooser saver = new FileChooser();\r\n \t//saver.setSelectedExtensionFilter(new FileChooser.ExtensionFilter(\"Images\",\"*.gif\",\"*.png\",\"*.jpg\",\"*.jpeg\"));\r\n \tsaver.setInitialDirectory(this.file.getParentFile());\r\n\r\n saver.getExtensionFilters().addAll(\r\n new FileChooser.ExtensionFilter(\"All Images\", \"*.*\"),\r\n new FileChooser.ExtensionFilter(\"JPG\", \"*.jpg\"),\r\n new FileChooser.ExtensionFilter(\"PNG\", \"*.png\"),\r\n new FileChooser.ExtensionFilter(\"GIF\", \"*.gif\"),\r\n new FileChooser.ExtensionFilter(\"JPEG\", \"*.jpeg\")\r\n );\r\n \tsaver.setInitialFileName(\"solved.\"+this.file.toString().substring(file.toString().lastIndexOf('.')+1));\r\n \tif(new File(fileLocation.getText()).exists()) {\r\n \t\tsaver.setInitialDirectory(new File(fileLocation.getText()).getParentFile());\r\n \t}\r\n \tFile file = saver.showSaveDialog(new Stage());\r\n \tSystem.out.println(file.toString().substring(file.toString().lastIndexOf('.')));\r\n \ttry {\r\n\t\t\tSystem.out.println(ImageIO.write(SwingFXUtils.fromFXImage(tim, null), this.file.toString().substring(file.toString().lastIndexOf('.')+1),file));\r\n\t\t\tSystem.out.println(\"should work\");\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 }", "public final void setNote(com.mendix.systemwideinterfaces.core.IContext context, java.lang.String note)\r\n\t{\r\n\t\tgetMendixObject().setValue(context, MemberNames.Note.toString(), note);\r\n\t}", "@FXML\n public void OAUpdateAppointment(ActionEvent event) {\n\n try {\n FXMLLoader fxmlLoader = new FXMLLoader();\n fxmlLoader.setLocation(getClass().getResource(\"/View/UpdateAppointment.fxml\"));\n Parent add = fxmlLoader.load();\n UpdateAppointmentController updateAppointment = fxmlLoader.getController();\n Appointment appointment = Appointments.getSelectionModel().getSelectedItem();\n int ID = appointment.getAppointmentID();\n Appointment app = DBQuery.retrieveAppointment(ID);\n updateAppointment.receiveAppointment(app);\n Stage stage = new Stage();\n stage.setScene(new Scene(add));\n stage.show();\n\n\n }catch (IOException | NullPointerException e){\n System.out.println(e);\n Alert alert = new Alert(Alert.AlertType.ERROR);\n alert.setTitle(\"Error\");\n alert.setHeaderText(\"No appointment selected.\");\n alert.setContentText(\"Please select a appointment to update.\");\n alert.showAndWait();}\n }", "@Override\n public void setNote(int row, int col, int number) {\n boolean[] notes = grid.getNotes(row, col);\n\n // toggle the note in the model\n if (notes[number]) {\n grid.removeNote(row, col, number);\n\n } else {\n grid.setNote(row, col, number);\n }\n\n // toggle the note in the view\n view.toggleNote(row, col, number);\n }", "private void updateNameView() {\n String insertedText = getName();\n\n if (seekBar.getProgress() == 0) {\n insertedText = \"\";\n }\n\n String text = String.format(res.getString(R.string.str_tv_firstName_value), insertedText);\n\n nameView.setText(text);\n }", "private void updatePanel(String projectName, String courseDetailsFileName, String studentAllocationFileName) {\n\t\ttextPane.setText(\"Project: \" + ((projectName==null)?\"untitled\":projectName) + \"\\nCourse Details File: \" + ((courseDetailsFileName==null)?\"Not Loaded\":courseDetailsFileName) + \"\\nStudent Course Allocation File: \" + ((studentAllocationFileName==null)?\"Not Loaded\":studentAllocationFileName));\n\t\t//panel.add(textPane);\n\t\t//getContentPane().add(panel);\n\t\tgetContentPane().add(textPane);\n\t}", "private void createNameSubScene() {\n\t\tnameSubScene = new ViewSubScene();\n\t\tthis.mainPane.getChildren().add(nameSubScene);\n\t\tInfoLabel enterName = new InfoLabel(\"ENTER YOU NAME\");\n\t\tenterName.setLayoutX(20);\n\t\tenterName.setLayoutY(40);\n\t\t\n\t\tinputName = new TextField();\n\t\tinputName.setLayoutX(120);\n\t\tinputName.setLayoutY(150);\n\t\t\n\t\tnameSubScene.getPane().getChildren().add(enterName);\n\t\tnameSubScene.getPane().getChildren().add(inputName);\n\t\tnameSubScene.getPane().getChildren().add(createLinkButton());\n\t}", "private void editName() {\n Routine r = list.getSelectedValue();\n\n String s = (String) JOptionPane.showInputDialog(\n this,\n \"Enter the new name:\",\n \"Edit name\",\n JOptionPane.PLAIN_MESSAGE,\n null, null, r.getName());\n\n if (s != null) {\n r.setName(s);\n }\n }", "protected void setLabel(StickyNoteFigure stickyNote) {\n\t\tthis.stickyNote = stickyNote;\n\t}", "public void rename()\n\t{\n\t\t// get the object within the node\n\t\tObject string = this.getUserObject();\n\n\t\t// should always be a string, given the constructor\n\t\tif (string instanceof String)\n\t\t{\n\t\t\tstring = JOptionPane.showInputDialog(\"Enter a New Name\");\n\n\t\t\tif (string != null && string instanceof String)\n\t\t\t{\n\t\t\t\tthis.setUserObject(string);\n\t\t\t\tthis.name = (String) string;\n\t\t\t}\n\t\t}\n\t}" ]
[ "0.5931222", "0.5855548", "0.5747207", "0.5713082", "0.57082325", "0.56579775", "0.5629135", "0.56208044", "0.5585741", "0.55659187", "0.55524784", "0.5549596", "0.55417114", "0.5516898", "0.55014646", "0.543363", "0.5430875", "0.5407617", "0.5396417", "0.53923655", "0.5384771", "0.5361136", "0.53398526", "0.53390193", "0.53088146", "0.5305808", "0.5288706", "0.5288484", "0.5284958", "0.5280587", "0.52798015", "0.52715", "0.52490765", "0.5235299", "0.52338004", "0.52238506", "0.52199477", "0.52186453", "0.52162874", "0.5214706", "0.5211964", "0.5209013", "0.52059793", "0.5185925", "0.5184949", "0.517318", "0.51684654", "0.51666415", "0.5158787", "0.5148545", "0.5147129", "0.5139214", "0.5130365", "0.51198703", "0.5116649", "0.5099246", "0.5098477", "0.5094131", "0.50905055", "0.50905055", "0.50905055", "0.50905055", "0.50905055", "0.50764424", "0.5075739", "0.5072983", "0.50662124", "0.5049631", "0.50487083", "0.50475985", "0.5039603", "0.5011038", "0.5000888", "0.4997", "0.4994653", "0.4989291", "0.4987929", "0.49841547", "0.49824682", "0.4982263", "0.49702838", "0.49639553", "0.49595037", "0.49541876", "0.4945182", "0.49383685", "0.4934653", "0.49346042", "0.49266142", "0.492191", "0.49073693", "0.48994136", "0.489815", "0.48970056", "0.48894662", "0.48884296", "0.48835415", "0.48667133", "0.4856561", "0.48547962", "0.48467872" ]
0.0
-1
Updates the Note.fxml file with the Origin X coordinate of the Note
public void getOriginX(){ originX.setText(Double.toString(note.getOriginX())); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void setOffsetBackToFile() {\n\t\tString newXString;\n\t\tString newYString;\n\t\t newXString = String.valueOf(getX().getValueInSpecifiedUnits())+getX().getUserUnit();\n\t newYString = String.valueOf(getY().getValueInSpecifiedUnits())+getY().getUserUnit();\n\t\tjc.getElement().setAttribute(\"x\", newXString);\n\t\tjc.getElement().setAttribute(\"y\", newYString);\n\t\ttry {\n\t\t\tjc.getView().getFrame().writeFile();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} \n\t}", "public void updateXLoc();", "public void setXCoordinate(int newValue)\n {\n x = newValue;\n }", "@FXML\r\n void upload(ActionEvent event) {\r\n \tif(p!=null){\r\n \ttry {\r\n \t\tString note = null;\r\n \t\tif(Note.getText().isEmpty()){note=(\"\");} else {note=Note.getText();}\r\n\t\t\t\tPlacementSQL.UploadNote(String.valueOf(p.getId()),note);\r\n\t\t\t\tGeneralMethods.show(\"Uploaded note for placement \"+ p.getId(), \"Upload Success\");\r\n\t \t\r\n \t} catch (Exception e) {\r\n\t\t\t\tGeneralMethods.show(\"Error in uploading note to placement\", \"Error\");\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n \t} else {\r\n \t\tGeneralMethods.show(\"No placement selected\", \"Error\");\r\n \t}\r\n }", "public void setXLoc(int xLoc){\n myRectangle.setX(xLoc);\n }", "public void setPathOrigin(int x, int y);", "private void setNote(ImageView image) {\n\n // In order to get dimensions of the screen- will be used for determining bounds of transformation\n Display display = getWindowManager().getDefaultDisplay();\n Point size = new Point();\n display.getSize(size);\n int width = size.x;\n int height = size.y;\n // Log.d(LOG_TAG, \"Screen dimensions: \" + width + \", \" + height);\n\n // Getting random point for transformation\n Random rand = new Random();\n float x = rand.nextInt(width - image.getWidth()); // new x coordinate\n float y = rand.nextInt((int) (height)) + height / 2; // new y coordinate\n\n // Setting new coordinates\n image.setX(x);\n image.setY(y);\n // Log.d(LOG_TAG, \"New coordinates \" + x + \", \" + y);\n }", "public void update() {\r\n if(selectedImage == null) {\r\n xStartProperty.setText(\"\");\r\n yStartProperty.setText(\"\");\r\n xEndProperty.setText(\"\");\r\n yEndProperty.setText(\"\");\r\n rotationProperty.setText(\"\");\r\n } else {\r\n xStartProperty.setText(String.valueOf(selectedImage.getXStart()));\r\n yStartProperty.setText(String.valueOf(selectedImage.getYStart()));\r\n xEndProperty.setText(String.valueOf(selectedImage.getXEnd()));\r\n yEndProperty.setText(String.valueOf(selectedImage.getYEnd()));\r\n rotationProperty.setText(String.valueOf(selectedImage.getRotation()));\r\n }\r\n }", "@FXML\n void viewNotes(ActionEvent event) {\n Parent root;\n try {\n //Loads library scene using library.fxml\n root = FXMLLoader.load(getClass().getResource(model.NOTES_VIEW_PATH));\n model.getNotesViewController().setPodcast(this.podcast);\n Stage stage = new Stage();\n stage.setTitle(this.podcast.getTitle()+\" notes\");\n stage.setScene(new Scene(root));\n stage.getIcons().add(new Image(getClass().getResourceAsStream(\"resources/musicnote.png\")));\n stage.setResizable(false);\n stage.showAndWait();\n }\n catch (IOException e) {\n e.printStackTrace();\n }\n\n }", "void setX(int newX) {\n this.xPos = newX;\n }", "public void setXCoordinates(double newX) { this.xCoordinates = newX; }", "void setX(int x) {\n position = position.setX(x);\n }", "private void updatePosition(){\n updateXPosition(true);\n updateYPosition(true);\n }", "protected void editNote()\n\t{\n\t\tActivity rootActivity = process_.getRootActivity();\n\t\tActivityPanel rootActivityPanel = processPanel_.getChecklistPanel().getActivityPanel(rootActivity);\n\t\tActivityNoteDialog activityNoteDialog = new ActivityNoteDialog(rootActivityPanel);\n\t\tint dialogResult = activityNoteDialog.open();\n\t\tif (dialogResult == SWT.OK) {\n\t\t\t// Store the previous notes to determine below what note icon to use\n\t\t\tString previousNotes = rootActivity.getNotes();\n\t\t\t// If the new note is not empty, add it to the activity notes\n\t\t\tif (activityNoteDialog.getNewNote().trim().length() > 0)\n\t\t\t{\n\t\t\t\t// Get the current time\n\t\t\t\tString timeStamp = new SimpleDateFormat(\"d MMM yyyy HH:mm\").format(Calendar.getInstance().getTime());\n\t\t\t\t// Add the new notes (with time stamp) to the activity's notes.\n\t\t\t\t//TODO: The notes are currently a single String. Consider using some more sophisticated\n\t\t\t\t// data structure. E.g., the notes for an activity can be a List of Note objects. \n\t\t\t\trootActivity.setNotes(rootActivity.getNotes() + timeStamp + \n\t\t\t\t\t\t\" (\" + ActivityPanel.AGENT_NAME + \"):\\t\" + activityNoteDialog.getNewNote().trim() + \"\\n\");\n\t\t\t}\n\t\t\t\n\t\t\t// Determine whether the note icon should change.\n\t\t\tif (previousNotes.trim().isEmpty())\n\t\t\t{\n\t\t\t\t// There were no previous notes, but now there are -- switch to image of note with text \n\t\t\t\tif (!rootActivity.getNotes().trim().isEmpty())\n\t\t\t\t\tactivityNoteButton_.setCurrentImage(noteWithTextImage_);\n\t\t\t}\n\t\t\telse // There were previous notes, but now there aren't -- switch to blank note image\n\t\t\t\tif (rootActivity.getNotes().trim().isEmpty())\n\t\t\t\t\tactivityNoteButton_.setCurrentImage(noteWithoutTextImage_);\n\t\t\t// END of determine whether the note icon should change\n\t\t\t\n\t\t\t// Set the tooltip text of the activityNoteButton_ to the current notes associated with the activity. \n\t\t\tactivityNoteButton_.setToolTipText(rootActivity.getNotes());\n\t\t\t\n\t\t\tprocessHeaderComposite_.redraw();\t// Need to redraw the activityNoteButton_ since its image changed.\n\t\t\t// We redraw the entire activity panel, because redrawing just the activityNoteButton_ \n\t\t\t// causes it to have different background color from the activity panel's background color\n\t\t\tSystem.out.println(\"Activity Note is \\\"\" + rootActivity.getNotes() + \"\\\".\");\n\t\t}\n\t}", "public void setLocationX( int newLocationX )\n\t{\n\t\tlocationX = newLocationX;\n\t}", "public void updatePositionValue(){\n m_X.setSelectedSensorPosition(this.getFusedPosition());\n }", "private void setWorldCoordinatesFromFields() {\n if (trackerPanel == null) return;\n OffsetOriginStep step = (OffsetOriginStep) getStep(trackerPanel.getFrameNumber());\n boolean different = step.worldX != xField.getValue() || step.worldY != yField.getValue();\n if (different) {\n XMLControl trackControl = new XMLControlElement(this);\n XMLControl coordsControl = new XMLControlElement(trackerPanel.getCoords());\n step.setWorldXY(xField.getValue(), yField.getValue());\n step.getPosition().showCoordinates(trackerPanel);\n Undo.postTrackAndCoordsEdit(this, trackControl, coordsControl);\n }\n }", "@FXML protected void editPatient(ActionEvent event) throws Exception{\n Parent root = FXMLLoader.load(getClass().getResource(\"EditPatientInformation.fxml\"));\n Stage stage = new Stage();\n Scene scene = new Scene(root);\n \n stage.setScene(scene);\n stage.show();\n }", "public void setContents()\r\n\t{\r\n\t\t// contents.widthProperty().bind(this.prefWidthProperty());\r\n\t\t// contents.heightProperty().bind(this.prefHeightProperty());\r\n\t\t// contents.resize(width, height);\r\n\t\t// contents.relocate(width/4, height/4);\r\n\r\n\t}", "public float getX() { return xCoordinate;}", "public void setMoveTo(Coordinate coordinate);", "private Initializable replaceSceneContent(String fxml) throws Exception {\n FXMLLoader loader = new FXMLLoader();\n InputStream in = IndieAirwaysClient.class.getResourceAsStream(fxml);\n loader.setBuilderFactory(new JavaFXBuilderFactory());\n loader.setLocation(IndieAirwaysClient.class.getResource(fxml));\n AnchorPane page;\n try {\n page = (AnchorPane) loader.load(in);\n } finally {\n in.close();\n }\n Scene scene = new Scene(page, WINDOW_WIDTH, WINDOW_HEIGHT);\n stage.setScene(scene);\n stage.sizeToScene();\n return (Initializable) loader.getController();\n }", "public void setX(int newX)\r\n {\r\n xCoord = newX;\r\n }", "@FXML\r\n private void addPointsIn() {\r\n if (diffPoint > 0) {\r\n int f1 = Integer.parseInt(intelligence.getText());\r\n int f2 = f1 + 1;\r\n intelligence.setText(String.valueOf(f2));\r\n diffPoint--;\r\n point.setText(\"You have \" + diffPoint + \" points\");\r\n }\r\n }", "public void setX(int x){ xPosition = x; }", "public void updateDeleteButtonClicked(){\n loadNewScene(apptStackPane, \"Update_Delete_Appointment.fxml\");\n }", "@FXML\r\n private void addPointsEn() {\r\n if (diffPoint > 0) {\r\n int f1 = Integer.parseInt(engineering.getText());\r\n int f2 = f1 + 1;\r\n engineering.setText(String.valueOf(f2));\r\n diffPoint--;\r\n point.setText(\"You have \" + diffPoint + \" points\");\r\n }\r\n }", "@FXML\r\n private void addPointsCh() {\r\n if (diffPoint > 0) {\r\n int f1 = Integer.parseInt(charistma.getText());\r\n int f2 = f1 + 1;\r\n charistma.setText(String.valueOf(f2));\r\n diffPoint--;\r\n point.setText(\"You have \" + diffPoint + \" points\");\r\n }\r\n }", "public void editCoordinatesInArtifact(int x, int y, int id) {\n Artifact artifact = dataModel.getArtifact(id);\n Coordinates coordinates = dataModel.createCoords(x, y);\n dataModel.setCoordinatesToArtifact(coordinates, artifact);\n }", "public void setFromCoordinates(int fromX, int fromY);", "public void updateCoordinates(KeyEvent event){\n\t\tif (event.getCode() == KeyCode.ENTER){\n\t\t\ttry{\n\t\t\t Double x = Double.parseDouble(originX.getText());\n\t\t\t\tDouble y = Double.parseDouble(originY.getText());\n\t\t\t\tcontroller.ACTIONS.push(new MoveUMLNode(note, x, y));\n\t\t event.consume();\n\t\t\t} catch (Exception e) {\n\t\t\t\tevent.consume();\n\t\t\t}\n\t\t}\n\t}", "@FXML\n public void saveNotes() {\n try {\n Interview selectedInterview = this.listInterview.getSelectionModel().getSelectedItem();\n selectedInterview.setNotes(txtNote.getText());\n selectedInterview.setRecommended(chkRecommended.isSelected());\n\n AlertHelper.showInformationAlert(\"Interview information have been saved.\");\n\n // Reset view\n this.populateInterviewInfo(selectedInterview);\n } catch (Exception ex) {\n AlertHelper.showErrorAlert(\"Unable to save notes: \" + ex.getLocalizedMessage());\n }\n }", "@FXML\n\tvoid initialize() {\n\t\tm = new PR1Model();\n\t\tsetFile(null);\n\t\tselection = new SimpleObjectProperty<Shape>();\n\t\tapplication = new PR1();\n\t\tsetSelection(null);\n\t\tsetClipboard(null);\n\t\tviewState = new SimpleObjectProperty<ViewState>(ViewState.CLOSE);\n\t\tclipboardState = new SimpleObjectProperty<ClipboardState>(ClipboardState.IDLE);\n\t\tdefaultS = m.add(-50, -50);\n\t\tdefaultS.setText(defaultshape);\n\t\t\n\t\t\n\t\tcanvasListener = new ChangeListener<Number>() {\n\n\t\t\t/**\n\t\t\t * Handles the canvas resizing.\n\t\t\t * \n\t\t\t * @param event The event object.\n\t\t\t */\n\t\t\t@Override\n\t\t\tpublic void changed(ObservableValue<? extends Number> observable, Number oldValue, Number newValue) {\n\t\t\t\tviewState.set(ViewState.RESIZE);\n\t\t\t\t\n\t\t\t}\n\t\t};\n\t\t\n\n\t\t\n\t\tgc = canvas.getGraphicsContext2D();\n\t\tcanvas.heightProperty().set(1105);\n\t\tcanvas.widthProperty().set(1105);\n\t\tcanvas.heightProperty().addListener(canvasListener);\n\t\tcanvas.widthProperty().addListener(canvasListener);\n\t\t\n\t\t\n\t\ttcs.prefWidthProperty().bind(tv.widthProperty().divide(11));\n\t\ttccx.prefWidthProperty().bind(tv.widthProperty().divide(11));\n\t\ttccy.prefWidthProperty().bind(tv.widthProperty().divide(11));\n\t\ttcr.prefWidthProperty().bind(tv.widthProperty().divide(11));\n\t\ttcc.prefWidthProperty().bind(tv.widthProperty().divide(11));\n\t\ttcw.prefWidthProperty().bind(tv.widthProperty().divide(11));\n\t\ttch.prefWidthProperty().bind(tv.widthProperty().divide(11));\n\t\ttcaw.prefWidthProperty().bind(tv.widthProperty().divide(11));\n\t\ttcah.prefWidthProperty().bind(tv.widthProperty().divide(11));\n\t\ttct.prefWidthProperty().bind(tv.widthProperty().divide(11));\n\t\ttcd.prefWidthProperty().bind(tv.widthProperty().divide(11));\n\t\t\n\t\ttcs.setCellValueFactory(new PropertyValueFactory<Shape, ShapeType>(\"type\"));\n\t\ttccx.setCellValueFactory(new PropertyValueFactory<Shape, Double>(\"centerX\"));\n\t\ttccy.setCellValueFactory(new PropertyValueFactory<Shape, Double>(\"centerY\"));\n\t\ttcr.setCellValueFactory(new PropertyValueFactory<Shape, Double>(\"radius\"));\n\t\ttcc.setCellValueFactory(new PropertyValueFactory<Shape, Color>(\"color\"));\n\t\ttcw.setCellValueFactory(new PropertyValueFactory<Shape, Double>(\"width\"));\n\t\ttch.setCellValueFactory(new PropertyValueFactory<Shape, Double>(\"height\"));\n\t\ttcaw.setCellValueFactory(new PropertyValueFactory<Shape, Double>(\"arcWidth\"));\n\t\ttcah.setCellValueFactory(new PropertyValueFactory<Shape, Double>(\"arcHeight\"));\n\t\ttct.setCellValueFactory(new PropertyValueFactory<Shape, String>(\"text\"));\n\t\ttcd.setCellValueFactory(new PropertyValueFactory<Shape, Boolean>(\"delete\"));\n\t\t\n\t\tObservableList<ShapeType> shapeValues = FXCollections.observableArrayList(ShapeType.CIRCLE, ShapeType.RECTANGLE, ShapeType.OVAL, ShapeType.ROUNDRECT, ShapeType.TEXT);\n\t\t\n\t\ttcs.setCellFactory(ComboBoxTableCell.forTableColumn(new PR1Model.ShapeTypeStringConverter(), shapeValues));\n\t\ttccx.setCellFactory(TextFieldTableCell.forTableColumn(new DoubleStringConverter()));\n\t\ttccy.setCellFactory(TextFieldTableCell.forTableColumn(new DoubleStringConverter()));\n\t\ttcr.setCellFactory(TextFieldTableCell.forTableColumn(new DoubleStringConverter()));\n\t\t\n\t\ttcw.setCellFactory(TextFieldTableCell.forTableColumn(new DoubleStringConverter()));\n\t\ttch.setCellFactory(TextFieldTableCell.forTableColumn(new DoubleStringConverter()));\n\t\ttcaw.setCellFactory(TextFieldTableCell.forTableColumn(new DoubleStringConverter()));\n\t\ttcah.setCellFactory(TextFieldTableCell.forTableColumn(new DoubleStringConverter()));\n\t\t\n\t\ttcd.setCellFactory(CheckBoxTableCell.forTableColumn(tcd));\n\t\t\n\t\ttct.setCellFactory(TextFieldTableCell.forTableColumn());\n\t\t\n\t\ttcc.setCellFactory(ColorTableCell<Shape>::new);\n\t\t\n\t\tscrpaneright.setFitToHeight(true);\n\t\tscrpaneright.setFitToWidth(true);\n\t\t\n\t\t\n\t\taddMouseListener(new EventHandler<MouseEvent>() {\n\n\t\t\t/**\n\t\t\t * Handles the mouse events.\n\t\t\t * \n\t\t\t * @param event The event object.\n\t\t\t */\n\t\t\t@Override\n\t\t\tpublic void handle(MouseEvent e) {\n\t\t\t\tmouseLastX = e.getX();\n\t\t\t\tmouseLastY = e.getY();\n\t\t\t\tif (viewState.get() == ViewState.CLOSED) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\telse if (e.getEventType() == MouseEvent.MOUSE_PRESSED){\n\t\t\t\t\t\n\t\t\t\t\tsetSelection(m.select(e.getX(), e.getY()));\n\t\t\t\t\tif (e.getButton() == MouseButton.PRIMARY) {\n\t\t\t\t\t\tif (getSelection() != null) {\n\t\t\t\t\t\t\tm.setTop(getSelection());\n\t\t\t\t\t\t}\n\t\t\t\t\t\tviewState.set(ViewState.MODIFIED);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif (e.getEventType() == MouseEvent.MOUSE_DRAGGED) {\n\t\t\t\t\tif (getSelection() != null) {\n\t\t\t\t\t\tif (e.getButton() == MouseButton.PRIMARY) {\n\t\t\t\t\t\t\tgetSelection().setCenterX(e.getX());\n\t\t\t\t\t\t\tgetSelection().setCenterY(e.getY());\n\t\t\t\t\t\t\tviewState.set(ViewState.MODIFIED);\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if (e.getButton() == MouseButton.SECONDARY) {\n\t\t\t\t\t\t\tif(getSelection().getType() == ShapeType.CIRCLE) {\n\t\t\t\t\t\t\t\tgetSelection().setRadius(getSelection().getRadius() + 0.25 * (e.getX() - getSelection().getCenterX()));\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\tgetSelection().setWidth(getSelection().getWidth() + 0.25 * (e.getX() - getSelection().getCenterX()));\n\t\t\t\t\t\t\t\tgetSelection().setHeight(getSelection().getHeight() + 0.25 * (e.getY() - getSelection().getCenterY()));\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tviewState.set(ViewState.MODIFIED);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse if (e.getEventType() == MouseEvent.MOUSE_CLICKED) {\n\t\t\t\t\tif (e.getButton().equals(MouseButton.PRIMARY)){\n\t\t\t\t\t\tswitch (e.getClickCount()) {\n\t\t\t\t\t\tcase 1:\n\t\t\t\t\t\t\tif (getSelection() == null) {\n\t\t\t\t\t\t\t\tsetSelection(m.add(defaultS.getType(), e.getX(), e.getY()));\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tviewState.set(ViewState.MODIFIED);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 2:\n\t\t\t\t\t\t\tsetSelection(m.select(e.getX(), e.getY()));\n\t\t\t\t\t\t\tapplication.goToCD(getSelection());\n\t\t\t\t\t\t\tviewState.set(ViewState.MODIFIED);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tdefault:\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}\n\t\t});\n\t\t\n\t\tm.drawDataProperty().addListener(new ListChangeListener<PR1Model.Shape>() {\n\n\t\t\t/**\n\t\t\t * Handles the model changes.\n\t\t\t * Always repaints, regardless of the event object. Inefficient but works!\n\t\t\t * \n\t\t\t * @param e The event object.\n\t\t\t */\n\t\t\t@Override\n\t\t\tpublic void onChanged(ListChangeListener.Change<? extends PR1Model.Shape> e) { \n\t\t\t\t\n\t\t\t\trepaint(); \n\t\t\t\treTable();\n\t\t\t\tviewState.set(ViewState.MODIFIED);\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\t\n\t\t\n\t\tviewState.addListener(new ChangeListener<ViewState>() {\n\n\t\t\t/**\n\t\t\t * Handles the view state changes (from File menu and window resizing).\n\t\t\t * \n\t\t\t * @param event The event object.\n\t\t\t */\n\t\t\t@Override\n\t\t\tpublic void changed(ObservableValue<? extends ViewState> observable, ViewState oldValue, ViewState newValue) {\n\t\t\t\tif (!newValue.equals(oldValue)) {\n\t\t\t\t\tswitch (newValue) {\n\t\t\t\t\tcase CLOSED: // No file opened (when the application starts or when the current file is closed.\n\t\t\t\t\t\tsetFileMenu(false, false, true, true, false); // Configures individual file menu items (enabled/disabled).\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase NEW: // A new file to be opened.\n\t\t\t\t\t\tif (file != null) {\n\t\t\t\t\t\t\tif (file.exists()) {\n\t\t\t\t\t\t\t\tfile.delete(); // Delete the file if it the file with that name already exists (overwrite).\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\tcase OPEN: // An existing file opened.\n\t\t\t\t\t\tif (file != null) {\n\t\t\t\t\t\t\tCharset charset = Charset.forName(\"US-ASCII\");\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\tfile.createNewFile();\n\t\t\t\t\t\t\t\tBufferedReader reader = Files.newBufferedReader(file.toPath(), charset);\n\t\t\t\t\t\t\t\tString line = null;\n\t\t\t\t\t\t\t\twhile ((line = reader.readLine()) != null) {\n\t\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\t\tm.add(line); // Read the file line by line and add the circle (line) to the model.\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tcatch (NumberFormatException e) { } // Ignores an incorrectly formatted line.\n\t\t\t\t\t\t\t\t\tcatch (ArrayIndexOutOfBoundsException e) { } // Ignores an incorrectly formatted line.\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tviewState.set(ViewState.OPENED);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tcatch (IOException e) {\n\t\t\t\t\t\t\t\tviewState.set(ViewState.CLOSE);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase OPENED: // The file is opened.\n\t\t\t\t\t\tsetFileMenu(true, true, false, true, false); // Configures individual file menu items (enabled/disabled).\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase CLOSE: // The file has to be closed.\n\t\t\t\t\t\tsetFile(null); // Clears the file.\n\t\t\t\t\t\tsetSelection(null); // Clears the selection;\n\t\t\t\t\t\tsetClipboard(null); // Clears the selection;\n\t\t\t\t\t\tm.clear(); // Clears the model.\n\t\t\t\t\t\tclear(); // Clears the view.\n\t\t\t\t\t\tviewState.set(ViewState.CLOSED);\n\t\t\t\t\t\tbreak;\t\t\t\t\n\t\t\t\t\tcase MODIFIED: // The file has been modified, needs saving.\n\t\t\t\t\t\tsetFileMenu(true, true, true, false, false);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase SAVE: // Save the file.\n\t\t\t\t\t\tif (file != null) {\n\t\t\t\t\t\t\tCharset charset = Charset.forName(\"US-ASCII\");\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\tBufferedWriter writer = Files.newBufferedWriter(file.toPath(), charset, StandardOpenOption.WRITE);\n\t\t\t\t\t\t\t\tfor (PR1Model.Shape c : m.drawDataProperty()) {\n\t\t\t\t\t\t\t\t\t//For the project, the line needs to be created in a more complicated way than before,\n\t\t\t\t\t\t\t\t\t//so the work is passed off to a function here.\n\t\t\t\t\t\t\t\t\tString line = lineMaker(c);\n\t\t\t\t\t\t\t\t\twriter.write(line);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\twriter.close();\n\t\t\t\t\t\t\t\tviewState.set(ViewState.OPENED);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tcatch (IOException e) {\n\t\t\t\t\t\t\t\tapplication.goToErrorDialog();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase QUIT: // Quit the application\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (oldValue == ViewState.MODIFIED) {\n\t\t\t\t\t\t\tapplication.goToQuitDialog();\n\t\t\t\t\t\t\t//if the application didn't quit, setback the viewState\n\t\t\t\t\t\t\tviewState.set(oldValue);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tSystem.exit(0);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase RESIZE: // Redraw the view when the application window resizes.\n\t\t\t\t\t\trepaint();\n\t\t\t\t\t\tviewState.set(oldValue);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tdefault:\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\t\n\t\t\n\t\tclipboardState.addListener(new ChangeListener<ClipboardState>() {\n\n\t\t\t/**\n\t\t\t * Handles the clipboard changes.\n\t\t\t * \n\t\t\t * @param event The event object.\n\t\t\t */\n\t\t\t@Override\n\t\t\tpublic void changed(ObservableValue<? extends ClipboardState> observable, ClipboardState oldValue, ClipboardState newValue) {\n\t\t\t\tShape c = null;\n\t\t\t\tif (getSelection() != null) {\n\t\t\t\t\tswitch (newValue) {\n\t\t\t\t\tcase COPY: // Copy the selection to the clipboard. \n\t\t\t\t\t\tsetClipboard(getSelection());\n\t\t\t\t\t\tsetEditMenu(false, false, false); // Enable all Edit menu items.\t\t\t\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase PASTE: // Paste the clipboard to the view.\n\t\t\t\t\t\tc = m.add(mouseLastX, mouseLastY);\n\t\t\t\t\t\tc.setRadius(getClipboard().getRadius());\n\t\t\t\t\t\tc.setColor(getClipboard().getColor());\n\t\t\t\t\t\tc.setHeight(getClipboard().getHeight());\n\t\t\t\t\t\tc.setWidth(getClipboard().getWidth());\n\t\t\t\t\t\tc.setArcheight(getClipboard().getAH());\n\t\t\t\t\t\tc.setArcwidth(getClipboard().getAW());\n\t\t\t\t\t\tc.setType(getClipboard().getType());\n\t\t\t\t\t\tc.setText(getClipboard().getText());\n\t\t\t\t\t\tviewState.set(ViewState.MODIFIED);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase DELETE: // delete the selection.\n\t\t\t\t\t\tc = getSelection();\n\t\t\t\t\t\tsetSelection(null);\n\t\t\t\t\t\tm.remove(c);\n\t\t\t\t\t\tsetEditMenu(true, true, true); // Disable all Edit menu items.\t\t\n\t\t\t\t\t\tviewState.set(ViewState.MODIFIED);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase IDLE:\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tdefault:\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\tclipboardState.set(ClipboardState.IDLE);\n\t\t\t\t}\n\t\t\t}\n\n\t\t});\n\t\tsetFileMenu(false, false, true, true, false);\n\t\tsetEditMenu(true, true, true);\n\t}", "@FXML\n public void editSet(MouseEvent e) {\n AnchorPane root = null;\n FXMLLoader loader = new FXMLLoader(getClass().getResource(\"/view/learn_update.fxml\"));\n try {\n root = loader.load();\n } catch (IOException ex) {\n ex.printStackTrace();\n }\n LearnUpdateController controller = loader.getController();\n controller.initData(txtTitle.getText(), rootController, learnController, apnLearn);\n rootController.setActivity(root);\n root.requestFocus();\n }", "@FXML\n void OnActionShowUpdateCustomerScreen(ActionEvent event) throws IOException {\n stage = (Stage)((Button)event.getSource()).getScene().getWindow();\n scene = FXMLLoader.load(getClass().getResource(\"/View/ModifyCustomer.fxml\"));\n stage.setTitle(\"Modify Customer\");\n stage.setScene(new Scene(scene));\n stage.show();\n }", "@FXML\r\n private void displayPostion(MouseEvent event) {\r\n status.setText(\"X = \" + event.getX() + \". Y = \" + event.getY() + \".\");\r\n }", "public void setDireccionX(int i){\n this.ubicacion.x=i;\n }", "public void applyChanges(ActionEvent event){\n\t\tString text = noteText.getText();\n\t\tdouble x = Double.parseDouble(originX.getText()), y = Double.parseDouble(originY.getText());\n\n\t\tif((!text.equals(note.getText())) || x != note.getOriginX() || y != note.getOriginY()) {\n\t\t\tcontroller.UNDONE_ACTIONS.clear();\n\t\t\ttry {\n\t\t\t\tcontroller.ACTIONS.push(new UpdateNote(note, text, x, y, this));\n\t\t\t\tevent.consume();\n\t\t\t} catch (Exception e) {\n\t\t\t\tcontroller.ACTIONS.push(new ChangeNoteText(note, noteText.getText(), this));\n\t\t\t\tevent.consume();\n\t\t\t}\n\t\t}\n\t}", "void chang_scene_method(String FXML_Name) {\n try {\n AnchorPane pane = FXMLLoader.load(getClass().getResource(FXML_Name));\n anchorPane.getChildren().setAll(pane);\n } catch (IOException e) {\n JOptionPane.showMessageDialog(null, \"Error: \" + e);\n }\n }", "public void relocateToPoint(boolean isUserClick){\n// System.out.println(\"Scene x: \"+point.getX()+\", y: \"+point.getY());\n// System.out.println(\"Local x: \"+getParent().sceneToLocal(point).getX()+\", y: \"+getParent().sceneToLocal(point).getY());\n// System.out.println(\"Relocate x: \"+(getParent().sceneToLocal(point).getX() - (getWidth() / 2))+\", y: \"+(getParent().sceneToLocal(point).getY() - (getHeight() / 2)));\n// System.out.println(getBoundsInLocal().getWidth());\n// System.out.println(widthProperty());\n\n if (isUserClick) {\n double new_x=getParent().sceneToLocal(x,y).getX();\n double new_y=getParent().sceneToLocal(x,y).getY();\n setX(new_x);\n setY(new_y);\n relocate(\n// (getParent().sceneToLocal(x,y).getX() - (widthCountry / 2)),\n// (getParent().sceneToLocal(x,y).getY() - (heightCountry / 2))\n new_x,new_y\n );\n } else {\n relocate(x,y);\n }\n\n\n }", "public void setFixedCoordinates(boolean fixed) {\n if (fixedCoordinates == fixed) return;\n XMLControl control = new XMLControlElement(this);\n if (trackerPanel != null) {\n trackerPanel.changed = true;\n int n = trackerPanel.getFrameNumber();\n steps = new StepArray(getStep(n));\n trackerPanel.repaint();\n }\n if (fixed) {\n keyFrames.clear();\n keyFrames.add(0);\n }\n fixedCoordinates = fixed;\n Undo.postTrackEdit(this, control);\n }", "public void move(){\n super.move();\n load.updateCoordinates(this.x,this.y);\n }", "@Override\n public double getLocationX() {\n return myMovable.getLocationX();\n }", "private void displayWorldCoordinates() {\n int n = trackerPanel == null ? 0 : trackerPanel.getFrameNumber();\n OffsetOriginStep step = (OffsetOriginStep) getStep(n);\n if (step == null) {\n xField.setText(null);\n yField.setText(null);\n } else {\n xField.setValue(step.worldX);\n yField.setValue(step.worldY);\n }\n }", "@FXML\n public void Modify_Item(ActionEvent actionEvent) {\n try {\n FXMLLoader fxmlLoader = new FXMLLoader(getClass().getResource(\"ModifyItemlist.fxml\"));\n Parent root1 = (Parent) fxmlLoader.load();\n Stage stage = new Stage();\n stage.initModality(Modality.APPLICATION_MODAL);\n stage.initStyle(StageStyle.UNDECORATED);\n stage.setTitle(\"New Item\");\n stage.setScene(new Scene(root1));\n stage.show();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public void setLocation(float x, float y);", "public int getXCoordinate ()\n {\n return xCoordinate;\n }", "public void goToModifyPartScene(ActionEvent event) throws IOException {\n\n if(partTableView.getSelectionModel().isEmpty())\n {\n alert.setAlertType(Alert.AlertType.ERROR);\n alert.setContentText(\"Please make sure you've added a Part and selected the Part you want to modify.\");\n alert.show();\n } else {\n int i = partTableView.getSelectionModel().getFocusedIndex();\n setFocusedIndex(i);\n Parent addPartParent = FXMLLoader.load(getClass().getResource(\"ModifyPart.fxml\"));\n Scene modifyPartScene = new Scene(addPartParent);\n\n Stage window = (Stage) ((Node)event.getSource()).getScene().getWindow();\n\n window.setScene(modifyPartScene);\n window.show();\n }\n\n\n }", "public double getNewXPosition() {\n return newPosX;\n }", "protected void update(){\n\t\t_offx = _x.valueToPosition(0);\n\t\t_offy = _y.valueToPosition(0);\n\t}", "void setPos(float x, float y);", "private void move(double newXPos){\n this.setX(newXPos);\n }", "@FXML\r\n public void open(ActionEvent actionEvent) {\r\n FileChooser fileChooser = new FileChooser();\r\n fileChooser.setTitle(\"File Chooser\");\r\n fileChooser.getExtensionFilters().add(new FileChooser.ExtensionFilter(\r\n \"Dot Files\", \"*.dot\"));\r\n try {\r\n File file = fileChooser.showOpenDialog(null);\r\n Path path = file.toPath();\r\n originalPicture = new Picture(new ArrayList<>());\r\n originalPicture.load(path);\r\n picture = originalPicture;\r\n clearCanvas(canvas);\r\n picture.drawDots(canvas);\r\n picture.drawLines(canvas);\r\n draw.setDisable(false);\r\n save.setDisable(false);\r\n updateNumDotsLabel();\r\n } catch(IOException e) {\r\n ALERT.setTitle(\"Error Dialog\");\r\n ALERT.setHeaderText(\"File Load Error\");\r\n ALERT.setContentText(\"Error Loading File\");\r\n ALERT.showAndWait();\r\n } catch(InputMismatchException | NullPointerException |\r\n NumberFormatException | IndexOutOfBoundsException e) {\r\n ALERT.setTitle(\"Error Dialog\");\r\n ALERT.setHeaderText(\"File Load Error\");\r\n ALERT.setContentText(\"File Data Incorrectly Formatted\");\r\n ALERT.showAndWait();\r\n }\r\n }", "public void setPosition(Coordinate coord) {\n this.coordinate = coord;\n }", "@FXML\n public void translation(){\n double x = Double.parseDouble(translation_x.getText());\n double y = Double.parseDouble(translation_y.getText());\n double z = Double.parseDouble(translation_z.getText());\n\n double[] A = t1.getTetraeder()[0].getPoint();\n double[] B = t1.getTetraeder()[1].getPoint();\n double[] C = t1.getTetraeder()[2].getPoint();\n double[] D = t1.getTetraeder()[3].getPoint();\n\n t1.getTetraeder()[0].setPoint(A[0]+x,A[1]+y,A[2]+z);\n t1.getTetraeder()[1].setPoint(B[0]+x,B[1]+y,B[2]+z);\n t1.getTetraeder()[2].setPoint(C[0]+x,C[1]+y,C[2]+z);\n t1.getTetraeder()[3].setPoint(D[0]+x,D[1]+y,D[2]+z);\n\n redraw();\n }", "public int getxCoordinate() {\n return xCoordinate;\n }", "public int getxCoordinate() {\n return xCoordinate;\n }", "public void setX(float x)\n {\n getBounds().offsetTo(x - positionAnchor.x, getBounds().top);\n notifyParentOfPositionChange();\n conditionallyRelayout();\n }", "public void setX(int xpos) {\r\n this.xpos = xpos;\r\n }", "public void setPosition(float x, float y);", "public final void setXDPosition(final String xpos) {_xdpos = xpos;}", "@FXML\n void UpdateCustomer(ActionEvent event) throws IOException {\n\n customer customer = customerTableView.getSelectionModel().getSelectedItem();\n if(customer == null)\n return;\n \n FXMLLoader loader = new FXMLLoader();\n loader.setLocation(getClass().getResource(\"/view/UpdateCustomer.fxml\"));\n loader.load();\n\n UpdateCustomerController CustomerController = loader.getController();\n CustomerController.retrieveCustomer(customer);\n\n stage = (Stage)((Button)event.getSource()).getScene().getWindow();\n Parent scene = loader.getRoot();\n stage.setScene(new Scene(scene));\n stage.show();\n\n }", "@Override\n public final void updateOrigin() {\n }", "public void setXPosition( int xCoordinate ) {\n xPosition = xCoordinate;\n }", "public float getxPosition() {\n return xPosition;\n }", "public void updateLocation()\r\n {\r\n\t\timg.setUserCoordinator(latitude, longitude);\r\n\t\timg.invalidate();\r\n\t}", "public void setStartX(double x)\n {\n startxcoord=x; \n }", "public void setOrigin(){\n // draw X-axis\n graphics2D.draw(new Line2D.Double(leftMiddle, rightMiddle));\n\n // draw string \"+X\" and \"-X\"\n graphics2D.drawString(\"+X\", (int) rightMiddle.getX() - 10, (int) rightMiddle.getY() - 5);\n graphics2D.drawString(\"-X\", (int) leftMiddle.getX() + 10, (int) leftMiddle.getY() + 10);\n\n // draw Y-axis\n graphics2D.draw(new Line2D.Double(topMiddle, bottomMiddle));\n\n // draw string \"+Y\" and \"-Y\"\n graphics2D.drawString(\"+Y\", (int) topMiddle.getX() + 5, (int) topMiddle.getY() + 10);\n graphics2D.drawString(\"-Y\", (int) bottomMiddle.getX() - 15, (int) bottomMiddle.getY());\n\n }", "@FXML\n public void editRuleFile(ActionEvent event) throws IOException {\n RuleFileEditorGUI ruleFileEditor = new RuleFileEditorGUI();\n ruleFileEditor.start(new Stage());\n \n }", "void setPosition(double xPos, double yPos);", "@FXML\n public void OAUpdateAppointment(ActionEvent event) {\n\n try {\n FXMLLoader fxmlLoader = new FXMLLoader();\n fxmlLoader.setLocation(getClass().getResource(\"/View/UpdateAppointment.fxml\"));\n Parent add = fxmlLoader.load();\n UpdateAppointmentController updateAppointment = fxmlLoader.getController();\n Appointment appointment = Appointments.getSelectionModel().getSelectedItem();\n int ID = appointment.getAppointmentID();\n Appointment app = DBQuery.retrieveAppointment(ID);\n updateAppointment.receiveAppointment(app);\n Stage stage = new Stage();\n stage.setScene(new Scene(add));\n stage.show();\n\n\n }catch (IOException | NullPointerException e){\n System.out.println(e);\n Alert alert = new Alert(Alert.AlertType.ERROR);\n alert.setTitle(\"Error\");\n alert.setHeaderText(\"No appointment selected.\");\n alert.setContentText(\"Please select a appointment to update.\");\n alert.showAndWait();}\n }", "@Override\n\tpublic void setX(int x) {\n\t\txPos = x;\n\t}", "protected final void windowLocationControl(){\n\t\tthis.setLocation(0, 0);\n\t}", "@FXML\n private void move() {\n TranslateTransition transition = new TranslateTransition();\n transition.setNode(move);\n transition.setDuration(Duration.seconds(1.5));\n transition.setFromX(-1000);\n transition.setToX(1000);\n transition.setAutoReverse(true);\n transition.setCycleCount(Timeline.INDEFINITE);\n transition.play();\n }", "public void updatePosition() {\n \t\r\n \tx += dx;\r\n \ty += dy;\r\n \t\r\n\t}", "public void setLocation(Coordinate coordinate);", "@Override\n public void start(Stage primaryStage) throws Exception {\n FXMLLoader loader = new FXMLLoader(getClass().getResource(\"bee.fxml\"));\n //loader.setController(new Controller(\"Controller\"));\n Parent root = loader.load();\n\n\n primaryStage.setTitle(\"Bee\");\n primaryStage.initStyle(StageStyle.TRANSPARENT);\n primaryStage.setScene(new Scene(root, Color.TRANSPARENT));\n primaryStage.setResizable(false);\n primaryStage.setMaximized(true);\n primaryStage.setFullScreen(false);\n primaryStage.show();\n\n ImageView bee = (ImageView) root.lookup(\"#bee\");\n bee.setRotate(180);\n\n\n System.out.println();\n bee.setCursor(OPEN_HAND);\n\n BeeMove beeGray = new BeeMove(bee);\n\n beeGray.go();\n\n }", "@FXML\n private void saveFile() {\n FileHandler.saveFileData(stage, dRegister);\n }", "public void setxCoord(Location l) {\n\t\t\n\t}", "@Override\n public void setNote(int row, int col, int number) {\n boolean[] notes = grid.getNotes(row, col);\n\n // toggle the note in the model\n if (notes[number]) {\n grid.removeNote(row, col, number);\n\n } else {\n grid.setNote(row, col, number);\n }\n\n // toggle the note in the view\n view.toggleNote(row, col, number);\n }", "void setPlayerXRelative(int x) {\n }", "private void setOrigin() {\n Hep3Vector origin = VecOp.mult(CoordinateTransformations.getMatrix(), _sensor.getGeometry().getPosition());\n // transform to p-side\n Polygon3D psidePlane = this.getPsidePlane();\n Translation3D transformToPside = new Translation3D(VecOp.mult(-1 * psidePlane.getDistance(),\n psidePlane.getNormal()));\n this._org = transformToPside.translated(origin);\n }", "void openNote(Note note, int position);", "public void setPosicao() {\n Dimension d = this.getDesktopPane().getSize();\n this.setLocation((d.width - this.getSize().width) / 2, (d.height - this.getSize().height) / 2);\n }", "public void getOriginY(){\n\t\toriginY.setText(Double.toString(note.getOriginY()));\n\t}", "void xsetAnchorOffset(org.apache.xmlbeans.XmlInt anchorOffset);", "@Override\n public void undo()\n {\n PointsBinding.setScaling(false);\n property.setValue(orig_points);\n property.getWidget().setPropertyValue(propX, orig_x);\n property.getWidget().setPropertyValue(propY, orig_y);\n property.getWidget().setPropertyValue(propWidth, orig_width);\n property.getWidget().setPropertyValue(propHeight, orig_height);\n PointsBinding.setScaling(true);\n }", "@Override\n public void setPosition(float x, float y) {\n }", "public void setX(double value) {\n origin.setX(value);\n }", "@FXML\n public void setOldData(ActionEvent event){\n PersonDAO personDAO = new PersonDAO();\n ShopUIController shopUIController = new ShopUIController();\n Person oldUser = personDAO.getUserByID(shopUIController.getId());\n //Fill textfields with old data\n firstName.setText(oldUser.getFirstName());\n lastName.setText(oldUser.getLastName());\n email.setText(oldUser.getEmail());\n password.setText(oldUser.getPassword());\n phone.setText(oldUser.getPhone());\n Address oldAddress = oldUser.getAddress();\n address1.setText(oldAddress.getAddress1());\n address2.setText(oldAddress.getAddress2());\n postalCode.setText(oldAddress.getPostalCode());\n city.setText(oldAddress.getCity());\n country.setText(oldAddress.getCountry());\n googlePassword.setText(oldUser.getTfa());\n }", "public void setX() {\n m_frontLeft.setDesiredState(new SwerveModuleState(0, Rotation2d.fromDegrees(45)));\n m_frontRight.setDesiredState(new SwerveModuleState(0, Rotation2d.fromDegrees(-45)));\n m_rearLeft.setDesiredState(new SwerveModuleState(0, Rotation2d.fromDegrees(-45)));\n m_rearRight.setDesiredState(new SwerveModuleState(0, Rotation2d.fromDegrees(45)));\n }", "@Override\n public void propertyChange(PropertyChangeEvent e) {\n this.updateCoords();\n }", "public void changePos(double xP, double yP){ \n this.xCoor += xP;\n this.yCoor += yP;\n \n }", "@FXML\r\n private void addPoints() {\r\n if (diffPoint > 0) {\r\n int f1 = Integer.parseInt(strength.getText());\r\n int f2 = f1 + 1;\r\n strength.setText(String.valueOf(f2));\r\n diffPoint--;\r\n point.setText(\"You have \" + diffPoint + \" points\");\r\n }\r\n }", "public void handleModifyParts()\n {\n FXMLLoader fxmlLoader = new FXMLLoader(getClass().getResource(\"/UI/Views/parts.fxml\"));\n Parent root = null;\n try {\n root = (Parent) fxmlLoader.load();\n\n // Get controller and configure controller settings\n PartController partController = fxmlLoader.getController();\n\n if (getPartToModify() != null)\n {\n partController.setModifyParts(true);\n partController.setPartToModify(getPartToModify());\n partController.setInventory(inventory);\n partController.setHomeController(this);\n\n // Spin up part form\n Stage stage = new Stage();\n stage.initModality(Modality.APPLICATION_MODAL);\n stage.initStyle(StageStyle.DECORATED);\n stage.setTitle(\"Modify Parts\");\n stage.setScene(new Scene(root));\n stage.show();\n\n }\n else {\n Alert alert = new Alert(Alert.AlertType.ERROR);\n alert.setTitle(\"Input Invalid\");\n alert.setHeaderText(\"No part was selected!\");\n alert.setContentText(\"Please select a part to modify from the part table!\");\n alert.show();\n }\n\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "@FXML\n void editTimeline (Timeline timeline) {\n\n// changes the Timeline name\n timeline.name = timeline_nameField.getText().trim();\n\n// exits the add window\n cancelTimelineEdit();\n\n setMessage(\"Successfully edited Timeline.\", false);\n }", "public int getX(){ return xPosition; }", "private void updateShapeOffset() {\n int offsetX = scroller.getOffsetX();\n int offsetY = scroller.getOffsetY();\n shape.setOffset(offsetX, offsetY);\n }", "@FXML\n private void writeFiles(){\n setProfileUNr();\n PonsFileFactory ponsFileFactory = new PonsFileFactory();\n ponsFileFactory.setKykgat(isKykgat.isSelected());\n for (Profile profile : profiles) {\n createFile(ponsFileFactory,profile);\n }\n moveXBy.setText(\"0\");\n }", "public int getXPosition()\n {\n return xPosition;\n }" ]
[ "0.6075119", "0.575114", "0.5534283", "0.544982", "0.5364898", "0.53535825", "0.53227425", "0.5269815", "0.5240614", "0.52241236", "0.51925844", "0.5179841", "0.5166199", "0.51489395", "0.51433915", "0.5061942", "0.505616", "0.50318664", "0.50203276", "0.50196457", "0.5004463", "0.49943748", "0.4987467", "0.49781445", "0.49702337", "0.49471128", "0.4908216", "0.4901797", "0.48709947", "0.48652205", "0.486182", "0.4855392", "0.4848438", "0.48434615", "0.48422888", "0.48417524", "0.48411784", "0.48344427", "0.48272288", "0.48115882", "0.4798826", "0.47985", "0.4795407", "0.47938186", "0.47932526", "0.47806513", "0.47767255", "0.47650763", "0.4752292", "0.4749415", "0.47468004", "0.47380883", "0.4731762", "0.4728822", "0.47101203", "0.4700415", "0.4700415", "0.4699295", "0.46965727", "0.4688634", "0.46873748", "0.46790722", "0.46741304", "0.46687248", "0.46629182", "0.46603438", "0.46548498", "0.46454278", "0.46435183", "0.46369252", "0.46328184", "0.4632653", "0.46302688", "0.4629029", "0.4626296", "0.46085265", "0.4608114", "0.46040475", "0.46032006", "0.459836", "0.4596388", "0.4595762", "0.45921966", "0.45875633", "0.4584142", "0.45804304", "0.4576405", "0.45762447", "0.45746195", "0.45732862", "0.45714483", "0.45711708", "0.45682862", "0.45676824", "0.45667103", "0.45655325", "0.45639092", "0.4561594", "0.45605668", "0.4560032" ]
0.62895423
0
Updates the Note.fxml file with the Origin Y coordinate of the Note
public void getOriginY(){ originY.setText(Double.toString(note.getOriginY())); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void setOffsetBackToFile() {\n\t\tString newXString;\n\t\tString newYString;\n\t\t newXString = String.valueOf(getX().getValueInSpecifiedUnits())+getX().getUserUnit();\n\t newYString = String.valueOf(getY().getValueInSpecifiedUnits())+getY().getUserUnit();\n\t\tjc.getElement().setAttribute(\"x\", newXString);\n\t\tjc.getElement().setAttribute(\"y\", newYString);\n\t\ttry {\n\t\t\tjc.getView().getFrame().writeFile();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} \n\t}", "public void updateYLoc();", "public void setYCoordinate(int newValue)\n {\n y = newValue;\n }", "void setY(int newY) {\n this.yPos = newY;\n }", "public void setY(int y){ yPosition = y; }", "public void setYCoordinates(double newY) { this.yCoordinates = newY; }", "public void setY(int y) { loc.y = y; }", "void setY(int y) {\n position = position.setY(y);\n }", "public void setLocation(int y)\r\n {\r\n pencil.setBounds(110, y, 26, 26);\r\n minus.setBounds(136, y, 26, 26);\r\n draggable.setBounds(20, y, 90, 16);\r\n visible.setLocation(164, y+5);\r\n checkbox.setLocation(136, y);\r\n text.setLocation(20,y);\r\n }", "public void setYPosition(int newY) {\n this.yPosition = newY;\n }", "public void setY(int newY)\r\n {\r\n yCoord = newY;\r\n }", "public void setY(int y){\n\t\tthis.y_location = y;\n\t}", "public void setLocationY( int newLocationY )\n\t{\n\t\tlocationY = newLocationY;\n\t}", "public double getNewYPosition() {\n return newPosY;\n }", "public void setPathOrigin(int x, int y);", "private void setNote(ImageView image) {\n\n // In order to get dimensions of the screen- will be used for determining bounds of transformation\n Display display = getWindowManager().getDefaultDisplay();\n Point size = new Point();\n display.getSize(size);\n int width = size.x;\n int height = size.y;\n // Log.d(LOG_TAG, \"Screen dimensions: \" + width + \", \" + height);\n\n // Getting random point for transformation\n Random rand = new Random();\n float x = rand.nextInt(width - image.getWidth()); // new x coordinate\n float y = rand.nextInt((int) (height)) + height / 2; // new y coordinate\n\n // Setting new coordinates\n image.setX(x);\n image.setY(y);\n // Log.d(LOG_TAG, \"New coordinates \" + x + \", \" + y);\n }", "public void update() {\r\n if(selectedImage == null) {\r\n xStartProperty.setText(\"\");\r\n yStartProperty.setText(\"\");\r\n xEndProperty.setText(\"\");\r\n yEndProperty.setText(\"\");\r\n rotationProperty.setText(\"\");\r\n } else {\r\n xStartProperty.setText(String.valueOf(selectedImage.getXStart()));\r\n yStartProperty.setText(String.valueOf(selectedImage.getYStart()));\r\n xEndProperty.setText(String.valueOf(selectedImage.getXEnd()));\r\n yEndProperty.setText(String.valueOf(selectedImage.getYEnd()));\r\n rotationProperty.setText(String.valueOf(selectedImage.getRotation()));\r\n }\r\n }", "public void setYPosition( int yCoordinate ) {\n yPosition = yCoordinate;\n }", "public void setY(float y)\n {\n getBounds().offsetTo(getBounds().left, y - positionAnchor.y);\n notifyParentOfPositionChange();\n conditionallyRelayout();\n }", "@Override\n\tpublic void update(GalaxyNote galaxynote) {\n\t\t\n\t}", "public float getyPosition() {\n return yPosition;\n }", "private void updatePosition(){\n updateXPosition(true);\n updateYPosition(true);\n }", "private void setWorldCoordinatesFromFields() {\n if (trackerPanel == null) return;\n OffsetOriginStep step = (OffsetOriginStep) getStep(trackerPanel.getFrameNumber());\n boolean different = step.worldX != xField.getValue() || step.worldY != yField.getValue();\n if (different) {\n XMLControl trackControl = new XMLControlElement(this);\n XMLControl coordsControl = new XMLControlElement(trackerPanel.getCoords());\n step.setWorldXY(xField.getValue(), yField.getValue());\n step.getPosition().showCoordinates(trackerPanel);\n Undo.postTrackAndCoordsEdit(this, trackControl, coordsControl);\n }\n }", "public void updateLocation()\r\n {\r\n\t\timg.setUserCoordinator(latitude, longitude);\r\n\t\timg.invalidate();\r\n\t}", "public int getY(){ return yPosition; }", "protected void update(){\n\t\t_offx = _x.valueToPosition(0);\n\t\t_offy = _y.valueToPosition(0);\n\t}", "public void setY(int y) { this.y=y; }", "public int getYCoordinate ()\n {\n return yCoordinate;\n }", "public void setY(int value) {\n this.y = value;\n }", "public double getY_location() {\n return y_location;\n }", "public void setYPOS(double value)\n {\n if(__YPOS != value)\n {\n _isDirty = true;\n }\n __YPOS = value;\n }", "@Override\n\tpublic void setY(int y) {\n\t\tyPos = y;\n\t}", "public void setY(int yPos){\t\t\n\t\ty = new Integer(yPos);\n\t}", "public int getyCoordinate() {\n return yCoordinate;\n }", "public int getyCoordinate() {\n return yCoordinate;\n }", "@Override\n public void setY(int y) {\n this.y=y;\n }", "public int getY() { return loc.y; }", "@Override\n\tpublic void setY(int y) {\n\n\t}", "void setY(int y) {\n this.y = y;\n }", "public final double getY() { return location.getY(); }", "@Override\n\tpublic void setY(int y) {\n\t\t\n\t}", "public Builder setY(float value) {\n \n y_ = value;\n onChanged();\n return this;\n }", "public Builder setY(float value) {\n \n y_ = value;\n onChanged();\n return this;\n }", "public Builder setY(float value) {\n \n y_ = value;\n onChanged();\n return this;\n }", "public void setY(int value)\n\t{\n\t\tgetWorldPosition().setY(value);\n\t}", "public void setY(int y)\n\t{\n\t\tthis.y = y;\t\t\t\t\t\t\t\t\t\t\t\t\t// Update point's y-coordinate \n\t}", "public void setYPos(int y) {\n // from MoveEventHandler\n // convert to real y coord\n // y = yP * (ymaxR - yminr) / (ymaxP - yminP)\n double tmp = config.getMaximumRealY() + (y - config.getMaximumPixelY())*(config.getMaximumRealY() - config.getMinimumRealY())/(config.getMaximumPixelY() - config.getMinimumPixelY());\n ypos.setText(formatter.format(tmp));\n }", "public void setY(double value) {\n origin.setY(value);\n }", "IntegerProperty getYProperty();", "public void setY(int y){\n this.y = y;\n }", "public void setY(int y){\n this.y = y;\n }", "public void setY(int y){\n this.y = y;\n }", "public void setY(int y) {\n this.y = y;\r\n }", "public void setY(float f)\n {\n fy = f;\n setMagnitude();\n }", "public void setY(int ypos) {\r\n this.ypos = ypos;\r\n }", "public void setY(int theY)\r\n {\r\n y = theY;\r\n }", "@Override\n public double getLocationY() {\n return myMovable.getLocationY();\n }", "public void setY(int y)\n {\n this.y = y;\n }", "private void updateLocation() {\n myLocationOnScreenRef.set(myComponent.getLocationOnScreen());\n }", "protected void editNote()\n\t{\n\t\tActivity rootActivity = process_.getRootActivity();\n\t\tActivityPanel rootActivityPanel = processPanel_.getChecklistPanel().getActivityPanel(rootActivity);\n\t\tActivityNoteDialog activityNoteDialog = new ActivityNoteDialog(rootActivityPanel);\n\t\tint dialogResult = activityNoteDialog.open();\n\t\tif (dialogResult == SWT.OK) {\n\t\t\t// Store the previous notes to determine below what note icon to use\n\t\t\tString previousNotes = rootActivity.getNotes();\n\t\t\t// If the new note is not empty, add it to the activity notes\n\t\t\tif (activityNoteDialog.getNewNote().trim().length() > 0)\n\t\t\t{\n\t\t\t\t// Get the current time\n\t\t\t\tString timeStamp = new SimpleDateFormat(\"d MMM yyyy HH:mm\").format(Calendar.getInstance().getTime());\n\t\t\t\t// Add the new notes (with time stamp) to the activity's notes.\n\t\t\t\t//TODO: The notes are currently a single String. Consider using some more sophisticated\n\t\t\t\t// data structure. E.g., the notes for an activity can be a List of Note objects. \n\t\t\t\trootActivity.setNotes(rootActivity.getNotes() + timeStamp + \n\t\t\t\t\t\t\" (\" + ActivityPanel.AGENT_NAME + \"):\\t\" + activityNoteDialog.getNewNote().trim() + \"\\n\");\n\t\t\t}\n\t\t\t\n\t\t\t// Determine whether the note icon should change.\n\t\t\tif (previousNotes.trim().isEmpty())\n\t\t\t{\n\t\t\t\t// There were no previous notes, but now there are -- switch to image of note with text \n\t\t\t\tif (!rootActivity.getNotes().trim().isEmpty())\n\t\t\t\t\tactivityNoteButton_.setCurrentImage(noteWithTextImage_);\n\t\t\t}\n\t\t\telse // There were previous notes, but now there aren't -- switch to blank note image\n\t\t\t\tif (rootActivity.getNotes().trim().isEmpty())\n\t\t\t\t\tactivityNoteButton_.setCurrentImage(noteWithoutTextImage_);\n\t\t\t// END of determine whether the note icon should change\n\t\t\t\n\t\t\t// Set the tooltip text of the activityNoteButton_ to the current notes associated with the activity. \n\t\t\tactivityNoteButton_.setToolTipText(rootActivity.getNotes());\n\t\t\t\n\t\t\tprocessHeaderComposite_.redraw();\t// Need to redraw the activityNoteButton_ since its image changed.\n\t\t\t// We redraw the entire activity panel, because redrawing just the activityNoteButton_ \n\t\t\t// causes it to have different background color from the activity panel's background color\n\t\t\tSystem.out.println(\"Activity Note is \\\"\" + rootActivity.getNotes() + \"\\\".\");\n\t\t}\n\t}", "public int getYPosition()\n {\n return yPosition;\n }", "public int getYPosition()\n {\n return yPosition;\n }", "public double getYPos(){\n return yPos;\n }", "int getY() {\n return yPos;\n }", "public void move(){\n super.move();\n load.updateCoordinates(this.x,this.y);\n }", "public void setY(int y) {\n this.y = y;\n }", "public void setY(int y) {\n this.y = y;\n }", "public void setY(int y) {\n this.y = y;\n }", "public int getYPosition() {\n return this.yPosition;\n }", "public void setLocation(float x, float y);", "public Builder setPositionY(double value) {\n bitField0_ |= 0x00000010;\n positionY_ = value;\n onChanged();\n return this;\n }", "public Builder setPositionY(double value) {\n bitField0_ |= 0x00000008;\n positionY_ = value;\n onChanged();\n return this;\n }", "public Builder setPositionY(double value) {\n bitField0_ |= 0x00000080;\n positionY_ = value;\n onChanged();\n return this;\n }", "public void updatePositionValue(){\n m_X.setSelectedSensorPosition(this.getFusedPosition());\n }", "public int getYPosition() {\n return yPosition;\n }", "public int getY() {\n return positionY;\n }", "public double getyCoordinate() {\n return yCoordinate;\n }", "public int get_Y_Coordinate()\n {\n return currentBallY;\n }", "public void setY(double y)\r\n\t{\t\r\n\t\tvirtualDxfPoint.setTransformationY(y);\r\n\t\tAnchor.setY(y);\r\n\t}", "public void editCoordinatesInArtifact(int x, int y, int id) {\n Artifact artifact = dataModel.getArtifact(id);\n Coordinates coordinates = dataModel.createCoords(x, y);\n dataModel.setCoordinatesToArtifact(coordinates, artifact);\n }", "@XmlElement(name = \"yposition\") //TODO: Bonnie added this line!\r\n public int getyPos() {\r\n return yPos;\r\n }", "public int setObjYCoord() {\n\t\tint objY = ThreadLocalRandom.current().nextInt(1, getRoomLength() - 1);\r\n\t\treturn objY;\r\n\t}", "public void setyPos(int yPos) {\r\n this.yPos = yPos;\r\n }", "public int getY() {\n return this.coordinate.y;\n }", "public void resetY() {this.startY = 11.3f;}", "public Builder setY(float value) {\n bitField0_ |= 0x00000002;\n y_ = value;\n onChanged();\n return this;\n }", "public Builder setY(float value) {\n bitField0_ |= 0x00000002;\n y_ = value;\n onChanged();\n return this;\n }", "public int getyPos() {\n return yPos;\n }", "public int getLocY() {\n return locY;\n }", "public void updateGridY();", "public void setY(int y){\r\n\t\tthis.y = y;\r\n\t}", "public void setY (int index, int y) { coords[index][1] = y; }", "public int getY()\r\n {\r\n return yLoc;\r\n }", "public void setY( int y ) {\n\t\t//not checking if y is valid because that depends on the coordinate system\n\t\tthis.y = y;\n\t}", "public void setProgresionY(int i){\n this.ubicacion.y=i;\n }", "public void setyCoord(Location l) {\n\t\t\n\t}", "public void setY(int y) {\n\tbaseYCoord = y;\n}", "public void setFrameY(double aY) { double y = _y + aY - getFrameY(); setY(y); }", "public int getLocY() {\n return locY;\n }", "public float getAttachLocationY() {\n\t\treturn attachLocationY;\n\t}" ]
[ "0.6347798", "0.604128", "0.58393526", "0.58187526", "0.56909996", "0.5605341", "0.54634607", "0.5451065", "0.5413832", "0.53818107", "0.5379753", "0.5378963", "0.5333729", "0.52965623", "0.52767944", "0.5267926", "0.52262104", "0.5191014", "0.5185671", "0.5185565", "0.51450986", "0.5142573", "0.51384807", "0.51325786", "0.512893", "0.5128524", "0.5123253", "0.5108398", "0.51075596", "0.50884944", "0.5080796", "0.50704795", "0.5067253", "0.50666094", "0.50666094", "0.50376046", "0.50170916", "0.50054467", "0.4999638", "0.49967405", "0.49955994", "0.49888113", "0.49888113", "0.49888113", "0.49867824", "0.4981531", "0.49753308", "0.4973801", "0.49700308", "0.49631667", "0.49631667", "0.49631667", "0.4963028", "0.49627703", "0.495397", "0.49469706", "0.49465522", "0.49461275", "0.49442992", "0.49346355", "0.493011", "0.493011", "0.49291104", "0.4927466", "0.4926958", "0.49246025", "0.49246025", "0.49246025", "0.49191418", "0.49105954", "0.4910316", "0.49072075", "0.49070278", "0.49015352", "0.49001017", "0.48987836", "0.48955873", "0.48927468", "0.4889445", "0.48870298", "0.48845848", "0.48788968", "0.48768234", "0.48713952", "0.48675343", "0.4864201", "0.4864201", "0.48510998", "0.48491493", "0.48490715", "0.484836", "0.48463267", "0.4843078", "0.484217", "0.4840676", "0.48386478", "0.48375246", "0.4827059", "0.48225", "0.48213065" ]
0.6446651
0
Moves the note to a new location based on the values entered into the inspector Object for X and Y coordinates. Activates when the user presses Enter
public void updateCoordinates(KeyEvent event){ if (event.getCode() == KeyCode.ENTER){ try{ Double x = Double.parseDouble(originX.getText()); Double y = Double.parseDouble(originY.getText()); controller.ACTIONS.push(new MoveUMLNode(note, x, y)); event.consume(); } catch (Exception e) { event.consume(); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void moveToNewLocation() {\r\n System.out.println(\"\\nThis is the move to a new location option\");\r\n }", "public void setMoveTo(Coordinate coordinate);", "public void makemove (char piece)\n {\n\tint x = IBIO.inputInt (\"\\nEnter the x-coordinate: \");\n\tint y = IBIO.inputInt (\"Enter the y-coordinate: \");\n\twhile (!isValid (x, y))\n\t{\n\t System.out.println (\"Error - invalid coordinate. Try again.\");\n\t x = IBIO.inputInt (\"\\nEnter the x-coordinate: \");\n\t y = IBIO.inputInt (\"Enter the y-coordinate: \");\n\t}\n\n\n\tif (x == 1 && y == 1)\n\t a = piece;\n\telse if (x == 2 && y == 1)\n\t b = piece;\n\telse if (x == 3 && y == 1)\n\t c = piece;\n\telse if (x == 1 && y == 2)\n\t d = piece;\n\telse if (x == 2 && y == 2)\n\t e = piece;\n\telse if (x == 3 && y == 2)\n\t f = piece;\n\telse if (x == 1 && y == 3)\n\t g = piece;\n\telse if (x == 2 && y == 3)\n\t h = piece;\n\telse if (x == 3 && y == 3)\n\t i = piece;\n }", "public void actionPerformed(ActionEvent e)\r\n {\r\n String text; // text for note\r\n \r\n // handle new note requests\r\n if ((e.getSource() == newNote) && (! snp.isFull()))\r\n {\r\n // get note contents from the user and add a new note to the note pad\r\n text=JOptionPane.showInputDialog(\"Enter description of note:\");\r\n if ((text!=null) && (text.length()!=0))\r\n {\r\n snp.addNote(text);\r\n }\r\n }\r\n \r\n // if pad is non-empty handle navigation and deletion\r\n if (! snp.isEmpty())\r\n {\r\n // handle delete note requests\r\n if (e.getSource() == delNote)\r\n {\r\n // request deletion of the current note from the note pad\r\n snp.deleteNote();\r\n }\r\n \r\n // handle navigation requests to the previous note\r\n if (e.getSource() == prevNote)\r\n {\r\n // request move to previous note in the note pad\r\n snp.previousNote();\r\n }\r\n \r\n // handle navigation requests to the next note\r\n if (e.getSource() == nextNote)\r\n {\r\n // request move to next note in the note pad\r\n snp.nextNote();\r\n } \r\n }\r\n //update GUI with contents of current note \r\n repaint();\r\n }", "public void move() {\n this.pposX = this.posX;\n this.pposY = this.posY;\n this.posX = newPosX;\n this.posY = newPosY;\n }", "@Override\n\tpublic void excute() {\n\t\tmoveEvent.move(commandinfo.getValue() * 200);\n\t}", "public void getInputAndMove() {\n\t\tSystem.out.println(\"Where to move?\");\n\t\tScanner keyboard = new Scanner(System.in);\n\t\tString input = keyboard.nextLine();\n\t\t\n\t\t\n\t\tAvatar testAvatar = new Avatar(avatar.getLocation());\n\t\ttestAvatar.move(input);\n\n\t\tif (wall.overlapsWith(testAvatar)) {\n\t\t\tSystem.out.println(\"\\nYou have hit a wall\");\n\t\t} \n\t\telse {\n\t\t\tavatar.move(input);\n\t\t\tSystem.out.println(\"\\nYou have moved\");\n\t\t}\n\t}", "public void redoMove(){\n circleObj.setX(newX);\n circleObj.setY(newY);\n }", "@Override\n public void enterRoom(Person x) {\n occupant = x;\n x.setxLoc(this.xLoc);\n x.setyLoc(this.yLoc);\n System.out.println(\"Yay! You find an awesome disco room. \");\n }", "public void actionPerformed(ActionEvent event) {\t// Positionsdaten der bewegbaren Objekte aktualisieren und im Anschluss neu zeichnen\n \tEnemy.move();\n\t Player.move();\n\t TemporaryItem.updater();\n\t //ProjectileManager.controlProjectiles();\n\t Projectile.move();\n\t DisplayManager.updateDisplayTimers();\n\t Traps.updater();\n\t\n\t Controls.controls.updateGamePad();\n \trepaint();\t\t// neu zeichnen\n }", "@Override\r\n public void act() \r\n {\n int posx = this.getX();\r\n int posy = this.getY();\r\n //calculamos las nuevas coordenadas\r\n int nuevox = posx + incx;\r\n int nuevoy = posy + incy;\r\n \r\n //accedemos al mundo para conocer su tamaño\r\n World mundo = this.getWorld();\r\n if(nuevox > mundo.getWidth())//rebota lado derecho\r\n {\r\n incx = -incx;\r\n }\r\n if(nuevoy > mundo.getHeight())//rebota en la parte de abajo\r\n {\r\n incy = -incy;\r\n }\r\n \r\n if(nuevoy < 0)//rebota arriba\r\n {\r\n incy = -incy;\r\n }\r\n if(nuevox < 0)//rebota izquierda\r\n {\r\n incx = -incx;\r\n }\r\n //cambiamos de posicion a la pelota\r\n this.setLocation(nuevox,nuevoy);\r\n }", "private void setUpNote() {\n _noteHead = new Ellipse(Constants.NOTE_HEAD_WIDTH, Constants.NOTE_HEAD_HEIGHT);\n _noteHead.setFill(Color.WHITE);\n _noteHead.setStroke(Color.BLACK);\n _noteHead.setStrokeWidth(Constants.STROKE_WIDTH);\n _noteHead.setCenterX(Constants.NOTE_X_LOC);\n // switch statement for the note value that was passed in\n switch (_note) {\n case 0:\n _noteHead.setCenterY(Constants.C4_LOCATION);\n _ledgerLine.setStartX(Constants.NOTE_X_LOC - Constants.LEDGER_LINE_WIDTH/2);\n _ledgerLine.setEndX(Constants.NOTE_X_LOC + Constants.LEDGER_LINE_WIDTH/2);\n _ledgerLine.setStartY(Constants.C4_LOCATION);\n _ledgerLine.setEndY(Constants.C4_LOCATION);\n break;\n case 1:\n if (_accidental == 's') {\n _noteHead.setCenterY(Constants.C4_LOCATION);\n _ledgerLine.setStartX(Constants.NOTE_X_LOC - Constants.LEDGER_LINE_WIDTH/2);\n _ledgerLine.setEndX(Constants.NOTE_X_LOC + Constants.LEDGER_LINE_WIDTH/2);\n _ledgerLine.setStartY(Constants.C4_LOCATION);\n _ledgerLine.setEndY(Constants.C4_LOCATION);\n this.setUpSharp();\n break;\n }\n else {\n _noteHead.setCenterY(Constants.D4_LOCATION); \n this.setUpFlat();\n break;\n }\n case 2:\n _noteHead.setCenterY(Constants.D4_LOCATION);\n break;\n case 3: \n if (_accidental == 's') {\n _noteHead.setCenterY(Constants.D4_LOCATION);\n this.setUpSharp();\n break;\n }\n else {\n _noteHead.setCenterY(Constants.E4_LOCATION);\n _staffLine.setStartX(Constants.NOTE_X_LOC - Constants.STAFF_LINE_WIDTH/2);\n _staffLine.setEndX(Constants.NOTE_X_LOC + Constants.STAFF_LINE_WIDTH/2); \n _staffLine.setStartY(Constants.E4_LOCATION);\n _staffLine.setEndY(Constants.E4_LOCATION);\n this.setUpFlat();\n break;\n }\n case 4:\n _noteHead.setCenterY(Constants.E4_LOCATION);\n _staffLine.setStartX(Constants.NOTE_X_LOC - Constants.STAFF_LINE_WIDTH/2);\n _staffLine.setEndX(Constants.NOTE_X_LOC + Constants.STAFF_LINE_WIDTH/2); \n _staffLine.setStartY(Constants.E4_LOCATION);\n _staffLine.setEndY(Constants.E4_LOCATION);\n break;\n case 5:\n _noteHead.setCenterY(Constants.F4_LOCATION);\n break;\n case 6:\n if (_accidental == 's') {\n _noteHead.setCenterY(Constants.F4_LOCATION);\n this.setUpSharp();\n break;\n }\n else {\n _noteHead.setCenterY(Constants.G4_LOCATION);\n _staffLine.setStartX(Constants.NOTE_X_LOC - Constants.STAFF_LINE_WIDTH/2);\n _staffLine.setEndX(Constants.NOTE_X_LOC + Constants.STAFF_LINE_WIDTH/2); \n _staffLine.setStartY(Constants.G4_LOCATION);\n _staffLine.setEndY(Constants.G4_LOCATION);\n this.setUpFlat();\n break;\n }\n case 7:\n _noteHead.setCenterY(Constants.G4_LOCATION);\n _staffLine.setStartX(Constants.NOTE_X_LOC - Constants.STAFF_LINE_WIDTH/2);\n _staffLine.setEndX(Constants.NOTE_X_LOC + Constants.STAFF_LINE_WIDTH/2); \n _staffLine.setStartY(Constants.G4_LOCATION);\n _staffLine.setEndY(Constants.G4_LOCATION);\n break;\n case 8:\n if (_accidental == 's') {\n _noteHead.setCenterY(Constants.G4_LOCATION);\n this.setUpSharp();\n break;\n }\n else {\n _noteHead.setCenterY(Constants.A4_LOCATION);\n this.setUpFlat();\n break;\n } \n case 9:\n _noteHead.setCenterY(Constants.A4_LOCATION);\n break;\n case 10:\n if (_accidental == 's') {\n _noteHead.setCenterY(Constants.A4_LOCATION);\n this.setUpSharp();\n break;\n }\n else {\n _noteHead.setCenterY(Constants.B4_LOCATION);\n _staffLine.setStartX(Constants.NOTE_X_LOC - Constants.STAFF_LINE_WIDTH/2);\n _staffLine.setEndX(Constants.NOTE_X_LOC + Constants.STAFF_LINE_WIDTH/2); \n _staffLine.setStartY(Constants.B4_LOCATION);\n _staffLine.setEndY(Constants.B4_LOCATION);\n this.setUpFlat();\n break;\n } \n case 11:\n _noteHead.setCenterY(Constants.B4_LOCATION);\n _staffLine.setStartX(Constants.NOTE_X_LOC - Constants.STAFF_LINE_WIDTH/2);\n _staffLine.setEndX(Constants.NOTE_X_LOC + Constants.STAFF_LINE_WIDTH/2); \n _staffLine.setStartY(Constants.B4_LOCATION);\n _staffLine.setEndY(Constants.B4_LOCATION);\n break;\n \n }\n }", "public void moveTo(int x, int y) {\n hide();\n this.x = x;\n this.y = y;\n show();\n }", "public void act() \n {\n // Add your action code here.\n if(Greenfoot.isKeyDown(\"up\")){\n setLocation(getX(), getY()-5); // up\n }\n if(Greenfoot.isKeyDown(\"down\")){\n setLocation(getX(), getY()+5); // down\n }\n }", "public void enterRoom(Person x) {\n\t\tSystem.out.println(\"You enter a plain old room\");\n\t\toccupant = x;\n\t\tx.setxLoc(this.xLoc);\n\t\tx.setyLoc(this.yLoc);\n\t}", "@Override\r\n\tpublic void press(EditorInterface i, MouseEvent e) {\n\t\tx = e.getX();\r\n\t\ty = e.getY();\r\n\t\taction = \"presse\";\r\n\t\t\r\n\t}", "public Point movePoint(){\n\t\tSystem.out.println(\"Enter new zero point for figure\");\n\t\tthis.in = new Scanner(System.in);\n\t\tString temp = in.nextLine();\n\t\tString[] data = temp.trim().split(\" \");\n\t\tint a = Integer.parseInt(data[0]);\n\t\tint\tb = Integer.parseInt(data[1]);\n\t\tPoint p = new Point(a, b);\n\t\treturn p;\n\t}", "void move_ship() {\n if (pressed_key_codes.contains(KeyCode.A)) {\n ship.moveLeft();\n ship_image_view.setX(ship.x_position);\n }\n if (pressed_key_codes.contains(KeyCode.D)) {\n ship.moveRight();\n ship_image_view.setX(ship.x_position);\n }\n }", "@Override\n public void actionPerformed(ActionEvent event) \n {\n \n\n // Get user's input\n userInput1 = ship1Field.getText();\n if(ship2Field != null)\n {\n userInput2 = ship2Field.getText();\n }\n\n\n setVisible(false);\n \n }", "public void moveTo (Coordinate c) throws Exception\n\t{\n\t\tcurrentLocation = c;\n\t\tgrid[c.x][c.y] = GridChar.VISITED;\n\t}", "public void actionPerformed(ActionEvent event)\n {\n if (add)\n {\n if (validInput())\n {\n Ship newShip = map.addUserShip(\"Lobsterboat\",shipName,\n xcoord,ycoord,speed,direction);\n main.setUserShip(newShip);\n map.repaint();\n main.closeStartWindow();\n }\n }\n else\n {\n main.closeStartWindow();\n }\n }", "public void change_escudo_pos() {\n\t\tif (!escudo.isCaught())\n\t\t\tlabirinto.lab[escudo.getX_coord()][escudo.getY_coord()] = 'O';\n\t}", "public void act() \n {\n move(-16);\n \n \n if (isAtEdge())\n {\n setLocation(700,getY());\n }\n \n if (isTouching(Shots.class))\n {\n getWorld().addObject(new SpaceObject(), 500,Greenfoot.getRandomNumber(400));\n }\n \n }", "@Override public void actionPerformed(ActionEvent e) {\r\n super.actionPerformed(e);\r\n Editor ce = Globals.curEditor();\r\n SelectionManager sm = ce.getSelectionManager();\r\n if (sm.getLocked()) {\r\n Globals.showStatus(\"Cannot Modify Locked Objects\");\r\n return;\r\n }\r\n\r\n int dx = 0, dy = 0;\r\n switch (direction) {\r\n case LEFT:\r\n dx = 0 - magnitude;\r\n break;\r\n case RIGHT:\r\n dx = magnitude;\r\n break;\r\n case UP:\r\n dy = 0 - magnitude;\r\n break;\r\n case DOWN:\r\n dy = magnitude;\r\n break;\r\n }\r\n // Should I move it so that it aligns with the next grid?\r\n sm.translate(dx, dy);\r\n sm.endTrans();\r\n }", "@Override\r\n\tpublic void moveTo(float x, float y) {\n\t\t\r\n\t}", "Coordinate getCoordinate() throws ChangeActionException, HaltException {\n cliModel.showYourWindow();\n printStream.println(\"\\n\\nChoose the row\");\n int row = takeInput(0, 3);\n printStream.println(\"\\n\\nChoose the column\");\n int col = takeInput(0, 4);\n printStream.println(\"\\n\\nYou chose the position. Press: \\n [1] to accept [2] to change [3] to do another action\");\n int choice = takeInput(1, 3);\n switch(choice) {\n case 1 : return new Coordinate(row,col);\n case 2 : return getCoordinate();\n default : break;\n }\n throw new ChangeActionException();\n }", "public void mouseEntered(MouseEvent evt) {\n\t\t\t// newX = evt.getX();\n\t\t\t// newY = evt.getY();\n\t\t\t// System.out.println(newX + \" Entered \" + newY);\n\t\t}", "public void change_sword_pos() {\n\t\tif (!heroi.isArmado())\n\t\t\tlabirinto.setLabCell(espada.getX_coord(), espada.getY_coord(), 'E');\n\t}", "@Override\n public void enterRoom(Person x) {\n\n occupant = x;\n x.setxLoc(this.xLoc);\n x.setyLoc(this.yLoc);\n System.out.println(\"Edmund is too good at coding! You faint from his greatness!\");\n System.out.println(\" | _______________ |\\n\" +\n \" | |XXXXXXXXXXXXX| |\\n\" +\n \" | |XXXXXXXXXXXXX| |\\n\" +\n \" | |XXXXXXXXXXXXX| |\\n\" +\n \" | |XXXXXXXXXXXXX| |\\n\" +\n \" | |XXXXXXXXXXXXX| |\\n\" +\n \" |_________________|\\n\" +\n \" _[_______]_\\n\" +\n \" ___[___________]___\\n\" +\n \"| [_____] []|__\\n\" +\n \"| [_____] []| \\\\__\\n\" +\n \"L___________________J \\\\ \\\\___\\\\/\\n\" +\n \" ___________________ /\\\\\\n\" +\n \"/###################\\\\ (__)\");\n Runner.gameOff();\n }", "protected void moveTo (int x, int y) {\r\n\t\tthis.x = x;\r\n\t\tthis.y = y;\r\n\t}", "public void enterRoom(Person x)\n {\n System.out.println(\"You enter a plain old room\");\n occupant = x;\n x.setxLoc(this.xLoc);\n x.setyLoc(this.yLoc);\n\n if (beenthere = true) {\n System.out.println(\"You have visited this room\");\n }\n beenthere = true;\n\n }", "@Override\r\n\tpublic void press(EditorInterface i, MouseEvent e) {\r\n\t\tthis.x = e.getX();\r\n\t\tthis.y = e.getY();\r\n\t\t\r\n\t\r\n\t}", "void actionEdit(int position);", "@Override\n public void move() {\n _location.x++;\n }", "public void makeMove(){\n System.out.println(\"Player choose x or o.\");\n String chose = keyword.nextLine();\n int row;\n int column;\n if (chose.equals(\"x\")){\n System.out.println(\"Type coordenates for first move.\");\n System.out.println(\"Type row.\");\n row = keyword.nextInt();\n System.out.println(\"Type column.\");\n column = keyword.nextInt();\n getBoard(row, column, \"x\");\n }\n else if (chose.equals(\"o\")){\n System.out.println(\"Type coordenates for first move.\");\n System.out.println(\"Type row.\");\n row = keyword.nextInt();\n System.out.println(\"Type column.\");\n column = keyword.nextInt();\n getBoard(row, column, \"o\");\n }\n }", "void addNote(int x, int y);", "@Override\n\tpublic void mouseEntered(MouseEvent arg0) {\n\t\tthis.model.setCursorPosition(this.panel.getX(), this.panel.getY());\n\t\t\n\t}", "public void actionPerformed(ActionEvent e)\n {\n //sets correct or wrong notes to invisible\n response.setVisible(false);\n response2.setVisible(false); \n if(points[x] == value) //checks if input matches answer\n {\n correct = true; \n response2.setVisible(true); //tells user they were correct\n }\n else\n {\n response.setVisible(true); //tells user they were wrong\n }\n \n //empties beaker \n lab3.setVisible(false); \n lab4.setVisible(false);\n lab5.setVisible(false);\n lab6.setVisible(false);\n lab7.setVisible(false);\n\n value = 0; //value to initial position and\n y = 610; //resets y coordinate \n }", "public void goToXY(float x, float y) {\n float oldX, oldY;\n oldX = pos.x;\n oldY = pos.y; \n pos.x = x; \n pos.y = y;\n if (penDown) {\n pen.beginDraw();\n pen.line(oldX,oldY,pos.x,pos.y);\n pen.endDraw();\n }\n }", "public void secondPlayer(){\n firstName = enterName.getText();\n //testing if we received it\n System.out.println(firstName + \" ...........\");\n //Change some info\n enterName.clear();\n writeNote.setText(\"Enter Second Player Name\");\n writeNote.setFont(Font.font(\"Arial\", FontWeight.BOLD, 45));\n //button action Click\n enterAndContinue.setOnAction(new EventHandler() {\n @Override\n public void handle(Event event) {\n //Move to explain BorderPane\n explainWhoStart();\n }\n });\n }", "public void moveTo(Actor actor, Location newLocation)\n\t {\n\t\t \t//creating the variables to make the code easier to read\n\t\t \tGrid<Actor> grid = actor.getGrid();\n\t\t \tLocation location = actor.getLocation();\n\t\t \n\t if (grid == null)\n\t throw new IllegalStateException(\"This actor is not in a grid.\");\n\t if (grid.get(location) != actor)\n\t throw new IllegalStateException(\n\t \"The grid contains a different actor at location \"\n\t + location + \".\");\n\t if (!grid.isValid(newLocation))\n\t throw new IllegalArgumentException(\"Location \" + newLocation\n\t + \" is not valid.\");\n\n\t if (newLocation.equals(location))\n\t return;\n\t \n\t //this line below was added\n\t actor.removeSelfFromGrid();\n\t //changed the code slightly to make sure now that not being called from within the actor that we refer to the\n\t //actor itself when removing and placing actor on grid\n\t //grid.remove(location);\n\t Actor other = grid.get(newLocation);\n\t if (other != null)\n\t other.removeSelfFromGrid();\n\t location = newLocation;\n\t actor.putSelfInGrid(grid, location);\n\t //grid.put(location, actor);\n\t }", "public void moveTo(double newX, double newY, double newZ){\n pos[0] = newX;\n pos[1] = newY;\n pos[2] = newZ;\n }", "@Override\n\t\t\tpublic void enter(InputEvent event, float x, float y, int pointer,\n\t\t\t\t\tcom.badlogic.gdx.scenes.scene2d.Actor fromActor) {\n\t\t\t\tgetStage().setScrollFocus(centerPanel);\n\t\t\t}", "public abstract void moveTo(double x, double y);", "void setLocation(int x, int y);", "public void updatePosition(Coordinate c) {\n\t\tpointMoveTo.setCoordinate(c);\n\t\tPedSimCity.agents.setGeometryLocation(agentLocation, pointMoveTo);\n\t}", "final protected void setSpawnPosition(int newX, int newY)\n {\n spawnPoint = new Point(newX, newY);\n boundingBox.setLocation(spawnPoint);\n }", "public void movingWithArrowKey() {\n addMouseListener(new MouseAdapter() {\n @Override\n public void mousePressed(MouseEvent e) {\n super.mousePressed(e);\n GameWindow.this.requestFocus();\n }\n });\n\n //add key listener so user can use the arrows key to move the screen around\n addKeyListener(new KeyAdapter() {\n @Override\n public void keyPressed(KeyEvent e) {\n GameWindow.this.requestFocus();\n System.out.printf(\"(%d, %d)\\n\", mapX, mapY);\n if (e.getKeyCode() == KeyEvent.VK_RIGHT) {\n if (mapX - 15 >= -2575) {\n mapX -= 15;\n }\n } else if (e.getKeyCode() == KeyEvent.VK_LEFT) {\n if (mapX + 15 <= 0) {\n mapX += 15;\n }\n } else if (e.getKeyCode() == KeyEvent.VK_UP) {\n if (mapY + 15 <= 0) {\n mapY += 15;\n }\n } else if (e.getKeyCode() == KeyEvent.VK_DOWN) {\n if (mapY - 15 >= -1480) {\n mapY -= 15;\n }\n }\n gridCell.setMapX(mapX);\n gridCell.setMapY(mapY);\n repaint();\n }\n });\n setFocusable(true);\n }", "public void moveTo(int newX, int newY) {\n xPosition = newX-radius;\n yPosition = newY-radius;\n }", "private void move(double newXPos){\n this.setX(newXPos);\n }", "void moveToPoint(float x, float y) {\n _x = x;\n _y = y;\n }", "@Override\n public void onClick(View v) {\n if (TextUtils.isEmpty(editText.getText().toString())){\n Toast.makeText(getContext(), \"Enter note!\", Toast.LENGTH_SHORT).show();\n return;\n } else {\n alertDialog.dismiss();\n }\n\n // check if user updating note\n\n if (shouldUpdate && note != null){\n // update note by it's id\n note.setNote(editText.getText().toString());\n updateNote(note, position);\n } else {\n // create new note\n //createNote(editText.getText().toString());\n }\n }", "void setPos(float x, float y);", "public void notePressed(int note) {\n seq.stop();\n seq.addNote(note, 200, 110);\n\n sequence = sequence.withNote(note, cursor);\n controller.setMidiSequence(sequence);\n\n if (cursor < 4) {\n cursor++;\n controller.setSelected(cursor);\n }\n }", "public void moveTo(double x, double y) {\n\t\tthis.x = x;\n\t\tthis.y = y;\n\t}", "public void addMove() {\n\t\tmove = \"mv \" + posX + \" \" + posY;\n\t}", "public void updatePositionOnMap(RVOAgent agent, double x, double y) {\n agentSpace.setObjectLocation(agent, new Double2D(x, y));\n if(agent.hasDevice()){\n deviceSpace.setObjectLocation(agent.getDevice(), new Double2D(x, y));\n }\n }", "@Override\n\tpublic void keyPressed(KeyEvent e) {\n\t\tif (e.getKeyCode() == KeyEvent.VK_RIGHT) {\n\t\t\t// object.x = object.x + 20;\n\t\t\t// snake1.x = snake1.x + snake1.speed;\n\t\t\tsnake1.right = true;\n\t\t\tsnake1.left = false;\n\t\t\tsnake1.up = false;\n\t\t\tsnake1.down = false;\n\t\t}\n\t\tif (e.getKeyCode() == KeyEvent.VK_LEFT) {\n\t\t\t// object.x = object.x - 20;\n\t\t\t// snake1.x = snake1.x - snake1.speed;\n\t\t\tsnake1.right = false;\n\t\t\tsnake1.left = true;\n\t\t\tsnake1.up = false;\n\t\t\tsnake1.down = false;\n\t\t}\n\t\tif (e.getKeyCode() == KeyEvent.VK_DOWN) {\n\t\t\t// object.y = object.y + 20;\n\t\t\tsnake1.right = false;\n\t\t\tsnake1.left = false;\n\t\t\tsnake1.up = false;\n\t\t\tsnake1.down = true;\n\t\t}\n\t\tif (e.getKeyCode() == KeyEvent.VK_UP) {\n\t\t\t// object.y = object.y - 20;\n\t\t\tsnake1.right = false;\n\t\t\tsnake1.left = false;\n\t\t\tsnake1.up = true;\n\t\t\tsnake1.down = false;\n\t\t}\n\n\t}", "public void change_hero_pos() {\n\t\tif (labirinto.getLab()[heroi.getX_coord()][heroi.getY_coord()] == 'O')\n\t\t\theroi.setShielded(true);\n\t\tif (heroi.isArmado())\n\t\t\tlabirinto.setLabCell(heroi.getX_coord(), heroi.getY_coord(), 'A');\n\t\telse\n\t\t\tlabirinto.setLabCell(heroi.getX_coord(), heroi.getY_coord(), 'H');\n\t}", "private void cursorPosChanged( double x, double y )\n {\n }", "public void act() \n {\n // Add your action code here.\n \n //setRotation();\n setLocation(getX(),getY()+2);\n movement();\n \n }", "public void editNote(int index, Note note) throws NotepadOutOfBoundsException {\n if (!isRightBounds(index))\n throw new NotepadOutOfBoundsException(index);\n _notes[index - 1] = null;\n _notes[index - 1] = note;\n }", "protected void move(int newX, int newY) {\n if (grid.inBounds(newX, newY)) {\n grid.exit(this, newX, newY);\n }\n if (grid.valid(newX, newY) && System.currentTimeMillis() - lastMovement > 100) {\n grid.addTokenAt(null, positionX, positionY);\n grid.addTokenAt(this, newX, newY);\n positionX = newX;\n positionY = newY;\n lastMovement = System.currentTimeMillis();\n grid.repaint();\n }\n }", "public void setLocation(float x, float y);", "public void highlight(){\n\t\tbutton.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\n\t\t\t//if(!clicked){\t\n\t\t\t\t\n\t\t\t\tfirsttime=true;\n\t\t\t\tclicked=true;\n\t\t\t\tif(piece!=null){\n\t\t\t\t\txyMovment=piece.xyPossibleMovments(xPosition, yPosition);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\t\n\t}", "public void actionPerformed(ActionEvent e) {\r\n mode = InputMode.ADD_NODES;\r\n instr.setText(\"Click to add new nodes or change their location.\");\r\n }", "@Override\n public void act()\n {\n Location loc = getLocation();\n int r = loc.getRow();\n int c = loc.getCol();\n int dir = getDirection();\n if(dir == Location.NORTH)\n {\n if(r - START_ROW + 1 > -2*(address & ADDRESS))\n {\n move();\n }\n else\n {\n setDirection(Location.WEST);\n }\n }\n else if(dir == Location.WEST)\n {\n if(c <= RETURN_COL)\n {\n setDirection(Location.SOUTH);\n }\n else\n {\n Bit b = null;\n Actor a = getGrid().get(loc.getAdjacentLocation(Location.SOUTH));\n if(a instanceof Bit) b = (Bit)a;\n if(b != null)\n {\n processBit(b,-c-1);\n }\n move();\n }\n }\n else if(dir == Location.SOUTH)\n {\n if(r == -1)\n {\n setDirection(Location.EAST);\n }\n else\n {\n move();\n }\n }\n else if(dir == Location.EAST)\n {\n move();\n }\n else\n {\n System.err.println(\"yer bus is on an angle bud\");\n }\n }", "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 applyChanges(ActionEvent event){\n\t\tString text = noteText.getText();\n\t\tdouble x = Double.parseDouble(originX.getText()), y = Double.parseDouble(originY.getText());\n\n\t\tif((!text.equals(note.getText())) || x != note.getOriginX() || y != note.getOriginY()) {\n\t\t\tcontroller.UNDONE_ACTIONS.clear();\n\t\t\ttry {\n\t\t\t\tcontroller.ACTIONS.push(new UpdateNote(note, text, x, y, this));\n\t\t\t\tevent.consume();\n\t\t\t} catch (Exception e) {\n\t\t\t\tcontroller.ACTIONS.push(new ChangeNoteText(note, noteText.getText(), this));\n\t\t\t\tevent.consume();\n\t\t\t}\n\t\t}\n\t}", "public void setPostion(int newXPosition, int newYPosition) {\n xPosition = newXPosition;\n yPosition = newYPosition;\n }", "private void updatePosition(){\n updateXPosition(true);\n updateYPosition(true);\n }", "@Override\n public void enterRoom(Person x) {\n\n occupant = x;\n x.setxLoc(this.xLoc);\n x.setyLoc(this.yLoc);\n System.out.println(\"Aliens abduct you. You lose!\");\n System.out.println(\" .-\\\"\\\"\\\"\\\"-. .-\\\"\\\"\\\"\\\"-.\\n\" +\n \" / \\\\ / \\\\\\n\" +\n \" /_ _\\\\ /_ _\\\\\\n\" +\n \" // \\\\ / \\\\\\\\ // \\\\ / \\\\\\\\\\n\" +\n \" |\\\\__\\\\ /__/| |\\\\__\\\\ /__/|\\n\" +\n \" \\\\ || / \\\\ || /\\n\" +\n \" \\\\ / \\\\ /\\n\" +\n \" \\\\ __ / \\\\ __ /\\n\" +\n \" .-\\\"\\\"\\\"\\\"-. '.__.'.-\\\"\\\"\\\"\\\"-. '.__.'.-\\\"\\\"\\\"\\\"-.\\n\" +\n \" / \\\\ | |/ \\\\ | |/ \\\\\\n\" +\n \" /_ _\\\\| /_ _\\\\| /_ _\\\\\\n\" +\n \"// \\\\ / \\\\\\\\ // \\\\ / \\\\\\\\ // \\\\ / \\\\\\\\\\n\" +\n \"|\\\\__\\\\ /__/| |\\\\__\\\\ /__/| |\\\\__\\\\ /__/|\\n\" +\n \" \\\\ || / \\\\ || / \\\\ || /\\n\" +\n \" \\\\ / \\\\ / \\\\ /\\n\" +\n \" \\\\ __ / \\\\ __ / \\\\ __ /\\n\" +\n \" '.__.' '.__.' '.__.'\\n\" +\n \"jgs | | | | | |\\n\" +\n \" | | | | | |\");\n Runner.gameOff();\n }", "public void updatePosition() {\n \t\r\n \tx += dx;\r\n \ty += dy;\r\n \t\r\n\t}", "public void moveToPosition( int xCoordinate, int yCoordinate ) {\n setXPosition( xCoordinate );\n setYPosition( yCoordinate );\n }", "public void moveTo(int x, int y) {\n\t\tx2 = x;\n\t\ty2 = y;\n\t}", "@Override\n public void movement() {\n if (isAlive()) {\n //Prüfung ob A oder die linke Pfeiltaste gedrückt ist\n if (Keyboard.isKeyDown(KeyEvent.VK_LEFT) || Keyboard.isKeyDown(KeyEvent.VK_A)) {\n //Änder die X Position um den speed wert nach link (verkleinert sie)\n setPosX(getPosX() - getSpeed());\n //Prüft ob der Spieler den linken Rand des Fensters erreicht hat\n if (getPosX() <= 0) {\n //Setzt die X Position des Spielers an den Rand des Fensters zurück\n setPosX(0);\n }\n }\n //Prüfung ob D oder die rechte Pfeiltaste gedrückt ist\n if (Keyboard.isKeyDown(KeyEvent.VK_RIGHT) || Keyboard.isKeyDown(KeyEvent.VK_D)) {\n //Änder die X Position um den speed wert nach rechts (vergrößert sie)\n setPosX(getPosX() + getSpeed());\n //Prüft ob der Spieler den rechten Rand des Fensters erreicht hat\n if (getPosX() >= Renderer.getWindowSizeX() - getWight() - 7) {\n //Setzt die X Position des Spielers an den Rand des Fensters zurück\n setPosX(Renderer.getWindowSizeX() - getWight() - 7);\n }\n }\n //Aktualsiert die Hitbox\n setBounds();\n }\n }", "@Override\n public void setLocation(double x, double y, double z) throws InvalidDataException {\n myMovable.setLocation(x, y, z);\n }", "@Override\r\n\t//Event handler for the Timer action\r\n\tpublic void actionPerformed(ActionEvent e) {\n\t\tmoveSnake();\r\n\t}", "@Override\n\t\t\tpublic void clicked(InputEvent event, float x, float y) {\n\t\t\t\tsuper.clicked(event, x, y);\n\t\t\t\tdataManager.newData();\n\t\t\t\tdialog.remove();\n\t\t\t\tif(buttonDiagMovement.getText().toString().equals(\"DiagMovement OFF\")){\n\t\t\t\tdataManager.getData().setAllowDiagMovement(false);\n\t\t\t\t}\n\t\t\t}", "@Override\r\n\t\t\tpublic void mouseMove(MouseEvent e) {\n\t\t\t\tif(x>0)\r\n\t\t\t\t{\r\n\t\t\t\t\tshell.setLocation(e.x-x + shell.getLocation().x,\r\n\t\t\t\t\t\te.y-y + shell.getLocation().y);\r\n\t\t\t\t}\r\n\t\t\t}", "public void updatemove() {\n\t\tmove = new Movement(getX(), getY(),dungeon,this);\n\t\t//System.out.println(\"Updated\");\n\t\tnotifys();\n\t\tif(this.getInvincible()) {\n\t\t\tsteptracer++;\n\t\t}\n\t\tdungeon.checkGoal();\n\t}", "@Override\n\tpublic void move() {\n\t\theading = Heading.randHeading();\n\t\tif (heading == Heading.NORTH) {\n\t\t\tthis.location.y -= Utilities.rng.nextInt(Simulation.WORLD_SIZE/10);\n\t\t} else if (heading == Heading.EAST) {\n\t\t\tthis.location.x += Utilities.rng.nextInt(Simulation.WORLD_SIZE/10);\n\t\t} else if (heading == Heading.SOUTH) {\n\t\t\tthis.location.y += Utilities.rng.nextInt(Simulation.WORLD_SIZE/10);\n\t\t} else if (heading == Heading.WEST) {\n\t\t\tthis.location.x -= Utilities.rng.nextInt(Simulation.WORLD_SIZE/10);\n\t\t}\n\t\tadjustPos();\n\t\tinfect();\n\t}", "public void DoGoToLine(int spot) {\n\t\tint col = spot % 10;\n\t\txDestination = 175 + (col * 25);\n\t\tyDestination = yEnterBus;\n\t\tcommand = Command.GetInLine;\n\t}", "@Override\n public void actionPerformed(ActionEvent e){ \n move();\n }", "private void setLocation() {\n switch (getKey()) {\n case UP:\n this.y_location = -136.8 - 6;\n this.y_tile = -1;\n this.positive = false;\n break;\n case DOWN:\n this.y_location = 136.8 + 6;\n this.y_tile = 1;\n break;\n case LEFT:\n this.x_location = -140.6 - 6;\n this.x_tile = -1;\n this.positive = false;\n break;\n case RIGHT:\n this.x_location = 140.6 + 6;\n this.x_tile = 1;\n break;\n default:\n break;\n }\n }", "@Override\n\tpublic void enter() {\n\t\tMessenger.register(this, Message.KEY_DOWN, Message.Move, Message.Scale, Message.Rotate);\n\t}", "void setPosition(double xPos, double yPos);", "@Override\n\tpublic void enter() {\n\t\t//Update dimensions\n\t\tattachedTo.setWidth(20);\n\t\tattachedTo.setHeight(20);\n\t\t\n\t\t//set image of player to overworld image\n\t\tattachedTo.setShape(new Ellipse2D.Double(), Color.green);\n\t\tattachedTo.updateShape();\n\t\t\n\t\t\n\t\t//Set the sprite to testspritesheet (until image for overworld state is made)\n\t\t//Now sets the sprite to a test spritesheet\n\t\tattachedTo.setSprite(Directory.spriteLibrary.get(\"HeroOverworld\"));\n\t\t\n\t\t//Queue up an animation of row 0 in spritesheet to repeat\n\t\tattachedTo.getSprite().queueAnimation(0, false);\n\t\t\n\t\t//Start timing movement by getting previous time\n\t\tpreviousTime = System.currentTimeMillis();\n\t}", "void makeMove(Location loc);", "@Override\r\n\tpublic void keyPressed(KeyEvent e)\r\n\t{\r\n\t\tchar entered = e.getKeyChar();\r\n\t\tswitch (entered)\r\n\t\t{\r\n\t\tcase 'w':\r\n\t\t\tmove.execute(entered);\r\n\t\t\tbreak;\r\n\t\tcase 's':\r\n\t\t\tmove.execute(entered);\r\n\t\t\tbreak;\r\n\t\tcase 'a':\r\n\t\t\tmove.execute(entered);\r\n\t\t\tbreak;\r\n\t\tcase 'd':\r\n\t\t\tmove.execute(entered);\r\n\t\t\tbreak;\r\n\t\tcase 'x':\r\n\t\t\tequip.execute(entered);\r\n\t\t\tbreak;\r\n\t\tdefault:\r\n\t\t\tbreak;\r\n\t\t}\r\n\t\tgame.updateState();\r\n\t}", "public void move(int x, int y){\n universe.erase(this);\n this.yPosition = y;\n this.xPosition = x;\n universe.draw(this);\n }", "public void move(double dist){\n VectorMovement newPositionAndLines = myGrid.addMovement(xPos, yPos, myAngle, dist, myPen);\n Point newPosition = newPositionAndLines.getPosition();\n updateUndoBuffers(newPositionAndLines.getLinesAssociatedWithMovement());\n xPos = newPosition.getMyX();\n yPos = newPosition.getMyY();\n }", "public void move(int x, int y) {\n \tint xOld = this.x;\n \tint yOld = this.y;\n \tthis.x = x;\n \tthis.y = y;\n \tSystem.out.print (\"point moved from (\" + xOld + \",\" + yOld + \") to (\" + this.x + \",\" + this.y + \")\");\n }", "public void input_entered() {\n\t\t_last_column = 0;\n\t\t_last_line = 0;\n\t\t_last_printed = '\\n';\n\t}", "public void movePiece(Coordinate from, Coordinate to);", "public void mouseEntered(java.awt.event.MouseEvent e) {\n\t\t\t\teditor.repaint();\r\n\t\t\t}", "public void actionPerformed(ActionEvent e) {\n\t\t\t\tregistro.setLocation(thisobject.getX()+100, thisobject.getY());\n\t\t\t\tregistro.setVisible(true);\n\t\t\t}", "private void formMousePressed(java.awt.event.MouseEvent evt) {\n xx=evt.getX();\n xy=evt.getY();\n \n }", "private void formMousePressed(java.awt.event.MouseEvent evt) {\n xx=evt.getX();\n xy=evt.getY();\n \n }", "public void move(){\n super.move();\n load.updateCoordinates(this.x,this.y);\n }" ]
[ "0.5962057", "0.5874213", "0.5766114", "0.5688469", "0.56846666", "0.5658714", "0.5571585", "0.55544275", "0.55253464", "0.55201834", "0.55152327", "0.5502528", "0.5499052", "0.5491838", "0.5486626", "0.547595", "0.54750246", "0.5442061", "0.54397535", "0.5437072", "0.54361314", "0.5435867", "0.5409295", "0.5407509", "0.54042554", "0.54031825", "0.5377596", "0.5364214", "0.5356558", "0.5355543", "0.5341091", "0.5335041", "0.53302073", "0.5329231", "0.5322946", "0.53148174", "0.5309812", "0.53082246", "0.5307239", "0.530503", "0.53029025", "0.52958584", "0.5274282", "0.52714366", "0.5257913", "0.52486277", "0.5242799", "0.5239599", "0.5235473", "0.52200365", "0.5216246", "0.52149296", "0.5213888", "0.5196694", "0.51945955", "0.51878613", "0.51778513", "0.517486", "0.51738393", "0.51731586", "0.5170605", "0.5169085", "0.51659745", "0.5155036", "0.515473", "0.51507986", "0.5149093", "0.5147538", "0.5146875", "0.5143675", "0.5141832", "0.51382005", "0.51378375", "0.5137421", "0.5133287", "0.513102", "0.51290995", "0.5126234", "0.51258147", "0.5122936", "0.5121724", "0.5119031", "0.5117265", "0.51161987", "0.5114916", "0.51115066", "0.5102534", "0.5097928", "0.50957644", "0.50889015", "0.5088562", "0.5085536", "0.50837576", "0.5080005", "0.50797343", "0.50787795", "0.50786865", "0.5077785", "0.5077785", "0.50755227" ]
0.66983384
0
Combination of updateCoordinates and updateText . Activates when the user clicks the apply changes button
public void applyChanges(ActionEvent event){ String text = noteText.getText(); double x = Double.parseDouble(originX.getText()), y = Double.parseDouble(originY.getText()); if((!text.equals(note.getText())) || x != note.getOriginX() || y != note.getOriginY()) { controller.UNDONE_ACTIONS.clear(); try { controller.ACTIONS.push(new UpdateNote(note, text, x, y, this)); event.consume(); } catch (Exception e) { controller.ACTIONS.push(new ChangeNoteText(note, noteText.getText(), this)); event.consume(); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void updateTextChange() {\n \t\t\tfText= fDocumentUndoManager.fTextBuffer.toString();\n \t\t\tfDocumentUndoManager.fTextBuffer.setLength(0);\n \t\t\tfPreservedText= fDocumentUndoManager.fPreservedTextBuffer.toString();\n \t\t\tfDocumentUndoManager.fPreservedTextBuffer.setLength(0);\n \t\t}", "protected void update(){\n\t\t_offx = _x.valueToPosition(0);\n\t\t_offy = _y.valueToPosition(0);\n\t}", "@Override\r\n\t\tpublic void changedUpdate(DocumentEvent e) {\n\t\t\tMessage = t.getText();\r\n\t\t\tcanvas.repaint();\r\n\t\t\t\r\n\t\t}", "public void doChanges3() {\n lm.undo(changeMark, lm.getChangeMark());\n // > UPDATE CURRENT STATE\n contInterior.put(\"Form\", new Rectangle(0, 0, 400, 300));\n compBounds.put(\"jTextField1\", new Rectangle(0, 0, 400, 20));\n baselinePosition.put(\"jTextField1-400-20\", new Integer(14));\n compBounds.put(\"jRadioButton1\", new Rectangle(0, 22, 93, 23));\n baselinePosition.put(\"jRadioButton1-93-23\", new Integer(15));\n compBounds.put(\"jRadioButton2\", new Rectangle(0, 48, 93, 23));\n baselinePosition.put(\"jRadioButton2-93-23\", new Integer(15));\n compBounds.put(\"jScrollPane1\", new Rectangle(0, 73, 35, 130));\n baselinePosition.put(\"jScrollPane1-35-130\", new Integer(0));\n compBounds.put(\"jLabel1\", new Rectangle(39, 73, 34, 14));\n baselinePosition.put(\"jLabel1-34-14\", new Integer(11));\n compBounds.put(\"jLabel2\", new Rectangle(79, 73, 34, 14));\n baselinePosition.put(\"jLabel2-34-14\", new Integer(11));\n compBounds.put(\"jTextField2\", new Rectangle(77, 113, 59, 20));\n baselinePosition.put(\"jTextField2-59-20\", new Integer(14));\n compBounds.put(\"jLabel3\", new Rectangle(39, 93, 34, 14));\n baselinePosition.put(\"jLabel3-34-14\", new Integer(11));\n compBounds.put(\"jLabel4\", new Rectangle(39, 116, 34, 14));\n baselinePosition.put(\"jLabel4-34-14\", new Integer(11));\n ld.updateCurrentState();\n // < UPDATE CURRENT STATE\n lc = new LayoutComponent(\"jLabel5\", false);\n // > START ADDING\n baselinePosition.put(\"jLabel5-34-14\", new Integer(11));\n {\n LayoutComponent[] comps = new LayoutComponent[]{lc};\n Rectangle[] bounds = new Rectangle[]{new Rectangle(0, 0, 34, 14)};\n String defaultContId = null;\n Point hotspot = new Point(13, 7);\n ld.startAdding(comps, bounds, hotspot, defaultContId);\n }\n // < START ADDING\n prefPaddingInParent.put(\"Form-jLabel5-1-0\", new Integer(11)); // parentId-compId-dimension-compAlignment\n prefPaddingInParent.put(\"Form-jLabel5-1-1\", new Integer(11)); // parentId-compId-dimension-compAlignment\n prefPadding.put(\"jTextField1-jLabel5-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel5-jTextField1-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel5-jTextField1-1-0-1\", new Integer(11)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel5-jTextField1-1-0-2\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel5-jTextField1-1-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jRadioButton1-jLabel5-1-0-1\", new Integer(7)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel5-jRadioButton1-1-0-0\", new Integer(2)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jRadioButton2-jLabel5-1-0-0\", new Integer(2)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel5-jRadioButton2-1-0-1\", new Integer(7)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel1-jLabel5-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel2-jLabel5-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel5-jLabel1-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel5-jLabel2-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jLabel5-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel5-jLabel3-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel5-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel5-1-0-1\", new Integer(11)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel5-1-0-2\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel5-1-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jLabel5-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jLabel5-1-0-1\", new Integer(11)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jLabel5-1-0-2\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jLabel5-1-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel5-jTextField2-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel5-jLabel4-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPaddingInParent.put(\"Form-jLabel5-0-0\", new Integer(10)); // parentId-compId-dimension-compAlignment\n prefPaddingInParent.put(\"Form-jLabel5-0-1\", new Integer(10)); // parentId-compId-dimension-compAlignment\n prefPadding.put(\"jScrollPane1-jLabel5-0-0-0\", new Integer(4)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel5-jScrollPane1-0-0-0\", new Integer(4)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel5-jScrollPane1-0-0-1\", new Integer(10)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel5-jScrollPane1-0-0-2\", new Integer(10)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel5-jScrollPane1-0-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jLabel5-0-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel5-jLabel4-0-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel5-0-0-0\", new Integer(4)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel5-0-0-1\", new Integer(10)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel5-0-0-2\", new Integer(10)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel5-0-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel5-jTextField2-0-0-0\", new Integer(4)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jLabel5-0-0-2\", new Integer(10)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n // > MOVE\n // > MOVE\n // > MOVE\n {\n Point p = new Point(72, 125);\n String containerId = \"Form\";\n boolean autoPositioning = true;\n boolean lockDimension = false;\n Rectangle[] bounds = new Rectangle[]{new Rectangle(59, 116, 34, 14)};\n ld.move(p, containerId, autoPositioning, lockDimension, bounds);\n }\n // < MOVE\n prefPaddingInParent.put(\"Form-jLabel5-1-0\", new Integer(11)); // parentId-compId-dimension-compAlignment\n prefPaddingInParent.put(\"Form-jLabel5-1-1\", new Integer(11)); // parentId-compId-dimension-compAlignment\n prefPadding.put(\"jTextField1-jLabel5-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel5-jTextField1-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel5-jTextField1-1-0-1\", new Integer(11)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel5-jTextField1-1-0-2\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel5-jTextField1-1-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jRadioButton1-jLabel5-1-0-1\", new Integer(7)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel5-jRadioButton1-1-0-0\", new Integer(2)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jRadioButton2-jLabel5-1-0-0\", new Integer(2)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel5-jRadioButton2-1-0-1\", new Integer(7)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel1-jLabel5-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel2-jLabel5-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel5-jLabel1-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel5-jLabel2-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jLabel5-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel5-jLabel3-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel5-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel5-1-0-1\", new Integer(11)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel5-1-0-2\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel5-1-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jLabel5-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jLabel5-1-0-1\", new Integer(11)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jLabel5-1-0-2\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jLabel5-1-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel5-jTextField2-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel5-jLabel4-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPaddingInParent.put(\"Form-jLabel5-0-0\", new Integer(10)); // parentId-compId-dimension-compAlignment\n prefPaddingInParent.put(\"Form-jLabel5-0-1\", new Integer(10)); // parentId-compId-dimension-compAlignment\n prefPadding.put(\"jScrollPane1-jLabel5-0-0-0\", new Integer(4)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel5-jScrollPane1-0-0-0\", new Integer(4)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel5-jScrollPane1-0-0-1\", new Integer(10)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel5-jScrollPane1-0-0-2\", new Integer(10)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel5-jScrollPane1-0-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jLabel5-0-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel5-jLabel4-0-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel5-0-0-0\", new Integer(4)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel5-0-0-1\", new Integer(10)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel5-0-0-2\", new Integer(10)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel5-0-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel5-jTextField2-0-0-0\", new Integer(4)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jLabel5-0-0-2\", new Integer(10)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n // > MOVE\n // > MOVE\n // > MOVE\n {\n Point p = new Point(73, 125);\n String containerId = \"Form\";\n boolean autoPositioning = true;\n boolean lockDimension = false;\n Rectangle[] bounds = new Rectangle[]{new Rectangle(60, 116, 34, 14)};\n ld.move(p, containerId, autoPositioning, lockDimension, bounds);\n }\n // < MOVE\n // > END MOVING\n compPrefSize.put(\"jLabel5\", new Dimension(34, 14));\n ld.endMoving(true);\n // < END MOVING\n ld.externalSizeChangeHappened();\n // > UPDATE CURRENT STATE\n contInterior.put(\"Form\", new Rectangle(0, 0, 400, 300));\n compBounds.put(\"jTextField1\", new Rectangle(0, 0, 400, 20));\n baselinePosition.put(\"jTextField1-400-20\", new Integer(14));\n compBounds.put(\"jRadioButton1\", new Rectangle(0, 22, 93, 23));\n baselinePosition.put(\"jRadioButton1-93-23\", new Integer(15));\n compBounds.put(\"jRadioButton2\", new Rectangle(0, 48, 93, 23));\n baselinePosition.put(\"jRadioButton2-93-23\", new Integer(15));\n compBounds.put(\"jScrollPane1\", new Rectangle(0, 73, 35, 130));\n baselinePosition.put(\"jScrollPane1-35-130\", new Integer(0));\n compBounds.put(\"jLabel1\", new Rectangle(39, 73, 34, 14));\n baselinePosition.put(\"jLabel1-34-14\", new Integer(11));\n compBounds.put(\"jLabel2\", new Rectangle(79, 73, 34, 14));\n baselinePosition.put(\"jLabel2-34-14\", new Integer(11));\n compBounds.put(\"jTextField2\", new Rectangle(117, 113, 59, 20));\n baselinePosition.put(\"jTextField2-59-20\", new Integer(14));\n compBounds.put(\"jLabel3\", new Rectangle(39, 93, 34, 14));\n baselinePosition.put(\"jLabel3-34-14\", new Integer(11));\n compBounds.put(\"jLabel4\", new Rectangle(39, 116, 34, 14));\n baselinePosition.put(\"jLabel4-34-14\", new Integer(11));\n compBounds.put(\"jLabel5\", new Rectangle(79, 116, 34, 14));\n baselinePosition.put(\"jLabel5-34-14\", new Integer(11));\n prefPaddingInParent.put(\"Form-jRadioButton1-0-1\", new Integer(6)); // parentId-compId-dimension-compAlignment\n prefPaddingInParent.put(\"Form-jRadioButton2-0-1\", new Integer(6)); // parentId-compId-dimension-compAlignment\n prefPaddingInParent.put(\"Form-jLabel3-0-1\", new Integer(10)); // parentId-compId-dimension-compAlignment\n prefPaddingInParent.put(\"Form-jLabel2-0-1\", new Integer(10)); // parentId-compId-dimension-compAlignment\n prefPaddingInParent.put(\"Form-jTextField2-0-1\", new Integer(10)); // parentId-compId-dimension-compAlignment\n compPrefSize.put(\"jTextField1\", new Dimension(59, 20));\n compPrefSize.put(\"jRadioButton1\", new Dimension(93, 23));\n compPrefSize.put(\"jRadioButton2\", new Dimension(93, 23));\n compPrefSize.put(\"jScrollPane1\", new Dimension(35, 130));\n compPrefSize.put(\"jLabel1\", new Dimension(34, 14));\n compPrefSize.put(\"jLabel2\", new Dimension(34, 14));\n compPrefSize.put(\"jTextField2\", new Dimension(59, 20));\n compPrefSize.put(\"jLabel3\", new Dimension(34, 14));\n compPrefSize.put(\"jLabel4\", new Dimension(34, 14));\n compPrefSize.put(\"jLabel5\", new Dimension(34, 14));\n contInterior.put(\"Form\", new Rectangle(0, 0, 400, 300));\n compBounds.put(\"jTextField1\", new Rectangle(0, 0, 400, 20));\n baselinePosition.put(\"jTextField1-400-20\", new Integer(14));\n compBounds.put(\"jRadioButton1\", new Rectangle(0, 22, 93, 23));\n baselinePosition.put(\"jRadioButton1-93-23\", new Integer(15));\n compBounds.put(\"jRadioButton2\", new Rectangle(0, 48, 93, 23));\n baselinePosition.put(\"jRadioButton2-93-23\", new Integer(15));\n compBounds.put(\"jScrollPane1\", new Rectangle(0, 73, 35, 130));\n baselinePosition.put(\"jScrollPane1-35-130\", new Integer(0));\n compBounds.put(\"jLabel1\", new Rectangle(39, 73, 34, 14));\n baselinePosition.put(\"jLabel1-34-14\", new Integer(11));\n compBounds.put(\"jLabel2\", new Rectangle(79, 73, 34, 14));\n baselinePosition.put(\"jLabel2-34-14\", new Integer(11));\n compBounds.put(\"jTextField2\", new Rectangle(117, 113, 59, 20));\n baselinePosition.put(\"jTextField2-59-20\", new Integer(14));\n compBounds.put(\"jLabel3\", new Rectangle(39, 93, 34, 14));\n baselinePosition.put(\"jLabel3-34-14\", new Integer(11));\n compBounds.put(\"jLabel4\", new Rectangle(39, 116, 34, 14));\n baselinePosition.put(\"jLabel4-34-14\", new Integer(11));\n compBounds.put(\"jLabel5\", new Rectangle(79, 116, 34, 14));\n baselinePosition.put(\"jLabel5-34-14\", new Integer(11));\n ld.updateCurrentState();\n // < UPDATE CURRENT STATE\n // > START RESIZING\n baselinePosition.put(\"jTextField2-59-20\", new Integer(14));\n compPrefSize.put(\"jTextField2\", new Dimension(59, 20));\n {\n String[] compIds = new String[]{\"jTextField2\"};\n Rectangle[] bounds = new Rectangle[]{new Rectangle(117, 113, 59, 20)};\n Point hotspot = new Point(175, 125);\n int[] resizeEdges = new int[]{1, -1};\n boolean inLayout = true;\n ld.startResizing(compIds, bounds, hotspot, resizeEdges, inLayout);\n }\n // < START RESIZING\n prefPaddingInParent.put(\"Form-jTextField2-0-1\", new Integer(10)); // parentId-compId-dimension-compAlignment\n // > MOVE\n // > MOVE\n // > MOVE\n {\n Point p = new Point(398, 137);\n String containerId = \"Form\";\n boolean autoPositioning = true;\n boolean lockDimension = false;\n Rectangle[] bounds = new Rectangle[]{new Rectangle(117, 113, 283, 20)};\n ld.move(p, containerId, autoPositioning, lockDimension, bounds);\n }\n // < MOVE\n prefPaddingInParent.put(\"Form-jTextField2-0-1\", new Integer(10)); // parentId-compId-dimension-compAlignment\n // > MOVE\n // > MOVE\n // > MOVE\n {\n Point p = new Point(399, 137);\n String containerId = \"Form\";\n boolean autoPositioning = true;\n boolean lockDimension = false;\n Rectangle[] bounds = new Rectangle[]{new Rectangle(117, 113, 283, 20)};\n ld.move(p, containerId, autoPositioning, lockDimension, bounds);\n }\n // < MOVE\n // > END MOVING\n ld.endMoving(true);\n // < END MOVING\n ld.externalSizeChangeHappened();\n // > UPDATE CURRENT STATE\n contInterior.put(\"Form\", new Rectangle(0, 0, 400, 300));\n compBounds.put(\"jTextField1\", new Rectangle(0, 0, 400, 20));\n baselinePosition.put(\"jTextField1-400-20\", new Integer(14));\n compBounds.put(\"jRadioButton1\", new Rectangle(0, 22, 93, 23));\n baselinePosition.put(\"jRadioButton1-93-23\", new Integer(15));\n compBounds.put(\"jRadioButton2\", new Rectangle(0, 48, 93, 23));\n baselinePosition.put(\"jRadioButton2-93-23\", new Integer(15));\n compBounds.put(\"jScrollPane1\", new Rectangle(0, 73, 35, 130));\n baselinePosition.put(\"jScrollPane1-35-130\", new Integer(0));\n compBounds.put(\"jLabel1\", new Rectangle(39, 73, 34, 14));\n baselinePosition.put(\"jLabel1-34-14\", new Integer(11));\n compBounds.put(\"jLabel2\", new Rectangle(79, 73, 34, 14));\n baselinePosition.put(\"jLabel2-34-14\", new Integer(11));\n compBounds.put(\"jTextField2\", new Rectangle(117, 113, 283, 20));\n baselinePosition.put(\"jTextField2-283-20\", new Integer(14));\n compBounds.put(\"jLabel3\", new Rectangle(39, 93, 34, 14));\n baselinePosition.put(\"jLabel3-34-14\", new Integer(11));\n compBounds.put(\"jLabel4\", new Rectangle(39, 116, 34, 14));\n baselinePosition.put(\"jLabel4-34-14\", new Integer(11));\n compBounds.put(\"jLabel5\", new Rectangle(79, 116, 34, 14));\n baselinePosition.put(\"jLabel5-34-14\", new Integer(11));\n prefPaddingInParent.put(\"Form-jRadioButton1-0-1\", new Integer(6)); // parentId-compId-dimension-compAlignment\n prefPaddingInParent.put(\"Form-jRadioButton2-0-1\", new Integer(6)); // parentId-compId-dimension-compAlignment\n compPrefSize.put(\"jTextField1\", new Dimension(59, 20));\n compPrefSize.put(\"jRadioButton1\", new Dimension(93, 23));\n compPrefSize.put(\"jRadioButton2\", new Dimension(93, 23));\n compPrefSize.put(\"jScrollPane1\", new Dimension(35, 130));\n compPrefSize.put(\"jLabel1\", new Dimension(34, 14));\n compPrefSize.put(\"jLabel2\", new Dimension(34, 14));\n compPrefSize.put(\"jTextField2\", new Dimension(59, 20));\n compPrefSize.put(\"jLabel3\", new Dimension(34, 14));\n compPrefSize.put(\"jLabel4\", new Dimension(34, 14));\n compPrefSize.put(\"jLabel5\", new Dimension(34, 14));\n contInterior.put(\"Form\", new Rectangle(0, 0, 400, 300));\n compBounds.put(\"jTextField1\", new Rectangle(0, 0, 400, 20));\n baselinePosition.put(\"jTextField1-400-20\", new Integer(14));\n compBounds.put(\"jRadioButton1\", new Rectangle(0, 22, 93, 23));\n baselinePosition.put(\"jRadioButton1-93-23\", new Integer(15));\n compBounds.put(\"jRadioButton2\", new Rectangle(0, 48, 93, 23));\n baselinePosition.put(\"jRadioButton2-93-23\", new Integer(15));\n compBounds.put(\"jScrollPane1\", new Rectangle(0, 73, 35, 130));\n baselinePosition.put(\"jScrollPane1-35-130\", new Integer(0));\n compBounds.put(\"jLabel1\", new Rectangle(39, 73, 34, 14));\n baselinePosition.put(\"jLabel1-34-14\", new Integer(11));\n compBounds.put(\"jLabel2\", new Rectangle(79, 73, 34, 14));\n baselinePosition.put(\"jLabel2-34-14\", new Integer(11));\n compBounds.put(\"jTextField2\", new Rectangle(117, 113, 283, 20));\n baselinePosition.put(\"jTextField2-283-20\", new Integer(14));\n compBounds.put(\"jLabel3\", new Rectangle(39, 93, 34, 14));\n baselinePosition.put(\"jLabel3-34-14\", new Integer(11));\n compBounds.put(\"jLabel4\", new Rectangle(39, 116, 34, 14));\n baselinePosition.put(\"jLabel4-34-14\", new Integer(11));\n compBounds.put(\"jLabel5\", new Rectangle(79, 116, 34, 14));\n baselinePosition.put(\"jLabel5-34-14\", new Integer(11));\n ld.updateCurrentState();\n // < UPDATE CURRENT STATE\n }", "public void update()\n\t{\n\t\tsetFont(attribs.getFont());\n\t\tTextMeshGenerator.generateTextVao(this.text, this.attribs, this.font, this.mesh);\n\t\tsize = new Vector2f(mesh.maxPoint.x(), mesh.maxPoint.y());\n\t}", "void applyChanges() {\n trainFunction.setAlias(txtAlias.getText());\n trainFunction.getConfiguration().setAddress(txtAddress.getValue());\n\n trainFunction.getConfiguration().setBit(selectBit.getSelected().orElse(null));\n }", "private void updatePosition(){\n updateXPosition(true);\n updateYPosition(true);\n }", "public void doChanges1() {\n lm.undo(changeMark, lm.getChangeMark());\n // > UPDATE CURRENT STATE\n contInterior.put(\"Form\", new Rectangle(0, 0, 400, 300));\n compBounds.put(\"jTextField1\", new Rectangle(0, 0, 400, 20));\n baselinePosition.put(\"jTextField1-400-20\", new Integer(14));\n compBounds.put(\"jRadioButton1\", new Rectangle(0, 22, 93, 23));\n baselinePosition.put(\"jRadioButton1-93-23\", new Integer(15));\n compBounds.put(\"jRadioButton2\", new Rectangle(0, 48, 93, 23));\n baselinePosition.put(\"jRadioButton2-93-23\", new Integer(15));\n compBounds.put(\"jScrollPane1\", new Rectangle(0, 73, 35, 130));\n baselinePosition.put(\"jScrollPane1-35-130\", new Integer(0));\n compBounds.put(\"jLabel1\", new Rectangle(41, 73, 34, 14));\n baselinePosition.put(\"jLabel1-34-14\", new Integer(11));\n compBounds.put(\"jLabel2\", new Rectangle(81, 73, 34, 14));\n baselinePosition.put(\"jLabel2-34-14\", new Integer(11));\n compBounds.put(\"jTextField2\", new Rectangle(41, 93, 59, 20));\n baselinePosition.put(\"jTextField2-59-20\", new Integer(14));\n ld.updateCurrentState();\n // < UPDATE CURRENT STATE\n lc = new LayoutComponent(\"jLabel3\", false);\n // > START ADDING\n baselinePosition.put(\"jLabel3-34-14\", new Integer(11));\n {\n LayoutComponent[] comps = new LayoutComponent[]{lc};\n Rectangle[] bounds = new Rectangle[]{new Rectangle(0, 0, 34, 14)};\n String defaultContId = null;\n Point hotspot = new Point(13, 7);\n ld.startAdding(comps, bounds, hotspot, defaultContId);\n }\n // < START ADDING\n prefPaddingInParent.put(\"Form-jLabel3-1-0\", new Integer(11)); // parentId-compId-dimension-compAlignment\n prefPaddingInParent.put(\"Form-jLabel3-1-1\", new Integer(11)); // parentId-compId-dimension-compAlignment\n prefPadding.put(\"jTextField1-jLabel3-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jTextField1-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jTextField1-1-0-1\", new Integer(11)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jTextField1-1-0-2\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jTextField1-1-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jRadioButton1-jLabel3-1-0-1\", new Integer(7)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jRadioButton1-1-0-0\", new Integer(2)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jRadioButton2-jLabel3-1-0-0\", new Integer(2)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jRadioButton2-1-0-1\", new Integer(7)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel1-jLabel3-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel2-jLabel3-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jLabel1-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jLabel2-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel3-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel3-1-0-1\", new Integer(11)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel3-1-0-2\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel3-1-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jTextField2-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPaddingInParent.put(\"Form-jLabel3-0-0\", new Integer(10)); // parentId-compId-dimension-compAlignment\n prefPaddingInParent.put(\"Form-jLabel3-0-1\", new Integer(10)); // parentId-compId-dimension-compAlignment\n prefPadding.put(\"jScrollPane1-jLabel3-0-0-0\", new Integer(4)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jScrollPane1-0-0-0\", new Integer(4)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jScrollPane1-0-0-1\", new Integer(10)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jScrollPane1-0-0-2\", new Integer(10)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jScrollPane1-0-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel1-jLabel3-0-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jLabel1-0-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel2-jLabel3-0-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel2-jLabel3-0-0-1\", new Integer(10)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel2-jLabel3-0-0-2\", new Integer(10)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel2-jLabel3-0-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jLabel2-0-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel3-0-0-0\", new Integer(4)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel3-0-0-1\", new Integer(10)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel3-0-0-2\", new Integer(10)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel3-0-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jTextField2-0-0-0\", new Integer(4)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jRadioButton2-jLabel3-0-0-2\", new Integer(21)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n // > MOVE\n // > MOVE\n // > MOVE\n {\n Point p = new Point(53, 91);\n String containerId = \"Form\";\n boolean autoPositioning = true;\n boolean lockDimension = false;\n Rectangle[] bounds = new Rectangle[]{new Rectangle(39, 84, 34, 14)};\n ld.move(p, containerId, autoPositioning, lockDimension, bounds);\n }\n // < MOVE\n prefPaddingInParent.put(\"Form-jLabel3-1-0\", new Integer(11)); // parentId-compId-dimension-compAlignment\n prefPaddingInParent.put(\"Form-jLabel3-1-1\", new Integer(11)); // parentId-compId-dimension-compAlignment\n prefPadding.put(\"jTextField1-jLabel3-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jTextField1-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jTextField1-1-0-1\", new Integer(11)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jTextField1-1-0-2\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jTextField1-1-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jRadioButton1-jLabel3-1-0-1\", new Integer(7)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jRadioButton1-1-0-0\", new Integer(2)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jRadioButton2-jLabel3-1-0-0\", new Integer(2)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jRadioButton2-1-0-1\", new Integer(7)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel1-jLabel3-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel2-jLabel3-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jLabel1-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jLabel2-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel3-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel3-1-0-1\", new Integer(11)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel3-1-0-2\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel3-1-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jTextField2-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPaddingInParent.put(\"Form-jLabel3-0-0\", new Integer(10)); // parentId-compId-dimension-compAlignment\n prefPaddingInParent.put(\"Form-jLabel3-0-1\", new Integer(10)); // parentId-compId-dimension-compAlignment\n prefPadding.put(\"jScrollPane1-jLabel3-0-0-0\", new Integer(4)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jScrollPane1-0-0-0\", new Integer(4)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jScrollPane1-0-0-1\", new Integer(10)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jScrollPane1-0-0-2\", new Integer(10)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jScrollPane1-0-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel1-jLabel3-0-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jLabel1-0-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel2-jLabel3-0-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel2-jLabel3-0-0-1\", new Integer(10)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel2-jLabel3-0-0-2\", new Integer(10)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel2-jLabel3-0-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jLabel2-0-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel3-0-0-0\", new Integer(4)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel3-0-0-1\", new Integer(10)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel3-0-0-2\", new Integer(10)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel3-0-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jTextField2-0-0-0\", new Integer(4)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jRadioButton2-jLabel3-0-0-2\", new Integer(21)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n // > MOVE\n // > MOVE\n // > MOVE\n {\n Point p = new Point(52, 91);\n String containerId = \"Form\";\n boolean autoPositioning = true;\n boolean lockDimension = false;\n Rectangle[] bounds = new Rectangle[]{new Rectangle(39, 84, 34, 14)};\n ld.move(p, containerId, autoPositioning, lockDimension, bounds);\n }\n // < MOVE\n // > END MOVING\n compPrefSize.put(\"jLabel3\", new Dimension(34, 14));\n ld.endMoving(true);\n // < END MOVING\n ld.externalSizeChangeHappened();\n // > UPDATE CURRENT STATE\n contInterior.put(\"Form\", new Rectangle(0, 0, 400, 300));\n compBounds.put(\"jTextField1\", new Rectangle(0, 0, 400, 20));\n baselinePosition.put(\"jTextField1-400-20\", new Integer(14));\n compBounds.put(\"jRadioButton1\", new Rectangle(0, 22, 93, 23));\n baselinePosition.put(\"jRadioButton1-93-23\", new Integer(15));\n compBounds.put(\"jRadioButton2\", new Rectangle(0, 48, 93, 23));\n baselinePosition.put(\"jRadioButton2-93-23\", new Integer(15));\n compBounds.put(\"jScrollPane1\", new Rectangle(0, 73, 35, 130));\n baselinePosition.put(\"jScrollPane1-35-130\", new Integer(0));\n compBounds.put(\"jLabel1\", new Rectangle(41, 73, 34, 14));\n baselinePosition.put(\"jLabel1-34-14\", new Integer(11));\n compBounds.put(\"jLabel2\", new Rectangle(81, 73, 34, 14));\n baselinePosition.put(\"jLabel2-34-14\", new Integer(11));\n compBounds.put(\"jTextField2\", new Rectangle(41, 113, 59, 20));\n baselinePosition.put(\"jTextField2-59-20\", new Integer(14));\n compBounds.put(\"jLabel3\", new Rectangle(41, 93, 34, 14));\n baselinePosition.put(\"jLabel3-34-14\", new Integer(11));\n compPrefSize.put(\"jTextField1\", new Dimension(59, 20));\n compPrefSize.put(\"jRadioButton1\", new Dimension(93, 23));\n compPrefSize.put(\"jRadioButton2\", new Dimension(93, 23));\n compPrefSize.put(\"jScrollPane1\", new Dimension(35, 130));\n compPrefSize.put(\"jLabel1\", new Dimension(34, 14));\n compPrefSize.put(\"jLabel2\", new Dimension(34, 14));\n compPrefSize.put(\"jTextField2\", new Dimension(59, 20));\n compPrefSize.put(\"jLabel3\", new Dimension(34, 14));\n contInterior.put(\"Form\", new Rectangle(0, 0, 400, 300));\n compBounds.put(\"jTextField1\", new Rectangle(0, 0, 400, 20));\n baselinePosition.put(\"jTextField1-400-20\", new Integer(14));\n compBounds.put(\"jRadioButton1\", new Rectangle(0, 22, 93, 23));\n baselinePosition.put(\"jRadioButton1-93-23\", new Integer(15));\n compBounds.put(\"jRadioButton2\", new Rectangle(0, 48, 93, 23));\n baselinePosition.put(\"jRadioButton2-93-23\", new Integer(15));\n compBounds.put(\"jScrollPane1\", new Rectangle(0, 73, 35, 130));\n baselinePosition.put(\"jScrollPane1-35-130\", new Integer(0));\n compBounds.put(\"jLabel1\", new Rectangle(41, 73, 34, 14));\n baselinePosition.put(\"jLabel1-34-14\", new Integer(11));\n compBounds.put(\"jLabel2\", new Rectangle(81, 73, 34, 14));\n baselinePosition.put(\"jLabel2-34-14\", new Integer(11));\n compBounds.put(\"jTextField2\", new Rectangle(41, 113, 59, 20));\n baselinePosition.put(\"jTextField2-59-20\", new Integer(14));\n compBounds.put(\"jLabel3\", new Rectangle(41, 93, 34, 14));\n baselinePosition.put(\"jLabel3-34-14\", new Integer(11));\n ld.updateCurrentState();\n // < UPDATE CURRENT STATE\n changeMark = lm.getChangeMark();\n // > START RESIZING\n baselinePosition.put(\"jTextField2-59-20\", new Integer(14));\n compPrefSize.put(\"jTextField2\", new Dimension(59, 20));\n {\n String[] compIds = new String[]{\"jTextField2\"};\n Rectangle[] bounds = new Rectangle[]{new Rectangle(41, 113, 59, 20)};\n Point hotspot = new Point(99, 126);\n int[] resizeEdges = new int[]{1, -1};\n boolean inLayout = true;\n ld.startResizing(compIds, bounds, hotspot, resizeEdges, inLayout);\n }\n // < START RESIZING\n prefPaddingInParent.put(\"Form-jTextField2-0-1\", new Integer(10)); // parentId-compId-dimension-compAlignment\n // > MOVE\n // > MOVE\n // > MOVE\n {\n Point p = new Point(398, 133);\n String containerId = \"Form\";\n boolean autoPositioning = true;\n boolean lockDimension = false;\n Rectangle[] bounds = new Rectangle[]{new Rectangle(41, 113, 359, 20)};\n ld.move(p, containerId, autoPositioning, lockDimension, bounds);\n }\n // < MOVE\n prefPaddingInParent.put(\"Form-jTextField2-0-1\", new Integer(10)); // parentId-compId-dimension-compAlignment\n // > MOVE\n // > MOVE\n // > MOVE\n {\n Point p = new Point(399, 133);\n String containerId = \"Form\";\n boolean autoPositioning = true;\n boolean lockDimension = false;\n Rectangle[] bounds = new Rectangle[]{new Rectangle(41, 113, 359, 20)};\n ld.move(p, containerId, autoPositioning, lockDimension, bounds);\n }\n // < MOVE\n // > END MOVING\n ld.endMoving(true);\n // < END MOVING\n ld.externalSizeChangeHappened();\n // > UPDATE CURRENT STATE\n contInterior.put(\"Form\", new Rectangle(0, 0, 400, 300));\n compBounds.put(\"jTextField1\", new Rectangle(0, 0, 400, 20));\n baselinePosition.put(\"jTextField1-400-20\", new Integer(14));\n compBounds.put(\"jRadioButton1\", new Rectangle(0, 22, 93, 23));\n baselinePosition.put(\"jRadioButton1-93-23\", new Integer(15));\n compBounds.put(\"jRadioButton2\", new Rectangle(0, 48, 93, 23));\n baselinePosition.put(\"jRadioButton2-93-23\", new Integer(15));\n compBounds.put(\"jScrollPane1\", new Rectangle(0, 73, 35, 130));\n baselinePosition.put(\"jScrollPane1-35-130\", new Integer(0));\n compBounds.put(\"jLabel1\", new Rectangle(41, 73, 34, 14));\n baselinePosition.put(\"jLabel1-34-14\", new Integer(11));\n compBounds.put(\"jLabel2\", new Rectangle(81, 73, 34, 14));\n baselinePosition.put(\"jLabel2-34-14\", new Integer(11));\n compBounds.put(\"jTextField2\", new Rectangle(41, 113, 359, 20));\n baselinePosition.put(\"jTextField2-359-20\", new Integer(14));\n compBounds.put(\"jLabel3\", new Rectangle(41, 93, 34, 14));\n baselinePosition.put(\"jLabel3-34-14\", new Integer(11));\n prefPaddingInParent.put(\"Form-jRadioButton1-0-1\", new Integer(6)); // parentId-compId-dimension-compAlignment\n prefPaddingInParent.put(\"Form-jRadioButton2-0-1\", new Integer(6)); // parentId-compId-dimension-compAlignment\n compPrefSize.put(\"jTextField1\", new Dimension(59, 20));\n compPrefSize.put(\"jRadioButton1\", new Dimension(93, 23));\n compPrefSize.put(\"jRadioButton2\", new Dimension(93, 23));\n compPrefSize.put(\"jScrollPane1\", new Dimension(35, 130));\n compPrefSize.put(\"jLabel1\", new Dimension(34, 14));\n compPrefSize.put(\"jLabel2\", new Dimension(34, 14));\n compPrefSize.put(\"jTextField2\", new Dimension(59, 20));\n compPrefSize.put(\"jLabel3\", new Dimension(34, 14));\n contInterior.put(\"Form\", new Rectangle(0, 0, 400, 300));\n compBounds.put(\"jTextField1\", new Rectangle(0, 0, 400, 20));\n baselinePosition.put(\"jTextField1-400-20\", new Integer(14));\n compBounds.put(\"jRadioButton1\", new Rectangle(0, 22, 93, 23));\n baselinePosition.put(\"jRadioButton1-93-23\", new Integer(15));\n compBounds.put(\"jRadioButton2\", new Rectangle(0, 48, 93, 23));\n baselinePosition.put(\"jRadioButton2-93-23\", new Integer(15));\n compBounds.put(\"jScrollPane1\", new Rectangle(0, 73, 35, 130));\n baselinePosition.put(\"jScrollPane1-35-130\", new Integer(0));\n compBounds.put(\"jLabel1\", new Rectangle(41, 73, 34, 14));\n baselinePosition.put(\"jLabel1-34-14\", new Integer(11));\n compBounds.put(\"jLabel2\", new Rectangle(81, 73, 34, 14));\n baselinePosition.put(\"jLabel2-34-14\", new Integer(11));\n compBounds.put(\"jTextField2\", new Rectangle(41, 113, 359, 20));\n baselinePosition.put(\"jTextField2-359-20\", new Integer(14));\n compBounds.put(\"jLabel3\", new Rectangle(41, 93, 34, 14));\n baselinePosition.put(\"jLabel3-34-14\", new Integer(11));\n ld.updateCurrentState();\n // < UPDATE CURRENT STATE\n }", "private void updateDisplayText(double change) { updateDisplayText(change, null); }", "public void doChanges2() {\n lm.undo(changeMark, lm.getChangeMark());\n // > UPDATE CURRENT STATE\n contInterior.put(\"Form\", new Rectangle(0, 0, 400, 300));\n compBounds.put(\"jTextField1\", new Rectangle(0, 0, 400, 20));\n baselinePosition.put(\"jTextField1-400-20\", new Integer(14));\n compBounds.put(\"jRadioButton1\", new Rectangle(0, 22, 93, 23));\n baselinePosition.put(\"jRadioButton1-93-23\", new Integer(15));\n compBounds.put(\"jRadioButton2\", new Rectangle(0, 48, 93, 23));\n baselinePosition.put(\"jRadioButton2-93-23\", new Integer(15));\n compBounds.put(\"jScrollPane1\", new Rectangle(0, 73, 35, 130));\n baselinePosition.put(\"jScrollPane1-35-130\", new Integer(0));\n compBounds.put(\"jLabel1\", new Rectangle(41, 73, 34, 14));\n baselinePosition.put(\"jLabel1-34-14\", new Integer(11));\n compBounds.put(\"jLabel2\", new Rectangle(81, 73, 34, 14));\n baselinePosition.put(\"jLabel2-34-14\", new Integer(11));\n compBounds.put(\"jTextField2\", new Rectangle(41, 113, 59, 20));\n baselinePosition.put(\"jTextField2-59-20\", new Integer(14));\n compBounds.put(\"jLabel3\", new Rectangle(41, 93, 34, 14));\n baselinePosition.put(\"jLabel3-34-14\", new Integer(11));\n ld.updateCurrentState();\n // < UPDATE CURRENT STATE\n lc = new LayoutComponent(\"jLabel4\", false);\n // > START ADDING\n baselinePosition.put(\"jLabel4-34-14\", new Integer(11));\n {\n LayoutComponent[] comps = new LayoutComponent[]{lc};\n Rectangle[] bounds = new Rectangle[]{new Rectangle(0, 0, 34, 14)};\n String defaultContId = null;\n Point hotspot = new Point(13, 7);\n ld.startAdding(comps, bounds, hotspot, defaultContId);\n }\n // < START ADDING\n prefPaddingInParent.put(\"Form-jLabel4-1-0\", new Integer(11)); // parentId-compId-dimension-compAlignment\n prefPaddingInParent.put(\"Form-jLabel4-1-1\", new Integer(11)); // parentId-compId-dimension-compAlignment\n prefPadding.put(\"jTextField1-jLabel4-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jTextField1-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jTextField1-1-0-1\", new Integer(11)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jTextField1-1-0-2\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jTextField1-1-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jRadioButton1-jLabel4-1-0-1\", new Integer(7)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jRadioButton1-1-0-0\", new Integer(2)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jRadioButton2-jLabel4-1-0-0\", new Integer(2)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jRadioButton2-1-0-1\", new Integer(7)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel1-jLabel4-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel2-jLabel4-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jLabel1-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jLabel2-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jLabel4-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jLabel3-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel4-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel4-1-0-1\", new Integer(11)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel4-1-0-2\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel4-1-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jTextField2-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPaddingInParent.put(\"Form-jLabel4-0-0\", new Integer(10)); // parentId-compId-dimension-compAlignment\n prefPaddingInParent.put(\"Form-jLabel4-0-1\", new Integer(10)); // parentId-compId-dimension-compAlignment\n prefPadding.put(\"jScrollPane1-jLabel4-0-0-0\", new Integer(4)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jScrollPane1-0-0-0\", new Integer(4)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jScrollPane1-0-0-1\", new Integer(10)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jScrollPane1-0-0-2\", new Integer(10)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jScrollPane1-0-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel4-0-0-0\", new Integer(4)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel4-0-0-1\", new Integer(10)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel4-0-0-2\", new Integer(10)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel4-0-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jTextField2-0-0-0\", new Integer(4)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jLabel4-0-0-2\", new Integer(10)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n // > MOVE\n // > MOVE\n // > MOVE\n {\n Point p = new Point(59, 120);\n String containerId = \"Form\";\n boolean autoPositioning = true;\n boolean lockDimension = false;\n Rectangle[] bounds = new Rectangle[]{new Rectangle(39, 116, 34, 14)};\n ld.move(p, containerId, autoPositioning, lockDimension, bounds);\n }\n // < MOVE\n prefPaddingInParent.put(\"Form-jLabel4-1-0\", new Integer(11)); // parentId-compId-dimension-compAlignment\n prefPaddingInParent.put(\"Form-jLabel4-1-1\", new Integer(11)); // parentId-compId-dimension-compAlignment\n prefPadding.put(\"jTextField1-jLabel4-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jTextField1-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jTextField1-1-0-1\", new Integer(11)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jTextField1-1-0-2\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jTextField1-1-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jRadioButton1-jLabel4-1-0-1\", new Integer(7)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jRadioButton1-1-0-0\", new Integer(2)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jRadioButton2-jLabel4-1-0-0\", new Integer(2)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jRadioButton2-1-0-1\", new Integer(7)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel1-jLabel4-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel2-jLabel4-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jLabel1-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jLabel2-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jLabel4-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jLabel3-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel4-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel4-1-0-1\", new Integer(11)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel4-1-0-2\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel4-1-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jTextField2-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPaddingInParent.put(\"Form-jLabel4-0-0\", new Integer(10)); // parentId-compId-dimension-compAlignment\n prefPaddingInParent.put(\"Form-jLabel4-0-1\", new Integer(10)); // parentId-compId-dimension-compAlignment\n prefPadding.put(\"jScrollPane1-jLabel4-0-0-0\", new Integer(4)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jScrollPane1-0-0-0\", new Integer(4)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jScrollPane1-0-0-1\", new Integer(10)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jScrollPane1-0-0-2\", new Integer(10)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jScrollPane1-0-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel4-0-0-0\", new Integer(4)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel4-0-0-1\", new Integer(10)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel4-0-0-2\", new Integer(10)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel4-0-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jTextField2-0-0-0\", new Integer(4)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jLabel4-0-0-2\", new Integer(10)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n // > MOVE\n // > MOVE\n // > MOVE\n {\n Point p = new Point(60, 120);\n String containerId = \"Form\";\n boolean autoPositioning = true;\n boolean lockDimension = false;\n Rectangle[] bounds = new Rectangle[]{new Rectangle(41, 116, 34, 14)};\n ld.move(p, containerId, autoPositioning, lockDimension, bounds);\n }\n // < MOVE\n // > END MOVING\n compPrefSize.put(\"jLabel4\", new Dimension(34, 14));\n ld.endMoving(true);\n // < END MOVING\n ld.externalSizeChangeHappened();\n // > UPDATE CURRENT STATE\n contInterior.put(\"Form\", new Rectangle(0, 0, 400, 300));\n compBounds.put(\"jTextField1\", new Rectangle(0, 0, 400, 20));\n baselinePosition.put(\"jTextField1-400-20\", new Integer(14));\n compBounds.put(\"jRadioButton1\", new Rectangle(0, 22, 93, 23));\n baselinePosition.put(\"jRadioButton1-93-23\", new Integer(15));\n compBounds.put(\"jRadioButton2\", new Rectangle(0, 48, 93, 23));\n baselinePosition.put(\"jRadioButton2-93-23\", new Integer(15));\n compBounds.put(\"jScrollPane1\", new Rectangle(0, 73, 35, 130));\n baselinePosition.put(\"jScrollPane1-35-130\", new Integer(0));\n compBounds.put(\"jLabel1\", new Rectangle(39, 73, 34, 14));\n baselinePosition.put(\"jLabel1-34-14\", new Integer(11));\n compBounds.put(\"jLabel2\", new Rectangle(79, 73, 34, 14));\n baselinePosition.put(\"jLabel2-34-14\", new Integer(11));\n compBounds.put(\"jTextField2\", new Rectangle(77, 113, 59, 20));\n baselinePosition.put(\"jTextField2-59-20\", new Integer(14));\n compBounds.put(\"jLabel3\", new Rectangle(39, 93, 34, 14));\n baselinePosition.put(\"jLabel3-34-14\", new Integer(11));\n compBounds.put(\"jLabel4\", new Rectangle(39, 116, 34, 14));\n baselinePosition.put(\"jLabel4-34-14\", new Integer(11));\n prefPaddingInParent.put(\"Form-jRadioButton1-0-1\", new Integer(6)); // parentId-compId-dimension-compAlignment\n prefPaddingInParent.put(\"Form-jRadioButton2-0-1\", new Integer(6)); // parentId-compId-dimension-compAlignment\n prefPaddingInParent.put(\"Form-jLabel3-0-1\", new Integer(10)); // parentId-compId-dimension-compAlignment\n prefPaddingInParent.put(\"Form-jLabel2-0-1\", new Integer(10)); // parentId-compId-dimension-compAlignment\n prefPaddingInParent.put(\"Form-jTextField2-0-1\", new Integer(10)); // parentId-compId-dimension-compAlignment\n compPrefSize.put(\"jTextField1\", new Dimension(59, 20));\n compPrefSize.put(\"jRadioButton1\", new Dimension(93, 23));\n compPrefSize.put(\"jRadioButton2\", new Dimension(93, 23));\n compPrefSize.put(\"jScrollPane1\", new Dimension(35, 130));\n compPrefSize.put(\"jLabel1\", new Dimension(34, 14));\n compPrefSize.put(\"jLabel2\", new Dimension(34, 14));\n compPrefSize.put(\"jTextField2\", new Dimension(59, 20));\n compPrefSize.put(\"jLabel3\", new Dimension(34, 14));\n compPrefSize.put(\"jLabel4\", new Dimension(34, 14));\n contInterior.put(\"Form\", new Rectangle(0, 0, 400, 300));\n compBounds.put(\"jTextField1\", new Rectangle(0, 0, 400, 20));\n baselinePosition.put(\"jTextField1-400-20\", new Integer(14));\n compBounds.put(\"jRadioButton1\", new Rectangle(0, 22, 93, 23));\n baselinePosition.put(\"jRadioButton1-93-23\", new Integer(15));\n compBounds.put(\"jRadioButton2\", new Rectangle(0, 48, 93, 23));\n baselinePosition.put(\"jRadioButton2-93-23\", new Integer(15));\n compBounds.put(\"jScrollPane1\", new Rectangle(0, 73, 35, 130));\n baselinePosition.put(\"jScrollPane1-35-130\", new Integer(0));\n compBounds.put(\"jLabel1\", new Rectangle(39, 73, 34, 14));\n baselinePosition.put(\"jLabel1-34-14\", new Integer(11));\n compBounds.put(\"jLabel2\", new Rectangle(79, 73, 34, 14));\n baselinePosition.put(\"jLabel2-34-14\", new Integer(11));\n compBounds.put(\"jTextField2\", new Rectangle(77, 113, 59, 20));\n baselinePosition.put(\"jTextField2-59-20\", new Integer(14));\n compBounds.put(\"jLabel3\", new Rectangle(39, 93, 34, 14));\n baselinePosition.put(\"jLabel3-34-14\", new Integer(11));\n compBounds.put(\"jLabel4\", new Rectangle(39, 116, 34, 14));\n baselinePosition.put(\"jLabel4-34-14\", new Integer(11));\n ld.updateCurrentState();\n // < UPDATE CURRENT STATE\n changeMark = lm.getChangeMark();\n // > START RESIZING\n baselinePosition.put(\"jTextField2-59-20\", new Integer(14));\n compPrefSize.put(\"jTextField2\", new Dimension(59, 20));\n {\n String[] compIds = new String[]{\"jTextField2\"};\n Rectangle[] bounds = new Rectangle[]{new Rectangle(77, 113, 59, 20)};\n Point hotspot = new Point(135, 120);\n int[] resizeEdges = new int[]{1, -1};\n boolean inLayout = true;\n ld.startResizing(compIds, bounds, hotspot, resizeEdges, inLayout);\n }\n // < START RESIZING\n prefPaddingInParent.put(\"Form-jTextField2-0-1\", new Integer(10)); // parentId-compId-dimension-compAlignment\n // > MOVE\n // > MOVE\n // > MOVE\n {\n Point p = new Point(397, 141);\n String containerId = \"Form\";\n boolean autoPositioning = true;\n boolean lockDimension = false;\n Rectangle[] bounds = new Rectangle[]{new Rectangle(77, 113, 323, 20)};\n ld.move(p, containerId, autoPositioning, lockDimension, bounds);\n }\n // < MOVE\n prefPaddingInParent.put(\"Form-jTextField2-0-1\", new Integer(10)); // parentId-compId-dimension-compAlignment\n // > MOVE\n // > MOVE\n // > MOVE\n {\n Point p = new Point(398, 141);\n String containerId = \"Form\";\n boolean autoPositioning = true;\n boolean lockDimension = false;\n Rectangle[] bounds = new Rectangle[]{new Rectangle(77, 113, 323, 20)};\n ld.move(p, containerId, autoPositioning, lockDimension, bounds);\n }\n // < MOVE\n // > END MOVING\n ld.endMoving(true);\n // < END MOVING\n ld.externalSizeChangeHappened();\n // > UPDATE CURRENT STATE\n contInterior.put(\"Form\", new Rectangle(0, 0, 400, 300));\n compBounds.put(\"jTextField1\", new Rectangle(0, 0, 400, 20));\n baselinePosition.put(\"jTextField1-400-20\", new Integer(14));\n compBounds.put(\"jRadioButton1\", new Rectangle(0, 22, 93, 23));\n baselinePosition.put(\"jRadioButton1-93-23\", new Integer(15));\n compBounds.put(\"jRadioButton2\", new Rectangle(0, 48, 93, 23));\n baselinePosition.put(\"jRadioButton2-93-23\", new Integer(15));\n compBounds.put(\"jScrollPane1\", new Rectangle(0, 73, 35, 130));\n baselinePosition.put(\"jScrollPane1-35-130\", new Integer(0));\n compBounds.put(\"jLabel1\", new Rectangle(39, 73, 34, 14));\n baselinePosition.put(\"jLabel1-34-14\", new Integer(11));\n compBounds.put(\"jLabel2\", new Rectangle(79, 73, 34, 14));\n baselinePosition.put(\"jLabel2-34-14\", new Integer(11));\n compBounds.put(\"jTextField2\", new Rectangle(77, 113, 323, 20));\n baselinePosition.put(\"jTextField2-323-20\", new Integer(14));\n compBounds.put(\"jLabel3\", new Rectangle(39, 93, 34, 14));\n baselinePosition.put(\"jLabel3-34-14\", new Integer(11));\n compBounds.put(\"jLabel4\", new Rectangle(39, 116, 34, 14));\n baselinePosition.put(\"jLabel4-34-14\", new Integer(11));\n prefPaddingInParent.put(\"Form-jRadioButton1-0-1\", new Integer(6)); // parentId-compId-dimension-compAlignment\n prefPaddingInParent.put(\"Form-jRadioButton2-0-1\", new Integer(6)); // parentId-compId-dimension-compAlignment\n compPrefSize.put(\"jTextField1\", new Dimension(59, 20));\n compPrefSize.put(\"jRadioButton1\", new Dimension(93, 23));\n compPrefSize.put(\"jRadioButton2\", new Dimension(93, 23));\n compPrefSize.put(\"jScrollPane1\", new Dimension(35, 130));\n compPrefSize.put(\"jLabel1\", new Dimension(34, 14));\n compPrefSize.put(\"jLabel2\", new Dimension(34, 14));\n compPrefSize.put(\"jTextField2\", new Dimension(59, 20));\n compPrefSize.put(\"jLabel3\", new Dimension(34, 14));\n compPrefSize.put(\"jLabel4\", new Dimension(34, 14));\n contInterior.put(\"Form\", new Rectangle(0, 0, 400, 300));\n compBounds.put(\"jTextField1\", new Rectangle(0, 0, 400, 20));\n baselinePosition.put(\"jTextField1-400-20\", new Integer(14));\n compBounds.put(\"jRadioButton1\", new Rectangle(0, 22, 93, 23));\n baselinePosition.put(\"jRadioButton1-93-23\", new Integer(15));\n compBounds.put(\"jRadioButton2\", new Rectangle(0, 48, 93, 23));\n baselinePosition.put(\"jRadioButton2-93-23\", new Integer(15));\n compBounds.put(\"jScrollPane1\", new Rectangle(0, 73, 35, 130));\n baselinePosition.put(\"jScrollPane1-35-130\", new Integer(0));\n compBounds.put(\"jLabel1\", new Rectangle(39, 73, 34, 14));\n baselinePosition.put(\"jLabel1-34-14\", new Integer(11));\n compBounds.put(\"jLabel2\", new Rectangle(79, 73, 34, 14));\n baselinePosition.put(\"jLabel2-34-14\", new Integer(11));\n compBounds.put(\"jTextField2\", new Rectangle(77, 113, 323, 20));\n baselinePosition.put(\"jTextField2-323-20\", new Integer(14));\n compBounds.put(\"jLabel3\", new Rectangle(39, 93, 34, 14));\n baselinePosition.put(\"jLabel3-34-14\", new Integer(11));\n compBounds.put(\"jLabel4\", new Rectangle(39, 116, 34, 14));\n baselinePosition.put(\"jLabel4-34-14\", new Integer(11));\n ld.updateCurrentState();\n // < UPDATE CURRENT STATE\n }", "private void updateLocationUI() {\n mCurrentLocationStr = mCurrentPlace.getAddress().toString();\n mCurrentLatLng = mCurrentPlace.getLatLng();\n if(mCurrentLocationStr.isEmpty())\n mCurrentLocationStr = String.format(\"(%.2f, %.2f)\",mCurrentLatLng.latitude, mCurrentLatLng.longitude);\n\n mAddLocation.setText(mCurrentLocationStr);\n mAddLocation.setTextColor(mSecondaryTextColor);\n mClearLocation.setVisibility(View.VISIBLE);\n }", "private void updateUI() {\n// if (mCurrentLocation != null) {\n// mLatitudeTextView.setText(String.valueOf(mCurrentLocation.getLatitude()));\n// mLongitudeTextView.setText(String.valueOf(mCurrentLocation.getLongitude()));\n// mLastUpdateTimeTextView.setText(mLastUpdateTime);\n// }\n }", "void updateText(int c) {\n postInvalidate();\n }", "public void update() {\r\n\t\t\tsetTextValue(updateNoteEnabled);\r\n\t\t}", "public void updateTextViews() {\n // Set the inputs according to the initial input from the entry.\n //TextView dateTextView = (TextView) findViewById(R.id.date_textview);\n //dateTextView.setText(DateUtils.formatDateTime(getApplicationContext(), mEntry.getStart(), DateUtils.FORMAT_SHOW_DATE));\n\n EditText dateEdit = (EditText) findViewById(R.id.date_text_edit);\n dateEdit.setText(DateUtils.formatDateTime(this, mEntry.getStart(), DateUtils.FORMAT_NUMERIC_DATE | DateUtils.FORMAT_SHOW_DATE | DateUtils.FORMAT_SHOW_YEAR | DateUtils.FORMAT_ABBREV_ALL));\n\n EditText startTimeEdit = (EditText) findViewById(R.id.start_time_text_edit);\n startTimeEdit.setText(DateUtils.formatDateTime(this, mEntry.getStart(), DateUtils.FORMAT_SHOW_TIME));\n\n EditText endTimeEdit = (EditText) findViewById(R.id.end_time_text_edit);\n endTimeEdit.setText(DateUtils.formatDateTime(this, mEntry.getEnd(), DateUtils.FORMAT_SHOW_TIME));\n\n\n TextView descriptionView = (TextView) findViewById(R.id.description);\n descriptionView.setText(mEntry.getDescription());\n\n\n enableSendButtonIfPossible();\n }", "public void update(){\r\n\t\tupdateTurnLabel();\r\n\t\tupdateCanvas();\r\n\t}", "@Override\n public void update() {\n CommandNodeGameState gs = (CommandNodeGameState) state;\n String acc = String.valueOf(gs.getAcc());\n accView.setText(acc);\n String bak = String.valueOf(gs.getBak());\n bakView.setText(bak);\n String last = String.valueOf(gs.getLast());\n lastView.setText(last);\n String mode = String.valueOf(gs.getMode());\n modeView.setText(mode);\n String idle = String.valueOf(0);\n idleView.setText(idle);\n\n StringBuilder builder = new StringBuilder();\n for (int i = 0; i < gs.lineCount(); i++) {\n builder.append(gs.getLine(i).toString());\n builder.append(\"\\n\");\n }\n textArea.setText(builder.toString());\n\n if (state.isActive()) {\n highlightedLine = gs.getSelectedLine();\n } else {\n highlightedLine = null;\n }\n invalidate();\n }", "public void update (String text)\n {\n buttonText = text;\n GreenfootImage tempTextImage = new GreenfootImage (text, 20, Color.RED, Color.WHITE);\n myImage = new GreenfootImage (tempTextImage.getWidth() + 8, tempTextImage.getHeight() + 8);\n myImage.setColor (Color.WHITE);\n myImage.fill();\n myImage.drawImage (tempTextImage, 4, 4);\n\n myImage.setColor (Color.BLACK);\n myImage.drawRect (0,0,tempTextImage.getWidth() + 7, tempTextImage.getHeight() + 7);\n setImage(myImage);\n }", "private void updateText() {\n updateDateText();\n\n TextView weightText = findViewById(R.id.tvWeight);\n TextView lowerBPText = findViewById(R.id.tvLowerBP);\n TextView upperBPText = findViewById(R.id.tvUpperBP);\n\n mUser.weight.sortListByDate();\n mUser.bloodPressure.sortListsByDate();\n\n double weight = mUser.weight.getWeightByDate(mDate.getTime());\n int upperBP = mUser.bloodPressure.getUpperBPByDate(mDate.getTime());\n int lowerBP = mUser.bloodPressure.getLowerBPByDate(mDate.getTime());\n\n weightText.setText(String.format(Locale.getDefault(), \"Paino\\n%.1f\", weight));\n lowerBPText.setText(String.format(Locale.getDefault(), \"AlaP\\n%d\", lowerBP));\n upperBPText.setText(String.format(Locale.getDefault(), \"YläP\\n%d\", upperBP));\n\n ((EditText)findViewById(R.id.etWeight)).setText(\"\");\n ((EditText)findViewById(R.id.etLowerBP)).setText(\"\");\n ((EditText)findViewById(R.id.etUpperBP)).setText(\"\");\n }", "@Override\n public void update() {\n jTextField1.setText(mCalculator.getDisplay());\n }", "public void doChanges0() {\n lm.setChangeRecording(true);\n changeMark = lm.getChangeMark();\n ld.externalSizeChangeHappened();\n // > UPDATE CURRENT STATE\n contInterior.put(\"Form\", new Rectangle(0, 0, 400, 300));\n compBounds.put(\"jTextField1\", new Rectangle(0, 0, 400, 20));\n baselinePosition.put(\"jTextField1-400-20\", new Integer(14));\n compBounds.put(\"jRadioButton1\", new Rectangle(0, 22, 93, 23));\n baselinePosition.put(\"jRadioButton1-93-23\", new Integer(15));\n compBounds.put(\"jRadioButton2\", new Rectangle(0, 48, 93, 23));\n baselinePosition.put(\"jRadioButton2-93-23\", new Integer(15));\n compBounds.put(\"jScrollPane1\", new Rectangle(0, 73, 35, 130));\n baselinePosition.put(\"jScrollPane1-35-130\", new Integer(0));\n compBounds.put(\"jLabel1\", new Rectangle(41, 73, 34, 14));\n baselinePosition.put(\"jLabel1-34-14\", new Integer(11));\n compBounds.put(\"jLabel2\", new Rectangle(81, 73, 34, 14));\n baselinePosition.put(\"jLabel2-34-14\", new Integer(11));\n compBounds.put(\"jTextField2\", new Rectangle(41, 93, 59, 20));\n baselinePosition.put(\"jTextField2-59-20\", new Integer(14));\n compPrefSize.put(\"jTextField1\", new Dimension(59, 20));\n compPrefSize.put(\"jRadioButton1\", new Dimension(93, 23));\n compPrefSize.put(\"jRadioButton2\", new Dimension(93, 23));\n compPrefSize.put(\"jScrollPane1\", new Dimension(35, 130));\n compPrefSize.put(\"jLabel1\", new Dimension(34, 14));\n compPrefSize.put(\"jLabel2\", new Dimension(34, 14));\n compPrefSize.put(\"jTextField2\", new Dimension(59, 20));\n contInterior.put(\"Form\", new Rectangle(0, 0, 400, 300));\n compBounds.put(\"jTextField1\", new Rectangle(0, 0, 400, 20));\n baselinePosition.put(\"jTextField1-400-20\", new Integer(14));\n compBounds.put(\"jRadioButton1\", new Rectangle(0, 22, 93, 23));\n baselinePosition.put(\"jRadioButton1-93-23\", new Integer(15));\n compBounds.put(\"jRadioButton2\", new Rectangle(0, 48, 93, 23));\n baselinePosition.put(\"jRadioButton2-93-23\", new Integer(15));\n compBounds.put(\"jScrollPane1\", new Rectangle(0, 73, 35, 130));\n baselinePosition.put(\"jScrollPane1-35-130\", new Integer(0));\n compBounds.put(\"jLabel1\", new Rectangle(41, 73, 34, 14));\n baselinePosition.put(\"jLabel1-34-14\", new Integer(11));\n compBounds.put(\"jLabel2\", new Rectangle(81, 73, 34, 14));\n baselinePosition.put(\"jLabel2-34-14\", new Integer(11));\n compBounds.put(\"jTextField2\", new Rectangle(41, 93, 59, 20));\n baselinePosition.put(\"jTextField2-59-20\", new Integer(14));\n ld.updateCurrentState();\n // < UPDATE CURRENT STATE\n // > START RESIZING\n baselinePosition.put(\"jTextField2-59-20\", new Integer(14));\n compPrefSize.put(\"jTextField2\", new Dimension(59, 20));\n {\n String[] compIds = new String[]{\"jTextField2\"};\n Rectangle[] bounds = new Rectangle[]{new Rectangle(41, 93, 59, 20)};\n Point hotspot = new Point(102, 106);\n int[] resizeEdges = new int[]{1, -1};\n boolean inLayout = true;\n ld.startResizing(compIds, bounds, hotspot, resizeEdges, inLayout);\n }\n // < START RESIZING\n prefPaddingInParent.put(\"Form-jTextField2-0-1\", new Integer(10)); // parentId-compId-dimension-compAlignment\n // > MOVE\n // > MOVE\n // > MOVE\n {\n Point p = new Point(399, 128);\n String containerId = \"Form\";\n boolean autoPositioning = true;\n boolean lockDimension = false;\n Rectangle[] bounds = new Rectangle[]{new Rectangle(41, 93, 359, 20)};\n ld.move(p, containerId, autoPositioning, lockDimension, bounds);\n }\n // < MOVE\n prefPaddingInParent.put(\"Form-jTextField2-0-1\", new Integer(10)); // parentId-compId-dimension-compAlignment\n // > MOVE\n // > MOVE\n // > MOVE\n {\n Point p = new Point(400, 128);\n String containerId = \"Form\";\n boolean autoPositioning = true;\n boolean lockDimension = false;\n Rectangle[] bounds = new Rectangle[]{new Rectangle(41, 93, 359, 20)};\n ld.move(p, containerId, autoPositioning, lockDimension, bounds);\n }\n // < MOVE\n // > END MOVING\n ld.endMoving(true);\n // < END MOVING\n ld.externalSizeChangeHappened();\n // > UPDATE CURRENT STATE\n contInterior.put(\"Form\", new Rectangle(0, 0, 400, 300));\n compBounds.put(\"jTextField1\", new Rectangle(0, 0, 400, 20));\n baselinePosition.put(\"jTextField1-400-20\", new Integer(14));\n compBounds.put(\"jRadioButton1\", new Rectangle(0, 22, 93, 23));\n baselinePosition.put(\"jRadioButton1-93-23\", new Integer(15));\n compBounds.put(\"jRadioButton2\", new Rectangle(0, 48, 93, 23));\n baselinePosition.put(\"jRadioButton2-93-23\", new Integer(15));\n compBounds.put(\"jScrollPane1\", new Rectangle(0, 73, 35, 130));\n baselinePosition.put(\"jScrollPane1-35-130\", new Integer(0));\n compBounds.put(\"jLabel1\", new Rectangle(41, 73, 34, 14));\n baselinePosition.put(\"jLabel1-34-14\", new Integer(11));\n compBounds.put(\"jLabel2\", new Rectangle(81, 73, 34, 14));\n baselinePosition.put(\"jLabel2-34-14\", new Integer(11));\n compBounds.put(\"jTextField2\", new Rectangle(41, 93, 359, 20));\n baselinePosition.put(\"jTextField2-359-20\", new Integer(14));\n prefPaddingInParent.put(\"Form-jRadioButton1-0-1\", new Integer(6)); // parentId-compId-dimension-compAlignment\n prefPaddingInParent.put(\"Form-jRadioButton2-0-1\", new Integer(6)); // parentId-compId-dimension-compAlignment\n compPrefSize.put(\"jTextField1\", new Dimension(59, 20));\n compPrefSize.put(\"jRadioButton1\", new Dimension(93, 23));\n compPrefSize.put(\"jRadioButton2\", new Dimension(93, 23));\n compPrefSize.put(\"jScrollPane1\", new Dimension(35, 130));\n compPrefSize.put(\"jLabel1\", new Dimension(34, 14));\n compPrefSize.put(\"jLabel2\", new Dimension(34, 14));\n compPrefSize.put(\"jTextField2\", new Dimension(59, 20));\n contInterior.put(\"Form\", new Rectangle(0, 0, 400, 300));\n compBounds.put(\"jTextField1\", new Rectangle(0, 0, 400, 20));\n baselinePosition.put(\"jTextField1-400-20\", new Integer(14));\n compBounds.put(\"jRadioButton1\", new Rectangle(0, 22, 93, 23));\n baselinePosition.put(\"jRadioButton1-93-23\", new Integer(15));\n compBounds.put(\"jRadioButton2\", new Rectangle(0, 48, 93, 23));\n baselinePosition.put(\"jRadioButton2-93-23\", new Integer(15));\n compBounds.put(\"jScrollPane1\", new Rectangle(0, 73, 35, 130));\n baselinePosition.put(\"jScrollPane1-35-130\", new Integer(0));\n compBounds.put(\"jLabel1\", new Rectangle(41, 73, 34, 14));\n baselinePosition.put(\"jLabel1-34-14\", new Integer(11));\n compBounds.put(\"jLabel2\", new Rectangle(81, 73, 34, 14));\n baselinePosition.put(\"jLabel2-34-14\", new Integer(11));\n compBounds.put(\"jTextField2\", new Rectangle(41, 93, 359, 20));\n baselinePosition.put(\"jTextField2-359-20\", new Integer(14));\n ld.updateCurrentState();\n // < UPDATE CURRENT STATE\n }", "public void update(Observable obj, Object arg ){\n\t\trepaint();\n\t\tif(theModel.getSelectedVertexIndex() == -1){\n\t\t\ttextField.setText(\"\");\n\t\t\ttextField.setEditable(false);\n\t\t}\n\t}", "@Override\n\tpublic void updatePosition() {\n\t\t\n\t}", "public void update() {\r\n if(selectedImage == null) {\r\n xStartProperty.setText(\"\");\r\n yStartProperty.setText(\"\");\r\n xEndProperty.setText(\"\");\r\n yEndProperty.setText(\"\");\r\n rotationProperty.setText(\"\");\r\n } else {\r\n xStartProperty.setText(String.valueOf(selectedImage.getXStart()));\r\n yStartProperty.setText(String.valueOf(selectedImage.getYStart()));\r\n xEndProperty.setText(String.valueOf(selectedImage.getXEnd()));\r\n yEndProperty.setText(String.valueOf(selectedImage.getYEnd()));\r\n rotationProperty.setText(String.valueOf(selectedImage.getRotation()));\r\n }\r\n }", "@Override\r\n public void update(\r\n ) {\r\n \tsuper.update();\r\n \t\r\n\t\tString activeLoading = mLoadingScene;\r\n\t\tif ( (activeLoading != null) && (mActiveElement != null) ) {\r\n\t \tmUpdateCounter += 1;\r\n\t if ( mUpdateCounter == 10 ) {\r\n\t \tStringBuilder aBuffer = new StringBuilder( 256 );\r\n\t \taBuffer.append( \"** LOADING ==> \" )\r\n\t \t .append( activeLoading )\r\n\t \t .append( \" -- \" );\r\n\t \tmActiveElement.reportStatus( aBuffer, false );\r\n\t \t\r\n\t\t\t\tCSGTestDriver.postText( this, mTextDisplay, aBuffer.toString(), false );\r\n\t mUpdateCounter = 0;\r\n\t }\r\n\t\t}\t\r\n \tif ( mLoadedSpatial != null ) {\r\n \t\tattachLoadedSpatial( mLoadedSpatial );\r\n \t\tmLoadedSpatial = null;\r\n \t}\r\n }", "protected void updateLocationUI() {\n if (mCurrentLocation != null) {\n //TrackDataCSVHelper myCSV2 = new TrackDataCSVHelper();\n //mDistanceFromWaypointText.setText(String.valueOf(myCSV2.getLon(track, this))); //<-- used this to test getting proper lat/lon\n //mDistanceFromWaypointText.setText(String.format(\"%s: %f\", \"Dist from WP\", mDistanceFromWaypoint));\n //mZoneStatusText.setText(\"IN THE ZONE? \" + mIsInZone);\n //mNumberUpdates.setText(String.valueOf(mNum));\n }\n }", "private void updateInformation(){\n view.getPrompt().setText(getPrompt());\n view.getScore().setText(getScore());\n }", "public void doChanges0() {\n ld.externalSizeChangeHappened();\n // > UPDATE CURRENT STATE\n contInterior.put(\"Form\", new Rectangle(0, 0, 436, 300));\n compBounds.put(\"jTextField1\", new Rectangle(10, 11, 216, 20));\n baselinePosition.put(\"jTextField1-216-20\", new Integer(14));\n compBounds.put(\"jToggleButton2\", new Rectangle(10, 118, 105, 23));\n baselinePosition.put(\"jToggleButton2-105-23\", new Integer(15));\n compBounds.put(\"jToggleButton3\", new Rectangle(121, 118, 105, 23));\n baselinePosition.put(\"jToggleButton3-105-23\", new Integer(15));\n compBounds.put(\"jTextField2\", new Rectangle(10, 37, 216, 20));\n baselinePosition.put(\"jTextField2-216-20\", new Integer(14));\n compBounds.put(\"jScrollPane1\", new Rectangle(232, 11, 35, 130));\n baselinePosition.put(\"jScrollPane1-35-130\", new Integer(0));\n compPrefSize.put(\"jTextField1\", new Dimension(59, 20));\n compPrefSize.put(\"jTextField2\", new Dimension(59, 20));\n prefPadding.put(\"jTextField2-jToggleButton2-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jToggleButton2-1-0-1\", new Integer(11)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jToggleButton2-1-0-2\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jToggleButton2-1-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jToggleButton3-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jToggleButton3-1-0-1\", new Integer(11)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jToggleButton3-1-0-2\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jToggleButton3-1-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPaddingInParent.put(\"Form-jScrollPane1-1-1\", new Integer(11)); // parentId-compId-dimension-compAlignment\n prefPaddingInParent.put(\"Form-jToggleButton2-1-1\", new Integer(11)); // parentId-compId-dimension-compAlignment\n prefPaddingInParent.put(\"Form-jToggleButton3-1-1\", new Integer(11)); // parentId-compId-dimension-compAlignment\n contInterior.put(\"Form\", new Rectangle(0, 0, 436, 300));\n compBounds.put(\"jTextField1\", new Rectangle(10, 11, 216, 20));\n baselinePosition.put(\"jTextField1-216-20\", new Integer(14));\n compBounds.put(\"jToggleButton2\", new Rectangle(10, 118, 105, 23));\n baselinePosition.put(\"jToggleButton2-105-23\", new Integer(15));\n compBounds.put(\"jToggleButton3\", new Rectangle(121, 118, 105, 23));\n baselinePosition.put(\"jToggleButton3-105-23\", new Integer(15));\n compBounds.put(\"jTextField2\", new Rectangle(10, 37, 216, 20));\n baselinePosition.put(\"jTextField2-216-20\", new Integer(14));\n compBounds.put(\"jScrollPane1\", new Rectangle(232, 11, 35, 130));\n baselinePosition.put(\"jScrollPane1-35-130\", new Integer(0));\n ld.updateCurrentState();\n // < UPDATE CURRENT STATE\n compPrefSize.put(\"jTextField1\", new Dimension(59, 20));\n compPrefSize.put(\"jTextField2\", new Dimension(59, 20));\n prefPadding.put(\"jTextField2-jToggleButton2-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jToggleButton2-1-0-1\", new Integer(11)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jToggleButton2-1-0-2\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jToggleButton2-1-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jToggleButton3-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jToggleButton3-1-0-1\", new Integer(11)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jToggleButton3-1-0-2\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jToggleButton3-1-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPaddingInParent.put(\"Form-jToggleButton2-1-1\", new Integer(11)); // parentId-compId-dimension-compAlignment\n prefPaddingInParent.put(\"Form-jToggleButton3-1-1\", new Integer(11)); // parentId-compId-dimension-compAlignment\n // parentId-compId-dimension-compAlignment\n lm.removeComponent(\"jScrollPane1\", true);\n ld.externalSizeChangeHappened();\n // > UPDATE CURRENT STATE\n contInterior.put(\"Form\", new Rectangle(0, 0, 436, 300));\n compBounds.put(\"jTextField1\", new Rectangle(10, 11, 216, 20));\n baselinePosition.put(\"jTextField1-216-20\", new Integer(14));\n compBounds.put(\"jToggleButton2\", new Rectangle(10, 118, 105, 23));\n baselinePosition.put(\"jToggleButton2-105-23\", new Integer(15));\n compBounds.put(\"jToggleButton3\", new Rectangle(121, 118, 105, 23));\n baselinePosition.put(\"jToggleButton3-105-23\", new Integer(15));\n compBounds.put(\"jTextField2\", new Rectangle(10, 37, 216, 20));\n baselinePosition.put(\"jTextField2-216-20\", new Integer(14));\n compPrefSize.put(\"jTextField1\", new Dimension(59, 20));\n compPrefSize.put(\"jTextField2\", new Dimension(59, 20));\n prefPadding.put(\"jTextField2-jToggleButton2-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jToggleButton2-1-0-1\", new Integer(11)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jToggleButton2-1-0-2\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jToggleButton2-1-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jToggleButton3-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jToggleButton3-1-0-1\", new Integer(11)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jToggleButton3-1-0-2\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jToggleButton3-1-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPaddingInParent.put(\"Form-jToggleButton2-1-1\", new Integer(11)); // parentId-compId-dimension-compAlignment\n prefPaddingInParent.put(\"Form-jToggleButton3-1-1\", new Integer(11)); // parentId-compId-dimension-compAlignment\n contInterior.put(\"Form\", new Rectangle(0, 0, 436, 300));\n compBounds.put(\"jTextField1\", new Rectangle(10, 11, 216, 20));\n baselinePosition.put(\"jTextField1-216-20\", new Integer(14));\n compBounds.put(\"jToggleButton2\", new Rectangle(10, 118, 105, 23));\n baselinePosition.put(\"jToggleButton2-105-23\", new Integer(15));\n compBounds.put(\"jToggleButton3\", new Rectangle(121, 118, 105, 23));\n baselinePosition.put(\"jToggleButton3-105-23\", new Integer(15));\n compBounds.put(\"jTextField2\", new Rectangle(10, 37, 216, 20));\n baselinePosition.put(\"jTextField2-216-20\", new Integer(14));\n ld.updateCurrentState();\n // < UPDATE CURRENT STATE\n }", "private void updateTextButtons() {\n CrewMember crewMember = department.getCrewMember();\n repair.setText(\"Click to repair your ship for \"+getHealCost()+ \" gold!\");\n upgrade.setText(\"Click to upgrade \" + crewMember.getName() + \" for \"+crewMember.getUpgradeCost()+\" gold!\");\n }", "public void update() {\n\t\t\n\t\tif (!editable) {\n\t\t\ttyping = false;\n\t\t}\n\t\t\n\t\t\n\t\tif (System.currentTimeMillis() - cursorTimer > 600) {\n\t\t\tcursorTimer = System.currentTimeMillis();\n\t\t\tcursorShow = !cursorShow;\n\t\t}\n\t\t\n\t\tif (editable) {\n\t\t\tRectangle rect = new Rectangle(position, size);\n\t\t\tif (rect.contains(Mouse.getVector())) {\n\t\t\t\tif (Mouse.left.pressed() && !typing) {\n\t\t\t\t\ttyping = true;\n\t\t\t\t\tcursorTimer = System.currentTimeMillis();\n\t\t\t\t\tcursorShow = true;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse {\n\t\t\t\tif (Mouse.left.pressed() && typing && !justStartedTyping) {\n\t\t\t\t\ttyping = false;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (typing) {\n\t\t\t\tif (Keyboard.keyWasTyped()) {\n\t\t\t\t\tchar typedChar = Keyboard.getTypedChar();\n\t\t\t\t\tif (Keyboard.enter.pressed()) {\n\t\t\t\t\t\ttyping = false;\n\t\t\t\t\t}\n\t\t\t\t\telse if (typedChar == (char)8) {\n\t\t\t\t\t\tif (!text.isEmpty()) {\n\t\t\t\t\t\t\tcursorTimer = System.currentTimeMillis();\n\t\t\t\t\t\t\tcursorShow = true;\n\t\t\t\t\t\t\ttext = text.substring(0, text.length() - 1);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse if (text.length() < maxLength) {\n\t\t\t\t\t\ttext += typedChar;\n\t\t\t\t\t\tcursorTimer = System.currentTimeMillis();\n\t\t\t\t\t\tcursorShow = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tjustStartedTyping = false;\n\t}", "public void updateXLoc();", "public void updateLocation();", "public void updateText() throws JUIGLELangException {\n SwingUtilities.invokeLater(new Runnable() {\n\n\n public void run() {\n fireTableStructureChanged();\n }\n });\n\n }", "void setEditFrameText(Motion m);", "private void updateText(){\n\t\tif(propertiesObj == null)\n\t\t\treturn;\n\n\t\tif(propertiesObj instanceof QuestionDef)\n\t\t\t((QuestionDef)propertiesObj).setText(txtText.getText());\n\t\telse if(propertiesObj instanceof OptionDef)\n\t\t\t((OptionDef)propertiesObj).setText(txtText.getText());\n\t\telse if(propertiesObj instanceof PageDef)\n\t\t\t((PageDef)propertiesObj).setName(txtText.getText());\n\t\telse if(propertiesObj instanceof FormDef)\n\t\t\t((FormDef)propertiesObj).setName(txtText.getText());\n\n\t\tformChangeListener.onFormItemChanged(propertiesObj);\n\t}", "private void updateUi() {\n final int numPoints = map.getPolyLinePoints(featureId).size();\n final MapPoint location = map.getGpsLocation();\n\n // Visibility state\n playButton.setVisibility(inputActive ? View.GONE : View.VISIBLE);\n pauseButton.setVisibility(inputActive ? View.VISIBLE : View.GONE);\n recordButton.setVisibility(inputActive && recordingEnabled && !recordingAutomatic ? View.VISIBLE : View.GONE);\n\n // Enabled state\n zoomButton.setEnabled(location != null);\n backspaceButton.setEnabled(numPoints > 0);\n clearButton.setEnabled(!inputActive && numPoints > 0);\n settingsView.findViewById(R.id.manual_mode).setEnabled(location != null);\n settingsView.findViewById(R.id.automatic_mode).setEnabled(location != null);\n\n if (intentReadOnly) {\n playButton.setEnabled(false);\n backspaceButton.setEnabled(false);\n clearButton.setEnabled(false);\n }\n // Settings dialog\n\n // GPS status\n boolean usingThreshold = isAccuracyThresholdActive();\n boolean acceptable = location != null && isLocationAcceptable(location);\n int seconds = INTERVAL_OPTIONS[intervalIndex];\n int minutes = seconds / 60;\n int meters = ACCURACY_THRESHOLD_OPTIONS[accuracyThresholdIndex];\n locationStatus.setText(\n location == null ? getString(org.odk.collect.strings.R.string.location_status_searching)\n : !usingThreshold ? getString(org.odk.collect.strings.R.string.location_status_accuracy, location.accuracy)\n : acceptable ? getString(org.odk.collect.strings.R.string.location_status_acceptable, location.accuracy)\n : getString(org.odk.collect.strings.R.string.location_status_unacceptable, location.accuracy)\n );\n locationStatus.setBackgroundColor(\n location == null ? getThemeAttributeValue(this, com.google.android.material.R.attr.colorPrimary)\n : acceptable ? getThemeAttributeValue(this, com.google.android.material.R.attr.colorPrimary)\n : getThemeAttributeValue(this, com.google.android.material.R.attr.colorError)\n );\n collectionStatus.setText(\n !inputActive ? getString(org.odk.collect.strings.R.string.collection_status_paused, numPoints)\n : !recordingEnabled ? getString(org.odk.collect.strings.R.string.collection_status_placement, numPoints)\n : !recordingAutomatic ? getString(org.odk.collect.strings.R.string.collection_status_manual, numPoints)\n : !usingThreshold ? (\n minutes > 0 ?\n getString(org.odk.collect.strings.R.string.collection_status_auto_minutes, numPoints, minutes) :\n getString(org.odk.collect.strings.R.string.collection_status_auto_seconds, numPoints, seconds)\n )\n : (\n minutes > 0 ?\n getString(org.odk.collect.strings.R.string.collection_status_auto_minutes_accuracy, numPoints, minutes, meters) :\n getString(org.odk.collect.strings.R.string.collection_status_auto_seconds_accuracy, numPoints, seconds, meters)\n )\n );\n }", "@Override\n public void updateDrawState(TextPaint ds) {\n }", "void updateControls();", "@Override\n\tpublic void handleUpdateUI(String text, int code) {\n\t\t\n\t}", "public void updateText( String text ) {\n\t\tthis.text = text;\n\t}", "public void update() {}", "public void doUpdate() {\n \tboolean actualizo = this.update(); \n \t\n if (actualizo) {\n // this.exit();\n \n // Ver aca si direcciono a la edición ... lo hace la clase que\n \tthis.redireccion();\n \n } else {\n //new MessageWindowPane(\"Se produjo un error en la actualización\");\n }\n \n \n }", "public void update(){}", "public void update(){}", "@Override\n public void run() {\n if (mouseEvent.getSource()==updateButton && infoFrame==null){\n //JOptionPane.showMessageDialog(null,\"Test\\nTest2\\nTest3\\nlll\");\n\n JTextArea infoText = new JTextArea();\n\n infoText.setText(\"To get weather data for a city:\\n Enter its info into the text field\\n Choose type of location from dropdown menu \\n Click Update Button\\n Then click either daily or weekly weather \\n \\nMultiword cities and \\n Latitude and longitude coordinates\\n should be separated by a - symbol\\n\\n Examples\\n\\n San-Francisco (City example)\\n 59102 (Zip code example) \\n 524901 (City ID example) \\n 30-175 (Lat&Lon example)\\n\");\n infoText.setBounds(0,0,300,250);\n infoPane = new JScrollPane(infoText);\n\n infoFrame = new JFrame();\n infoFrame.getContentPane().add(infoText,BorderLayout.CENTER);\n infoFrame.setSize(300,250);\n\n infoFrame.setLocationRelativeTo(mouseEvent.getComponent());\n Rectangle rect = infoFrame.getBounds();\n //rect.x = rect.x +250;\n rect.y = rect.y - 200;\n infoFrame.setBounds(rect);\n infoFrame.add(infoPane);\n\n infoFrame.setLayout(null);\n infoFrame.setVisible(true);\n infoFrame.revalidate();\n infoFrame.repaint();\n\n };\n }", "public void update();", "public void update();", "public void update();", "public void update();", "public void update();", "public void update();", "public void update();", "private void updateText()\n\t{\n\t\tlong longResult;\t\t//holds the value of result casted to type long\n\t\tif(result % 1 == 0)\n\t\t{\n\t\t\tlongResult = (long)result;\n\t\t\tupdateText += longResult;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tupdateText += result;\n\t\t}\n\t\tentry.setText (\"\");\n\t\tentry.setText (updateText);\n\t\tupdateText = \"\";\n\t\tentry.grabFocus();\n\t}", "void editCell(Coord coord, String string);", "public void update() {\r\n\t\tfor (int i = 0; i < myRows; i++)\r\n\t\t\tfor (int j = 0; j < myColumns; j++)\r\n\t\t\t\tsetCellText(cellArray[i][j]);\r\n\t}", "public void changePositionOfAdjuster() {\n final float txOffset = currentSittingTranslationX;\n final float tyOffset = currentSittingTranslationY;\n final float tzOffset = currentSittingTranslationZ;\n float rxOffset = currentSittingRotationX;\n float ryOffset = currentSittingRotationY;\n float rzOffset = currentSittingRotationZ;\n \n //get cell transform of the sceneroot of cell\n CellRendererJME ret = (CellRendererJME) editor.getCell().getCellRenderer(Cell.RendererType.RENDERER_JME);\n Entity mye = ret.getEntity();\n RenderComponent rc = (RenderComponent) mye.getComponent(RenderComponent.class);\n Node localNode = rc.getSceneRoot();\n Vector3f v3fa = localNode.getWorldTranslation();\n Quaternion quata = localNode.getWorldRotation();\n float[] angles = new float[3];\n angles = quata.toAngles(angles);\n\n //prepare the translation values\n final float tx = v3fa.x + txOffset;\n final float ty = v3fa.y + tyOffset;\n final float tz = v3fa.z + tzOffset;\n\n //prepare the rotation values\n //add 20 degree to y as an adjuster\n final float rx = (float) Math.toRadians((rxOffset + Math.toDegrees(angles[0])));\n final float ry = (float) Math.toRadians((ryOffset + Math.toDegrees(angles[1]) + 20.0f));\n final float rz = (float) Math.toRadians((rzOffset + Math.toDegrees(angles[2])));\n\n //apply the changes\n final WorldManager wm = ClientContextJME.getWorldManager();\n RenderUpdater u = new RenderUpdater() {\n public void update(Object obj) {\n SitAdjusterEntity.getInstance(editor.getCell()).getRootNode()\n .setLocalTranslation(tx, ty, tz);\n SitAdjusterEntity.getInstance(editor.getCell()).getRootNode()\n .setLocalRotation(new Quaternion(new float[]{rx, ry, rz}));\n WorldManager wm = ClientContextJME.getWorldManager();\n wm.addToUpdateList(SitAdjusterEntity.getInstance(editor.getCell()).getRootNode());\n }\n };\n wm.addRenderUpdater(u, this);\n }", "public void actionPerformed(ActionEvent e) {\r\n mode = InputMode.CHG_TEXT;\r\n instr.setText(\"Click one node to change the text on the node.\");\r\n }", "public void update(){\r\n\t\t\r\n\t}", "@Override\t\r\n\t\tpublic void insertUpdate(DocumentEvent e) {\n\t\t\tMessage = t.getText();\r\n\t\t\t//t.getText().length()>\r\n\t\t\tcanvas.repaint();\r\n\t\t\t\r\n\t\t}", "public void updateUI(){}", "public void updateYLoc();", "private void updateOutputText() {\r\n UiApplication.getUiApplication().invokeLater(new Runnable() {\r\n public void run() {\r\n _outputText.setText(_output);\r\n }\r\n });\r\n }", "public void update() {\r\n\t\t\r\n\t}", "@Override\n\t\tpublic void addressEdited() {\n\t\t\tokCallback();\n\t\t}", "void onNewCoords(Coords coords);", "public void update() ;", "@Override\n\tpublic void updateCodeCanvas() {\n\n\t}", "public void update(){\r\n }", "protected abstract void update();", "protected abstract void update();", "private void performDirectEdit() {\n\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tupdate();\n\t\t\t}", "void updateInformation();", "public void updateText()\r\n\t{\r\n\t\tdouble smallest = Math.min(menu.getController().getWidth(), menu.getController().getHeight());\r\n\t\tdouble equivalent12 = smallest/55;//Equivalent of 12 point font on base dimensions\r\n\t\t\r\n\t\ttextRenderer = new TextRenderer(new Font(fontName, Font.PLAIN, (int)(equivalent12*size)), true, true);\r\n\t}", "public void update() {\n }", "private void update() {\n\t\t\n\t\tlinkID.setText(\"\"+workingLink.ID);\n\t\t\n\t\troomIDA.setText(\"\"+this.workingLink.targetRooms[0].ID);\n\t\t\n\t\t//Falls bisher nur ein Link-Part gesetzt wurde\n\t\tif(workingLink.targetRooms[1] == null)\n\t\t\troomIDB.setText(\"nicht gesetzt\");\n\t\telse\n\t\t\troomIDB.setText(\"\"+this.workingLink.targetRooms[1].ID);\n\t\t\n\t\t\n\t\tfieldPosA.setText(\"\"+this.workingLink.targetFields[0].pos);\n\t\t\n\t\t//Falls bisher nur ein Link-Part gesetzt wurde\n\t\tif(workingLink.targetFields[1] == null)\n\t\t\tfieldPosB.setText(\"nicht gesetzt\");\n\t\telse\n\t\t\tfieldPosB.setText(\"\"+this.workingLink.targetFields[1].pos);\n\t}", "public void run () {\n\t\t\t\t//This is the method that gets called everytime the GUI needs to be updated.\n\t\t\t\t\n\t\tuserText.setEditable(tof);\n\t\t\t}", "public void update() {\n\t}", "public void update() {\n\t}", "public void update() {\n\t}", "public void update() {\n\t}", "public void updatePointText(int point) {\n String textPoint = \"points: \" + point;\n text.setText(textPoint);\n }", "public void setUpdateData() {\n positionFenceToUpdateinController = Controller.getPositionFenceInArrayById(this.idFenceToUpdate);\n if(positionFenceToUpdateinController >= 0) {\n Fence fence = Controller.fences.get(positionFenceToUpdateinController);\n ((MainActivity)getActivity()).getSupportActionBar().setTitle(Constant.TITLE_VIEW_UPDATE_FENCE + \": \" + fence.getName());\n this.nameFence.setText(fence.getName());\n this.addressFence.setText(fence.getAddress());\n this.cityFence.setText(fence.getCity());\n this.provinceFence.setText(fence.getProvince());\n this.numberFence.setText(fence.getNumber());\n this.textSMSFence.setText(fence.getTextSMS());\n int index = (int)Constant.SPINNER_RANGE_POSITIONS.get(fence.getRange());\n this.spinnerRange.setSelection(index);\n this.spinnerEvent.setSelection(fence.getEvent());\n }\n }", "public void updatePosition(Vec2f coord, Vec2f endCoord) {\n\t\tthis.coord = coord;\n\t\tthis.endCoord = endCoord;\n\t\trect.updatePosition(coord, endCoord);\n\t\tuiText.resizeText(new Vec2f((coord.x + 20f), (coord.y + 5 * (endCoord.y - coord.y) / 8)),\n\t\t\t\t(endCoord.y - coord.y) / 2f);\n\t}", "public void update(){\n\t\tsetChanged();\n\t\trender();\n\t\tprintTimer();\n\t}", "@Override\r\n\tpublic void update() {\n\t\tthis.repaint();\r\n\t}", "public void update() {\n\t\t\n\t}", "void updateView();", "void updateView();", "public void update() {\n\t\tthis.editorView.update();\n\t}", "public void updateScreen() {\n/* 25 */ this.ipEdit.updateCursorCounter();\n/* */ }", "public void apply() {\n this.vgcomponent.setFont( this.fontchooser.getSelectedFont() );\n this.vgcomponent.setFontcolor( this.fontcolor.getColor() );\n\n if( this.vgcomponent instanceof VisualEdge ) {\n VisualEdge vEdge = (VisualEdge) this.vgcomponent;\n vEdge.getEdge().setFollowVertexLabel( this.followLabel.isSelected() );\n if( !this.followLabel.isSelected() ) {\n vEdge.getEdge().setLabel( this.textarea.getText() );\n }\n }\n else {\n this.vgcomponent.setLabel( this.textarea.getText() );\n }\n }", "private void change() {\n\t\tsetChanged();\n\t\t//NotifyObservers calls on the update-method in the GUI\n\t\tnotifyObservers();\n\t}", "public void update()\n\t{\n\t\tGViewMapManager gViewMapManager = this.guiController.getCurrentStyleMapManager();\n\t\tLayout layout = gViewMapManager.getLayout();\n\n\t\tswitch (layout)\n\t\t{\n\t\t\tcase LINEAR:\n\t\t\t\tthis.linear.setSelected(true);\n\t\t\t\tbreak;\n\t\t\tcase CIRCULAR:\n\t\t\t\tthis.circular.setSelected(true);\n\t\t\t\tbreak;\n default:\n break;\n\t\t}\n\t}", "private void updateCustom(){\n\n // sets customTipTextView's text to match the position of the SeekBar\n customTipTextView.setText(currentCustomPercent + getString(R.string.percent_sign));\n\n // calculate the custom tip amount\n double customTipAmount = currentBillTotal * currentCustomPercent * .01;\n\n // calculate the total bill including the custom tip\n double customTotalAmount = currentBillTotal + customTipAmount;\n\n // display the tip and total bill amounts\n tipCustomEditText.setText(String.format(getString(R.string.two_dec_float), customTipAmount));\n totalCustomEditText.setText(String.format(getString(R.string.two_dec_float), customTotalAmount));\n }", "private void modifyTextActions() {\n\n\t\tfinal String text = this.comboTargetLayer.getText();\n\t\tif (text.length() == 0) {\n\t\t\treturn;\n\t\t}\n\t\t// if it was modified by the selection of one item it was handled by\n\t\t// selectedTargetLayerActions\n\t\tif (this.comboTargetLayer.getSelectionIndex() != -1) {\n\t\t\treturn;\n\t\t}\n\n\t\tif (text.equals(this.currentNewLayerName)) {\n\t\t\treturn;\n\t\t}\n\n\t\t// check the new name with the layer list.\n\t\tif (this.comboTargetLayer.indexOf(text) != -1) {\n\t\t\tInfoMessage msg = new InfoMessage(Messages.ResultLayerComposite__duplicated_layer_name,\n\t\t\t\t\t\tInfoMessage.Type.ERROR);\n\t\t\tthis.setMessage(msg);\n\n\t\t\treturn;\n\t\t}\n\t\t// boolean used to control the back write of the result layer name\n\t\tmodifyNewLayerName = true;\n\t\t// if the new name is correct, notifies to all listeners,\n\t\t// saves the current name and sets Geometry as default for the new layer\n\t\tsetCurrentTarget(text);\n\t\tsetGeometryComboEnabled(true);\n\t\tint index = comboGeometryList.getSelectionIndex();\n\t\tif (index == -1) {\n\n\t\t\tthis.comboGeometryList.select(this.comboGeometryList.indexOf(Geometry.class.getSimpleName()));\n\t\t}\n\n\t\tdispatchEvent(text);\n\t\tmodifyNewLayerName = false;\n\t}", "void updateDrawing() {\n filling = modelRoot.getCDraw().getFilling(this);\n dirtyBufF = true;\n tooltip = modelRoot.getCDraw().getTooltip(this);\n dirtyBufT = true;\n title = modelRoot.getCDraw().getTitle(this);\n dirtyBufTitle = true;\n colorTitle = modelRoot.getCDraw().getTitleColor(this);\n dirtyBufCT = true;\n }", "public void update() {\r\n\r\n // update attributes\r\n finishIcon.setColored(isDirty());\r\n cancelIcon.setColored(isDirty());\r\n finishButton.repaint();\r\n cancelButton.repaint();\r\n\r\n }", "public abstract void updateLabels();", "private void updateTexts(DocumentEvent e) {\n\n Document doc = e.getDocument();\n\n if (doc == projectNameTextField.getDocument() || doc == projectLocationTextField.getDocument()) {\n // Change in the project name\n\n String projectName = projectNameTextField.getText();\n String projectFolder = projectLocationTextField.getText();\n\n //if (projectFolder.trim().length() == 0 || projectFolder.equals(oldName)) {\n createdFolderTextField.setText(projectFolder + File.separatorChar + projectName);\n //}\n\n }\n panel.fireChangeEvent(); // Notify that the panel changed\n }" ]
[ "0.6509408", "0.6376111", "0.6366253", "0.6349046", "0.62976605", "0.6277463", "0.62660885", "0.6259259", "0.6257023", "0.6254298", "0.6249584", "0.62377894", "0.62145156", "0.6206495", "0.61852366", "0.6183456", "0.61630815", "0.6143471", "0.613732", "0.60408574", "0.6005051", "0.59903866", "0.599023", "0.5988057", "0.59687716", "0.5966056", "0.5936062", "0.5931761", "0.5924531", "0.5923831", "0.5907729", "0.5898624", "0.58819324", "0.58688235", "0.5866415", "0.58642274", "0.58518535", "0.58511287", "0.5846011", "0.5842607", "0.5840087", "0.583858", "0.5830369", "0.5830369", "0.5826873", "0.58233464", "0.58233464", "0.58233464", "0.58233464", "0.58233464", "0.58233464", "0.58233464", "0.58191156", "0.5817093", "0.58153725", "0.5799012", "0.5797785", "0.57863915", "0.57848686", "0.57801473", "0.57790697", "0.57703424", "0.57696146", "0.57695794", "0.5767902", "0.57657933", "0.57643", "0.5763094", "0.5758769", "0.5758769", "0.57555246", "0.57551897", "0.57523084", "0.57472503", "0.57325476", "0.5728732", "0.5728053", "0.57234013", "0.57234013", "0.57234013", "0.57234013", "0.57212335", "0.5718364", "0.57112455", "0.57107204", "0.5710355", "0.57101434", "0.5702373", "0.5702373", "0.57019573", "0.57019365", "0.5700565", "0.5695796", "0.56914407", "0.56913364", "0.56856334", "0.5681972", "0.5680171", "0.56676525", "0.5666328" ]
0.649355
1
This calls all fxml updating methods in NoteController to update note.fxml with the variables from the object. Makes it easier on the main controller to activate everything it needs by having this one method.
public void loadInspectorInfo(UMLObject object, Controller inController){ controller = inController; getNote(object); getText(); getOriginX(); getOriginY(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@FXML\n void viewNotes(ActionEvent event) {\n Parent root;\n try {\n //Loads library scene using library.fxml\n root = FXMLLoader.load(getClass().getResource(model.NOTES_VIEW_PATH));\n model.getNotesViewController().setPodcast(this.podcast);\n Stage stage = new Stage();\n stage.setTitle(this.podcast.getTitle()+\" notes\");\n stage.setScene(new Scene(root));\n stage.getIcons().add(new Image(getClass().getResourceAsStream(\"resources/musicnote.png\")));\n stage.setResizable(false);\n stage.showAndWait();\n }\n catch (IOException e) {\n e.printStackTrace();\n }\n\n }", "public void handleModifyParts()\n {\n FXMLLoader fxmlLoader = new FXMLLoader(getClass().getResource(\"/UI/Views/parts.fxml\"));\n Parent root = null;\n try {\n root = (Parent) fxmlLoader.load();\n\n // Get controller and configure controller settings\n PartController partController = fxmlLoader.getController();\n\n if (getPartToModify() != null)\n {\n partController.setModifyParts(true);\n partController.setPartToModify(getPartToModify());\n partController.setInventory(inventory);\n partController.setHomeController(this);\n\n // Spin up part form\n Stage stage = new Stage();\n stage.initModality(Modality.APPLICATION_MODAL);\n stage.initStyle(StageStyle.DECORATED);\n stage.setTitle(\"Modify Parts\");\n stage.setScene(new Scene(root));\n stage.show();\n\n }\n else {\n Alert alert = new Alert(Alert.AlertType.ERROR);\n alert.setTitle(\"Input Invalid\");\n alert.setHeaderText(\"No part was selected!\");\n alert.setContentText(\"Please select a part to modify from the part table!\");\n alert.show();\n }\n\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "@FXML\n public void editSet(MouseEvent e) {\n AnchorPane root = null;\n FXMLLoader loader = new FXMLLoader(getClass().getResource(\"/view/learn_update.fxml\"));\n try {\n root = loader.load();\n } catch (IOException ex) {\n ex.printStackTrace();\n }\n LearnUpdateController controller = loader.getController();\n controller.initData(txtTitle.getText(), rootController, learnController, apnLearn);\n rootController.setActivity(root);\n root.requestFocus();\n }", "@FXML\n public void saveNotes() {\n try {\n Interview selectedInterview = this.listInterview.getSelectionModel().getSelectedItem();\n selectedInterview.setNotes(txtNote.getText());\n selectedInterview.setRecommended(chkRecommended.isSelected());\n\n AlertHelper.showInformationAlert(\"Interview information have been saved.\");\n\n // Reset view\n this.populateInterviewInfo(selectedInterview);\n } catch (Exception ex) {\n AlertHelper.showErrorAlert(\"Unable to save notes: \" + ex.getLocalizedMessage());\n }\n }", "@FXML\n void initialize() {\n\n warningText.setVisible(false);\n LocalTime localTime = LocalTime.now();\n StartTime.setValue(LocalTime.of(localTime.getHour() + 1, 0));\n EndTime.setValue(LocalTime.of(localTime.getHour() + 1, 0));\n LocalDate localDate = LocalDate.now();\n dataStart.setValue(LocalDate.now());\n dataEnd.setValue(LocalDate.of(localDate.getYear(), localDate.getMonth(), localDate.getDayOfMonth() + 1));\n /**\n * If user clicked AddTasksLabel button, it loads new scene from Controllers.\n */\n AddTasksLabel.setOnMouseClicked(e -> {\n try {\n\n Scene scene = new Scene(FXMLLoader.load(getClass().getResource(\"/sample/fxmlFiles/AddTasksRegular.fxml\")));\n Model.primaryStage.setScene(scene);\n } catch (IOException ex) {\n System.out.println(ex);\n }\n });\n /**\n * If user clicked AllTAsksLabel button, it loads new scene from Controllers.\n */\n AllTAsksLabel.setOnMouseClicked(e -> {\n try {\n Scene scene = new Scene(FXMLLoader.load(getClass().getResource(\"/sample/fxmlFiles/MainMenu.fxml\")));\n Model.primaryStage.setScene(scene);\n } catch (IOException ex) {\n System.out.println(ex);\n }\n });\n /**\n * If user clicked EditTasksLabel button, it loads Main scene from Controllers.\n */\n EditTasksLabel.setOnMouseClicked(e -> {\n try {\n Scene scene = new Scene(FXMLLoader.load(getClass().getResource(\"/sample/fxmlFiles/EditTasks.fxml\")));\n Model.primaryStage.setScene(scene);\n } catch (IOException ex) {\n System.out.println(ex);\n }\n });\n /**\n * If user clicked showButton button, it checks all field and update table.\n * In another case it shows the warring text.\n * If exception happens it print in console description of it.\n */\n showButton.setOnMouseClicked(e->{\n\n if(StartTime.getValue() != null && EndTime.getValue() != null && dataEnd.getValue() != null && dataStart.getValue() != null ){\n warningText.setVisible(false);\n StringBuffer bufferStart = new StringBuffer();\n StringBuffer bufferEnd = new StringBuffer();\n bufferStart.append(dataStart.getValue()).append(\" \").append(StartTime.getValue());\n bufferEnd.append(dataEnd.getValue()).append(\" \").append(EndTime.getValue());\n SimpleDateFormat simpleDateFormat = new SimpleDateFormat(\"yyyy-MM-dd HH:mm\");\n try {\n Date StartD;\n Date EndD;\n MainTablewithTasks.getItems().clear();\n StartD = simpleDateFormat.parse(bufferStart.toString());\n EndD = simpleDateFormat.parse(bufferEnd.toString());\n SortedMap<Date, Set<Task>> sortedMap = Tasks.calendar(Model.taskList, StartD, EndD);\n Set data = sortedMap.keySet();\n for(Iterator<Date> iterData = data.iterator(); iterData.hasNext();) {\n Date date = iterData.next();\n Set<Task> setTask = sortedMap.get(date);\n for (Iterator<Task> iter = setTask.iterator(); iter.hasNext(); ) {\n Task task = iter.next();\n\n tasksCalendar.add(new DateCalendar(date, task.getTitle(), task.isActive()));\n }\n }\n dateColumn.setCellValueFactory(new PropertyValueFactory<>(\"date\"));\n taskDescription.setCellValueFactory(new PropertyValueFactory<>(\"title\"));\n Active.setCellValueFactory(new PropertyValueFactory<>(\"active\"));\n MainTablewithTasks.setItems(tasksCalendar);\n } catch (ParseException ex){\n System.out.println(ex);\n }\n } else {\n warningText.setVisible(true);\n }\n });\n dateColumn.setCellValueFactory(new PropertyValueFactory<>(\"date\"));\n taskDescription.setCellValueFactory(new PropertyValueFactory<>(\"title\"));\n Active.setCellValueFactory(new PropertyValueFactory<>(\"active\"));\n MainTablewithTasks.setItems(tasksCalendar);\n }", "@FXML\n public void OAUpdateAppointment(ActionEvent event) {\n\n try {\n FXMLLoader fxmlLoader = new FXMLLoader();\n fxmlLoader.setLocation(getClass().getResource(\"/View/UpdateAppointment.fxml\"));\n Parent add = fxmlLoader.load();\n UpdateAppointmentController updateAppointment = fxmlLoader.getController();\n Appointment appointment = Appointments.getSelectionModel().getSelectedItem();\n int ID = appointment.getAppointmentID();\n Appointment app = DBQuery.retrieveAppointment(ID);\n updateAppointment.receiveAppointment(app);\n Stage stage = new Stage();\n stage.setScene(new Scene(add));\n stage.show();\n\n\n }catch (IOException | NullPointerException e){\n System.out.println(e);\n Alert alert = new Alert(Alert.AlertType.ERROR);\n alert.setTitle(\"Error\");\n alert.setHeaderText(\"No appointment selected.\");\n alert.setContentText(\"Please select a appointment to update.\");\n alert.showAndWait();}\n }", "@FXML\n private void updateGUI(){\n\n spriteImage.setImage(new Image(Main.gang.getCarSpriteURL()));\n\n // updating labels\n distanceLabel.setText(\"Travelled: \"+ Main.gang.getDistance() +\"Mi\");\n conditionsLabel.setText(\"Health Cond: \"+ Main.gang.getHealthConditions());\n daysLabel.setText(\"Days: \"+ Main.gang.getDays());\n\n if (Main.gang.isMoving()) {\n setOutBtn.setText(\"Speedup\");\n statusLabel.setText(\"Status: Moving\");\n } else {\n setOutBtn.setText(\"Set out\");\n statusLabel.setText(\"Status: Resting\");\n }\n }", "@FXML private void refreshData(){\n\t\tclearFields();\n\t\treadUsers();\n\t\tshowUsers();\n\t\trefreshInformationsFromTableView(null);\n\t}", "@FXML\n\tvoid initialize() {\n\t\tm = new PR1Model();\n\t\tsetFile(null);\n\t\tselection = new SimpleObjectProperty<Shape>();\n\t\tapplication = new PR1();\n\t\tsetSelection(null);\n\t\tsetClipboard(null);\n\t\tviewState = new SimpleObjectProperty<ViewState>(ViewState.CLOSE);\n\t\tclipboardState = new SimpleObjectProperty<ClipboardState>(ClipboardState.IDLE);\n\t\tdefaultS = m.add(-50, -50);\n\t\tdefaultS.setText(defaultshape);\n\t\t\n\t\t\n\t\tcanvasListener = new ChangeListener<Number>() {\n\n\t\t\t/**\n\t\t\t * Handles the canvas resizing.\n\t\t\t * \n\t\t\t * @param event The event object.\n\t\t\t */\n\t\t\t@Override\n\t\t\tpublic void changed(ObservableValue<? extends Number> observable, Number oldValue, Number newValue) {\n\t\t\t\tviewState.set(ViewState.RESIZE);\n\t\t\t\t\n\t\t\t}\n\t\t};\n\t\t\n\n\t\t\n\t\tgc = canvas.getGraphicsContext2D();\n\t\tcanvas.heightProperty().set(1105);\n\t\tcanvas.widthProperty().set(1105);\n\t\tcanvas.heightProperty().addListener(canvasListener);\n\t\tcanvas.widthProperty().addListener(canvasListener);\n\t\t\n\t\t\n\t\ttcs.prefWidthProperty().bind(tv.widthProperty().divide(11));\n\t\ttccx.prefWidthProperty().bind(tv.widthProperty().divide(11));\n\t\ttccy.prefWidthProperty().bind(tv.widthProperty().divide(11));\n\t\ttcr.prefWidthProperty().bind(tv.widthProperty().divide(11));\n\t\ttcc.prefWidthProperty().bind(tv.widthProperty().divide(11));\n\t\ttcw.prefWidthProperty().bind(tv.widthProperty().divide(11));\n\t\ttch.prefWidthProperty().bind(tv.widthProperty().divide(11));\n\t\ttcaw.prefWidthProperty().bind(tv.widthProperty().divide(11));\n\t\ttcah.prefWidthProperty().bind(tv.widthProperty().divide(11));\n\t\ttct.prefWidthProperty().bind(tv.widthProperty().divide(11));\n\t\ttcd.prefWidthProperty().bind(tv.widthProperty().divide(11));\n\t\t\n\t\ttcs.setCellValueFactory(new PropertyValueFactory<Shape, ShapeType>(\"type\"));\n\t\ttccx.setCellValueFactory(new PropertyValueFactory<Shape, Double>(\"centerX\"));\n\t\ttccy.setCellValueFactory(new PropertyValueFactory<Shape, Double>(\"centerY\"));\n\t\ttcr.setCellValueFactory(new PropertyValueFactory<Shape, Double>(\"radius\"));\n\t\ttcc.setCellValueFactory(new PropertyValueFactory<Shape, Color>(\"color\"));\n\t\ttcw.setCellValueFactory(new PropertyValueFactory<Shape, Double>(\"width\"));\n\t\ttch.setCellValueFactory(new PropertyValueFactory<Shape, Double>(\"height\"));\n\t\ttcaw.setCellValueFactory(new PropertyValueFactory<Shape, Double>(\"arcWidth\"));\n\t\ttcah.setCellValueFactory(new PropertyValueFactory<Shape, Double>(\"arcHeight\"));\n\t\ttct.setCellValueFactory(new PropertyValueFactory<Shape, String>(\"text\"));\n\t\ttcd.setCellValueFactory(new PropertyValueFactory<Shape, Boolean>(\"delete\"));\n\t\t\n\t\tObservableList<ShapeType> shapeValues = FXCollections.observableArrayList(ShapeType.CIRCLE, ShapeType.RECTANGLE, ShapeType.OVAL, ShapeType.ROUNDRECT, ShapeType.TEXT);\n\t\t\n\t\ttcs.setCellFactory(ComboBoxTableCell.forTableColumn(new PR1Model.ShapeTypeStringConverter(), shapeValues));\n\t\ttccx.setCellFactory(TextFieldTableCell.forTableColumn(new DoubleStringConverter()));\n\t\ttccy.setCellFactory(TextFieldTableCell.forTableColumn(new DoubleStringConverter()));\n\t\ttcr.setCellFactory(TextFieldTableCell.forTableColumn(new DoubleStringConverter()));\n\t\t\n\t\ttcw.setCellFactory(TextFieldTableCell.forTableColumn(new DoubleStringConverter()));\n\t\ttch.setCellFactory(TextFieldTableCell.forTableColumn(new DoubleStringConverter()));\n\t\ttcaw.setCellFactory(TextFieldTableCell.forTableColumn(new DoubleStringConverter()));\n\t\ttcah.setCellFactory(TextFieldTableCell.forTableColumn(new DoubleStringConverter()));\n\t\t\n\t\ttcd.setCellFactory(CheckBoxTableCell.forTableColumn(tcd));\n\t\t\n\t\ttct.setCellFactory(TextFieldTableCell.forTableColumn());\n\t\t\n\t\ttcc.setCellFactory(ColorTableCell<Shape>::new);\n\t\t\n\t\tscrpaneright.setFitToHeight(true);\n\t\tscrpaneright.setFitToWidth(true);\n\t\t\n\t\t\n\t\taddMouseListener(new EventHandler<MouseEvent>() {\n\n\t\t\t/**\n\t\t\t * Handles the mouse events.\n\t\t\t * \n\t\t\t * @param event The event object.\n\t\t\t */\n\t\t\t@Override\n\t\t\tpublic void handle(MouseEvent e) {\n\t\t\t\tmouseLastX = e.getX();\n\t\t\t\tmouseLastY = e.getY();\n\t\t\t\tif (viewState.get() == ViewState.CLOSED) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\telse if (e.getEventType() == MouseEvent.MOUSE_PRESSED){\n\t\t\t\t\t\n\t\t\t\t\tsetSelection(m.select(e.getX(), e.getY()));\n\t\t\t\t\tif (e.getButton() == MouseButton.PRIMARY) {\n\t\t\t\t\t\tif (getSelection() != null) {\n\t\t\t\t\t\t\tm.setTop(getSelection());\n\t\t\t\t\t\t}\n\t\t\t\t\t\tviewState.set(ViewState.MODIFIED);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif (e.getEventType() == MouseEvent.MOUSE_DRAGGED) {\n\t\t\t\t\tif (getSelection() != null) {\n\t\t\t\t\t\tif (e.getButton() == MouseButton.PRIMARY) {\n\t\t\t\t\t\t\tgetSelection().setCenterX(e.getX());\n\t\t\t\t\t\t\tgetSelection().setCenterY(e.getY());\n\t\t\t\t\t\t\tviewState.set(ViewState.MODIFIED);\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if (e.getButton() == MouseButton.SECONDARY) {\n\t\t\t\t\t\t\tif(getSelection().getType() == ShapeType.CIRCLE) {\n\t\t\t\t\t\t\t\tgetSelection().setRadius(getSelection().getRadius() + 0.25 * (e.getX() - getSelection().getCenterX()));\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\tgetSelection().setWidth(getSelection().getWidth() + 0.25 * (e.getX() - getSelection().getCenterX()));\n\t\t\t\t\t\t\t\tgetSelection().setHeight(getSelection().getHeight() + 0.25 * (e.getY() - getSelection().getCenterY()));\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tviewState.set(ViewState.MODIFIED);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse if (e.getEventType() == MouseEvent.MOUSE_CLICKED) {\n\t\t\t\t\tif (e.getButton().equals(MouseButton.PRIMARY)){\n\t\t\t\t\t\tswitch (e.getClickCount()) {\n\t\t\t\t\t\tcase 1:\n\t\t\t\t\t\t\tif (getSelection() == null) {\n\t\t\t\t\t\t\t\tsetSelection(m.add(defaultS.getType(), e.getX(), e.getY()));\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tviewState.set(ViewState.MODIFIED);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 2:\n\t\t\t\t\t\t\tsetSelection(m.select(e.getX(), e.getY()));\n\t\t\t\t\t\t\tapplication.goToCD(getSelection());\n\t\t\t\t\t\t\tviewState.set(ViewState.MODIFIED);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tdefault:\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}\n\t\t});\n\t\t\n\t\tm.drawDataProperty().addListener(new ListChangeListener<PR1Model.Shape>() {\n\n\t\t\t/**\n\t\t\t * Handles the model changes.\n\t\t\t * Always repaints, regardless of the event object. Inefficient but works!\n\t\t\t * \n\t\t\t * @param e The event object.\n\t\t\t */\n\t\t\t@Override\n\t\t\tpublic void onChanged(ListChangeListener.Change<? extends PR1Model.Shape> e) { \n\t\t\t\t\n\t\t\t\trepaint(); \n\t\t\t\treTable();\n\t\t\t\tviewState.set(ViewState.MODIFIED);\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\t\n\t\t\n\t\tviewState.addListener(new ChangeListener<ViewState>() {\n\n\t\t\t/**\n\t\t\t * Handles the view state changes (from File menu and window resizing).\n\t\t\t * \n\t\t\t * @param event The event object.\n\t\t\t */\n\t\t\t@Override\n\t\t\tpublic void changed(ObservableValue<? extends ViewState> observable, ViewState oldValue, ViewState newValue) {\n\t\t\t\tif (!newValue.equals(oldValue)) {\n\t\t\t\t\tswitch (newValue) {\n\t\t\t\t\tcase CLOSED: // No file opened (when the application starts or when the current file is closed.\n\t\t\t\t\t\tsetFileMenu(false, false, true, true, false); // Configures individual file menu items (enabled/disabled).\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase NEW: // A new file to be opened.\n\t\t\t\t\t\tif (file != null) {\n\t\t\t\t\t\t\tif (file.exists()) {\n\t\t\t\t\t\t\t\tfile.delete(); // Delete the file if it the file with that name already exists (overwrite).\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\tcase OPEN: // An existing file opened.\n\t\t\t\t\t\tif (file != null) {\n\t\t\t\t\t\t\tCharset charset = Charset.forName(\"US-ASCII\");\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\tfile.createNewFile();\n\t\t\t\t\t\t\t\tBufferedReader reader = Files.newBufferedReader(file.toPath(), charset);\n\t\t\t\t\t\t\t\tString line = null;\n\t\t\t\t\t\t\t\twhile ((line = reader.readLine()) != null) {\n\t\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\t\tm.add(line); // Read the file line by line and add the circle (line) to the model.\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tcatch (NumberFormatException e) { } // Ignores an incorrectly formatted line.\n\t\t\t\t\t\t\t\t\tcatch (ArrayIndexOutOfBoundsException e) { } // Ignores an incorrectly formatted line.\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tviewState.set(ViewState.OPENED);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tcatch (IOException e) {\n\t\t\t\t\t\t\t\tviewState.set(ViewState.CLOSE);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase OPENED: // The file is opened.\n\t\t\t\t\t\tsetFileMenu(true, true, false, true, false); // Configures individual file menu items (enabled/disabled).\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase CLOSE: // The file has to be closed.\n\t\t\t\t\t\tsetFile(null); // Clears the file.\n\t\t\t\t\t\tsetSelection(null); // Clears the selection;\n\t\t\t\t\t\tsetClipboard(null); // Clears the selection;\n\t\t\t\t\t\tm.clear(); // Clears the model.\n\t\t\t\t\t\tclear(); // Clears the view.\n\t\t\t\t\t\tviewState.set(ViewState.CLOSED);\n\t\t\t\t\t\tbreak;\t\t\t\t\n\t\t\t\t\tcase MODIFIED: // The file has been modified, needs saving.\n\t\t\t\t\t\tsetFileMenu(true, true, true, false, false);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase SAVE: // Save the file.\n\t\t\t\t\t\tif (file != null) {\n\t\t\t\t\t\t\tCharset charset = Charset.forName(\"US-ASCII\");\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\tBufferedWriter writer = Files.newBufferedWriter(file.toPath(), charset, StandardOpenOption.WRITE);\n\t\t\t\t\t\t\t\tfor (PR1Model.Shape c : m.drawDataProperty()) {\n\t\t\t\t\t\t\t\t\t//For the project, the line needs to be created in a more complicated way than before,\n\t\t\t\t\t\t\t\t\t//so the work is passed off to a function here.\n\t\t\t\t\t\t\t\t\tString line = lineMaker(c);\n\t\t\t\t\t\t\t\t\twriter.write(line);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\twriter.close();\n\t\t\t\t\t\t\t\tviewState.set(ViewState.OPENED);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tcatch (IOException e) {\n\t\t\t\t\t\t\t\tapplication.goToErrorDialog();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase QUIT: // Quit the application\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (oldValue == ViewState.MODIFIED) {\n\t\t\t\t\t\t\tapplication.goToQuitDialog();\n\t\t\t\t\t\t\t//if the application didn't quit, setback the viewState\n\t\t\t\t\t\t\tviewState.set(oldValue);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tSystem.exit(0);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase RESIZE: // Redraw the view when the application window resizes.\n\t\t\t\t\t\trepaint();\n\t\t\t\t\t\tviewState.set(oldValue);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tdefault:\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\t\n\t\t\n\t\tclipboardState.addListener(new ChangeListener<ClipboardState>() {\n\n\t\t\t/**\n\t\t\t * Handles the clipboard changes.\n\t\t\t * \n\t\t\t * @param event The event object.\n\t\t\t */\n\t\t\t@Override\n\t\t\tpublic void changed(ObservableValue<? extends ClipboardState> observable, ClipboardState oldValue, ClipboardState newValue) {\n\t\t\t\tShape c = null;\n\t\t\t\tif (getSelection() != null) {\n\t\t\t\t\tswitch (newValue) {\n\t\t\t\t\tcase COPY: // Copy the selection to the clipboard. \n\t\t\t\t\t\tsetClipboard(getSelection());\n\t\t\t\t\t\tsetEditMenu(false, false, false); // Enable all Edit menu items.\t\t\t\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase PASTE: // Paste the clipboard to the view.\n\t\t\t\t\t\tc = m.add(mouseLastX, mouseLastY);\n\t\t\t\t\t\tc.setRadius(getClipboard().getRadius());\n\t\t\t\t\t\tc.setColor(getClipboard().getColor());\n\t\t\t\t\t\tc.setHeight(getClipboard().getHeight());\n\t\t\t\t\t\tc.setWidth(getClipboard().getWidth());\n\t\t\t\t\t\tc.setArcheight(getClipboard().getAH());\n\t\t\t\t\t\tc.setArcwidth(getClipboard().getAW());\n\t\t\t\t\t\tc.setType(getClipboard().getType());\n\t\t\t\t\t\tc.setText(getClipboard().getText());\n\t\t\t\t\t\tviewState.set(ViewState.MODIFIED);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase DELETE: // delete the selection.\n\t\t\t\t\t\tc = getSelection();\n\t\t\t\t\t\tsetSelection(null);\n\t\t\t\t\t\tm.remove(c);\n\t\t\t\t\t\tsetEditMenu(true, true, true); // Disable all Edit menu items.\t\t\n\t\t\t\t\t\tviewState.set(ViewState.MODIFIED);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase IDLE:\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tdefault:\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\tclipboardState.set(ClipboardState.IDLE);\n\t\t\t\t}\n\t\t\t}\n\n\t\t});\n\t\tsetFileMenu(false, false, true, true, false);\n\t\tsetEditMenu(true, true, true);\n\t}", "@FXML\n public void candidateedit()\n {\n //checks if the voting is stated or not\n if(voting_state==1)\n {\n a=new Alert(AlertType.ERROR);\n a.setContentText(\"You Cannot Edit Candidates While Voting !\");\n a.show();\n }\n //allows to update data only when voting has not started\n else\n {\n //age type validation\n int error=text_parse();\n if(error==1)\n {\n a = new Alert(AlertType.ERROR);\n a.setContentText(\"Please Enter A Number For Age\");\n a.show();\n }\n //allows to updates values\n else\n {\n a = new Alert(Alert.AlertType.INFORMATION);\n try\n {\n //sql query\n con.createStatement().execute(\"update candidates set candidate_name='\" + CName + \"',nic='\" + CNIC + \"',party_id='\" + CPId + \"',party_name='\" + CPName + \"',address='\" + CAddress + \"',tel_no='\" + CTelNo + \"',age='\" + CAge + \"' where candidate_id='\" + CId + \"'\");\n a.setContentText(\"Successfully Updated !\");\n a.show();\n Candidate can = new Candidate(CId,CName,CNIC,CPId,CPName,CAddress,CTelNo,CAge);\n //update in hashmap\n allCandidates.put(CId, can);\n //update in observable list\n candidates.clear();\n for (HashMap.Entry<String, Candidate> set : allCandidates.entrySet())\n {\n can = set.getValue();\n candidates.add(can);\n }\n T_View.setItems(candidates);\n //clear TextFields\n text_clear();\n }\n catch (Exception ex)\n {\n a = new Alert(AlertType.ERROR);\n a.setContentText(ex.getMessage());\n a.show();\n }\n }\n }\n }", "@FXML\r\n void onActionUpdate(ActionEvent event) throws IOException {\r\n\r\n Customer customerIndex = customerTable.getSelectionModel().getSelectedItem();\r\n customerToUpdateIndex = DBCustomer.getAllCustomers().indexOf(customerIndex);\r\n\r\n if(customerTable.getSelectionModel().getSelectedItem() == null){\r\n Alert alert = new Alert(Alert.AlertType.WARNING);\r\n alert.initModality(Modality.APPLICATION_MODAL);\r\n alert.setTitle(\"Customer not selected\");\r\n alert.setHeaderText(\"Please choose a customer to update\");\r\n alert.showAndWait();\r\n }\r\n else{\r\n FXMLLoader loader = new FXMLLoader();\r\n loader.setLocation(getClass().getResource(\"/view/UpdateCustomer.FXML\"));\r\n Parent scene = loader.load();\r\n UpdateCustomerController UPController = loader.getController();\r\n UPController.sendCustomer(customerTable.getSelectionModel().getSelectedItem());\r\n\r\n stage = (Stage)((Button)event.getSource()).getScene().getWindow();\r\n //scene = FXMLLoader.load(getClass().getResource(\"/view/UpdateCustomer.fxml\"));\r\n stage.setScene(new Scene(scene));\r\n stage.show();\r\n }\r\n\r\n\r\n\r\n\r\n }", "public void gotoMyInfo(){\n try {\n FXMLMyInfoController verMyInfo = (FXMLMyInfoController) replaceSceneContent(\"FXMLMyInfo.fxml\");\n verMyInfo.setApp(this);\n } catch (Exception ex) {\n Logger.getLogger(IndieAirwaysClient.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "@FXML\r\n void onActionUpdateAppointment(ActionEvent event) throws IOException {\r\n\r\n Appointment appointmentIndex = appointmentsTable.getSelectionModel().getSelectedItem();\r\n appointmentToUpdateIndex = DBCustomer.getAllCustomers().indexOf(appointmentIndex);\r\n\r\n if(appointmentsTable.getSelectionModel().getSelectedItem() == null){\r\n Alert alert = new Alert(Alert.AlertType.WARNING);\r\n alert.initModality(Modality.APPLICATION_MODAL);\r\n alert.setTitle(\"Appointment not selected\");\r\n alert.setHeaderText(\"Please choose an appointment to update\");\r\n alert.showAndWait();\r\n }\r\n else{\r\n FXMLLoader loader = new FXMLLoader();\r\n loader.setLocation(getClass().getResource(\"/view/UpdateAppointment.FXML\"));\r\n Parent scene = loader.load();\r\n UpdateAppointmentController UPController = loader.getController();\r\n UPController.sendAppointment(appointmentsTable.getSelectionModel().getSelectedItem());\r\n\r\n stage = (Stage)((Button)event.getSource()).getScene().getWindow();\r\n //scene = FXMLLoader.load(getClass().getResource(\"/view/UpdateAppointment.fxml\"));\r\n stage.setScene(new Scene(scene));\r\n stage.show();\r\n }\r\n\r\n }", "@FXML\n public void updateDinner(){\n //get the selection from the listView\n try{\n //get the selected day from the weeklist\n Days selectedDay = weekList.getSelectionModel().getSelectedItem();\n if (dinnerCombo.getSelectionModel().getSelectedItem() != null){\n Recipe newDinnerRecipe = dinnerCombo.getSelectionModel().getSelectedItem();\n selectedDay.setDinner(newDinnerRecipe);\n }\n } catch (Exception e) {\n System.out.println(\"Nothing selected\");\n }\n weekList.refresh();\n //shopping list is now out of sync with the planner\n plannerOutOfSyncWithShoppingList(true);\n saveMealPlanner();\n }", "@FXML\n void saveModifiedParts(MouseEvent event) {\n if (nameTxt.getText().isEmpty()) {\n errorWindow(2);\n return;\n }\n if (invTxt.getText().isEmpty()) {\n errorWindow(10);\n return;\n }\n if (maxTxt.getText().isEmpty()) {\n errorWindow(4);\n return;\n }\n if (minTxt.getText().isEmpty()) {\n errorWindow(5);\n return;\n }\n if (costTxt.getText().isEmpty()) {\n errorWindow(3);\n return;\n }\n if (companyNameTxt.getText().isEmpty()) {\n errorWindow(9);\n return;\n }\n // trying to parce the entered values into an int or double for price\n try {\n min = Integer.parseInt(minTxt.getText());\n max = Integer.parseInt(maxTxt.getText());\n inv = Integer.parseInt(invTxt.getText());\n id = Integer.parseInt(idTxt.getText());\n price = Double.parseDouble(costTxt.getText());\n } catch (NumberFormatException e) {\n errorWindow(11);\n return;\n }\n if (min >= max) {\n errorWindow(6);\n return;\n }\n if (inv < min || inv > max) {\n errorWindow(7);\n return;\n }\n if (min < 0) {\n errorWindow(12);\n }\n // if the in-house radio is selected \n if (inHouseRbtn.isSelected()) {\n try {\n machID = Integer.parseInt(companyNameTxt.getText());\n } catch (NumberFormatException e) {\n errorWindow(11);\n return;\n }\n\n Part l = new InHouse(id, nameTxt.getText(), price, inv, min, max, machID);\n inventory.updatePart(l);\n\n }// if out sourced radio button is selected \n if (outSourcedRbtn.isSelected()) {\n Part t = new OutSourced(id, nameTxt.getText(), price, inv, min, max, companyNameTxt.getText());\n inventory.updatePart(t);\n }\n // going back to main screen once part is added\n try {\n FXMLLoader loader = new FXMLLoader(getClass().getResource(\"/View/FXMLmain.fxml\"));\n View.MainScreenController controller = new MainScreenController(inventory);\n\n loader.setController(controller);\n Parent root = loader.load();\n Scene scene = new Scene(root);\n Stage stage = (Stage) ((Node) event.getSource()).getScene().getWindow();\n stage.setScene(scene);\n stage.setResizable(false);\n stage.show();\n } catch (IOException e) {\n\n }\n\n }", "@FXML\r\n public void onActionModifyScreen(ActionEvent actionEvent) throws IOException {\r\n\r\n //Receive Part object information from the PartController in order to populate the Modify Parts text fields\r\n try {\r\n FXMLLoader loader = new FXMLLoader();\r\n loader.setLocation(getClass().getResource(\"/View_Controller/modifyPartInhouse.fxml\"));\r\n loader.load();\r\n\r\n PartController pController = loader.getController();\r\n\r\n /*If the Part object received from the Part Controller is an In-house Part, user is taken to the modify\r\n in-house part screen */\r\n if (partsTableView.getSelectionModel().getSelectedItem() != null) {\r\n if (partsTableView.getSelectionModel().getSelectedItem() instanceof InhousePart) {\r\n pController.sendPart((InhousePart) partsTableView.getSelectionModel().getSelectedItem());\r\n\r\n Stage stage = (Stage) ((Button) actionEvent.getSource()).getScene().getWindow();\r\n Parent scene = loader.getRoot();\r\n stage.setTitle(\"Modify In-house Part\");\r\n stage.setScene(new Scene(scene));\r\n stage.showAndWait();\r\n }\r\n\r\n //If the Part object is an outsourced Part, the user is taken to the modify outsourced part screen\r\n else {\r\n\r\n loader = new FXMLLoader();\r\n loader.setLocation(getClass().getResource(\"/View_Controller/modifyPartOutsourced.fxml\"));\r\n loader.load();\r\n\r\n pController = loader.getController();\r\n\r\n pController.sendPartOut((OutsourcedPart) partsTableView.getSelectionModel().getSelectedItem());\r\n\r\n Stage stage = (Stage) ((Button) actionEvent.getSource()).getScene().getWindow();\r\n Parent scene = loader.getRoot();\r\n stage.setTitle(\"Modify Outsourced Part\");\r\n stage.setScene(new Scene(scene));\r\n stage.showAndWait();\r\n }\r\n }\r\n else {\r\n Alert alert2 = new Alert(Alert.AlertType.ERROR);\r\n alert2.setContentText(\"Click on an item to modify.\");\r\n alert2.showAndWait();\r\n }\r\n } catch (IllegalStateException e) {\r\n //Ignore\r\n }\r\n catch (NullPointerException n) {\r\n //Ignore\r\n }\r\n }", "@FXML\n public void updateBreakfast(){\n //get the selection from the listView\n try{\n //get the selected day from the weeklist\n Days selectedDay = weekList.getSelectionModel().getSelectedItem();\n if (breakfastCombo.getSelectionModel().getSelectedItem() != null){\n Recipe newBreakfastRecipe = breakfastCombo.getSelectionModel().getSelectedItem();\n selectedDay.setBreakfast(newBreakfastRecipe);\n }\n } catch (Exception e) {\n System.out.println(\"Nothing selected\");\n e.printStackTrace();\n }\n weekList.refresh();\n //shopping list is now out of sync with the planner\n plannerOutOfSyncWithShoppingList(true);\n saveMealPlanner();\n }", "@FXML\n\tpublic void UpdateClient(ActionEvent event) {\n\t\tClient clientToUpdate = restaurant.returnClient(LabelUpdateClientName.getText());\n\t\tif (!txtUpdateClientNames.getText().equals(\"\") && !txtUpdateClientSurnames.getText().equals(\"\")\n\t\t\t\t&& !txtUpdateClientAdress.getText().equals(\"\") && !txtUpdateClientPhone.getText().equals(\"\")\n\t\t\t\t&& !txtUpdateClientObservations.getText().equals(\"\") && !txtUpdateClientId.getText().equals(\"\")) {\n\n\t\t\ttry {\n\t\t\t\tclientToUpdate.setNames(txtUpdateClientNames.getText());\n\t\t\t\tclientToUpdate.setSurnames(txtUpdateClientSurnames.getText());\n\t\t\t\tclientToUpdate.setAdress(txtUpdateClientAdress.getText());\n\t\t\t\tclientToUpdate.setPhoneNumber(txtUpdateClientPhone.getText());\n\t\t\t\tclientToUpdate.setObservations(txtUpdateClientObservations.getText());\n\t\t\t\tclientToUpdate.setIdNumber(txtUpdateClientId.getText());\n\n\t\t\t\trestaurant.saveClientsData();\n\t\t\t\tDialog<String> dialog = createDialog();\n\t\t\t\tdialog.setContentText(\"Cliente actualizado satisfactoriamente\");\n\t\t\t\tdialog.setTitle(\"Proceso Satisfactorio\");\n\t\t\t\tdialog.show();\n\n\t\t\t\ttxtUpdateClientNames.setText(\"\");\n\t\t\t\ttxtUpdateClientSurnames.setText(\"\");\n\t\t\t\ttxtUpdateClientAdress.setText(\"\");\n\t\t\t\ttxtUpdateClientPhone.setText(\"\");\n\t\t\t\ttxtUpdateClientObservations.setText(\"\");\n\t\t\t\ttxtUpdateClientId.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 de los datos\");\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 optionsFxml = new FXMLLoader(getClass().getResource(\"Options-window.fxml\"));\n\t\t\t\toptionsFxml.setController(this);\n\t\t\t\tParent opWindow = optionsFxml.load();\n\t\t\t\tmainPaneLogin.getChildren().setAll(opWindow);\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\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\n\t}", "@FXML\n public void MealAddBtnClicked(){\n //display the correct panes\n subMenuDisplay(MealSubMenuPane);\n MealsAddPane.toFront();\n MenuPane.toFront();\n //load ingredients from the database ingredients that will be set to the ingredients All ingredients cupboard\n //ListView\n loadIngredients();\n searchIngredient.setText(\"\");\n quantityNameLabel.setText(\"\");\n }", "@FXML protected void editPatient(ActionEvent event) throws Exception{\n Parent root = FXMLLoader.load(getClass().getResource(\"EditPatientInformation.fxml\"));\n Stage stage = new Stage();\n Scene scene = new Scene(root);\n \n stage.setScene(scene);\n stage.show();\n }", "@FXML\n private void initialize() {\n \n }", "@FXML\n private void updateDates() {\n WeekFields weekFields = WeekFields.of(Locale.ENGLISH);\n weekNumber = date.get(weekFields.weekOfWeekBasedYear());\n weekNr.setText(\"\" + weekNumber);\n\n /* Update drawn events when changing week */\n drawEventsForWeek();\n \n\t\t/* Set current month/year */\n month_Year.setText(date.getMonth() + \" \" + date.getYear());\n\t\t\n\t\t/* Set date of weekday_labels */\n for (int i = 0; i < weekday_labels.size(); i++) {\n int date_value = date.with(DayOfWeek.MONDAY).plusDays(i).getDayOfMonth();\n weekday_labels.get(i).setText(\"\" + date_value + \".\");\n }\n }", "@FXML\n void UpdateCustomer(ActionEvent event) throws IOException {\n\n customer customer = customerTableView.getSelectionModel().getSelectedItem();\n if(customer == null)\n return;\n \n FXMLLoader loader = new FXMLLoader();\n loader.setLocation(getClass().getResource(\"/view/UpdateCustomer.fxml\"));\n loader.load();\n\n UpdateCustomerController CustomerController = loader.getController();\n CustomerController.retrieveCustomer(customer);\n\n stage = (Stage)((Button)event.getSource()).getScene().getWindow();\n Parent scene = loader.getRoot();\n stage.setScene(new Scene(scene));\n stage.show();\n\n }", "@FXML\n public void initialize() {\n addModLabel.setText(PassableData.getPartTitle());\n if(PassableData.isModifyPart() && PassableData.getPartData() != null){\n populateForm();\n } else {\n partId.setText(Controller.createPartId());\n }\n changeVarLabel();\n }", "public void run() {\n if (view.getPauseState() && model.getSelectedNote() != null) {\n this.model.removeNote(model.getSelectedNote());\n this.model.setSelectedNote(null);\n }\n\n view.setAllNotes(model.getMusic());\n view.setLength(model.getDuration());\n view.setTone(model.getTone(model.getNotes()));\n view.setTempo(model.getTempo());\n }", "@FXML\n public void useWeather(ActionEvent event){\n statusTxt.setText(\"Ongoing\");\n readFromFileBtn.setVisible(false);\n resumeBtn.setVisible(false);\n readNameBox.setVisible(false);\n tc.setMiasto(cityBox.getText());\n tc.ws = new WeatherStation(tc.getMiasto());\n BoxSetting bx = new BoxSetting(devTempBox,devHumBox,presDevBox,maxTempDevBox,minTempDevBox,measTxt,presChart,humidChart,tempChart,tempBox,humidBox,presBox,maxTempBox,minTempBox,meanTempBox,meanHumidBox,meanPresBox,meanMaxTempBox,meanMinTempBox,meanTempBox,meanHumidBox,meanPresBox);\n tc.addObserver(bx);\n tc.k.start();\n\n\n }", "@FXML\n public void updateLunch(){\n //get the selection from the listView\n try{\n //get the selected day from the weeklist\n Days selectedDay = weekList.getSelectionModel().getSelectedItem();\n if (lunchCombo.getSelectionModel().getSelectedItem() != null){\n Recipe newLunchRecipe = lunchCombo.getSelectionModel().getSelectedItem();\n selectedDay.setLunch(newLunchRecipe);\n }\n } catch (Exception e) {\n System.out.println(\"Nothing selected\");\n }\n\n weekList.refresh();\n //shopping list is now out of sync with the planner\n plannerOutOfSyncWithShoppingList(true);\n saveMealPlanner();\n }", "@FXML\n private void initialize() {\n }", "@FXML\n private void initialize() {\n }", "@FXML\n public void updateFields() {\n try {\n Worker currentWorker = workerAdaptor.getWorker(userIDComboBox.getValue());\n passwordTextField.setText(currentWorker.getPassword().strip());\n workerTypeComboBox.getSelectionModel().select(currentWorker.getWorkerType());\n } catch (Exception ex) {\n System.out.println(ex.getMessage());\n }\n }", "@Override\r\n public void start(Stage primaryStage) throws Exception{\n Client c1=new Client(\"Ion\");\r\n Client c2=new Client(\"Vasile\");\r\n ArrayList<Client> clients=new ArrayList<>();\r\n clients.add(c1);\r\n clients.add(c2);\r\n ArrayList<String> list=new ArrayList<>();\r\n\r\n\r\n //aici\r\n Controller ctrl1=new Controller(list);\r\n FXMLLoader loader=new FXMLLoader(getClass().getResource(\"sample.fxml\"));\r\n loader.setController(ctrl1);\r\n Parent root=loader.load();\r\n primaryStage.setTitle(clients.get(0).getName());\r\n primaryStage.setScene(new Scene(root, 600, 475));\r\n primaryStage.show();\r\n\r\n\r\n Stage s=new Stage();\r\n Controller ctrl2=new Controller(list);\r\n FXMLLoader loader1=new FXMLLoader(getClass().getResource(\"sample.fxml\"));\r\n loader1.setController(ctrl2);\r\n Parent root1=loader1.load();\r\n s.setTitle(clients.get(1).getName());\r\n s.setScene(new Scene(root1,600,475));\r\n s.show();\r\n\r\n Stage admin=new Stage();\r\n adminController ctrl3=new adminController(list);\r\n FXMLLoader loader2=new FXMLLoader(getClass().getResource(\"admin.fxml\"));\r\n loader2.setController(ctrl3);\r\n Parent root3=loader2.load();\r\n admin.setTitle(\"Admin\");\r\n admin.setScene(new Scene(root3,300,275));\r\n admin.show();\r\n\r\n ctrl1.addObserver(ctrl3);\r\n ctrl2.addObserver(ctrl3);\r\n\r\n }", "@FXML\r\n private void initialize() {\r\n \t\r\n \t\r\n \t\r\n \t\r\n \t\r\n }", "private void update()\n {\n\n Platform.runLater(new Runnable() {\n @Override\n public void run() {\n //System.out.println(\"UPDATE\");\n updateHumanPlayerMoney();\n updateListViewDoctorItems();\n updateListViewHospitalItems();\n updateListViewLogWindow();\n updateListViewComputerPlayer();\n load_figure();\n updateComputerPlayerMoney();\n }\n });\n }", "@FXML\n\tpublic void UpdateClientAdm(ActionEvent event) {\n\t\tClient clientToUpdate = restaurant.returnClient(LabelUpdateClientNameAdm.getText());\n\t\tif (!txtUpdateClientNamesAdm.getText().equals(\"\") && !txtUpdateClientSurnamesAdm.getText().equals(\"\")\n\t\t\t\t&& !txtUpdateClientAdressAdm.getText().equals(\"\") && !txtUpdateClientPhoneAdm.getText().equals(\"\")\n\t\t\t\t&& !txtUpdateClientObservationsAdm.getText().equals(\"\") && !txtUpdateClientIdAdm.getText().equals(\"\")) {\n\n\t\t\ttry {\n\t\t\t\tclientToUpdate.setNames(txtUpdateClientNamesAdm.getText());\n\t\t\t\tclientToUpdate.setSurnames(txtUpdateClientSurnamesAdm.getText());\n\t\t\t\tclientToUpdate.setAdress(txtUpdateClientAdressAdm.getText());\n\t\t\t\tclientToUpdate.setPhoneNumber(txtUpdateClientPhoneAdm.getText());\n\t\t\t\tclientToUpdate.setObservations(txtUpdateClientObservationsAdm.getText());\n\t\t\t\tclientToUpdate.setIdNumber(txtUpdateClientIdAdm.getText());\n\n\t\t\t\trestaurant.saveClientsData();\n\t\t\t\tDialog<String> dialog = createDialog();\n\t\t\t\tdialog.setContentText(\"Cliente actualizado satisfactoriamente\");\n\t\t\t\tdialog.setTitle(\"Proceso Satisfactorio\");\n\t\t\t\tdialog.show();\n\n\t\t\t\ttxtUpdateClientNamesAdm.setText(\"\");\n\t\t\t\ttxtUpdateClientSurnamesAdm.setText(\"\");\n\t\t\t\ttxtUpdateClientAdressAdm.setText(\"\");\n\t\t\t\ttxtUpdateClientPhoneAdm.setText(\"\");\n\t\t\t\ttxtUpdateClientObservationsAdm.setText(\"\");\n\t\t\t\ttxtUpdateClientIdAdm.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 de los datos\");\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 optionsFxml = new FXMLLoader(getClass().getResource(\"Administrator-Options-window.fxml\"));\n\t\t\t\toptionsFxml.setController(this);\n\t\t\t\tParent opWindow = optionsFxml.load();\n\t\t\t\tmainPaneLogin.getChildren().setAll(opWindow);\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\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}", "@FXML\n private void handleChangeDatesButton(ActionEvent e) {\n updateView();\n }", "@FXML\n public void setOldData(ActionEvent event){\n PersonDAO personDAO = new PersonDAO();\n ShopUIController shopUIController = new ShopUIController();\n Person oldUser = personDAO.getUserByID(shopUIController.getId());\n //Fill textfields with old data\n firstName.setText(oldUser.getFirstName());\n lastName.setText(oldUser.getLastName());\n email.setText(oldUser.getEmail());\n password.setText(oldUser.getPassword());\n phone.setText(oldUser.getPhone());\n Address oldAddress = oldUser.getAddress();\n address1.setText(oldAddress.getAddress1());\n address2.setText(oldAddress.getAddress2());\n postalCode.setText(oldAddress.getPostalCode());\n city.setText(oldAddress.getCity());\n country.setText(oldAddress.getCountry());\n googlePassword.setText(oldUser.getTfa());\n }", "protected void editNote()\n\t{\n\t\tActivity rootActivity = process_.getRootActivity();\n\t\tActivityPanel rootActivityPanel = processPanel_.getChecklistPanel().getActivityPanel(rootActivity);\n\t\tActivityNoteDialog activityNoteDialog = new ActivityNoteDialog(rootActivityPanel);\n\t\tint dialogResult = activityNoteDialog.open();\n\t\tif (dialogResult == SWT.OK) {\n\t\t\t// Store the previous notes to determine below what note icon to use\n\t\t\tString previousNotes = rootActivity.getNotes();\n\t\t\t// If the new note is not empty, add it to the activity notes\n\t\t\tif (activityNoteDialog.getNewNote().trim().length() > 0)\n\t\t\t{\n\t\t\t\t// Get the current time\n\t\t\t\tString timeStamp = new SimpleDateFormat(\"d MMM yyyy HH:mm\").format(Calendar.getInstance().getTime());\n\t\t\t\t// Add the new notes (with time stamp) to the activity's notes.\n\t\t\t\t//TODO: The notes are currently a single String. Consider using some more sophisticated\n\t\t\t\t// data structure. E.g., the notes for an activity can be a List of Note objects. \n\t\t\t\trootActivity.setNotes(rootActivity.getNotes() + timeStamp + \n\t\t\t\t\t\t\" (\" + ActivityPanel.AGENT_NAME + \"):\\t\" + activityNoteDialog.getNewNote().trim() + \"\\n\");\n\t\t\t}\n\t\t\t\n\t\t\t// Determine whether the note icon should change.\n\t\t\tif (previousNotes.trim().isEmpty())\n\t\t\t{\n\t\t\t\t// There were no previous notes, but now there are -- switch to image of note with text \n\t\t\t\tif (!rootActivity.getNotes().trim().isEmpty())\n\t\t\t\t\tactivityNoteButton_.setCurrentImage(noteWithTextImage_);\n\t\t\t}\n\t\t\telse // There were previous notes, but now there aren't -- switch to blank note image\n\t\t\t\tif (rootActivity.getNotes().trim().isEmpty())\n\t\t\t\t\tactivityNoteButton_.setCurrentImage(noteWithoutTextImage_);\n\t\t\t// END of determine whether the note icon should change\n\t\t\t\n\t\t\t// Set the tooltip text of the activityNoteButton_ to the current notes associated with the activity. \n\t\t\tactivityNoteButton_.setToolTipText(rootActivity.getNotes());\n\t\t\t\n\t\t\tprocessHeaderComposite_.redraw();\t// Need to redraw the activityNoteButton_ since its image changed.\n\t\t\t// We redraw the entire activity panel, because redrawing just the activityNoteButton_ \n\t\t\t// causes it to have different background color from the activity panel's background color\n\t\t\tSystem.out.println(\"Activity Note is \\\"\" + rootActivity.getNotes() + \"\\\".\");\n\t\t}\n\t}", "@FXML\r\n private void onRefresh() {\n HomeLibrary.refreshBooks();\r\n HomeLibrary.refreshAuthors();\r\n HomeLibrary.refreshGenres();\r\n HomeLibrary.refreshPublishingHouses();\r\n HomeLibrary.refreshFriends();\r\n\r\n HomeLibrary.getLibraryOverviewController().refreshOverallInfo();\r\n HomeLibrary.getBookOverviewController().refreshBooks();\r\n HomeLibrary.getGenresOverviewController().refreshGenres();\r\n HomeLibrary.getPubHousesOverviewController().refreshPubHouses();\r\n HomeLibrary.getFriendsOverviewController().refreshFriends();\r\n }", "public void handleModifyProducts()\n {\n FXMLLoader fxmlLoader = new FXMLLoader(getClass().getResource(\"/UI/Views/product.fxml\"));\n Parent root = null;\n try {\n root = (Parent) fxmlLoader.load();\n\n if (getProductToModify() != null)\n {\n // Get controller and configure controller settings\n ProductController productController = fxmlLoader.getController();\n productController.setModifyProducts(true);\n productController.setProductToModify(getProductToModify());\n productController.setInventory(inventory);\n productController.setHomeController(this);\n productController.updateParts();\n\n // Spin up product form\n Stage stage = new Stage();\n stage.initModality(Modality.APPLICATION_MODAL);\n stage.initStyle(StageStyle.DECORATED);\n stage.setTitle(\"Modify Products\");\n stage.setScene(new Scene(root));\n stage.show();\n }\n else\n {\n Alert alert = new Alert(Alert.AlertType.ERROR);\n alert.setTitle(\"Input Invalid\");\n alert.setHeaderText(\"No product was selected!\");\n alert.setContentText(\"Please select a product to modify from the product table!\");\n alert.show();\n }\n\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "@Override\n public void update(Observable observable, Object o) {\n javafx.application.Platform.runLater(this::refresh);\n }", "private void updateView() {\r\n if (this.nodes == null || this.nodes.length > 1\r\n || !this.nodes[0].exists()) {\r\n this.titleBorder.setTitle(\"-\");\r\n this.jzvStat.setStat(null);\r\n this.taUpdate.setText(\"\");\r\n this.taChildData.setText(\"\");\r\n this.jbUpdate.setEnabled(false);\r\n this.jbNewChild.setEnabled(false);\r\n this.jbDelete.setEnabled(this.nodes != null);\r\n } else {\r\n this.titleBorder.setTitle(this.nodes[0].getPath());\r\n this.jzvStat.setStat(this.nodes[0].getStat());\r\n byte[] data = this.nodes[0].getData();\r\n this.taUpdate.setText(new String(data == null ? \"null\".getBytes()\r\n : data));\r\n this.taChildData.setText(\"\");\r\n this.jbUpdate.setEnabled( !this.taUpdate.getText().trim().equals(\"\") );\r\n this.jbNewChild.setEnabled( !this.jtfChildName.getText().trim().equals(\"\") );\r\n this.jbDelete.setEnabled(true);\r\n }\r\n this.repaint();\r\n }", "@FXML\n public void initialize() {\n winnerName.setText(this.match.getWinner().getName());\n tournamentName.setText(this.match.getNameTournament());\n roundNumber.setText(this.match.getNbRonde()+\"\");\n firstPlayerScoreSet1.setText(this.match.getPoints(0)+\"\");\n secondPlayerScoreSet1.setText(this.match.getPoints(1)+\"\");\n firstPlayerScoreSet2.setText(this.match.getPoints(2)+\"\");\n secondPlayerScoreSet2.setText(this.match.getPoints(3)+\"\");\n firstPlayerScoreSet3.setText(this.match.getPoints(4)+\"\");\n secondPlayerScoreSet3.setText(this.match.getPoints(5)+\"\");\n namePlayer1.setText(this.match.getPlayer1().getName());\n namePlayer2.setText(this.match.getPlayer2().getName());\n firstPlayerName.setText(this.match.getPlayer1().getName());\n secondPlayerName.setText(this.match.getPlayer2().getName());\n\n\n }", "private void editEvent(VBox day, String descript, String termID) {\n Label dayLbl = (Label)day.getChildren().get(0);\n Model.getInstance().event_day = Integer.parseInt(dayLbl.getText());\n Model.getInstance().eventEnd_day = Integer.parseInt(dayLbl.getText());\n Model.getInstance().event_month = Model.getInstance().getMonthIndex(monthSelect.getSelectionModel().getSelectedItem()); \n Model.getInstance().event_year = Integer.parseInt(selectedYear.getValue());\n Model.getInstance().eventEnd_month = Model.getInstance().getMonthIndex(monthSelect.getSelectionModel().getSelectedItem()); \n Model.getInstance().eventEnd_year = Integer.parseInt(selectedYear.getValue());\n Model.getInstance().event_subject = descript;\n Model.getInstance().event_term_id = Integer.parseInt(termID);\n\n // When user clicks on any date in the calendar, event editor window opens\n try {\n // Load root layout from fxml file.\n FXMLLoader loader = new FXMLLoader();\n loader.setLocation(getClass().getResource(\"/views/planings/edit_event.fxml\"));\n \n AnchorPane rootLayout = (AnchorPane) loader.load();\n Stage stage = new Stage(StageStyle.UNDECORATED);\n stage.initModality(Modality.APPLICATION_MODAL); \n\n // Pass main controller reference to view\n EditEventController eventController = loader.getController();\n eventController.setMainController(this);\n \n // Show the scene containing the root layout.\n Scene scene = new Scene(rootLayout);\n stage.setScene(scene);\n stage.show();\n } catch (IOException ex) {\n Logger.getLogger(FXMLDocumentController.class.getName()).log(Level.SEVERE, null, ex);\n }\n \n }", "public void updateDeleteButtonClicked(){\n loadNewScene(apptStackPane, \"Update_Delete_Appointment.fxml\");\n }", "@FXML\n void OnActionShowUpdateCustomerScreen(ActionEvent event) throws IOException {\n stage = (Stage)((Button)event.getSource()).getScene().getWindow();\n scene = FXMLLoader.load(getClass().getResource(\"/View/ModifyCustomer.fxml\"));\n stage.setTitle(\"Modify Customer\");\n stage.setScene(new Scene(scene));\n stage.show();\n }", "@Override\n\tpublic void start(Stage primaryStage) throws Exception {\n\t FXMLLoader loader = new FXMLLoader(getClass().getResource(\"/sample.fxml\"));\n Parent root = loader.load();\n primaryStage.setTitle(\"Tower Defence\");\n s = new Scene(root, 600, 480);\n primaryStage.setScene(s);\n primaryStage.show();\n MyController appController = (MyController)loader.getController();\n appController.createArena(); \t\t\n\t}", "@FXML\n private void editSong(ActionEvent event) {\n Parent root;\n try{\n FXMLLoader loader = new FXMLLoader(getClass().getResource(\"/mytunes/gui/view/EditSong.fxml\"));\n root = loader.load();\n Stage stage = new Stage();\n \n EditSongController esc = loader.getController();\n esc.acceptSong(lstSongs.getSelectionModel().getSelectedItem());\n \n stage.setTitle(\"Edit Song\");\n stage.setScene(new Scene(root, 550,450));\n stage.show();\n stage.setOnHiding(new EventHandler<WindowEvent>() {\n @Override\n public void handle(WindowEvent event) {\n bllfacade.init();\n \n init();\n }\n });\n }catch(IOException e){e.printStackTrace();}\n \n }", "@FXML\n public void Modify_Item(ActionEvent actionEvent) {\n try {\n FXMLLoader fxmlLoader = new FXMLLoader(getClass().getResource(\"ModifyItemlist.fxml\"));\n Parent root1 = (Parent) fxmlLoader.load();\n Stage stage = new Stage();\n stage.initModality(Modality.APPLICATION_MODAL);\n stage.initStyle(StageStyle.UNDECORATED);\n stage.setTitle(\"New Item\");\n stage.setScene(new Scene(root1));\n stage.show();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public void update() {\r\n\t\t\tsetTextValue(updateNoteEnabled);\r\n\t\t}", "public void launch() {\n view.setEditMode(false); \n view.setComments(report.getComments().toArray());\n \n view.addCommentsListSelectionListener(new CommentsListSelectionListener());\n view.addEditButtonActionListener(new EditButtonActionListener());\n view.addDiscardButtonActionListener(new DiscardChangesActionListener());\n view.addSaveButtonActionListener(new SaveCommentChangesActionListener());\n view.addNewCommentActionListener(new NewCommentActionListener());\n \n view.setVisible(true);\n \n refreshView();\n \n /**\n * Craig - TC B2c: Real time updates\n * Register this controller as an observer\n */\n AppObservable.getInstance().addObserver(this);\n }", "@FXML\n\tprivate void initialize() {\n\t\t\n\t}", "@FXML\n\tprivate void initialize() {\n\t\t\n\t}", "private void loadXMLForOtherButtons() {\n try {\n FXMLLoader viewLoader = new FXMLLoader();\n viewLoader.setLocation(getClass().getResource(\"/components/ViewInfo/ViewMainContainer.fxml\"));\n viewMenuRef = viewLoader.load();\n viewMainController = viewLoader.getController();\n viewMainController.bindToMainChildAnchorPane(mainChildAnchorPane);\n\n // System.out.println(\"Going to try and store ref to orderMenu.fxml\");\n\n FXMLLoader newOrderLoader = new FXMLLoader();\n newOrderLoader.setLocation(getClass().getResource(\"/components/PlaceAnOrder/PlaceAnOrderMain/NewOrderContainer.fxml\"));\n orderMenuRef = newOrderLoader.load();\n newOrderContainerController = newOrderLoader.getController();\n newOrderContainerController.bindToMainChildAnchorPane(mainChildAnchorPane);\n\n FXMLLoader updateLoader = new FXMLLoader();\n updateLoader.setLocation(getClass().getResource(\"/components/UpdateInventory/UpdateInventoryContainer.fxml\"));\n updateRef = updateLoader.load();\n updateController = updateLoader.getController();\n updateController.bindToMainChildAnchorPane(mainChildAnchorPane);\n\n\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "@FXML\n private void helpButtonAction(ActionEvent event) {\n //Change help button to cancel button\n cancelButton.setVisible(true);\n cancelButton.setDisable(false);\n helpButton.setVisible(false);\n helpButton.setDisable(true);\n\n help = true;\n\n //disable sliders and checkbox\n disableSliderBoxes();\n\n // display information about the input range\n indexLabel.setText(\"Range: 1.2 - 1.5\");\n radiusLabel.setText(\"Range: 0.3 - 1.3 decimeters\");\n objectPositionLabel.setText(\"Range: 0.1 - 5.5 meters\");\n objectHeightLabel.setText(\"Range: 0.5 - 1.5 decimeters\");\n focalLabel.setText(null);\n imagePositionLabel.setText(null);\n imageHeightLabel.setText(null);\n identityLabel.setText(null);\n\n // if the sliders are at their initial positions, give the user a hint to drag the sliders to start the application\n if (indexSlider.getValue() == indexDefault && radiusSlider.getValue() == radiusDefault\n && objectPositionSlider.getValue() == positionDefault && objectHeightSlider.getValue() == heightDefault) {\n helpLens.setText(\"You can drag the sliders \\n\"\n + \"on the right side of the window \\n\"\n + \"to discover the magic of \\n\"\n + \"geometrical optics\");\n } else {\n // display explanation of the simulation\n helpFocal.setText(\"The two points are the focal \\n\"\n + \"points of the converging lens.\\n\"\n + \"As the focal length grows,\\n\"\n + \" they will move further away\\n\"\n + \" from the lens, vice versa\");\n helpLens.setText(\"Convergent lens centers the \\n\"\n + \"line rays that are going \\n\"\n + \"through. It becomes thinner \\n\"\n + \"as the curvature radius increases, \\n\"\n + \"vice versa\");\n helpObject.setText(\"As the object position increases, \\n\"\n + \"the object goes further from the \\n\"\n + \"converging lens, vice versa. \\n\"\n + \"As the object height increases, \\n\"\n + \"the object becomes bigger, \\n\"\n + \"vice versa\");\n if (imagePosition > 0) {\n // display corresponding message if a real, inverted image is formed\n helpImage.setText(\"In convergent lens optics, when the \\n\"\n + \"object position is further than the focal \\n\"\n + \"length, a real and inverted image is \\n\"\n + \"formed. In which case the image position is \\n\"\n + \"positive (the image is on the right side of \\n\"\n + \"the lens), the magnification is negative \\n\"\n + \"(the image is inverted)\");\n } else {\n // display corresponding message if a virtual, upright image is formed\n helpImage.setText(\"In convergent lens optics, when the \\n\"\n + \"object position is less than the focal \\n\"\n + \"length, a virtual and upright image is \\n\"\n + \"formed. In which case the image position is \\n\"\n + \"negative (the image is on the left side of \\n\"\n + \"the lens), the magnification is positive \\n\"\n + \"(the image is upright)\");\n }\n // give the explanation about the principle rays if the user displays the principle rays\n if (principleBox.isSelected()) {\n helpPrinciple.setText(\"In convergent lens optics, there are \\n\"\n + \"three principle rays formed, the point where \\n\"\n + \"they intersect is the tip of the image formed. \\n\"\n + \"In the simulation, the solid black lines are \\n\"\n + \"real light rays, the purple dotted lines are \\n\"\n + \"virtual light rays\");\n } else {\n // lead the user to click on display principle rays check box to show the principle rays if the user haven't done it already\n helpPrinciple.setText(\"Click the display principle rays \\n\"\n + \"check box to discover more about \\n\"\n + \"the refraction of light rays\");\n }\n info.setText(\"The numbers in green color are user inputs, \\n\"\n + \"in purple color are outputs from the calculation\");\n }\n }", "@FXML\n\tprivate void initialize(){\n\t}", "@FXML\r\n private void bComm() throws IOException, SQLException {\n int index = tableView.getSelectionModel().getSelectedIndex();\r\n if(index>=0)\r\n {\r\n calc calc = data.get(index);\r\n newCommentController.calc.setDate(calc.getDate());\r\n Parent parent = FXMLLoader.load(getClass().getResource(\"NewComment.fxml\"));\r\n Stage stage = new Stage();\r\n stage.initModality(Modality.WINDOW_MODAL);\r\n stage.setScene(new Scene(parent));\r\n stage.setTitle(\"Comment\");\r\n stage.showAndWait();\r\n refresh();\r\n }else\r\n {\r\n Alert alert = new Alert(Alert.AlertType.ERROR);\r\n alert.setTitle(\"ERROR\");\r\n alert.setContentText(\"Nothing Selected!!!\");\r\n alert.showAndWait();\r\n }\r\n }", "public void gotoMyFlights(){\n try {\n FXMLMyFlightsController verMyFlights = (FXMLMyFlightsController) replaceSceneContent(\"FXMLMyFlights.fxml\");\n verMyFlights.setApp(this);\n } catch (Exception ex) {\n Logger.getLogger(IndieAirwaysClient.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "public void addBtn(ActionEvent event) throws IOException {\n\n Button b = (Button)event.getSource();\n Stage stage = (Stage)b.getScene().getWindow();\n FXMLLoader loader = new FXMLLoader(this.getClass().getResource(\"RefrigeratorAdd.fxml\"));\n stage.setScene(new Scene((Parent)loader.load(), 650, 950));\n\n RefrigeratorAddController LoadCompartment1 = (RefrigeratorAddController)loader.getController();\n LoadCompartment1.setCompartment1(this.compartment1);\n\n RefrigeratorAddController LoadCompartment2 = (RefrigeratorAddController)loader.getController();\n LoadCompartment2.setCompartment2(this.compartment2);\n\n RefrigeratorAddController LoadCompartment3 = (RefrigeratorAddController)loader.getController();\n LoadCompartment3.setCompartment3(this.compartment3);\n\n RefrigeratorAddController LoadCompartment4 = (RefrigeratorAddController)loader.getController();\n LoadCompartment4.setCompartment4(this.compartment4);\n\n\n RefrigeratorAddController LoadCompartment5 = (RefrigeratorAddController)loader.getController();\n LoadCompartment5.setCompartment5(this.compartment5);\n\n RefrigeratorAddController LoadCompartment6 = (RefrigeratorAddController)loader.getController();\n LoadCompartment6.setCompartment6(this.compartment6);\n\n RefrigeratorAddController LoadFreezingCompartment1 = (RefrigeratorAddController)loader.getController();\n LoadFreezingCompartment1.setFreezingCompartment1(this.freezingCompartment1);\n\n RefrigeratorAddController LoadFreezingCompartment2 = (RefrigeratorAddController)loader.getController();\n LoadFreezingCompartment2.setFreezingCompartment2(this.freezingCompartment2);\n\n\n\n\n }", "@FXML\n void openEditEventWindow(Event event) {\n\n// shows the window for adding an Event\n openAddEventWindow();\n\n// fills the TextFields and ChoiceBox with appropriate data\n timelineChoice.getSelectionModel().select(app.timelines.indexOf(event.timeline));\n event_nameField.setText(event.name);\n event_startDayField.setText(Integer.toString(event.startDate[0]));\n event_startMonthField.setText(Integer.toString(event.startDate[1]));\n event_startYearField.setText(Integer.toString(event.startDate[2]));\n event_endDayField.setText(Integer.toString(event.endDate[0]));\n event_endMonthField.setText(Integer.toString(event.endDate[1]));\n event_endYearField.setText(Integer.toString(event.endDate[2]));\n event_notesField.setText(event.notes);\n\n// switches add and edit Buttons and Labels\n event_addButton.setVisible(false);\n event_addLabel.setVisible(false);\n event_editButton.setVisible(true);\n event_editLabel.setVisible(true);\n\n// changes functions called when Buttons are clicked\n event_editButton.setOnAction(addEvent -> editEvent(event));\n cancelEventButton.setOnAction(cancelEvent -> cancelTimelineEdit());\n\n// generates feedback for the user\n window.setTitle(\"Timelines: Edit Event\");\n setMessage(\"Entered Event Edit mode.\", false);\n }", "@FXML\n public void New_List(ActionEvent actionEvent) {\n\n //Here we are going to open a window to create a list.\n //Working!!\n try {\n FXMLLoader fxmlLoader = new FXMLLoader(getClass().getResource(\"NewTodolist.fxml\"));\n Parent root1 = (Parent) fxmlLoader.load();\n Stage stage = new Stage();\n stage.initModality(Modality.APPLICATION_MODAL);\n stage.initStyle(StageStyle.UNDECORATED);\n stage.setTitle(\"New List\");\n stage.setScene(new Scene(root1));\n stage.show();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "@FXML\n void changeToDetailsView(PhotoUnit photoUnit) throws IOException {\n\n FXMLLoader loader = new FXMLLoader();\n loader.setLocation(getClass().getResource(\"/Views/photoView.fxml\"));\n Parent root = loader.load();\n\n Scene scene = new Scene(root);\n\n scene.getStylesheets().add(\"Views/styles.css\");\n Stage primaryStage = (Stage) listView.getScene().getWindow();\n primaryStage.setScene(scene);\n\n //access the controller\n PhotoViewController controller = loader.getController();\n controller.initData(photoUnit);\n\n Image icon = new Image(\"/img/mars.png\");\n primaryStage.getIcons().add(icon);\n primaryStage.setTitle(\" MARS \");\n primaryStage.show();\n\n\n }", "void updateViewFromModel();", "@FXML\r\n void showStat(ActionEvent event) {\r\n try {\r\n if (diffPoint == 0) {\r\n FXMLLoader loader = new FXMLLoader(getClass()\r\n .getResource(\"../fxml/SetupSummary.fxml\"));\r\n Parent root = (Parent) loader.load();\r\n SetupSummaryController charController = loader.getController();\r\n charController.initData(nameLabel.getText(), strength.getText(),\r\n agility.getText(), intelligence.getText(),\r\n charistma.getText(), engineering.getText(), credits);\r\n SkillConfigurationController.hidStage();\r\n newStage = new Stage();\r\n newStage.setScene(new Scene(root));\r\n newStage.show();\r\n } else {\r\n FXMLLoader loader = new FXMLLoader(getClass()\r\n .getResource(\"../fxml/SkillConfigurationError.fxml\"));\r\n Parent root = (Parent) loader.load();\r\n stage = new Stage();\r\n stage.setScene(new Scene(root));\r\n stage.show();\r\n }\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n }", "@FXML private void initialize() {\r\n \t\tc = Utilities.leggiCliente(Main.idCliente);\r\n \t\tac = new acquisto.AcquistoController(c);\r\n \t\tgetProdotti();\r\n \t\tgetSconti();\r\n \t\tinitSelezionati();\r\n \t\tpunti.setText(\"\" + ac.getSaldoPunti());\r\n \t\tpunti.setEditable(false);\r\n \t\ttotale.setEditable(false);\r\n \t\tconferma.setDisable(true);\r\n \t}", "@Override\n public void start(Stage primaryStage) throws Exception{\n FXMLLoader loader = new FXMLLoader();\n loader.setLocation(\n getClass().getResource(\"/View/main.fxml\"));\n Pane root = (Pane)loader.load();\n\n listController = loader.getController();\n listController.start(primaryStage);\n\n primaryStage.setTitle(\"Song Library - Nick Carchio and Adam Romano\");\n primaryStage.setScene(new Scene(root, 750 , 500));\n primaryStage.show();\n\n }", "void updateView();", "void updateView();", "@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}", "@FXML\n\tprivate void initialize() {\n\n\t}", "public void updateDetailWindow();", "@FXML\n void openEditTimelineWindow(Timeline timeline) {\n\n// shows the window for adding a Timeline\n openAddTimelineWindow();\n\n// fills the TextField with appropriate data\n timeline_nameField.setText(timeline.name);\n\n// switches add and edit Buttons and Labels\n timeline_addButton.setVisible(false);\n timeline_addLabel.setVisible(false);\n timeline_editButton.setVisible(true);\n timeline_editLabel.setVisible(true);\n\n// changes functions called when Buttons are clicked\n timeline_editButton.setOnAction(addEvent -> editTimeline(timeline));\n cancelTimelineButton.setOnAction(cancelEvent -> cancelTimelineEdit());\n\n// generates feedback for the user\n window.setTitle(\"Timelines: Edit Timelines\");\n setMessage(\"Entered Timeline Edit mode.\", false);\n }", "@FXML\r\n void upload(ActionEvent event) {\r\n \tif(p!=null){\r\n \ttry {\r\n \t\tString note = null;\r\n \t\tif(Note.getText().isEmpty()){note=(\"\");} else {note=Note.getText();}\r\n\t\t\t\tPlacementSQL.UploadNote(String.valueOf(p.getId()),note);\r\n\t\t\t\tGeneralMethods.show(\"Uploaded note for placement \"+ p.getId(), \"Upload Success\");\r\n\t \t\r\n \t} catch (Exception e) {\r\n\t\t\t\tGeneralMethods.show(\"Error in uploading note to placement\", \"Error\");\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n \t} else {\r\n \t\tGeneralMethods.show(\"No placement selected\", \"Error\");\r\n \t}\r\n }", "@Override\n public void handle(Event event) {\n FXMLCustomerController controller = new FXMLCustomerController();\n controller = (FXMLCustomerController) controller.load();\n\n SearchRowItem whichCustomer = searchResultsTable.getSelectionModel().getSelectedItem();\n controller.setCustomerDetails(whichCustomer);\n\n controller.getStage().showAndWait();\n if (controller.isUpdated()) {\n // refresh Customer against server\n // CustomerTO updatedCustomer = SoapHandler.getCustomerByID(whichCustomer.getCustomerId());\n // whichCustomer.setCustomerTO(updatedCustomer);\n // if there's a partner, set the name\n CustomerTO updatedCustomer = controller.getCustomer();\n Integer partnerId = whichCustomer.getPartnerId();\n if (partnerId != null && partnerId != 0) {\n if (whichCustomer.getPartnerProperty() == null) {\n whichCustomer.setPartnerProperty(new SimpleStringProperty());\n }\n SimpleStringProperty partnerName = (SimpleStringProperty) whichCustomer.getPartnerProperty();\n SearchRowItem partner = customerSet.get(partnerId);\n partnerName.setValue(partner.getForename());\n if (partner.getPartnerProperty() != null) {\n partner.getPartnerProperty().setValue(whichCustomer.getForename());\n } else {\n partner.setPartnerProperty(new SimpleStringProperty(whichCustomer.getForename()));\n }\n } else if (whichCustomer.getPartnerProperty() != null) {\n whichCustomer.getPartnerProperty().setValue(\"\");\n }\n whichCustomer.setCustomer(updatedCustomer);\n whichCustomer.refresh(updatedCustomer);\n // SearchRowItem customer = customerSet.get(whichCustomer.getCustomerId());\n // customer.setCustomerTO(whichCustomer);\n\n searchResultsTable.refresh();\n }\n }", "@FXML\n private void getStudent() {\n System.out.println(\"Handling student: \"+handledStudent.toString());\n Student toBeEdited = handledStudent;\n System.out.println(\"Student to be edited:\"+toBeEdited.toString());\n txfID.setText(toBeEdited.getStudentID());\n txfFirstName.setText(toBeEdited.getFirstName());\n txfLastName.setText(toBeEdited.getLastName());\n txfAddress.setText(toBeEdited.getAddress());\n txfZIP.setText(toBeEdited.getZIP());\n txfZIPloc.setText(toBeEdited.getZIPloc());\n txfEmail.setText(toBeEdited.getEmail());\n txfPhone.setText(toBeEdited.getPhone());\n }", "@FXML\n void start()\n {\n tasksColumn.setCellFactory(TextFieldTableCell.forTableColumn());\n\n tasksColumn.setOnEditCommit(event ->\n {\n // If description is valid, then add it to the table\n if(check.checkTask(event.getNewValue()))\n {\n Item item = event.getRowValue();\n item.setTask(event.getNewValue());\n\n status.setText(\"Task updated. \");\n }\n\n else\n {\n status.setText(\"Task not updated. \");\n listView.refresh();\n }\n });\n\n completionDateColumn.setCellFactory(TextFieldTableCell.forTableColumn());\n\n completionDateColumn.setOnEditCommit(event ->\n {\n // If description is valid, then add it to the table\n if(check.checkCompletionDate(event.getNewValue()))\n {\n Item item = event.getRowValue();\n item.setCompletionDate(event.getNewValue());\n\n status.setText(\"Completion Date updated. \");\n }\n\n else\n {\n status.setText(\"Completion Date not updated. \");\n listView.refresh();\n }\n });\n\n completedColumn.setCellFactory(TextFieldTableCell.forTableColumn(new BooleanStringConverter()));\n\n completedColumn.setOnEditCommit(event ->\n {\n Item item = event.getRowValue();\n item.setFinished(event.getNewValue());\n\n listView.refresh();\n });\n }", "@FXML\n void startGame(ActionEvent event) {\n logic.viewUpdated();\n }", "private Initializable replaceSceneContent(String fxml) throws Exception {\n FXMLLoader loader = new FXMLLoader();\n InputStream in = IndieAirwaysClient.class.getResourceAsStream(fxml);\n loader.setBuilderFactory(new JavaFXBuilderFactory());\n loader.setLocation(IndieAirwaysClient.class.getResource(fxml));\n AnchorPane page;\n try {\n page = (AnchorPane) loader.load(in);\n } finally {\n in.close();\n }\n Scene scene = new Scene(page, WINDOW_WIDTH, WINDOW_HEIGHT);\n stage.setScene(scene);\n stage.sizeToScene();\n return (Initializable) loader.getController();\n }", "@Override\n public void start(Stage stage) throws Exception {\n\n this.stage = stage;\n log.info(\"Inside Start \");\n PropertiesManager pm = new PropertiesManager();\n currentLocale = Locale.getDefault();\n //loads properties\n ConfigBean cb = pm.loadTextProperties(\"src/main/resources\", \"configuration\");\n log.info(\"Loaded Properties \");\n\n //if file was loaded properly, open the main controller\n if (cb != null) {\n FXMLLoader loader = new FXMLLoader();\n loader.setResources(ResourceBundle.getBundle(\"Bundle\", currentLocale));\n URL path2 = Paths.get(\"src/main/resources/fxml/main.fxml\").toUri().toURL();\n loader.setLocation(path2);\n stage.getIcons().add(\n new Image(MainApp.class\n .getResourceAsStream(\"/images/email.png\")));\n\n Scene scene2 = new Scene(loader.load());\n\n stage.setTitle(\"Jag Client\");\n stage.setResizable(false);\n stage.setScene(scene2);\n stage.show();\n } else { \n //if file was not loaded properly and information was incorrect then\n //load config form\n URL path = Paths.get(\"src/main/resources/fxml/config.fxml\").toUri().toURL();\n FXMLLoader fxmlloader = new FXMLLoader();\n fxmlloader.setLocation(path);\n\n fxmlloader.setResources(ResourceBundle.getBundle(\"Bundle\", currentLocale));\n\n Scene scene = new Scene(fxmlloader.load());\n\n stage.setTitle(\"Config\");\n stage.setResizable(false);\n stage.setScene(scene);\n stage.show();\n\n }\n\n }", "@FXML\n\tpublic void initialize()\n\t{\n\t}", "@FXML void ShowOffer(ActionEvent event4) throws IOException, BusinessException {\n\n\tPane annunci[] = { Annuncio1, Annuncio2, Annuncio3};\n\tTextArea embio[] = {EditWorkInfoArea,EditWorkInfoArea1,EditWorkInfoArea11};\n\tLabel Titoli[] = { TitleLabel,TitleLabel1,TitleLabel11};\n\tLabel Posizioni[] = {PositionLabel,PositionLabel1,PositionLabel11};\n\tLabel TipoContratto[] = {ContractTypeLabel,ContractTypeLabel1,ContractTypeLabel11}; \n\tLabel TempoContratto[] = {ContractTimeLabel,ContractTimeLabel1,ContractTimeLabel11};\n\tLabel Retribuzioni[] = {RetributionLabel,RetributionLabel1,RetributionLabel11};\n\tLabel Settori[] = {SectorLabel,SectorLabel1,SectorLabel11};\n\tLabel Regioni[] = {RegionLabel,RegionLabel1,RegionLabel11};\n\tLabel RetxTempo[] = {RetxTLabel,RetxTLabel1,RetxTLabel11};\n\tLabel Bonus [] = {BonusLabel,BonusLabel1,BonusLabel11};\n\tLabel Studi[] = {DegreeLabel,DegreeLabel1,DegreeLabel11};\n\tLabel Esperienze[] = {ExpLabel,ExpLabel1,ExpLabel11};\n\n try {\n\tint i = 0;\n\tList<Offer> offerList = offerService.findMyOffers(eoEmail.getText().toString());\n\t\t if ( offerList.size() < 3 ) {\n\t\t for ( i = offerList.size(); i < 3; i++ ) {\n\t\t annunci[i].setVisible(false); }\n\t\t }\n\t\t i = 0;\n\t\t for (Offer o: offerList) {\n\t\t annunci[i].setVisible(true);\n\t\t Titoli[i].setText(o.getTitle());\n\t\t Posizioni[i].setText(o.getPosition());\n\t\t Settori[i].setText(o.getSector());\n\t\t Regioni[i].setText(o.getRegion());\n\t\t TipoContratto[i].setText(o.getContractType()); \n\t\t TempoContratto[i].setText(o.getContractTime());\n\t\t Retribuzioni[i].setText(o.getWage());\n\t\t RetxTempo[i].setText(o.getWageTime());\n\t\t Studi[i].setText(o.getEducation());\n\t\t Bonus[i].setText(o.getBonus());\n\t\t embio[i].setText(o.getInfo());\n\t\t Esperienze[i].setText(o.getExperience());\n\t\t i++;\n\t\t }\n } catch (BusinessException e) {\n e.printStackTrace();\n throw new BusinessException(e);\n }\n}", "@FXML\n public void initialize() {\n staticController = this;\n mainPress(null);\n scrollPane.widthProperty().addListener((obs, oldVal, newVal) -> {\n onWindowSizeChange();\n });\n onWindowSizeChange();\n }", "private void refreshHomePage()\r\n {\r\n Stage currentStage = (Stage) viewCoinAnchorPane.getScene().getWindow();\r\n //currentStage.hide();\r\n FXMLLoader fxmlLoader = new FXMLLoader();\r\n String filePath = \"/com/jjlcollectors/fxml/homepage/HomePage.fxml\";\r\n URL location = HomePageController.class.getResource(filePath);\r\n fxmlLoader.setLocation(location);\r\n fxmlLoader.setBuilderFactory(new JavaFXBuilderFactory());\r\n try\r\n {\r\n Parent root = fxmlLoader.load(location.openStream());\r\n } catch (IOException ex)\r\n {\r\n MyLogger.log(Level.SEVERE, LOG_CLASS_NAME + \" couldn't load homepage to refresh coin update!\", ex);\r\n }\r\n HomePageController homePageController = (HomePageController) fxmlLoader.getController();\r\n homePageController.refreshCoinList();\r\n }", "@FXML\n public void dislay(ActionEvent event) throws IOException, SQLException{\n FXMLLoader loader = new FXMLLoader();\n loader.setLocation(getClass().getResource(\"OrderPage.fxml\"));\n Parent root = loader.load();\n \n // pass information to orderPage scene\n OrderPageController controller = loader.getController();\n controller.initData(this.tableView.getSelectionModel().getSelectedItem());\n \n Scene scene = new Scene(root);\n Stage orderWindow = new Stage();\n orderWindow.setScene(scene);\n orderWindow.show();\n }", "private void changeScene(URL sceneFXML, Object controllerObject) {\n\t\ttry {\n\t\t\tUtilMethods.changeScene(sceneFXML, controller.getStage(), controllerObject);\n\t\t\tcontroller.getStage().setResizable(false);\n\t\t\tcontroller.getStage().setMaximized(false);\n\n\t\t} catch (Exception e) {\n\t\t\tLOGGER.error(\"Error al modifcar la ventana de JavaFX: {}\", e);\n\t\t}\n\t}", "@FXML\n private void updateStudent() {\n System.out.println(\"trying to insert new student to database\");\n DBhandler db = new DBhandler();\n Student s = new Student(\n txfID.getText(),\n txfFirstName.getText(),\n txfLastName.getText(),\n txfAddress.getText(),\n txfZIP.getText(),\n txfZIPloc.getText(),\n txfEmail.getText(),\n txfPhone.getText()\n );\n System.out.println(s.toString());\n db.updateStudentToDatabase(s);\n RecordEditPage.handledStudent=s;\n Cancel(new ActionEvent());\n }", "DialogTicketController(GameLogic gl, JavaFXGUI gui, boolean taxi, boolean bus, boolean underground, boolean black, int taxiTicketNumber, int busTicketNumber, int undergroundTicketNumber, int blackTicketNumber) {\n\n this.gl = gl;\n thisStage = new Stage();\n\n // Load the FXML file\n try {\n FXMLLoader loader = new FXMLLoader(getClass().getResource(\"/gui/DialogTicket.fxml\"));\n loader.setController(this);\n thisStage.setScene(new Scene(loader.load()));\n thisStage.setTitle(\"Ticket für die nächste Station wählen\");\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n // Checks What Button/Label to show and what to hide (depending on current Ticket Numbers)\n if (bus) {\n this.busLabel.setText(String.valueOf(busTicketNumber) + \"x\");\n } else {\n this.busLabel.setVisible(false);\n this.busButton.setVisible(false);\n }\n\n if (taxi) {\n this.taxiLabel.setText(String.valueOf(taxiTicketNumber) + \"x\");\n } else {\n this.taxiLabel.setVisible(false);\n this.taxiButton.setVisible(false);\n }\n\n if (underground) {\n this.undergroundLabel.setText(String.valueOf(undergroundTicketNumber) + \"x\");\n } else {\n this.undergroundLabel.setVisible(false);\n this.undergroundButton.setVisible(false);\n }\n\n if (black) {\n this.blackLabel.setText(String.valueOf(blackTicketNumber) + \"x\");\n } else {\n this.blackLabel.setVisible(false);\n this.blackButton.setVisible(false);\n }\n\n thisStage.show();\n }", "@FXML protected void initialize() {\n\t\tinitConfigVar();\n\t\tapplyStyle();\n\t}", "@FXML void expandc1p2(MouseEvent event) { \n\ttry {\n\t\tFXMLLoader loader = new FXMLLoader (getClass().getResource(\"/resources/Fxml/ShowCandidate.fxml\"));\n Parent root = (Parent) loader.load();\n ShowCandidateController SCController=loader.getController();\n SCController.mailFunction(mailc1p2.getText());\n SCController.TitleFunction(TitleLabel1.getText());\n SCController.ExpFunction(ExpLabel1.getText());\n SCController.SectorFunction(SectorLabel1.getText());\n SCController.RegionFunction(RegionLabel1.getText()); \n Stage stage = new Stage();\n stage.setScene(new Scene(root));\n stage.setResizable(false);\n stage.show(); \n\t} catch (IOException e) {\n\t\te.printStackTrace(); }\t\n}", "public void updatePropertyFields()\n {\n amountLabel .setText(retrieveText(\"AmountLabel\", amountLabel));\n reasonCodeLabel .setText(retrieveText(\"ReasonCodeLabel\", reasonCodeLabel));\n paidToLabel .setText(retrieveText(\"PaidToLabel\", paidToLabel));\n employeeIDLabel .setText(retrieveText(\"EmployeeIDLabel\", employeeIDLabel));\n addressLine1Label.setText(retrieveText(\"AddressLine1Label\", addressLine1Label));\n addressLine2Label.setText(retrieveText(\"AddressLine2Label\", addressLine2Label));\n addressLine3Label.setText(retrieveText(\"AddressLine3Label\", addressLine3Label));\n approvalCodeLabel.setText(retrieveText(\"ApprovalCodeLabel\", approvalCodeLabel));\n commentLabel .setText(retrieveText(\"CommentLabel\", commentLabel));\n\n amountField .setLabel(amountLabel);\n reasonCodeField .setLabel(reasonCodeLabel);\n paidToField .setLabel(paidToLabel);\n employeeIDField .setLabel(employeeIDLabel);\n addressLine1Field.setLabel(addressLine1Label);\n addressLine2Field.setLabel(addressLine2Label);\n addressLine3Field.setLabel(addressLine3Label);\n approvalCodeField.setLabel(approvalCodeLabel);\n commentField .setLabel(commentLabel);\n }", "public void abrirVentanaEditarLista(ActionEvent event){\n Parent root;\n try {\n //Se carga la ventana\n FXMLLoader loader = new FXMLLoader(getClass().getResource(\"editarListaSample.fxml\"));\n root =loader.load();\n Stage stage = new Stage();\n stage.setTitle(\"Lista\");\n stage.setScene(new Scene(root,600,450));\n //Se define la selecciono de lista y lo que se hara con ella\n ListaCompras listaSeleccionada = ListasComprasTabla.getSelectionModel().getSelectedItem();\n if (listaSeleccionada!=null) {\n EditarListaSample controllerEditarLista = loader.getController();\n controllerEditarLista.definirPantalla(listaSeleccionada);\n\n listaSeleccionada.getArticulos().forEach(articulo -> controllerEditarLista.anadirArticulos(articulo));\n\n\n //Se muestra la ventana\n stage.show();\n }else{\n System.out.println(\"No ha seleccionado nada\");\n }\n }catch (IOException e){\n e.printStackTrace();\n }\n }", "public void update()\n {\n reinit(viewer.getScene().getActors());\n\n list.invalidate();\n invalidate();\n repaint();\n }", "@FXML\n private void boton_nuevoPuesto(ActionEvent event) throws IOException {\n FXMLLoader fxmlLoader = new FXMLLoader(getClass().getClassLoader().getResource(\"Views/Puestos/puestos_nuevo.fxml\"));\n Parent root = fxmlLoader.load(); \n Puestos_nuevoController puestosNuevo = fxmlLoader.getController();\n\n \n puestosNuevo.setIdArea(idArea);\n puestosNuevo.setNombreArea(nombreArea);\n \n Scene scene = new Scene(root);\n Stage stage = (Stage) ((Node) event.getSource()).getScene().getWindow();\n stage.setScene(scene);\n stage.show();\n }", "@FXML\n public void UpdateIngred(){\n Ingredient selectedIngredient = ingredientsBrowseCombo.getSelectionModel().getSelectedItem();\n\n //create an ingredient to roll back too, incase of an error\n Ingredient rollBack = new Ingredient(selectedIngredient);\n\n //update the ingredients information using the data in the textfields\n try{\n selectedIngredient.setCalorie(Double.parseDouble(ingredCalorieInputBrowse.getText().trim()));\n selectedIngredient.setProtein(Double.parseDouble(ingredProteinInputBrowse.getText().trim()));\n selectedIngredient.setCarbs(Double.parseDouble(ingredCarbsInputBrowse.getText().trim()));\n selectedIngredient.setSugar(Double.parseDouble(ingredSugarInputBrowse.getText().trim()));\n selectedIngredient.setFiber(Double.parseDouble(ingredFiberInputBrowse.getText().trim()));\n selectedIngredient.setFat(Double.parseDouble(ingredFatInputBrowse.getText().trim()));\n selectedIngredient.setSingleQuantityInGrams(Double.parseDouble(ingredQuantityAmountInputBrowse.getText().trim()));\n selectedIngredient.setQuantityName(ingredQuantityNameInputBrowse.getText().trim());\n\n //if no quantity data entered throw an error\n if (ingredQuantityNameInputBrowse.getText().trim().equals(\"\")){\n System.out.println(\"A quantity name needs to be entered\");\n ingredientBox.errorDiaglogBox(\"Update ingredient\", \"No entry in the quantity name field\");\n rollBackIngredientBrowseFields(rollBack);\n return;\n }\n\n //Create a service instance to update the ingredient in the database\n Service ingredientUpdateService = new UpdateIngredientService(selectedIngredient);\n ingredientUpdateService.setOnSucceeded(new EventHandler<WorkerStateEvent>() {\n @Override\n public void handle(WorkerStateEvent workerStateEvent) {\n //set the right ingredient\n ingredientsBrowseCombo.getSelectionModel().select(selectedIngredient);\n //disable the edit function\n ingredBrowseEditToggle.setSelected(false);\n }\n });\n\n //run the update ingredient service\n if (ingredientUpdateService.getState() == Service.State.SUCCEEDED){\n ingredientUpdateService.reset();\n ingredientUpdateService.start();\n } else if (ingredientUpdateService.getState() == Service.State.READY){\n ingredientUpdateService.start();\n }\n\n } catch (NumberFormatException n){\n //if non numeric information is entered into the textfields for numerical properties this error is thrown\n ingredientBox.errorDiaglogBox(\"Ingredient update\", \"Please ensure that all fields have valid\" +\n \" data entered\");\n rollBackIngredientBrowseFields(rollBack);\n } catch (Exception e){\n System.out.println(\"Error updating the ingredients\");\n ingredientBox.errorDiaglogBox(\"Ingredient update\", \"Error when updating ingredient\");\n rollBackIngredientBrowseFields(rollBack);\n }\n }", "@FXML void expandc1p3(MouseEvent event) {\n\ttry {\n\t\tFXMLLoader loader = new FXMLLoader (getClass().getResource(\"/resources/Fxml/ShowCandidate.fxml\"));\n Parent root = (Parent) loader.load(); \n ShowCandidateController SCController=loader.getController();\n SCController.mailFunction(mailc1p3.getText());\n SCController.TitleFunction(TitleLabel11.getText());\n SCController.ExpFunction(ExpLabel11.getText());\n SCController.SectorFunction(SectorLabel11.getText());\n SCController.RegionFunction(RegionLabel11.getText()); \n Stage stage = new Stage();\n stage.setScene(new Scene(root));\n stage.setResizable(false);\n stage.show(); \n\t} catch (IOException e) {\n\t\te.printStackTrace(); }\t\n}", "@Override\n public void start (Stage startStage) {\n\n// loads all Scenes from FXML files, shows error if unsuccessful\n try {\n mainScene = new Scene(FXMLLoader.load(getClass().getResource(\"windows/mainWindow.fxml\")));\n mainScene.setFill(Color.TRANSPARENT);\n menuScene = new Scene(FXMLLoader.load(getClass().getResource(\"windows/menuWindow.fxml\")));\n menuScene.setFill(Color.TRANSPARENT);\n addEventScene = new Scene(FXMLLoader.load(getClass().getResource(\"windows/addEventWindow.fxml\")));\n addTimelineScene = new Scene(FXMLLoader.load(getClass().getResource(\"windows/addTimelineWindow.fxml\")));\n } catch (Exception exception) {\n showError(\"loading GUI\", exception.toString());\n }\n\n// loads visuals (CSS stylesheet and logo)\n stylesheet = new Stylesheet(\"stylesheet.css\");\n logo = new Image(\"/images/icon-main.png\");\n\n// links all JavaFX Nodes defined as static variables, binds Listeners\n loadFXMLElements();\n createListeners();\n\n// starts the main Stage (window) on menu (menuScene)\n window = startStage;\n// window.setTitle(\"Timelines: Menu\");\n window.setScene(menuScene);\n// window.getIcons().add(logo);\n window.initStyle(StageStyle.TRANSPARENT);\n\n window.show();\n\n// creates a new App (back-end), attempts to load data from file, creates success / error user feedback\n try {\n app = new App();\n setMessage(app.loadFromFile() + \": \" + app.timelines.size() + \" Timelines loaded\", false);\n } catch (Exception exception) {\n showError(\"loading data from file\", exception.toString() + \"\\n(Expected file data.txt in the same directory)\");\n }\n\n// draws all Elements in menu\n drawMenuElements(false);\n\n// creates all default back-end variables\n visibleNodes = new LinkedList<>();\n axes = new LinkedList<>();\n shift = 0;\n stretch = 1;\n }", "private void update(LinkedTaskList linkedTaskList){\n dispose();\n new View(linkedTaskList);\n }", "default void apriStageController(String fxml, FXController controller, Account account) throws IOException, SQLException {\n FXMLLoader loader = new FXMLLoader(getClass().getResource(fxml));\n Stage stage = new Stage();\n stage.getIcons().add(new Image(getClass().getResourceAsStream(\"resources/logo.png\")));\n stage.setScene(new Scene(loader.load()));\n controller = loader.getController();\n controller.initData(account);\n stage.setTitle(\"C3\");\n stage.showAndWait();\n }", "@FXML\n public void goToObst(ActionEvent event) throws IOException, SQLException { //PREVIOUS SCENE\n \tdoChecking();\n \t\n \ttry {\n\t \tif(checkIntPos && checkFloatPos && checkIntPosMatl && checkFloatPosMatl) {\n\t \t\t//store the values\n\t \t\tstoreValues();\n\t \t\t\n\t \t\tFXMLLoader loader = new FXMLLoader(getClass().getResource(\"Obst.fxml\"));\n\t \t\tParent root = loader.load();\n\t \t\t\n\t \t\tObstController obstCont = loader.getController(); //Get the next page's controller\n\t \t\tobstCont.showInfo(); //Set the values of the page \n\t \t\tScene obstScene = new Scene(root);\n\t \t\tStage mainWindow = (Stage)((Node)event.getSource()).getScene().getWindow();\n\t \t\tmainWindow.setScene(obstScene);\n\t \t\tmainWindow.show();\n\t \t}\n \t} catch(Exception e) {\n\t\t\tValues.showError();\n\t\t}\n \t\n }", "@FXML\n\tpublic void onNoteButtonClicked(MouseEvent e) {\n\t\t//Grab the note button from the source\n\t\tButton note = (Button)e.getSource();\n\n\t\t//Grab the note button's column in the gridpane\n\t\tint noteColumn = GridPane.getColumnIndex(note);\n\n\t\t//Grab the style classes for reuse\n\t\tObservableList<String> styleClasses = note.getStyleClass();\n\n\t\t//Initialize old/new note buttons\n\t\tNoteButton oldNoteButton = new NoteButton(), newNoteButton = new NoteButton();\n\n\t\t/* If the note was selected before...\n\t\t * 1. Un-highlight it\n\t\t * 2. Reset arrays to null values\n\t\t */\n\t\tif(styleClasses.contains(\"selected\")) {\n\t\t\toldNoteButton.setNoteButton(note);\n\t\t\toldNoteButton.setSelected(true);\n\n\t\t\tnewNoteButton.setNoteButton(note);\n\t\t\tnewNoteButton.setSelected(false);\n\n\t\t\t//Otherwise, check if there is already a selected note in the same column\n\t\t} else {\n\n\t\t\tnewNoteButton.setNoteButton(note);\n\t\t\tnewNoteButton.setSelected(true);\n\n\t\t\t// If there is, un-highlight the other note\n\t\t\tif(selectedNotes[noteColumn] != null) {\n\t\t\t\toldNoteButton.setNoteButton(selectedNotes[noteColumn]);\n\t\t\t\toldNoteButton.setSelected(true);\n\t\t\t} else {\n\t\t\t\toldNoteButton.setNoteButton(note);\n\t\t\t\toldNoteButton.setSelected(false);\n\t\t\t}\n\t\t}\n\n\t\ttry {\n\t\t\t//Add the action\n\t\t\tactionLog.AddAction(\n\t\t\t\t\toldNoteButton,\n\t\t\t\t\tnewNoteButton,\n\t\t\t\t\tnote,\n\t\t\t\t\tnull,\n\t\t\t\t\tthis.getClass().getMethod(\"updateNote\", NoteButton.class));\n\t\t} catch (NoSuchMethodException | SecurityException e1) {\n\t\t\tSystem.out.println(\"An unexpected error has occured.\");\n\t\t\te1.printStackTrace();\n\t\t}\n\n\t\t//Update the note\n\t\tupdateNote(newNoteButton);\n\t}", "public void setContents()\r\n\t{\r\n\t\t// contents.widthProperty().bind(this.prefWidthProperty());\r\n\t\t// contents.heightProperty().bind(this.prefHeightProperty());\r\n\t\t// contents.resize(width, height);\r\n\t\t// contents.relocate(width/4, height/4);\r\n\r\n\t}", "void updateModelFromView();" ]
[ "0.63356096", "0.6091114", "0.60348177", "0.601187", "0.5988595", "0.59346956", "0.5888304", "0.5857958", "0.579911", "0.5797297", "0.57956827", "0.57884485", "0.57765746", "0.5760598", "0.57431614", "0.5738426", "0.5707916", "0.5701486", "0.56944656", "0.5689188", "0.5679324", "0.5638465", "0.5622714", "0.56182873", "0.5617813", "0.56052566", "0.55995274", "0.5594296", "0.5594296", "0.5591373", "0.5583726", "0.5581198", "0.5574341", "0.5573734", "0.55600077", "0.55530894", "0.553691", "0.55326116", "0.55224633", "0.5520024", "0.5515049", "0.55081856", "0.55038524", "0.5494878", "0.54775834", "0.54722774", "0.54711336", "0.54673886", "0.5466195", "0.54657584", "0.54656565", "0.54656565", "0.5455869", "0.5444812", "0.5435942", "0.5425409", "0.5421423", "0.5415512", "0.540515", "0.5387011", "0.53846025", "0.5368314", "0.5367542", "0.5355295", "0.5352081", "0.5352068", "0.5352068", "0.5347813", "0.5347767", "0.53372455", "0.5330458", "0.5328358", "0.53185344", "0.5318206", "0.5310497", "0.53067863", "0.5305039", "0.5302704", "0.5300641", "0.5300224", "0.52975607", "0.52950054", "0.52913857", "0.5288377", "0.5285455", "0.52815324", "0.52786726", "0.52750903", "0.526943", "0.5257485", "0.52536935", "0.524737", "0.52457136", "0.5244754", "0.52446234", "0.5243699", "0.524193", "0.52415496", "0.5240488", "0.52313036", "0.5230849" ]
0.0
-1
Handle requests to delete selected row.
@Override public int delete(Uri uri, String selection, String[] selectionArgs) { int uriType = sURIMatcher.match(uri); SQLiteDatabase sqlDB = myDB.getWritableDatabase(); int rowsDeleted = 0; switch (uriType) { case ACTIVITY: rowsDeleted = sqlDB.delete(ActivityContract.ActivityEntry.TABLE_NAME, selection, selectionArgs); break; case ACTIVITY_ID: String id = uri.getLastPathSegment(); if (TextUtils.isEmpty(selection)) { rowsDeleted = sqlDB.delete(ActivityContract.ActivityEntry.TABLE_NAME, ActivityContract.ActivityEntry.COLUMN_NAME_ID + "=" + id, null); } else { rowsDeleted = sqlDB.delete(ActivityContract.ActivityEntry.TABLE_NAME, ActivityContract.ActivityEntry.COLUMN_NAME_ID + "=" + id + " and " + selection, selectionArgs); } break; default: throw new IllegalArgumentException("Unknown URI: " + uri); } getContext().getContentResolver().notifyChange(uri, null); return rowsDeleted; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@FXML\n\tprivate void handleDeleteTaxi() {\n\t\tint selectedIndex = TaxiTable.getSelectionModel().getSelectedIndex();\n\t\tif (selectedIndex >= 0) {\n\t\t\tTaxiTable.getItems().remove(selectedIndex);\n\t\t} else {\n\t\t\t// Nothing selected.\n\t\t}\n\t}", "private void delete(int selectedRow) {\r\n removing = true;\r\n deletingRow = selectedRow;\r\n //subAwardBudgetTableModel.deleteRow(selectedRow);\r\n deleteRow(selectedRow);\r\n \r\n //Select a Row\r\n int selectRow = 0;\r\n int rowCount = subAwardBudgetTableModel.getRowCount();\r\n if(selectedRow == 0 && rowCount > 0) {\r\n //Select First Row\r\n selectRow = 0;\r\n }else if(selectedRow == rowCount) {\r\n //Select Last Row\r\n selectRow = rowCount - 1;\r\n }else {\r\n //Select This Row\r\n selectRow = selectedRow;\r\n }\r\n removing = false;\r\n if(selectRow != -1) {\r\n subAwardBudget.tblSubAwardBudget.setRowSelectionInterval(selectRow, selectRow);\r\n }else{\r\n //If All rows Deleted, then Details panel should be cleared\r\n displayDetails();\r\n }\r\n deletingRow = -1;\r\n }", "@FXML\n private void deleteRow(ActionEvent event){\n if(facilitiesView.getSelectionModel().getSelectedItem()==null){\n errorBox(\"Feil\", \"Det er ingen rader som er markert\", \"Vennligst marker en rad i tabellen\");\n }\n else{\n Alert mb = new Alert(Alert.AlertType.CONFIRMATION);\n mb.setTitle(\"Bekreft\");\n mb.setHeaderText(\"Du har trykket slett på \"+ facilitiesView.getSelectionModel().getSelectedItem().getFacilityName());\n mb.setContentText(\"Ønsker du virkerlig å slette dette lokalet?\");\n mb.showAndWait().ifPresent(response -> {\n if(response== ButtonType.OK){\n observableList.remove(facilitiesView.getSelectionModel().getSelectedItem());\n\n File file = new File(EditedFiles.getActiveFacilityFile());\n file.delete();\n try {\n WriterThreadRunner.WriterThreadRunner(getFacilities(), EditedFiles.getActiveFacilityFile());\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n\n }\n });\n }\n }", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tSystem.out.println(\"btnDelete\");\n\t\t\t\tint i = table.getSelectedRow();\n\t\t\t\tif (i >= 0) {\n\t\t\t\t\tSystem.out.println(\"row-Delete\" + i);\n\t\t\t\t\tSystem.out.println(\"row-Delete\" + textSuppD.getText());\n\t\t\t\t\tint suppID = Integer.parseInt(textSuppD.getText().trim());\n\n\t\t\t\t\tDatabase db = new Database();\n\t\t\t\t\tSuppliersDAO suppDAO = new SuppliersDAO(db);\n\t\t\t\t\tSuppliersModel suppModel = new SuppliersModel();\n\t\t\t\t\tsuppModel.setSuppliers_id(suppID);\n\t\t\t\t\tsuppDAO.Delete(suppModel);\n\t\t\t\t\tdb.commit();\n\t\t\t\t\tdb.close();\n\n\t\t\t\t\tmodel.removeRow(i);\n\t\t\t\t} else {\n\t\t\t\t}\n\t\t\t}", "@FXML\n private void handleDeletePerson() {\n int selectedIndex = personTable.getSelectionModel().getSelectedIndex();\n if (selectedIndex >= 0) {\n personTable.getItems().remove(selectedIndex);\n } else {\n // Nothing selected.\n Alert alert = new Alert(AlertType.WARNING);\n alert.initOwner(mainApp.getPrimaryStage());\n alert.setTitle(\"No Selection\");\n alert.setHeaderText(\"No Shops Selected\");\n alert.setContentText(\"Please select a person in the table.\");\n \n alert.showAndWait();\n }\n }", "@Override\n public int delete(Uri uri, String selection, String[] selectionArgs) {\n // Get writable database\n SQLiteDatabase db = mDbHelper.getWritableDatabase();\n\n int rowsDeleted;\n\n final int match = sUriMatcher.match(uri);\n switch (match) {\n case INVENTORY:\n // Delete all rows that match the selection and selection args\n rowsDeleted = db.delete(InventoryEntry.TABLE_NAME, selection, selectionArgs);\n if (rowsDeleted != 0) {\n getContext().getContentResolver().notifyChange(uri, null);\n }\n return rowsDeleted;\n case INVENTORY_ID:\n // Delete a single row given by the ID in the URI\n selection = InventoryEntry._ID + \"=?\";\n selectionArgs = new String[]{String.valueOf(ContentUris.parseId(uri))};\n rowsDeleted = db.delete(InventoryEntry.TABLE_NAME, selection, selectionArgs);\n if (rowsDeleted != 0) {\n getContext().getContentResolver().notifyChange(uri, null);\n }\n return rowsDeleted;\n default:\n throw new IllegalArgumentException(\"Deletion is not supported for \" + uri);\n }\n }", "public void actionPerformed(ActionEvent e) {\n model.deleteRow();\n }", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tdelRow();\n\t\t\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tdelRow();\n\t\t\t}", "@Override\n\tpublic void deleteSelected() {\n\n\t}", "@Override\n\t\t\tpublic void handle(ActionEvent arg0) {\n\n\t\t\t\tAlert alert = new Alert(AlertType.CONFIRMATION);\n\t\t\t\talert.setTitle(\"Confirm\");\n\t\t\t\talert.setHeaderText(null);\n\t\t\t\talert.setContentText(\"Delete this accout?\");\n\t\t\t\tOptional<ButtonType> result = alert.showAndWait();\n\t\t\t\tif (result.get() == ButtonType.OK) {\n\t\t\t\t\tUser employee = table.getSelectionModel().getSelectedItem();\n\n\t\t\t\t\tif (employee == null) {\n\t\t\t\t\t\tAlert alert1 = new Alert(AlertType.INFORMATION);\n\t\t\t\t\t\talert1.setHeaderText(null);\n\t\t\t\t\t\talert1.setTitle(\"Customer Remove\");\n\t\t\t\t\t\talert1.setContentText(\"Please select a row in the table\");\n\t\t\t\t\t\talert1.showAndWait();\n\t\t\t\t\t} else {\n\n\t\t\t\t\t\tint username = employee.getId();\n\n\t\t\t\t\t\tuser.deleteUser(\"\" + username);\n\n\t\t\t\t\t\tObservableList<User> data = FXCollections.observableArrayList(employeeManager.getAllEmployees());\n\n\t\t\t\t\t\ttable.setItems(data);\n\n\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t}", "@FXML\n\tprivate void handleDelete() {\n\t\tAlert alert = new Alert(Alert.AlertType.WARNING);\n\t\talert.getButtonTypes().clear();\n\t\talert.getButtonTypes().addAll(ButtonType.YES, ButtonType.NO);\n\t\talert.setHeaderText(lang.getString(\"deleteCustomerMessage\"));\n\t\talert.initOwner(stage);\n\t\talert.showAndWait()\n\t\t.filter(answer -> answer == ButtonType.YES)\n\t\t.ifPresent(answer -> {\n\t\t\tCustomer customer = customerTable.getSelectionModel().getSelectedItem();\n\t\t\tdeleteCustomer(customer);\n\t\t});\n\t}", "private void btnDelete1ActionPerformed(java.awt.event.ActionEvent evt) throws IOException {// GEN-FIRST:event_btnDelete1ActionPerformed\n\t\t// TODO add your handling code here:\n\t\tint i = tblBollard.getSelectedRow();\n\t\tif (i >= 0) {\n\t\t\tint option = JOptionPane.showConfirmDialog(rootPane, \"Are you sure you want to Delete?\",\n\t\t\t\t\t\"Delete confirmation\", JOptionPane.YES_NO_OPTION);\n\t\t\tif (option == 0) {\n\t\t\t\tTableModel model = tblBollard.getModel();\n\n\t\t\t\tString id = model.getValueAt(i, 0).toString();\n\t\t\t\tif (tblBollard.getSelectedRows().length == 1) {\n\t\t\t\t\t\n\t\t\t\t\tdelete(id,client);\n\t\t\t\t\t\n\t\t\t\t\tDefaultTableModel model1 = (DefaultTableModel) tblBollard.getModel();\n\t\t\t\t\tmodel1.setRowCount(0);\n\t\t\t\t\tfetch(client);\n\t\t\t\t\t//client.stopConnection();\n\t\t\t\t\tclear();\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\talert(\"Please select a row to delete\");\n\t\t}\n\t}", "@FXML\n private void handleDeleteFilm() {\n int selectedIndex = filmTable.getSelectionModel().getSelectedIndex();\n if (selectedIndex >= 0) {\n \tfilmTable.getItems().remove(selectedIndex);\n \tsave();\n } else {\n // Nothing selected.\n Dialogs.create()\n .title(\"No Selection\")\n .masthead(\"No Person Selected\")\n .message(\"Please select a person in the table.\")\n .showWarning();\n }\n }", "@Override\n public int delete(Uri uri, String selection, String[] selectionArgs) {\n // Get writable database\n SQLiteDatabase db = dataDbHelper.getWritableDatabase();\n // Track the number of rows that were deleted\n int rowsDeleted;\n final int match = sUriMatcher.match(uri);\n switch (match) {\n case DATA:\n // Delete all rows that match the selection and selection args\n rowsDeleted = db.delete(DataEntry.TABLE_NAME, selection, selectionArgs);\n break;\n case DATA_ID:\n // Delete a single row given by the ID in the URI\n selection = DataEntry._ID + \"=?\";\n selectionArgs = new String[]{String.valueOf(ContentUris.parseId(uri))};\n rowsDeleted = db.delete(DataEntry.TABLE_NAME, selection, selectionArgs);\n break;\n default:\n throw new IllegalArgumentException(\"Deletion is not supported for \" + uri);\n }\n // If 1 or more rows were deleted, then notify all listeners that the data at the\n // given URI has changed\n if (rowsDeleted != 0) {\n getContext().getContentResolver().notifyChange(uri, null);\n }\n // Return the number of rows deleted\n return rowsDeleted;\n }", "int delete(String tableName, String selectionCriteria, String[] selectionArgs);", "private void deleteRow(int selectedRow){\r\n BudgetSubAwardBean budgetSubAwardBean = (BudgetSubAwardBean)data.get(selectedRow);\r\n if(budgetSubAwardBean.getAcType() == null || budgetSubAwardBean.getAcType().equals(TypeConstants.UPDATE_RECORD)){\r\n budgetSubAwardBean.setAcType(TypeConstants.DELETE_RECORD);\r\n budgetSubAwardBean.setUpdateUser(userId);\r\n if(deletedData ==null) {\r\n deletedData = new ArrayList();\r\n }\r\n deletedData.add(budgetSubAwardBean);\r\n }\r\n data.remove(selectedRow);\r\n \r\n //If Last Row nothing to do\r\n //else Update Sub Award Number for rest of the Rows\r\n /*int size = data.size();\r\n if(selectedRow != size) {\r\n for(int index = selectedRow; index < size; index++) {\r\n budgetSubAwardBean = (BudgetSubAwardBean)data.get(index);\r\n budgetSubAwardBean.setSubAwardNumber(index + 1);\r\n if(budgetSubAwardBean.getAcType() == null) {\r\n budgetSubAwardBean.setAcType(TypeConstants.UPDATE_RECORD);\r\n }\r\n }//End For\r\n }//End If\r\n */\r\n \r\n subAwardBudgetTableModel.fireTableRowsDeleted(selectedRow, selectedRow);\r\n }", "public void handleDeleteParts()\n {\n Part partToDelete = getPartToModify();\n\n if (partToDelete != null) {\n\n // Ask user for confirmation to remove the product from part table\n Alert alert = new Alert(Alert.AlertType.CONFIRMATION);\n alert.setTitle(\"Confirmation\");\n alert.setHeaderText(\"Delete Confirmation\");\n alert.setContentText(\"Are you sure you want to delete this part?\");\n ButtonType confirm = new ButtonType(\"Yes\", ButtonBar.ButtonData.YES);\n ButtonType deny = new ButtonType(\"No\", ButtonBar.ButtonData.NO);\n ButtonType cancel = new ButtonType(\"Cancel\", ButtonBar.ButtonData.CANCEL_CLOSE);\n alert.getButtonTypes().setAll(confirm, deny, cancel);\n alert.showAndWait().ifPresent(type ->{\n if (type == confirm)\n {\n inventory.deletePart(partToDelete);\n updateParts();\n }\n });\n\n } else {\n Alert alert = new Alert(Alert.AlertType.ERROR);\n alert.setTitle(\"Input Invalid\");\n alert.setHeaderText(\"No part was selected!\");\n alert.setContentText(\"Please select a part to delete from the part table!\");\n alert.show();\n }\n // Unselect parts in table after part is deleted\n partTable.getSelectionModel().clearSelection();\n }", "@FXML\n private void handleDeletePerson() {\n //remove the client from the view\n int selectedIndex = informationsClients.getSelectionModel().getSelectedIndex();\n if (selectedIndex >= 0) {\n //remove the client from the database\n ClientManager cManager = new ClientManager();\n cManager.deleteClient(informationsClients.getSelectionModel().getSelectedItem().getId());\n informationsClients.getItems().remove(selectedIndex);\n } else {\n // Nothing selected.\n Alert alert = new Alert(AlertType.WARNING);\n alert.initOwner(mainApp.getPrimaryStage());\n alert.setTitle(\"Erreur : Pas de selection\");\n alert.setHeaderText(\"Aucun client n'a été selectionné\");\n alert.setContentText(\"Veuillez selectionnez un client.\");\n alert.showAndWait();\n }\n }", "public void deleteResultSet(BackendDeleteDTO del_req) {\n log.debug(\"JZKitBackend::deleteResultSet\");\n del_req.assoc.notifyDeleteResult(del_req);\n }", "@FXML\n\tpublic void handleExcluir(MouseEvent event) {\n\t\tif(colNome.getCellData(jtvIngredienteTable.getSelectionModel().getSelectedIndex()) != null){\n\t\t\tingredienteService = new IngredienteService();\n\t\t\tIngrediente ingrediente = jtvIngredienteTable.getSelectionModel().getSelectedItem();\n\t\t\tingredienteService.delete(ingrediente.getId());\n\t\t\tatualizarTable();\n\t\t}else{\n\t\t\tScreenUtils.janelaInformação(spDialog, Internationalization.getMessage(\"header_erro3\"), Internationalization.getMessage(\"item_nao_selecionado\"), Internationalization.getMessage(\"erro_button2\"));\n//\t\t\tScreenUtils.janelaInformação(spDialog, \"Ops\", \"Por favor, selecione um item.\", \"Sem problemas\");\n\t\t}\n\t}", "private void DeletebuttonActionPerformed(ActionEvent e) {\n int row = userTable.getSelectedRow();\n\n if (row == -1) {\n JOptionPane.showMessageDialog(ListUserForm.this, \"Vui lòng chọn user\", \"lỗi\", JOptionPane.ERROR_MESSAGE);\n } else {\n int confirm = JOptionPane.showConfirmDialog(ListUserForm.this, \"Bạn có chắc chắn xoá?\");\n\n if (confirm == JOptionPane.YES_OPTION) {\n\n int userid = Integer.parseInt(String.valueOf(userTable.getValueAt(row, 0)));\n\n userService.deleteUser(userid);\n\n defaultTableModel.setRowCount(0);\n setData(userService.getAllUsers());\n }\n }\n }", "private void deleteButtonActionPerformed(java.awt.event.ActionEvent evt) {// GEN\n // -\n // FIRST\n // :\n // event_deleteButtonActionPerformed\n int rowIndex = headerTable.getSelectedRow();\n if (rowIndex > -1) {\n removeRow(rowIndex);\n }\n }", "private void popupMenuDeleteData(int rowIndex, int columnIndex) {\n\t\t//\n\t\t// Display the dialog\n\t\t//\n\t\tDeleteDataDialog deleteDataDialog = new DeleteDataDialog(parent.getShell());\n\t\tif (deleteDataDialog.open() != Window.OK)\n\t\t\treturn;\n\t\tint delSize = deleteDataDialog.getResult();\n\n\t\tif (delSize == 0) {\n\t\t\t//\n\t\t\t// Cancel button pressed - do nothing\n\t\t\t//\n\t\t\treturn;\n\t\t}\n\n\t\t//\n\t\t// Delete data from the table\n\t\tdelete(rowIndex, columnIndex - 1, delSize);\n\n\t\t//\n\t\t// Update the status panel\n\t\t//\n\t\tupdateStatusPanel();\n\t}", "@Override\n public int delete(Uri uri, String selection, String[] selectionArgs) {\n // Open a read / write database to support the transaction.\n SQLiteDatabase db = myOpenHelper.getWritableDatabase();\n \n // If this is a row URI, limit the deletion to the specified row.\n switch (uriMatcher.match(uri)) {\n case SINGLE_ROW : \n String rowID = uri.getPathSegments().get(1);\n selection = KEY_ID + \"=\" + rowID\n + (!TextUtils.isEmpty(selection) ? \n \" AND (\" + selection + ')' : \"\");\n default: break;\n }\n \n // To return the number of deleted items you must specify a where\n // clause. To delete all rows and return a value pass in \"1\".\n if (selection == null)\n selection = \"1\";\n \n // Execute the deletion.\n int deleteCount = db.delete(MySQLiteOpenHelper.DATABASE_TABLE, selection, selectionArgs);\n \n // Notify any observers of the change in the data set.\n getContext().getContentResolver().notifyChange(uri, null);\n \n return deleteCount;\n }", "@Override\n public int delete(Uri uri, String selection, String[] selectionArgs) {\n while(flag)\n {}\n if(selection.equals(\"@\")) {\n myKeys.clear();\n return 0;\n }\n else\n {\n HandleDeleteQuery(selection);\n }\n return 0;\n }", "public String onDelete(final DataTableCRUDRow<R> row) {\n try {\n getModel().setRowClicked(row);\n if (!row.isNewRow()) {\n delete(row.getElement());\n } else {\n row.setReadonly(true);\n }\n row.setDeleted(true);\n } catch (final MessageLabelException e) {\n log.trace(e.getMessage(), e);\n getFacesMessages().message(e);\n }\n return \"\";\n }", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tif(tblTickets.getSelectedRow() != -1) {\n\t\t\t\t\tint id = Integer.parseInt(tblTickets.getValueAt(tblTickets.getSelectedRow(), 0).toString());\n\t\t\t\t\tdeleteTicket(id);\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}", "public void deleteButtonPushed() {\r\n ObservableList<Student> allStudents;\r\n Student selectedRow;\r\n allStudents = tableView.getItems();\r\n \r\n // This gives us the row that was selected\r\n selectedRow = tableView.getSelectionModel().getSelectedItems().get(0);\r\n \r\n\r\n try {\r\n covidMngrService.deleteStudent(selectedRow);\r\n \r\n // Remove the Student object from the table\r\n allStudents.remove(selectedRow);\r\n } catch (RemoteException ex) {\r\n Logger.getLogger(SecretaryStudentsTableCntrl.class.getName()).\r\n log(Level.SEVERE, null, ex);\r\n }\r\n }", "@Override\r\n\tpublic void adminSelectDelete() {\n\t\t\r\n\t}", "private void deleteExec(){\r\n\t\tList<HashMap<String,String>> selectedDatas=ViewUtil.getSelectedData(jTable1);\r\n\t\tif(selectedDatas.size()<1){\r\n\t\t\tJOptionPane.showMessageDialog(null, \"Please select at least 1 item to delete\", \"Error\", JOptionPane.ERROR_MESSAGE);\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tint options = 1;\r\n\t\tif(selectedDatas.size() ==1 ){\r\n\t\t\toptions = JOptionPane.showConfirmDialog(null, \"Are you sure to delete this Item ?\", \"Info\",JOptionPane.YES_NO_OPTION);\r\n\t\t}else{\r\n\t\t\toptions = JOptionPane.showConfirmDialog(null, \"Are you sure to delete these \"+selectedDatas.size()+\" Items ?\", \"Info\",JOptionPane.YES_NO_OPTION);\r\n\t\t}\r\n\t\tif(options==1){\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tfor(HashMap<String,String> map:selectedDatas){\r\n\t\t\t\r\n\t\t\tdiscountService.deleteDiscountByMap(NameConverter.convertViewMap2PhysicMap(map, \"Discount\"));\r\n\t\t}\r\n\t\tthis.initDatas();\r\n\t}", "@FXML\n private void deleteUser(ActionEvent event) throws IOException {\n User selectedUser = table.getSelectionModel().getSelectedItem();\n\n boolean userWasRemoved = selectedUser.delete();\n\n if (userWasRemoved) {\n userList.remove(selectedUser);\n UsermanagementUtilities.setFeedback(event,selectedUser.getName().getFirstName()+\" \"+LanguageHandler.getText(\"userDeleted\"),true);\n } else {\n UsermanagementUtilities.setFeedback(event,LanguageHandler.getText(\"userNotDeleted\"),false);\n }\n }", "private void delete_btnActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_delete_btnActionPerformed\n // pull current table model\n DefaultTableModel model = (DefaultTableModel) remindersTable.getModel();\n if (remindersTable.getSelectedRow() == -1) {\n if (remindersTable.getRowCount() == 0) {\n dm.messageEmptyTable();\n } else {\n dm.messageSelectLine();\n }\n } else {\n int input = JOptionPane.showConfirmDialog(frame, \"Do you want to Delete!\");\n // 0 = yes, 1 = no, 2 = cancel\n if (input == 0) {\n model.removeRow(remindersTable.getSelectedRow());\n dm.messageReminderDeleted();// user message;\n saveDataToFile();// Save changes to file\n getSum(); // Update projected balance\n } else {\n // delete canceled\n }\n }\n }", "public void onDelete(final R record) {\n // can be overridden.\n }", "@Override\n\tpublic int delete(Uri uri, String selection, String[] selectionArgs) {\n\t\tSQLiteDatabase db = myOpenHelper.getWritableDatabase();\n\n\t\t// If this is a row URI, limit the deletion to the specified row.\n\t\tswitch (uriMatcher.match(uri)) {\n\t\tcase SINGLE_ROW:\n\t\t\tString rowID = uri.getPathSegments().get(1);\n\t\t\tselection = COLUMN_ID + \"=\" + rowID + (!TextUtils.isEmpty(selection) ? \" AND (\" + selection + ')' : \"\");\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\n\t\t// To return the number of deleted items, you must specify a where\n\t\t// clause. To delete all rows and return a value, pass in \"1\".\n\t\tif (selection == null)\n\t\t\tselection = \"1\";\n\n\t\t// Execute the deletion.\n\t\tint deleteCount = db.delete(MySQLiteHelper.DATABASE_TABLE, selection,\n\t\t\t\tselectionArgs);\n\n\t\t// Notify any observers of the change in the data set.\n\t\tgetContext().getContentResolver().notifyChange(uri, null);\n\n\t\treturn deleteCount;\n\t}", "private void cmd_deleteSelection(){\n\t\tm_frame.setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR));\n\t\tif (ADialog.ask(getWindowNo(), m_frame.getContainer(), \"DeleteSelection\"))\n\t\t{\t\n\t\t\tint records = deleteSelection(detail);\n\t\t\tsetStatusLine(Msg.getMsg(Env.getCtx(), \"Deleted\") + records, false);\n\t\t}\t\n\t\tm_frame.setCursor(Cursor.getDefaultCursor());\n\t\tbDelete.setSelected(false);\n\t\texecuteQuery();\n\t\t\n\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tint RowNum=jt.getSelectedRow();\n\t\t\t\tif(RowNum==-1){\n\t\t\t\t\tJOptionPane.showMessageDialog(jt, \"请选择一行\");\n\t\t\t\t return ;\n\t\t\t }\n\t\t\t\t\n\t\t\t\tint isDelete=JOptionPane.showConfirmDialog(null, \"是否确定删除该专业以及该专业所有班级与学生信息?\");\n\t\t\t\t\n\t\t\t\tif(isDelete==JOptionPane.YES_OPTION){\n\t\t\t\t\tString majorName=(String)mit.getValueAt(RowNum, 1);\n\t\t\t\t\tString deleteSql=\"delete from majorinfo where grade='\"+Tool.getGrade(userId)+\"' and majorName=?\";\n\t\t\t\t\tString deleteclass=\"delete from classinfo where grade='\"+Tool.getGrade(userId)+\"' and major=?\";\n\t\t\t\t\tString deletejob=\"delete from jobinfo where grade='\"+Tool.getGrade(userId)+\"' and major=?\";\n\t\t\t\t\t\n\t\t\t\t\tString[] dleteParas={Tool.string2UTF8(majorName)};\n\t\t\t\t\t\n\t\t\t\t\tmit.Update(deleteclass, dleteParas);\n\t\t\t\t\tmit.Update(deletejob, dleteParas);\n\t\t\t\t\t\n\t\t\t\t\tif(mit.Update(deleteSql, dleteParas)){\n\t\t\t\t\t\trefresh(jt);\n\t\t\t\t\t}else{\n\t\t\t\t\t\tJOptionPane.showMessageDialog(jt, \"删除失败\");\n\t\t\t\t\t}\n\n\t\t\t\t\trefresh(jt);\n\t\t\t\t\t\n\t\t\t\t}\n\n\t\t\t}", "@Override\n public int delete(Uri uri, String selection, String[] selectionArgs) {\n SQLiteDatabase db = myDBHelper.getReadableDatabase();\n int deleteRows = 0;\n switch (uriMatcher.match(uri)){\n case 0:\n deleteRows = db.delete(\"rankinglist\",selection,selectionArgs);\n break;\n case 1:\n String id = uri.getPathSegments().get(1);\n deleteRows = db.delete(\"rankinglist\",\"id=?\",new String[]{id});\n break;\n default:\n break;\n }\n return deleteRows;\n }", "public native void deleteRow(int row) /*-{\n\t\tvar jso = this.@com.emitrom.ti4j.core.client.ProxyObject::getJsObj()();\n\t\tjso.deleteRow(row);\n }-*/;", "@Override\r\n public int delete(Uri uri, String selection, String[] selectionArgs) {\r\n //get writable data\r\n SQLiteDatabase db = mDbHelper.getWritableDatabase();\r\n //check deleted rows\r\n int deletedRows = 0;\r\n\r\n final int match = sUriMatcher.match(uri);\r\n switch (match) {\r\n case STORE:\r\n deletedRows = db.delete(StoreEntry.TABLE_NAME_STORE, selection, selectionArgs);\r\n break;\r\n case STORE_ID:\r\n selection = StoreEntry._ID + \"=?\";\r\n selectionArgs = new String[]{String.valueOf(ContentUris.parseId(uri))};\r\n deletedRows = db.delete(StoreEntry.TABLE_NAME_STORE, selection, selectionArgs);\r\n break;\r\n case RECIPE:\r\n deletedRows = db.delete(RecipeEntry.TABLE_NAME_RECIPE, selection, selectionArgs);\r\n break;\r\n case RECIPE_ID:\r\n selection = RecipeEntry._ID + \"=?\";\r\n selectionArgs = new String[]{String.valueOf(ContentUris.parseId(uri))};\r\n deletedRows = db.delete(RecipeEntry.TABLE_NAME_RECIPE, selection, selectionArgs);\r\n }\r\n //check if rows were deleted\r\n if (deletedRows != 0) {\r\n getContext().getContentResolver().notifyChange(uri, null);\r\n }\r\n return deletedRows;\r\n }", "public void doDelete() throws Exception {\r\n\t\t_ds.deleteRow();\r\n\t\tdoDataStoreUpdate();\r\n\t\tif (_mode == MODE_LIST_ON_PAGE) {\r\n\t\t\tif (_listForm != null && _listForm.getDataStore() != _ds) {\r\n\t\t\t\t//different datastores on list and detail\r\n\t\t\t\tDataStoreBuffer listDs = _listForm.getDataStore();\r\n\t\t\t\tif (_listSelectedRow != null) {\r\n\t\t\t\t\tfor (int i = 0; i < listDs.getRowCount(); i++) {\r\n\t\t\t\t\t\tif (listDs.getDataStoreRow(i, DataStoreBuffer.BUFFER_STANDARD).getDSDataRow() == _listSelectedRow.getDSDataRow()) {\r\n\t\t\t\t\t\t\tlistDs.removeRow(i);\r\n\t\t\t\t\t\t\tbreak;\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\tif (listDs.getRowCount() == 0)\r\n\t\t\t\t\tsetVisible(false);\r\n\t\t\t\telse {\r\n\t\t\t\t\tif (listDs.getRow() == -1)\r\n\t\t\t\t\t\tlistDs.gotoRow(listDs.getRowCount() - 1);\r\n\t\t\t\t\t_listForm.setRowToEdit(listDs.getRow());\r\n\t\t\t\t\tdoEdit();\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\t//list and detail share the same datastore\r\n\t\t\t\tif (_ds.getRowCount() == 0)\r\n\t\t\t\t\tsetVisible(false);\r\n\t\t\t\telse\r\n\t\t\t\t\tscrollToMe();\r\n\t\t\t}\r\n\t\t\tsyncListFormPage();\r\n\t\t} else {\r\n\t\t\treturnToListPage(true);\r\n\t\t}\r\n\t}", "@Override\n public void handle(Event event) {\n ActionEvent myEvent = (ActionEvent) event;\n\n SearchRowItem whichItem;\n ObservableList<SearchRowItem> whichList;\n List<CustomerTO> theCustomerList = fullCustomerList;\n\n whichItem = searchResultsTable.getSelectionModel().getSelectedItem();\n whichList = filteredRowItemList;\n\n Optional<ButtonType> result = Utility.showConfirmationAlert(\"Please confirm\",\n \"If you click OK, this action cannot be reversed\",\n whichItem + \" will be removed. Are you sure?\");\n\n if (result.get() == ButtonType.OK) {\n // ... user chose OK\n whichList.remove(whichItem);\n theCustomerList.remove(whichItem);\n SoapHandler.deleteCustomer(whichItem);\n }\n }", "public void onDelete(Statement delete, Connection cx, SimpleFeatureType featureType) throws SQLException {\r\n }", "public void deleteSelectionRowTable(boolean status) {\n tableList.deleteSelectionItem(status);\n }", "@Override\n\tprotected String onDelete(HttpServletRequest req, HttpServletResponse resp, FunctionItem fi,\n\t\t\tHashtable<String, String> params, String action, L l, S s) throws Exception {\n\t\treturn null;\n\t}", "@Override\n public int delete(Uri uri, String selection, String[] selectionArgs) {\n final SQLiteDatabase db = randomCountriesDbHelper.getWritableDatabase();\n\n int match = sUriMatcher.match(uri);\n //Keeping track of the number of deleted tasks\n int RandomCountryDeleted; // starts as 0\n\n //Writing the code to delete a single row of data\n // [Hint] Use selections to delete an item by its row ID\n switch (match) {\n // Handle the single item case, recognized by the ID included in the URI path\n case RANDOM_COUNTRIES_WITH_ID:\n //Getting the task ID from the URI path\n String id = uri.getPathSegments().get(1);\n //Using selections/selectionArgs to filter for this ID\n RandomCountryDeleted = db.delete(TABLE_NAME, \"id=?\", new String[]{id});\n break;\n default:\n throw new UnsupportedOperationException(\"Unknown uri: \" + uri);\n }\n\n //Notifying the resolver of a change and return the number of items deleted\n if (RandomCountryDeleted != 0) {\n //A task was deleted, set notification\n getContext().getContentResolver().notifyChange(uri, null);\n }\n\n // Return the number of tasks deleted\n return RandomCountryDeleted;\n //return 0;\n\n }", "@Override\n\tpublic void delete(DhtmlxGridForm f) throws Exception {\n\t}", "@Override\n\tpublic int delete(Uri uri, String selection, String[] selectionArgs) {\n\t\treturn 0;\n\t}", "@Override\n\tpublic int delete(Uri uri, String selection, String[] selectionArgs) {\n\t\treturn 0;\n\t}", "@Override\n\tpublic int delete(Uri uri, String selection, String[] selectionArgs) {\n\t\treturn 0;\n\t}", "@Override\n\tpublic int delete(Uri uri, String selection, String[] selectionArgs) {\n\t\treturn 0;\n\t}", "public void delete(JTable tblUser)\n {\n int i = tblUser.getSelectedRow();\n \n if(i != -1)\n {\n usersDto = users[i];\n \n if(usersDto.getState() != 3)\n {\n if(JOptionPane.showConfirmDialog(null, \"¿Está seguro que desea eliminar el registro?\", \"Eliminar\", JOptionPane.YES_NO_OPTION) == JOptionPane.YES_OPTION)\n {\n try {\n usersDto.setState((short) 3);\n \n if(usersDao.update(usersDto.createPk(), usersDto)) {\n tableModel = (DefaultTableModel) tblUser.getModel();\n tableModel.setValueAt(\"*\", i, 6);\n }\n \n } catch (UsersDaoException exception) {}\n }\n \n } else { JOptionPane.showMessageDialog(null, \"El registro ya está eliminado\", \"ERROR\", JOptionPane.ERROR_MESSAGE); }\n \n } else { JOptionPane.showMessageDialog(null, \"Seleccione un registro a eliminar\", \"ERROR\", JOptionPane.ERROR_MESSAGE); }\n }", "private void handleDeletePressed() {\n if (mCtx == Context.CREATE) {\n finish();\n return;\n }\n\n DialogFactory.deletion(this, getString(R.string.dialog_note), () -> {\n QueryService.awaitInstance(service -> deleteNote(service, mNote.id()));\n }).show();\n }", "@Override\n\tpublic Item delete() {\n\t\treadAll();\n\t\tLOGGER.info(\"\\n\");\n\t\t//user can select either to delete a customer from system with either their id or name\n\t\tLOGGER.info(\"Do you want to delete record by Item ID\");\n\t\tlong id = util.getLong();\n\t\titemDAO.deleteById(id);\n\t\t\t\t\n\t\t\t\t\n\t\treturn null;\n\t}", "private void actionDelete() {\r\n showDeleteDialog();\r\n }", "void filterDelete(ServerContext context, DeleteRequest request,\n ResultHandler<Resource> handler, RequestHandler next);", "private void jbtn_deleteActionPerformed(ActionEvent evt) {\n\t\tDefaultTableModel RecordTable=(DefaultTableModel)jTable1.getModel();\n\t\tint Selectedrow=jTable1.getSelectedRow();\n\t\t\n\t\ttry\n\t\t{\n\t\t\tid=RecordTable.getValueAt(Selectedrow,0).toString();\n\t\t\tdeleteItem=JOptionPane.showConfirmDialog(this,\"Confirm if you want to delete the record\",\"Warning\",JOptionPane.YES_NO_OPTION);\n\t\t\t\n\t\t\tif(deleteItem==JOptionPane.YES_OPTION)\n\t\t\t{\n\t\t\t\tconn cc=new conn();\n\t\t\t\tpst=cc.c.prepareStatement(\"delete from medicine where medicine_name=?\");\n\t\t\t pst.setString(1,id);\n\t\t\t\tpst.executeUpdate();\n\t\t\t\tJOptionPane.showMessageDialog(this,\"Record Updated\");\n\t\t\t\tupDateDB();\n\t\t\t\ttxtblank();\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\t// TODO: handle exception\n\t\t}\n\t\t\n\t}", "@Override\r\n\tpublic int delete(Uri uri, String selection, String[] selectionArgs) {\n\t\tfinal SQLiteDatabase db = noteBookOpenHepler.getWritableDatabase();\r\n\t\tfinal int matchId = matcher.match(uri);\r\n\t\tswitch(matchId) {\r\n\t\t\tcase all :\r\n\t\t\tcase single:\r\n\t\t\t\tint count = db.delete(table, selection, selectionArgs);\r\n\t\t\t\tif(count > 0 ){\r\n\t\t\t\t\tnotifyChange();\r\n\t\t\t\t}\r\n\t\t\t\treturn count;\r\n\t\t\tdefault :\r\n\t\t\t\tthrow new UnsupportedOperationException(\"Cannot delete that URL: \" + uri);\r\n\t\t}\r\n\t}", "void deleteButton_actionPerformed(ActionEvent e) {\n doDelete();\n }", "private void toDelete() {\n if(toCount()==0)\n {\n JOptionPane.showMessageDialog(rootPane,\"No paint detail has been currently added\");\n }\n else\n {\n String[] choices={\"Delete First Row\",\"Delete Last Row\",\"Delete With Index\"};\n int option=JOptionPane.showOptionDialog(rootPane, \"How would you like to delete data?\", \"Delete Data\", WIDTH, HEIGHT,null , choices, NORMAL);\n if(option==0)\n {\n jtModel.removeRow(toCount()-toCount());\n JOptionPane.showMessageDialog(rootPane,\"Successfully deleted first row\");\n }\n else if(option==1)\n {\n jtModel.removeRow(toCount()-1);\n JOptionPane.showMessageDialog(rootPane,\"Successfully deleted last row\");\n }\n else if(option==2)\n {\n toDeletIndex();\n }\n else\n {\n \n }\n }\n }", "private void deleteButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_deleteButtonActionPerformed\n // TODO add your handling code here:\n final LocationsDialog frame = this;\n\n SwingUtilities.invokeLater(new Runnable()\n {\n public void run()\n {\n LocationsTableModel model = (LocationsTableModel) locationsTable.getModel();\n int row = locationsTable.getSelectedRow();\n if (row == -1){\n JOptionPane.showMessageDialog(frame,\n \"Please select a location from the table to delete \",\n \"No selection made\",\n JOptionPane.ERROR_MESSAGE);\n }\n else\n {\n Location location = editLocationRequest(row);\n // TODO add delete Location handling code here:\n String msg = \"Are sure to delete this Location?\";\n\n int n = JOptionPane.showConfirmDialog(\n null,\n msg,\n \"Confirm\",\n JOptionPane.YES_NO_OPTION);\n\n if (n == 1) {\n return;\n }\n\n try{\n WorkletContext context = WorkletContext.getInstance();\n if (!Helper.delete(location, \"Locations\", context)) {\n System.out.print(\"Delete failed!\");\n }\n else\n {\n System.out.print(\"Delete successful\");\n }\n\n }catch(Exception ex){\n\n }\n }\n refreshLocations();\n model.fireTableDataChanged();\n\n }\n\n });\n\n }", "@Override\n public int delete(Uri uri, String selection, String[] selectionArgs) {\n int match = sUriMatcher.match(uri);\n switch (match) {\n case DATA:\n return deleteCourse(uri, selection, selectionArgs);\n case DATA_ID:\n //selection variable holds the where clause\n selection = gpaEntry._ID + \" =? \";\n\n //the selectionArgs holds an array of values for the selection clause\n selectionArgs = new String[]{String.valueOf(ContentUris.parseId(uri))};\n\n return deleteCourse(uri, selection, selectionArgs);\n\n default:\n throw new IllegalArgumentException(\"Deletion is not supported for\" + uri);\n }\n }", "private void delete(ActionEvent e){\r\n if (client != null){\r\n ConfirmBox.display(\"Confirm Deletion\", \"Are you sure you want to delete this entry?\");\r\n if (ConfirmBox.response){\r\n Client.deleteClient(client);\r\n AlertBox.display(\"Delete Client\", \"Client Deleted Successfully\");\r\n // Refresh view\r\n refresh();\r\n \r\n }\r\n }\r\n }", "public String btn_delete_action()\n {\n int n = this.getDataTableSemental().getRowCount();\n ArrayList<SementalDTO> selected = new ArrayList();\n for (int i = 0; i < n; i++) { //Obtener elementos seleccionados\n this.getDataTableSemental().setRowIndex(i);\n SementalDTO aux = (SementalDTO) this.\n getDataTableSemental().getRowData();\n if (aux.isSelected()) {\n selected.add(aux);\n }\n }\n if(selected == null || selected.size() == 0)\n {\n //En caso de que no se seleccione ningun elemento\n MessageBean.setErrorMessageFromBundle(\"not_selected\", this.getMyLocale());\n return null;\n }\n else if(selected.size() == 1)\n { //En caso de que solo se seleccione un elemento\n \n //si tiene hijos o asociacions despliega el mensaje de alerta\n if(getgermplasm$SementalSessionBean().getGermplasmFacadeRemote().\n haveSemenGathering(\n selected.get(0).getSementalId()))\n {\n this.getAlertMessage().setRendered(true);\n this.getMainPanel().setRendered(false);\n getgermplasm$SementalSessionBean().setDeleteSemental(\n selected.get(0).getSementalId());\n }\n else\n {\n //delete the accession\n getgermplasm$SementalSessionBean().getGermplasmFacadeRemote().\n deleteSemental(selected.get(0).getSementalId());\n //refresh the list\n getgermplasm$SementalSessionBean().getPagination().deleteItem();\n getgermplasm$SementalSessionBean().getPagination().refreshList();\n getgermplasm$SemenGatheringSessionBean().setPagination(null);\n MessageBean.setSuccessMessageFromBundle(\"delete_semental_success\", this.getMyLocale());\n }\n \n return null;\n }\n else{ //En caso de que sea seleccion multiple\n MessageBean.setErrorMessageFromBundle(\"not_yet\", this.getMyLocale());\n return null;\n }\n }", "public void handleDeleteProducts()\n {\n Product productToDelete = getProductToModify();\n\n if (productToDelete != null)\n {\n // Ask user for confirmation to remove the product from product table\n Alert alert = new Alert(Alert.AlertType.CONFIRMATION);\n alert.setTitle(\"Confirmation\");\n alert.setHeaderText(\"Delete Confirmation\");\n alert.setContentText(\"Are you sure you want to delete this product?\");\n ButtonType confirm = new ButtonType(\"Yes\", ButtonBar.ButtonData.YES);\n ButtonType deny = new ButtonType(\"No\", ButtonBar.ButtonData.NO);\n ButtonType cancel = new ButtonType(\"Cancel\", ButtonBar.ButtonData.CANCEL_CLOSE);\n alert.getButtonTypes().setAll(confirm, deny, cancel);\n alert.showAndWait().ifPresent(type ->{\n if (type == confirm)\n {\n // User cannot delete products with associated parts\n if (productToDelete.getAllAssociatedParts().size() > 0)\n {\n Alert alert2 = new Alert(Alert.AlertType.ERROR);\n alert2.setTitle(\"Action is Forbidden!\");\n alert2.setHeaderText(\"Action is Forbidden!\");\n alert2.setContentText(\"Products with associated parts cannot be deleted!\\n \" +\n \"Please remove associated parts from product and try again!\");\n alert2.show();\n }\n else\n {\n // delete the product\n inventory.deleteProduct(productToDelete);\n updateProducts();\n productTable.getSelectionModel().clearSelection();\n }\n }\n });\n }\n else\n {\n Alert alert = new Alert(Alert.AlertType.ERROR);\n alert.setTitle(\"Input Invalid\");\n alert.setHeaderText(\"No product was selected!\");\n alert.setContentText(\"Please select a product to delete from the part table!\");\n alert.show();\n }\n this.productTable.getSelectionModel().clearSelection();\n }", "@FXML public void deleteBT_handler(ActionEvent e) {\n\t\tif(list.getSelectionModel().getSelectedIndex() == -1) {\n\t\t\tAlert error = new Alert(AlertType.ERROR, \"Nothing Selected.\\nPlease select correctly or add new User\", ButtonType.OK);\n\t error.showAndWait();\n\t\t}\n\t\telse {\n\t\t\tAlert warning = new Alert(AlertType.WARNING,\"Delete this User from list?\", ButtonType.YES, ButtonType.NO);\n\t warning.showAndWait();\n\t if(warning.getResult() == ButtonType.NO){\n\t return;\n\t }\n\t\n\t int idx = list.getSelectionModel().getSelectedIndex();\n\t if(list.getSelectionModel().getSelectedItem().getUserName().equals(\"stock\")) {\n\t \tAlert error = new Alert(AlertType.ERROR, \"You can't delete stock username\", ButtonType.OK);\n\t error.showAndWait();\n\t \treturn;\n\t }\n\t obs.remove(idx);\n\t mgUsr.arrList.remove(idx);\n\t\t}\n\t}", "public void delete()\n\t{\n\t\t_Status = DBRowStatus.Deleted;\n\t}", "@Override\n\tprotected void handleDeleteBody(HashMap<String, HashMap<String, String>> params, DataFormat format) throws Exception {\n\t}", "protected void submitDeleteAct(ActionEvent ae) {\n\t\tint index = stuClassListTable.getSelectedRow();\r\n\t\tif (index == -1) {// 未选中时,为-1\r\n\t\t\tJOptionPane.showMessageDialog(this, \"请选中要删除的数据!!!\");\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tif (JOptionPane.showConfirmDialog(this, \"确认要删除吗?\") == JOptionPane.OK_OPTION) {\r\n\t\t\tDefaultTableModel dft = (DefaultTableModel) stuClassListTable.getModel();\r\n\t\t\tint id = Integer.parseInt(dft.getValueAt(stuClassListTable.getSelectedRow(), 0).toString());\r\n\t\t\tStuClassDao<StuClass> stuClassDao = new StuClassDao<StuClass>();\r\n\t\t\tif (stuClassDao.delete(id)) {\r\n\t\t\t\tJOptionPane.showMessageDialog(this, \"删除成功!\");\r\n\t\t\t} else {\r\n\t\t\t\tJOptionPane.showMessageDialog(this, \"删除失败!\");\r\n\t\t\t}\r\n\t\t\tstuClassDao.closeDao();\r\n\t\t\tsetTable(new StuClass());\r\n\t\t} else {\r\n\t\t\treturn;\r\n\t\t}\r\n\t}", "protected abstract void doDelete();", "@FXML\r\n public void onDelete() {\r\n Alert alert = new Alert(Alert.AlertType.CONFIRMATION);\r\n alert.setTitle(\"Mensagem\");\r\n alert.setHeaderText(\"\");\r\n alert.setContentText(\"Deseja excluir?\");\r\n Optional<ButtonType> result = alert.showAndWait();\r\n if (result.get() == ButtonType.OK) {\r\n AlunoModel alunoModel = tabelaAluno.getItems().get(tabelaAluno.getSelectionModel().getSelectedIndex());\r\n\r\n if (AlunoDAO.executeUpdates(alunoModel, AlunoDAO.DELETE)) {\r\n tabelaAluno.getItems().remove(tabelaAluno.getSelectionModel().getSelectedIndex());\r\n alert(\"Excluido com sucesso!\");\r\n desabilitarCampos();\r\n } else {\r\n alert(\"Não foi possivel excluir\");\r\n }\r\n }\r\n }", "@Override\r\n\tpublic int delete(Uri uri, String selection, String[] selectionArgs) {\n\t\tString _cad = selection;\r\n\t\tif (_mi_uriMatcher.match(uri) == USUARIOS){\r\n\t\t\t_cad = \"_id=\" + uri.getLastPathSegment();\r\n\t\t}\r\n\t\tSQLiteDatabase _desc_cons = _BD.getWritableDatabase();\r\n\t\tint _res = _desc_cons.delete(TABLA_USUARIOS, _cad, selectionArgs);\r\n\t\treturn _res;\r\n\t}", "@Override\r\n\t\t\t\t\t\t\t\tpublic void handle(ActionEvent arg0) {\n\r\n\t\t\t\t\t\t\t\t\tProducts data=(Products) tbl_view.getItems().get(getIndex());\r\n\t\t\t\t\t\t\t\t\t//\t\t\t\t\t\t\t\t\tProducts data=(Products) tbl_view.getSelectionModel().getSelectedItem();\r\n\t\t\t\t\t\t\t\t\tSystem.out.println(data.toString());\r\n\t\t\t\t\t\t\t\t\tif(ConnectionManager.queryInsert(conn, \"DELETE FROM dbo.product WHERE id=\"+data.getId())>0) {\r\n\t\t\t\t\t\t\t\t\t\ttxt_cost.clear();\r\n\t\t\t\t\t\t\t\t\t\ttxt_date.clear();\r\n\t\t\t\t\t\t\t\t\t\ttxt_name.clear();\r\n\t\t\t\t\t\t\t\t\t\ttxt_price.clear();\r\n\t\t\t\t\t\t\t\t\t\ttxt_qty.clear();\r\n\t\t\t\t\t\t\t\t\t\ttxt_reorder.clear();\r\n\t\t\t\t\t\t\t\t\t\ttxt_search.clear();\r\n\t\t\t\t\t\t\t\t\t\tfetchData(FETCH_DATA);\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t}", "private void eliminar() {\n\n int row = vista.tblClientes.getSelectedRow();\n cvo.setId_cliente(Integer.parseInt(vista.tblClientes.getValueAt(row, 0).toString()));\n int men = JOptionPane.showConfirmDialog(null, \"Estas seguro que deceas eliminar el registro?\", \"pregunta\", JOptionPane.YES_NO_OPTION, JOptionPane.QUESTION_MESSAGE);\n\n if (men == JOptionPane.YES_OPTION) {\n try {\n cdao.eliminar(cvo);\n cvo.setId_cliente(row);\n } catch (Exception e) {\n System.out.println(\"Mensaje eliminar\" + e.getMessage());\n }\n }\n }", "public void deleteCartRow() {\n CarComponent selectedRow = cartTable.getSelectionModel().getSelectedItem();\n cartTable.getItems().remove(selectedRow);\n componentsCart.remove(selectedRow);\n\n updateTotal();\n }", "@FXML\n private void handleBookDeleteOption(ActionEvent event) {\n Book selectedItem = tableViewBook.getSelectionModel().getSelectedItem();\n if (selectedItem == null) {\n AlertMaker.showErrorMessage(\"No book selected\", \"Please select book for deletion.\");\n return;\n }\n if (DatabaseHandler.getInstance().isBookAlreadyIssued(selectedItem)) {\n AlertMaker.showErrorMessage(\"Cant be deleted\", \"This book is already issued and cant be deleted.\");\n return;\n }\n //confirm the opertion\n Alert alert = new Alert(Alert.AlertType.CONFIRMATION);\n alert.setTitle(\"Deleting Book\");\n Stage stage = (Stage) alert.getDialogPane().getScene().getWindow();\n UtilitiesBookLibrary.setStageIcon(stage);\n alert.setHeaderText(null);\n alert.setContentText(\"Are u sure u want to Delete the book ?\");\n Optional<ButtonType> response = alert.showAndWait();\n if (response.get() == ButtonType.OK) {\n \n boolean result = dbHandler.deleteBook(selectedItem);\n if (result == true) {\n AlertMaker.showSimpleAlert(\"Book delete\", selectedItem.getTitle() + \" was deleted successfully.\");\n observableListBook.remove(selectedItem);\n } else {\n AlertMaker.showSimpleAlert(\"Failed\", selectedItem.getTitle() + \" unable to delete.\");\n\n }\n } else {\n AlertMaker.showSimpleAlert(\"Deletion Canclled\", \"Deletion process canclled.\");\n\n }\n\n }", "@Override\n\t public boolean onActionItemClicked(ActionMode mode, MenuItem item) {\n\t switch (item.getItemId()) {\n\t case R.id.action_delete_table:\n\t \t//Delete the selected table row\t \t\n\t \tJsonElement element = mStorageService.getLoadedTableRows()[mSelectedRowPosition];\n\t\t\t\t\tString partitionKey = element.getAsJsonObject().getAsJsonPrimitive(\"PartitionKey\").getAsString();\t\t\t\t\n\t\t\t\t\tString rowKey = element.getAsJsonObject().getAsJsonPrimitive(\"RowKey\").getAsString();\t \t\n\t \tmStorageService.deleteTableRow(mTableName, partitionKey, rowKey);\n\t mode.finish(); // Action picked, so close the CAB\n\t return true;\n\t default:\n\t return false;\n\t }\n\t }", "@Override\n\tpublic int delete(Uri uri, String selection, String[] selectionArgs) {\n\t\tint cnt = 1;\n\t\tmChallengesDB.del();\n\t\treturn cnt;\n\t}", "@Override\n public int delete(@NonNull Uri uri, String selection, String[] selectionArgs) {\n int numRowsDeleted;\n\n /*\n * If we pass null as the selection to SQLiteDatabase#delete, our entire table will be\n * deleted. However, if we do pass null and delete all of the rows in the table, we won't\n * know how many rows were deleted. According to the documentation for SQLiteDatabase,\n * passing \"1\" for the selection will delete all rows and return the number of rows\n * deleted, which is what the caller of this method expects.\n */\n if (null == selection) selection = \"1\";\n\n switch (sUriMatcher.match(uri)) {\n\n case CODE_TRAFFIC:\n numRowsDeleted = mOpenHelper.getWritableDatabase().delete(\n TrafficContract.TrafficEntry.TABLE_NAME,\n selection,\n selectionArgs);\n\n break;\n\n default:\n throw new UnsupportedOperationException(\"Unknown uri: \" + uri);\n }\n\n /* If we actually deleted any rows, notify that a change has occurred to this URI */\n if (numRowsDeleted != 0) {\n getContext().getContentResolver().notifyChange(uri, null);\n }\n\n return numRowsDeleted;\n }", "@Override\n\tpublic void delete(HttpServletRequest request,HttpServletResponse response) {\n\t\tint id=Integer.parseInt(request.getParameter(\"id\"));\n\t\tcd.delete(id);\n\t\ttry{\n\t\t\tresponse.sendRedirect(request.getContextPath()+\"/CTServlet?type=question&operation=view&id=123\");\n\t\t\t}\n\t\t\tcatch(Exception e){}\n\t\t\n\t}", "@Override\n\t\t\tpublic void run() {\n\t\t\t\tint count = context.getContentResolver().delete(uri, selection,\n\t\t\t\t\t\tselectionArgs);\n\t\t\t\tMessage msg = Message.obtain();\n\t\t\t\tif (count >= 0) {\n\t\t\t\t\tmsg.what = SUCCESS;\n\t\t\t\t} else {\n\t\t\t\t\tmsg.what = FAIL;\n\t\t\t\t}\n\t\t\t\thandler.sendMessage(msg);\n\t\t\t}", "@Override\n\tpublic void deleteClick(int id) {\n\t\t\n\t}", "@Command(\"delete\")\n @NotifyChange({\"events\", \"selectedEvent\"})\n public void delete() {\n if(this.selectedEvent != null) {\n eventDao.delete(this.selectedEvent);\n this.selectedEvent = null;\n }\n }", "@FXML\r\n public void deleteTreatmentButton(){\r\n int sIndex = treatmentTabletv.getSelectionModel().getSelectedIndex();\r\n String sID = treatmentData.get(sIndex).getIdProperty();\r\n\r\n String deleteTreatment = \"delete from treatment where treatmentID = ?\";\r\n try{\r\n ps = mysql.prepareStatement(deleteTreatment);\r\n ps.setString(1,sID);\r\n ps.executeUpdate();\r\n ps.close();\r\n ps = null;\r\n\r\n } catch (SQLException e) {\r\n e.printStackTrace();\r\n //maybe more in this exception\r\n }\r\n\r\n treatmentData.remove(sIndex);\r\n }", "private void delete()\n\t{\n\t\ttry\n\t\t{\n\t\t\tConnection con = Connector.DBcon();\n\t\t\tString query = \"select * from items where IT_ID=?\";\n\t\t\t\n\t\t\tPreparedStatement pst = con.prepareStatement(query);\n\t\t\tpst.setString(1, txticode.getText());\n\t\t\tResultSet rs = pst.executeQuery();\n\t\t\t\n\t\t\tint count = 0;\n\t\t\twhile(rs.next())\n\t\t\t{\n\t\t\t\tcount++;\n\t\t\t}\n\t\t\t\n\t\t\tif(count == 1)\n\t\t\t{\n\t\t\t\tint choice = JOptionPane.showConfirmDialog(null, \"Are you sure you want to delete selected item data?\", \"ALERT\", JOptionPane.YES_NO_OPTION);\n\t\t\t\tif(choice==JOptionPane.YES_OPTION)\n\t\t\t\t{\n\t\t\t\t\tquery=\"delete from items where IT_ID=?\";\n\t\t\t\t\tpst = con.prepareStatement(query);\n\t\t\t\t\t\n\t\t\t\t\tpst.setString(1, txticode.getText());\n\t\t\t\t\t\n\t\t\t\t\tpst.execute();\n\t\t\t\t\t\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Deleted Successfully\", \"RESULT\", JOptionPane.INFORMATION_MESSAGE);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tloadData();\n\t\t\t\t\n\t\t\t\trs.close();\n\t\t\t\tpst.close();\n\t\t\t\tcon.close();\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\telse\n\t\t\t\tJOptionPane.showMessageDialog(null, \"Record Not Found!\", \"Alert\", JOptionPane.ERROR_MESSAGE);\n\t\t\t\n\t\t\trs.close();\n\t\t\tpst.close();\n\t\t\tcon.close();\n\t\t\t\n\t\t} \n\t\tcatch (Exception e)\n\t\t{\n\t\t\tJOptionPane.showMessageDialog(null, e);\n\t\t}\n\t}", "public void deleteSelectedFile(int row) {\n\t\tArrayList<File> files = currConfig.getSelectedFiles();\n\t\tfiles.remove(row);\n\t}", "@FXML\r\n private void bRemCell() throws SQLException {\n int index = tableView.getSelectionModel().getSelectedIndex();\r\n if(index>=0)\r\n {\r\n calc calc = data.get(index);\r\n Alert alert = new Alert(Alert.AlertType.CONFIRMATION);\r\n alert.setTitle(\"Delete cell\");\r\n alert.setHeaderText(\"Start of Day: \" + String.valueOf(calc.getStartDay()) + \"\\n\" +\r\n \"End of Day: \" + String.valueOf(calc.getOverDay()) + \"\\n\" +\r\n \"Start of Receipt: \" + String.valueOf(calc.getStartOfReceipt()) + \"\\n\" +\r\n \"End of Receipt: \" + String.valueOf(calc.getEndOfReceipt()) + \"\\n\" +\r\n \"Sum of Receipt: \" + String.valueOf(calc.getSumReceipt()) + \"\\n\" +\r\n \"User: \" + String.valueOf(calc.getUser()) + \"\\n\" +\r\n \"Date: \" + String.valueOf(calc.getDate()) + \"\\n\" +\r\n \"Comment: \" + String.valueOf(calc.getComment()));\r\n alert.setContentText(\"Are you sure you want to delete cell with data?\");\r\n Optional<ButtonType> result = alert.showAndWait();\r\n if(result.get() == ButtonType.OK)\r\n {\r\n delete(String.valueOf(calc.getDate()));\r\n refresh();\r\n }\r\n else\r\n {\r\n refresh();\r\n }\r\n }else\r\n {\r\n Alert alert = new Alert(Alert.AlertType.ERROR);\r\n alert.setTitle(\"ERROR\");\r\n alert.setContentText(\"Nothing Selected!!!\");\r\n alert.showAndWait();\r\n }\r\n }", "@Override\n protected void doDelete(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n PrintWriter out = resp.getWriter();\n resp.setCharacterEncoding(\"UTF-8\");\n resp.setContentType(\"application/json\");\n resp.addHeader(\"Access-Control-Allow-Origin\", \"*\");\n resp.addHeader(\"Access-Control-Allow-Methods\", \"POST, GET, OPTIONS, PUT, DELETE, HEAD\");\n\n BufferedReader br = new BufferedReader(new InputStreamReader(req.getInputStream()));\n String data = URLDecoder.decode(br.readLine());\n String[] dataParse = data.split(\"&\");\n Map<String, String> mapa = new HashMap<>();\n for (int i = 0; i < dataParse.length; i++) {\n String[] par = dataParse[i].split(\"=\");\n mapa.put(par[0], par[1]);\n }\n\n try {\n Contato contato = new Contato(Integer.parseInt(mapa.get(\"id\")));\n contato.exclui();\n resp.setStatus(200); // status ok\n } catch (SQLException e) {\n e.printStackTrace();\n resp.setStatus(500); // server error\n }\n }", "@Override\n public int delete(@NonNull Uri uri, @Nullable String selection,\n @Nullable String[] selectionArgs) {\n final SQLiteDatabase db = movdbh.getWritableDatabase();\n int match = sUriMatcher.match(uri);\n int tasksDeleted;\n switch (match) {\n case MOVIE_ID:\n String id = uri.getPathSegments().get(1);\n tasksDeleted = db.delete(MovieContract.RowEntry.TABLE_NAME,\"id_movie=?\",new String[]{id});\n break;\n default:\n throw new UnsupportedOperationException(\"Unknown uri: \" + uri);\n }\n if (tasksDeleted != 0) {\n getContext().getContentResolver().notifyChange(uri, null);\n }\n return tasksDeleted;\n }", "private void deleteActionPerformed(ActionEvent evt) throws Exception {\n String teaID = this.teaIDText.getText();\n if(StringUtil.isEmpty(teaID)){\n JOptionPane.showMessageDialog(null, \"请先选择一条老师信息!\");\n return;\n }\n int confirm = JOptionPane.showConfirmDialog(null, \"确认删除?\");\n if(confirm == 0){//确认删除\n Connection con = dbUtil.getConnection();\n int delete = teacherInfo.deleteInfo(con, teaID);\n if(delete == 1){\n JOptionPane.showMessageDialog(null, \"删除成功!\");\n resetValues();\n }\n else{\n JOptionPane.showMessageDialog(null, \"删除失败!\");\n return;\n }\n initTable(new Teacher());//初始化表格\n }\n }", "@FXML\n private void handleDeleteRecordButton(ActionEvent e) {\n deleteRecord();\n }", "Boolean delete(HttpServletRequest request, Long id);", "@FXML\r\n private void handlerOnDeleteMasterStud(ActionEvent event)\r\n\t{\r\n\t\tStudentProperty selectMasterForDeletion = masterStudTable.getSelectionModel().getSelectedItem();\r\n\r\n\t\tif (selectMasterForDeletion == null)\r\n\t\t{\r\n\t\t\tAlert alert = new Alert(Alert.AlertType.ERROR);\r\n\t\t\talert.setTitle(\"No Student selected\");\r\n\t\t\talert.setContentText(\"Please select a student for delete.\");\r\n\t\t\talert.showAndWait();\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tAlert alert = new Alert(Alert.AlertType.CONFIRMATION);\r\n\t\talert.setTitle(\"Deleting Student\");\r\n\t\talert.setContentText(\"Are you sure want to delete the student \"+ selectMasterForDeletion.getStudendID());\r\n\t\tOptional<ButtonType> answerM = alert.showAndWait();\r\n\r\n\t\tif (answerM.get() == ButtonType.OK)\r\n\t\t{\r\n\t\t\tboolean resultM = DatabaseHandler.getInstance().deleteMasterStudent(selectMasterForDeletion);\r\n\t\t\tif (resultM)\r\n\t\t\t{\r\n\t\t\t\tAlert simpleAlert = new Alert(Alert.AlertType.INFORMATION);\r\n\t\t\t\tsimpleAlert.setTitle(\"Student deleted\");\r\n\t\t\t\tsimpleAlert.setContentText(selectMasterForDeletion.getStudendID()+\" was deleted successfully\");\r\n\t\t\t\tsimpleAlert.showAndWait();\r\n\r\n\t\t\t\t// remove the selected row\r\n\t\t\t\tlistOfMasterStud.remove(selectMasterForDeletion);\r\n\t\t\t}else\r\n\t\t\t{\r\n\t\t\t\tAlert simp1leAlert = new Alert(Alert.AlertType.INFORMATION);\r\n\t\t\t\tsimp1leAlert.setTitle(\"Failed\");\r\n\t\t\t\tsimp1leAlert.setContentText(selectMasterForDeletion.getStudendID()+\" Could not be deleted\");\r\n\t\t\t\tsimp1leAlert.showAndWait();\r\n\t\t\t}\r\n\t\t}else\r\n\t\t{\r\n\t\t\tAlert Infalert = new Alert(Alert.AlertType.INFORMATION);\r\n\t\t\tInfalert.setTitle(\"Deletion cancelled\");\r\n\t\t\tInfalert.setContentText(\"Deletion process cancelled.\");\r\n\t\t\tInfalert.showAndWait();\r\n\t\t}\r\n }", "@FXML\r\n private void deletePartAction() throws IOException {\r\n \r\n if (!partsTbl.getSelectionModel().isEmpty()) {\r\n Part selected = partsTbl.getSelectionModel().getSelectedItem();\r\n \r\n Alert message = new Alert(Alert.AlertType.CONFIRMATION);\r\n message.setTitle(\"Confirm delete\");\r\n message.setHeaderText(\" Are you sure you want to delete part ID: \" + selected.getId() + \", name: \" + selected.getName() + \"?\" );\r\n message.setContentText(\"Please confirm your selection\");\r\n \r\n Optional<ButtonType> response = message.showAndWait();\r\n if (response.get() == ButtonType.OK)\r\n {\r\n stock.deletePart(selected);\r\n partsTbl.setItems(stock.getAllParts());\r\n partsTbl.refresh();\r\n displayMessage(\"The part \" + selected.getName() + \" was successfully deleted\");\r\n }\r\n else {\r\n displayMessage(\"Deletion cancelled by user. Part not deleted.\");\r\n }\r\n }\r\n else {\r\n displayMessage(\"No part selected for deletion\");\r\n }\r\n }", "public void deletePart()\n {\n ObservableList<Part> partRowSelected;\n partRowSelected = partTableView.getSelectionModel().getSelectedItems();\n if(partRowSelected.isEmpty())\n {\n alert.setAlertType(Alert.AlertType.ERROR);\n alert.setContentText(\"Please select the Part you want to delete.\");\n alert.show();\n } else {\n int index = partTableView.getSelectionModel().getFocusedIndex();\n Part part = Inventory.getAllParts().get(index);\n alert.setAlertType(Alert.AlertType.CONFIRMATION);\n alert.setContentText(\"Are you sure you want to delete this Part?\");\n alert.showAndWait();\n ButtonType result = alert.getResult();\n if (result == ButtonType.OK) {\n Inventory.deletePart(part);\n }\n }\n }", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tif(tblSessions.getSelectedRow() != -1) {\n\t\t\t\t\tint id = Integer.parseInt(tblSessions.getValueAt(tblSessions.getSelectedRow(), 0).toString());\n\t\t\t\t\t\n\t\t\t\t\tdeleteSession(id);\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Deletado com sucesso!\");\n\t\t\t\t}\n\t\t\t}", "@Override\r\n\tpublic void onDelete() {\n\t\tsuper.onDelete();\r\n\t}", "@Override\n\tpublic boolean delete(Item obj) {\n\t\ttry{\n\t\t\tString query=\"DELETE FROM items WHERE id = ?\";\n\t\t\tPreparedStatement state = conn.prepareStatement(query,ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_READ_ONLY);\n\t\t\tstate.setInt(1, obj.getIndex());\n\t\t\tint nb_rows = state.executeUpdate();\n\t\t\tSystem.out.println(\"Deleted \"+nb_rows+\" lines\");\n\t\t\tstate.close();\n\t\t\t\n\t\t\t// Notify the Dispatcher on a suitable channel.\n\t\t\tthis.publish(EntityEnum.ITEM.getValue());\n\t\t\t\n\t\t\treturn true;\n\t\t} catch (SQLException e){\n\t\t\tJOptionPane jop = new JOptionPane();\n\t\t\tjop.showMessageDialog(null, e.getMessage(),\"PostgreSQLItemDao.delete -- ERROR!\",JOptionPane.ERROR_MESSAGE);\n\t\t\treturn false;\n\t\t} catch (Exception e){\n\t\t\te.printStackTrace();\n\t\t\treturn false;\n\t\t}\t\n\t}", "@Override\n public int delete(Uri uri, String selection, String[] selectionArgs) {\n String fileName = selection;\n\n if (selection.equals(\"@\")) {\n Log.v(\"File input stream\", fileName);\n String[] fileList = getContext().fileList();\n Log.v(\"File input stream\", Integer.toString(fileList.length));\n\n for (int i = 0; i < fileList.length; i++) {\n Log.v(\"File input stream\", fileList[i]);\n try {\n fileName = fileList[i];\n getContext().deleteFile(fileName);\n } catch (Exception e) {\n Log.e(\"Exception Thrown\", \"Exception Thrown\");\n }\n }\n }\n else if (selection.equals(\"*\")) {\n sendDeleteReq();\n }\n else {\n try {\n getContext().deleteFile(fileName);\n } catch (Exception e) {\n Log.e(\"Exception Thrown\", \"Exception Thrown\");\n }\n }\n return 0;\n\n }", "void onDelete();" ]
[ "0.7082088", "0.6733251", "0.67259616", "0.6721358", "0.65789974", "0.65721697", "0.65522367", "0.6551067", "0.6551067", "0.6528352", "0.65137035", "0.65123487", "0.64828336", "0.6462574", "0.6452196", "0.6427243", "0.64048666", "0.64026374", "0.6400217", "0.63798755", "0.6374829", "0.6329109", "0.6318657", "0.6305889", "0.6302528", "0.6282751", "0.6281564", "0.62807137", "0.6279669", "0.6256474", "0.62551785", "0.6239678", "0.62315774", "0.6230358", "0.62215626", "0.6219251", "0.6217131", "0.62071747", "0.62069595", "0.62012005", "0.6192369", "0.61869013", "0.616837", "0.61678267", "0.6165468", "0.6162567", "0.6159714", "0.61543417", "0.61543417", "0.61543417", "0.61543417", "0.61455894", "0.6125242", "0.61229825", "0.6115018", "0.6111988", "0.6110998", "0.6104722", "0.6100873", "0.61007035", "0.6098", "0.60965085", "0.60922575", "0.6077732", "0.60775447", "0.6067548", "0.6067095", "0.6065641", "0.60652", "0.60558146", "0.6037696", "0.60273165", "0.60219806", "0.6019304", "0.6018694", "0.601205", "0.60111064", "0.59952134", "0.5994736", "0.5988407", "0.5976836", "0.5975568", "0.59709704", "0.5966378", "0.59465474", "0.5944027", "0.59378684", "0.5934247", "0.59337634", "0.5933477", "0.5933158", "0.5926096", "0.5918845", "0.59090936", "0.59073424", "0.5903527", "0.58923024", "0.5890306", "0.588983", "0.58814937" ]
0.61708105
42
Handle requests for the MIME type of the data at the given URI.
@Override public String getType(Uri uri) { throw new UnsupportedOperationException("Not yet implemented"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public String getType(Uri uri) {\n final int match = sUriMatcher.match(uri);\n switch (match) {\n case DATA:\n return DataEntry.CONTENT_LIST_TYPE;\n case DATA_ID:\n return DataEntry.CONTENT_DATA_TYPE;\n default:\n throw new IllegalStateException(\"Unknown URI \" + uri + \" with match \" + match);\n }\n }", "@Override\n public String getType(Uri uri) {\n // Return a string that identifies the MIME type\n // for a Content Provider URI\n switch (uriMatcher.match(uri)) {\n case ALLROWS: \n return \"vnd.android.cursor.dir/vnd.paad.elemental\";\n case SINGLE_ROW: \n return \"vnd.android.cursor.item/vnd.paad.elemental\";\n case SEARCH : \n return SearchManager.SUGGEST_MIME_TYPE;\n default: \n throw new IllegalArgumentException(\"Unsupported URI: \" + uri);\n }\n }", "public int lookupReadMimeType(String mimeType);", "@Override\n public String getType(Uri uri) {\n List<String> segments = uri.getPathSegments();\n String accountId = segments.get(0);\n String id = segments.get(1);\n String format = segments.get(2);\n if (FORMAT_THUMBNAIL.equals(format)) {\n return \"image/png\";\n } else {\n uri = ContentUris.withAppendedId(Attachment.CONTENT_URI, Long.parseLong(id));\n Cursor c = getContext().getContentResolver().query(uri, MIME_TYPE_PROJECTION,\n null, null, null);\n try {\n if (c.moveToFirst()) {\n String mimeType = c.getString(MIME_TYPE_COLUMN_MIME_TYPE);\n String fileName = c.getString(MIME_TYPE_COLUMN_FILENAME);\n mimeType = inferMimeType(fileName, mimeType);\n return mimeType;\n }\n } finally {\n c.close();\n }\n return null;\n }\n }", "@Override\n public String getType(Uri uri) {\n // Used to match uris with Content Providers\n switch (uriMatcher.match(uri)) {\n // vnd.android.cursor.dir/cpcontacts states that we expect multiple pieces of data\n case URI_CODE_USER:\n return \"vnd.android.cursor.dir/cpuser\";\n case URI_CODE_ORDER:\n return \"vnd.android.cursor.dir/cporder\";\n default:\n throw new IllegalArgumentException(\"Unsupported URI: \" + uri);\n }\n }", "@Override\n\tpublic String getType(Uri uri) {\n\t\tfinal int match = sUriMatcher.match(uri);\n\t\tswitch (match) {\n\t\tcase ROUTE_ENTRIES:\n\t\t\treturn CONTENT_TYPE;\n\t\tcase ROUTE_ENTRIES_ID:\n\t\t\treturn CONTENT_ITEM_TYPE;\n\t\tdefault:\n\t\t\tthrow new UnsupportedOperationException(\"Unknown uri: \" + uri);\n\t\t}\n\t}", "String getMimeType();", "@Override\n\tpublic String getType(Uri uri) {\n\t\t// Return a string that identifies the MIME type\n\t\t// for a Content Provider URI\n\t\tswitch (uriMatcher.match(uri)) {\n\t\tcase ALLROWS://da la direccion del directorio\n\t\t\treturn ContentResolver.CURSOR_DIR_BASE_TYPE + \"/vnd.aprendeandroid.album\";\n\t\tcase SINGLE_ROW://da la direccion del item\n\t\t\treturn ContentResolver.CURSOR_ITEM_BASE_TYPE + \"/vnd.aprendeandroid.album\";\n\t\tdefault:\n\t\t\tthrow new IllegalArgumentException(\"Unsupported URI: \" + uri);\n\t\t}\n\t}", "@Override\n public Object getData(String mimeType) {\n return data;\n }", "java.lang.String getMimeType();", "java.lang.String getMimeType();", "@Override\r\n\tpublic String getType(Uri uri) {\r\n\r\n\t\tswitch (sURIMatcher.match(uri)) {\r\n\t\t\tcase SEARCH_SUGGEST:\r\n\t\t\t\treturn SearchManager.SUGGEST_MIME_TYPE;\r\n\t\t\tcase SHORTCUT_REFRESH:\r\n\t\t\t\treturn SearchManager.SHORTCUT_MIME_TYPE;\r\n\t\t\tdefault:\r\n\t\t\t\tthrow new IllegalArgumentException(\"Unknown URL \" + uri);\r\n\t\t}\r\n\t}", "public boolean handles(String contentType, String packaging);", "public interface HttpMimeType {\n\n\t// Image\n \n public static final String APNG_IMAGE = \"image/apng\";\n \n public static final String BMP_IMAGE = \"image/bmp\";\n\n\tpublic static final String GIF_IMAGE = \"image/gif\";\n\t\n\tpublic static final String ICO_IMAGE = \"image/ico\";\n\n\tpublic static final String JPEG_IMAGE = \"image/jpeg\";\n\n\tpublic static final String JPG_IMAGE = \"image/jpg\";\n\n public static final String PNG_IMAGE = \"image/png\";\n\n\tpublic static final String SVG_IMAGE = \"image/svg+xml\";\n\n\tpublic static final String TIFF_IMAGE = \"image/tiff\";\n\t\n\tpublic static final String WEBP_IMAGE = \"image/webp\";\n\n\t// text formats\n\n\tpublic static final String TEXT_PLAIN = \"text/plain\";\n\n\tpublic static final String CSV = \"text/csv\";\n\n\tpublic static final String CSS = \"text/css\";\n\n\tpublic static final String HTML = \"text/html\";\n\n\tpublic static final String JAVASCRIPT = \"text/javascript\";\n\n\tpublic static final String RTF = \"text/rtf\";\n\n\tpublic static final String XML = \"text/xml\";\n\n\t// document formats\n\n\tpublic static final String JSON = \"application/json\";\n\n\tpublic static final String ATOM = \"application/atom+xml\";\n\n\tpublic static final String PDF = \"application/pdf\";\n\n\tpublic static final String POSTSCRIPT = \"application/postscript\";\n\n\tpublic static final String XLS = \"application/vnd.ms-excel\";\n\n\tpublic static final String XLSX = \"application/vnd.ms-excel\";\n\n\tpublic static final String PPT = \"application/vnd.ms-powerpoint\";\n\n\tpublic static final String PPTX = \"application/vnd.ms-powerpoint\";\n\n\tpublic static final String XPS = \"application/vnd.ms-xpsdocument\";\n\n\t// binary\n\n\tpublic static final String BINARY = \"application/octet-stream\";\n\n\t// music ones\n\n\tpublic static final String MP4_AUDIO = \"audio/mp4\";\n\n\tpublic static final String MP3_AUDIO = \"audio/mpeg\";\n\n\tpublic static final String OGG_VORBIS_AUDIO = \"audio/ogg\";\n\n\tpublic static final String OPUS_AUDIO = \"audio/opus\";\n\n\tpublic static final String VORBIS_AUDIO = \"audio/vorbis\";\n\n\tpublic static final String WEBM_AUDIO = \"audio/webm\";\n\n\t// video\n\n\tpublic static final String MPEG_VIDEO = \"video/mpeg\";\n\n\tpublic static final String MP4_VIDEO = \"video/mp4\";\n\n\tpublic static final String OGG_THEORA_VIDEO = \"video/ogg\";\n\n\tpublic static final String QUICKTIME_VIDEO = \"video/quicktime\";\n\n\tpublic static final String WEBM_VIDEO = \"video/webm\";\n\n\t// feeds\n\n\tpublic static final String RDF = \"application/rdf+xml\";\n\n\tpublic static final String RSS = \"application/rss+xml\";\n\n}", "public String getMimeType();", "boolean hasMimeType();", "@Nullable\n @Override\n public String getType(Uri uri) {\n final int match = sUriMatcher.match(uri);\n\n switch (match) {\n // Student: Uncomment and fill out these two cases\n case LOCATION:\n return LocationContract.LocationEntry.CONTENT_TYPE;\n case USER:\n return LocationContract.UserEntry.CONTENT_TYPE;\n case USER_BY_UID:\n return LocationContract.UserEntry.CONTENT_ITEM_TYPE;\n default:\n throw new UnsupportedOperationException(\"Unknown uri: \" + uri);\n }\n }", "@Override\n public String getType(Uri uri) {\n int match = sUriMatcher.match(uri);\n switch (match) {\n case INVENTORY:\n return InventoryEntry.CONTENT_LIST_TYPE;\n case INVENTORY_ID:\n return InventoryEntry.CONTENT_ITEM_TYPE;\n default:\n throw new IllegalArgumentException(\"Unknown URI \" + uri + \" with match \" + match);\n }\n }", "@Nullable\n @Override\n public String getType(Uri uri) {\n final int match = sUriMatcher.match(uri);\n\n switch (match) {\n case CHORES:\n case CHORE_TEMPLATE_BY_ROOM:\n case CHORES_BY_FREQUENCY:\n case CHORES_BY_DUE_DATE:\n return ChoreContract.ChoresEntry.CONTENT_ITEM_TYPE;\n\n default:\n throw new UnsupportedOperationException(\"Unknown uri: \" + uri);\n }\n }", "@Override\r\n public String getType(Uri uri){\r\n switch (URI_MATCHER.match(uri)){\r\n case LIST_TASK:\r\n return TASKS_MIME_TYPE;\r\n case ITEM_TASK:\r\n return TASK_MIME_TYPE;\r\n default:\r\n throw new IllegalArgumentException(\"Unknown Uri:\" + uri);\r\n }\r\n }", "@Override\r\n\tpublic String getType(Uri uri) {\n\t\tint match = matcher.match(uri);\r\n\t\tswitch(match){\r\n\t\t\tcase all:\r\n\t\t\t\treturn \"vnd.android.cursor.dir/\"+AUTHORITY;\r\n\t\t\tcase single:\r\n\t\t\t\treturn \"vnd.android.cursor.item/\"+AUTHORITY;\r\n\t\t\tdefault:\r\n\t\t\t\tthrow new IllegalArgumentException(\"Unknown URI: \" + uri);\r\n\t\t}\r\n\t}", "@Override\n public String getType(@NonNull Uri uri) {\n final int match = sUriMatcher.match(uri);\n switch (match) {\n case FAVORITE_MOVIES:\n return MovieContract.MovieEntry.CONTENT_LIST_TYPE;\n case MOVIE_ID:\n return MovieContract.MovieEntry.CONTENT_ITEM_TYPE;\n default:\n throw new IllegalStateException(\"Unknown URI \" + uri + \" with match \" + match);\n }\n }", "MimeType mediaType();", "@Override\r\n\tpublic String getType(Uri uri) {\n\t\tint match = _mi_uriMatcher.match(uri);\r\n\t\tswitch (match) {\r\n\t\tcase USUARIOS:\r\n\t\t\treturn \"vnd.android.cursor.dir/vnd.MiContentProvider.cliente\";\r\n\t\tcase USUARIO:\r\n\t\t\treturn \"vnd.android.cursor.item/vnd.MiContentProvider.cliente\";\r\n\t\tdefault:\r\n\t\t\treturn null;\r\n\t\t}\r\n\t}", "@Override\n public String getType(Uri uri) {\n ensureUriMatcherInitialized();\n int match = mUriMatcher.match(uri);\n switch (match) {\n case URI_MATCH_BOOKMARKS:\n case URL_MATCH_API_BOOKMARK:\n return BROWSER_CONTRACT_BOOKMARK_CONTENT_TYPE;\n case URI_MATCH_BOOKMARKS_ID:\n case URL_MATCH_API_BOOKMARK_ID:\n return BROWSER_CONTRACT_BOOKMARK_CONTENT_ITEM_TYPE;\n case URL_MATCH_API_SEARCHES:\n return BROWSER_CONTRACT_SEARCH_CONTENT_TYPE;\n case URL_MATCH_API_SEARCHES_ID:\n return BROWSER_CONTRACT_SEARCH_CONTENT_ITEM_TYPE;\n case URL_MATCH_API_HISTORY_CONTENT:\n return BROWSER_CONTRACT_HISTORY_CONTENT_TYPE;\n case URL_MATCH_API_HISTORY_CONTENT_ID:\n return BROWSER_CONTRACT_HISTORY_CONTENT_ITEM_TYPE;\n default:\n throw new IllegalArgumentException(TAG + \": getType - unknown URL \" + uri);\n }\n }", "public interface IURI {\n String MIMETYPE_NAME = \"vnd.android.cursor.item/name\";\n String MIMETYPE_EMAIL = \"vnd.android.cursor.item/email_v2\";\n String MIMETYPE_ADDRESS = \"vnd.android.cursor.item/postal-address_v2\";\n String MIMETYPE_PHONE = \"vnd.android.cursor.item/phone_v2\";\n\n}", "@NotNull\n String getMimeType();", "abstract public URIType getURIType();", "@Override\r\n public String getType(Uri uri) {\n return \"\";\r\n }", "@Override\n public String getType(Uri uri) {\n return null;\n }", "@Override\n public String getType(Uri uri) {\n return null;\n }", "@Override\n public String getType(Uri uri) {\n return null;\n }", "@Override\n public String getType(Uri uri) {\n return null;\n }", "@Override\n public String getType(Uri uri) {\n return null;\n }", "@Override\n public String getType(Uri uri) {\n return null;\n }", "@Override\n public String getType(Uri uri) {\n return null;\n }", "@Override\n public String getType(Uri uri) {\n return null;\n }", "@Override\n public String getType(Uri uri) {\n return null;\n }", "@Override\n public String getType(Uri uri) {\n return null;\n }", "@Override\r\n public String getType(Uri uri) {\n throw new UnsupportedOperationException(\"Not yet implemented\");\r\n }", "@Override\r\n public String getType(Uri uri) {\n throw new UnsupportedOperationException(\"Not yet implemented\");\r\n }", "private long checkForMisreportedContentType(List<String> uriSet) {\n\t\thttpRetriever.addListOfResourceToQueue(uriSet);\n\t\thttpRetriever.start(true);\n\t\t\n\t\tList<String> lstURIs = new ArrayList<String>(uriSet);\n\t\tlong totalCorrect = 0;\n\t\t\t\t\n\t\t// Dereference each and every one of the URIs contained in the specified set\n\t\twhile(lstURIs.size() > 0) {\n\t\t\t// Remove the URI at the head of the queue of URIs to be dereferenced \n\n\t\t\tString headUri = lstURIs.remove(0);\n\t\t\t\n\t\t\t// First, search for the URI in the cache\n\t\t\tCachedHTTPResource httpResource = (CachedHTTPResource)LinkedDataMetricsCacheManager.getInstance().getFromCache(LinkedDataMetricsCacheManager.HTTP_RESOURCE_CACHE, headUri);\n\t\t\t\n\t\t\tif (httpResource == null || httpResource.getStatusLines() == null) {\n\t\t\t\t// URIs not found in the cache, is still to be fetched via HTTP, add it to the end of the list\n\t\t\t\tlstURIs.add(headUri);\n\t\t\t} else {\n\t\t\t\t// URI found in the cache (which means that was fetched at some point), check if successfully dereferenced\n\t\t\t\tSerialisableHttpResponse res = HTTPResourceUtils.getSemanticResponse(httpResource);\n\t\t\t\tif (res != null){\n\t\t\t\t\tString ct = res.getHeaders(\"Content-Type\").split(\";\")[0];\n\t\t\t\t\tLang lang = RDFLanguages.contentTypeToLang(ct);\n\t\t\t\t\t\n\t\t\t\t\t//should the resource be dereferencable?\n\t\t\t\t\tif (lang != null){\n\t\t\t\t\t\t//the resource might be a semantic resource\n\t\t\t\t\t\tif (ModelParser.hasRDFContent(httpResource, lang)){\n\t\t\t\t\t\t\ttotalCorrect++;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tString expectedCT = HTTPResourceUtils.determineActualContentType(httpResource) ;\n\t\t\t\t\t\t\tthis.createProblemModel(httpResource.getUri(), expectedCT, ct);\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.out.println(\"lang is null\");\n\t\t\t\t\t\tString expectedCT = HTTPResourceUtils.determineActualContentType(httpResource) ;\n\t\t\t\t\t\tthis.createProblemModel(httpResource.getUri(), expectedCT, \"none\");\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tif (HTTPResourceUtils.isTextXML(httpResource)){\n\t\t\t\t\t\tLang lang = Lang.RDFXML;\n\t\t\t\t\t\tif (ModelParser.hasRDFContent(httpResource, lang)){\n\t\t\t\t\t\t\tthis.createProblemModel(httpResource.getUri(), \"application/rdf+xml\", \"text/xml\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse {\n\t\t\t\t\t\t\tthis.nonSemanticResources++;\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tthis.nonSemanticResources++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn totalCorrect;\n\t}", "public void setMime_type(String value)\r\n {\r\n getSemanticObject().setProperty(data_mime_type, value);\r\n }", "public void setMimeType(String value) {\n this.mimeType = value;\n }", "@Override\n public void fetchSuccess(String path, byte[] data, String mediaType, long dataLength) {\n headers.put(CONTENT_TYPE, mediaType);\n headers.put(CONTENT_LENGTH, String.valueOf(dataLength));\n // Send data as 404 Not Found\n send404NotFound(ctx, headers, data, true);\n }", "public int lookupWriteMimeType(String mimeType);", "public void setType(URI type) {\n this.type = type;\n }", "public static String getMimeType(Activity context, Uri uri) {\n String extension;\n //Check uri format to avoid null\n if (ContentResolver.SCHEME_CONTENT.equals(uri.getScheme())) {\n //If scheme is a content\n extension = MimeTypeMap.getSingleton().getExtensionFromMimeType(context.getContentResolver().getType(uri));\n if (TextUtils.isEmpty(extension)) {\n extension = MimeTypeMap.getFileExtensionFromUrl(Uri.fromFile(new File(uri.getPath())).toString());\n }\n } else {\n //If scheme is a File\n //This will replace white spaces with %20 and also other special characters. This will avoid returning null values on file\n // name with spaces and special characters.\n extension = MimeTypeMap.getFileExtensionFromUrl(Uri.fromFile(new File(uri.getPath())).toString());\n if (TextUtils.isEmpty(extension)) {\n extension = MimeTypeMap.getSingleton().getExtensionFromMimeType(context.getContentResolver().getType(uri));\n }\n }\n if (TextUtils.isEmpty(extension)) {\n extension = getMimeTypeByFileName(TUriParse.getFileWithUri(uri, context).getName());\n }\n return extension;\n }", "public static String getMimeTypeForFile(String uri) {\n\t\tint dot = uri.lastIndexOf('.');\n\t\tString mime = null;\n\t\tif (dot >= 0) {\n\t\t\tmime = mimeTypes().get(uri.substring(dot + 1).toLowerCase());\n\t\t}\n\t\treturn mime == null ? \"application/octet-stream\" : mime;\n\t}", "public void setMimeType(String mimeType) {\n this.mimeType = mimeType;\n }", "public void setMimeType(String mimeType) {\n this.mimeType = mimeType;\n }", "public String getType(Uri uri) \n {\n return null;\n }", "@Override\n\tpublic String getType(Uri uri) {\n\t\treturn null;\n\t}", "@Override\n\tpublic String getType(Uri uri) {\n\t\treturn null;\n\t}", "@Override\n\tpublic String getType(Uri uri) {\n\t\treturn null;\n\t}", "Response serveFile(String uri, Map<String, String> header, File file, String mime) {\n\t\t\tResponse res;\n\t\t\ttry {\n\t\t\t\t// Calculate etag\n\t\t\t\tString etag = Integer.toHexString((file.getAbsolutePath() + file.lastModified()\n\t\t\t\t\t\t+ \"\" + file.length()).hashCode());\n\n\t\t\t\t// Support (simple) skipping:\n\t\t\t\tlong startFrom = 0;\n\t\t\t\tlong endAt = -1;\n\t\t\t\tString range = header.get(\"range\");\n\t\t\t\tif (range != null) {\n\t\t\t\t\tif (range.startsWith(\"bytes=\")) {\n\t\t\t\t\t\trange = range.substring(\"bytes=\".length());\n\t\t\t\t\t\tint minus = range.indexOf('-');\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tif (minus > 0) {\n\t\t\t\t\t\t\t\tstartFrom = Long.parseLong(range.substring(0, minus));\n\t\t\t\t\t\t\t\tendAt = Long.parseLong(range.substring(minus + 1));\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} catch (NumberFormatException ignored) {\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// get if-range header. If present, it must match etag or else\n\t\t\t\t// we\n\t\t\t\t// should ignore the range request\n\t\t\t\tString ifRange = header.get(\"if-range\");\n\t\t\t\tboolean headerIfRangeMissingOrMatching = (ifRange == null || etag.equals(ifRange));\n\n\t\t\t\tString ifNoneMatch = header.get(\"if-none-match\");\n\t\t\t\tboolean headerIfNoneMatchPresentAndMatching = ifNoneMatch != null\n\t\t\t\t\t\t&& (\"*\".equals(ifNoneMatch) || ifNoneMatch.equals(etag));\n\n\t\t\t\t// Change return code and add Content-Range header when skipping\n\t\t\t\t// is\n\t\t\t\t// requested\n\t\t\t\tlong fileLen = file.length();\n\n\t\t\t\tif (headerIfRangeMissingOrMatching && range != null && startFrom >= 0\n\t\t\t\t\t\t&& startFrom < fileLen) {\n\t\t\t\t\t// range request that matches current etag\n\t\t\t\t\t// and the startFrom of the range is satisfiable\n\t\t\t\t\tif (headerIfNoneMatchPresentAndMatching) {\n\t\t\t\t\t\t// range request that matches current etag\n\t\t\t\t\t\t// and the startFrom of the range is satisfiable\n\t\t\t\t\t\t// would return range from file\n\t\t\t\t\t\t// respond with not-modified\n\t\t\t\t\t\tres = newFixedLengthResponse(Response.Status.NOT_MODIFIED, mime, \"\");\n\t\t\t\t\t\tres.addHeader(\"ETag\", etag);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif (endAt < 0) {\n\t\t\t\t\t\t\tendAt = fileLen - 1;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tlong newLen = endAt - startFrom + 1;\n\t\t\t\t\t\tif (newLen < 0) {\n\t\t\t\t\t\t\tnewLen = 0;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tFileInputStream fis = new FileInputStream(file);\n\t\t\t\t\t\tfis.skip(startFrom);\n\n\t\t\t\t\t\tres = newFixedLengthResponse(Response.Status.PARTIAL_CONTENT, mime, fis,\n\t\t\t\t\t\t\t\tnewLen);\n\t\t\t\t\t\tres.addHeader(\"Accept-Ranges\", \"bytes\");\n\t\t\t\t\t\tres.addHeader(\"Content-Length\", \"\" + newLen);\n\t\t\t\t\t\tres.addHeader(\"Content-Range\", \"bytes \" + startFrom + \"-\" + endAt + \"/\"\n\t\t\t\t\t\t\t\t+ fileLen);\n\t\t\t\t\t\tres.addHeader(\"ETag\", etag);\n\t\t\t\t\t}\n\t\t\t\t} else {\n\n\t\t\t\t\tif (headerIfRangeMissingOrMatching && range != null && startFrom >= fileLen) {\n\t\t\t\t\t\t// return the size of the file\n\t\t\t\t\t\t// 4xx responses are not trumped by if-none-match\n\t\t\t\t\t\tres = newFixedLengthResponse(Response.Status.RANGE_NOT_SATISFIABLE,\n\t\t\t\t\t\t\t\tNanoHTTPDSingleFile.MIME_PLAINTEXT, \"\");\n\t\t\t\t\t\tres.addHeader(\"Content-Range\", \"bytes */\" + fileLen);\n\t\t\t\t\t\tres.addHeader(\"ETag\", etag);\n\t\t\t\t\t} else if (range == null && headerIfNoneMatchPresentAndMatching) {\n\t\t\t\t\t\t// full-file-fetch request\n\t\t\t\t\t\t// would return entire file\n\t\t\t\t\t\t// respond with not-modified\n\t\t\t\t\t\tres = newFixedLengthResponse(Response.Status.NOT_MODIFIED, mime, \"\");\n\t\t\t\t\t\tres.addHeader(\"ETag\", etag);\n\t\t\t\t\t} else if (!headerIfRangeMissingOrMatching\n\t\t\t\t\t\t\t&& headerIfNoneMatchPresentAndMatching) {\n\t\t\t\t\t\t// range request that doesn't match current etag\n\t\t\t\t\t\t// would return entire (different) file\n\t\t\t\t\t\t// respond with not-modified\n\n\t\t\t\t\t\tres = newFixedLengthResponse(Response.Status.NOT_MODIFIED, mime, \"\");\n\t\t\t\t\t\tres.addHeader(\"ETag\", etag);\n\t\t\t\t\t} else {\n\t\t\t\t\t\t// supply the file\n\t\t\t\t\t\tres = newFixedFileResponse(file, mime);\n\t\t\t\t\t\tres.addHeader(\"Content-Length\", \"\" + fileLen);\n\t\t\t\t\t\tres.addHeader(\"ETag\", etag);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} catch (IOException ioe) {\n\t\t\t\tres = getForbiddenResponse(\"Reading file failed.\");\n\t\t\t}\n\n\t\t\treturn res;\n\t\t}", "private boolean handleRequestAttachments(StreamRequest request,\n RequestContext requestContext,\n Callback<StreamResponse> callback)\n {\n //At this point we need to check the content-type to understand how we should handle the request.\n String header = request.getHeader(RestConstants.HEADER_CONTENT_TYPE);\n if (header != null)\n {\n ContentType contentType;\n try\n {\n contentType = new ContentType(header);\n }\n catch (ParseException e)\n {\n callback.onError(Messages.toStreamException(RestException.forError(400,\n \"Unable to parse Content-Type: \" + header)));\n return true;\n }\n\n if (contentType.getBaseType().equalsIgnoreCase(RestConstants.HEADER_VALUE_MULTIPART_RELATED))\n {\n //We need to reconstruct a RestRequest that has the first part of the multipart/related payload as the\n //traditional rest.li payload of a RestRequest.\n final MultiPartMIMEReader multiPartMIMEReader = MultiPartMIMEReader.createAndAcquireStream(request);\n RoutingResult routingResult;\n try\n {\n routingResult = getRoutingResult(request, requestContext);\n }\n catch (Exception e)\n {\n callback.onError(buildPreRoutingStreamException(e, request));\n return true;\n }\n final TopLevelReaderCallback firstPartReader = new TopLevelReaderCallback(routingResult, callback, multiPartMIMEReader, request);\n multiPartMIMEReader.registerReaderCallback(firstPartReader);\n return true;\n }\n }\n\n return false;\n }", "public boolean handlesResource(ResourceType type) {\n String s = type.getMime();\n return (\"text/xhtml\".equals(s)) && (\"xml\".equals(type.getSubtype()));\n }", "String getFileMimeType();", "public void setMimeType(String mimeType) {\n this.mimeType = mimeType;\n }", "@Nullable\n @Override\n public String getType(@NonNull Uri uri) {\n return null;\n }", "private Class<? extends Model> getModelType(Uri uri) {\n// final int code = URI_MATCHER.match(uri);\n// if (code != UriMatcher.NO_MATCH) {\n// return TYPE_CODES.get(code);\n// }\n\n return null;\n }", "public JAXBHandle<C> withMimetype(String mimetype) {\n setMimetype(mimetype);\n return this;\n }", "private void validateContentType(ODataRequest request) throws BatchDeserializerException {\n BatchParserCommon.parseContentType(request.getHeader(CONTENT_TYPE), ContentType.MULTIPART_MIXED, 0);\n }", "String getContentType();", "String getContentType();", "String getContentType();", "@Nullable\n @Override\n public String getType(@NonNull Uri uri) {\n\n throw new UnsupportedOperationException(\"Not Yet Implemented\");\n }", "private String detectMimeType(XDIMEContextInternal context,String path){\n int lastDot = path.lastIndexOf('.');\n String resultMimeType = null;\n\n if (lastDot != -1) {\n MarinerPageContext pageContext = getPageContext(context);\n EnvironmentContext envContext = pageContext.getEnvironmentContext();\n resultMimeType = envContext.getMimeType(path);\n }\n return resultMimeType;\n }", "protected abstract MediaType getSupportedMediaType();", "@Override\n public void setContentType(String arg0) {\n\n }", "public String getContentType();", "public String getContentType();", "@ResponseStatus (HttpStatus.UNSUPPORTED_MEDIA_TYPE)\n\t@ExceptionHandler (HttpMediaTypeNotSupportedException.class)\n\tpublic Result handleHttpMediaTypeNotSupportedException (Exception e)\n\t{\n\t\treturn new Result ().failure (\"content_type_not_supported\");\n\t}", "public boolean handles(Uri uri) {\n return C8904b.m21373c(uri);\n }", "private String getFileEx(Uri uri){\n ContentResolver cr=getContentResolver();\n MimeTypeMap mime=MimeTypeMap.getSingleton();\n return mime.getExtensionFromMimeType(cr.getType(uri));\n }", "private void serve() {\n\t\tif (request == null) {\n\t\t\tchannel.close();\n\t\t\treturn;\n\t\t}\n\t\tlogger.fine(\"Serving \" + type + \" request : \" + request.getPath());\n\t\tResponse resp = RequestHandler.handle(request);\n\t\tif (resp.getRespCode() == ResponseCode.NOT_FOUND) {\n\t\t\terror404(resp);\n\t\t\treturn;\n\t\t}\n\n\t\tStringBuilder header = new StringBuilder();\n\t\tif (type == Type.HTTP) {\n\t\t\theader.append(\"HTTP/1.0 200 OK\\r\\n\");\n\t\t\theader.append(\"Content-Length: \")\n\t\t\t\t\t.append(resp.getFileData().remaining()).append(\"\\r\\n\");\n\t\t\theader.append(\"Connection: close\\r\\n\");\n\t\t\theader.append(\"Server: Hyperion/1.0\\r\\n\");\n\t\t\theader.append(\"Content-Type: \" + resp.getMimeType() + \"\\r\\n\");\n\t\t\theader.append(\"\\r\\n\");\n\t\t}\n\t\tbyte[] headerBytes = header.toString().getBytes();\n\n\t\tByteBuffer bb = resp.getFileData();\n\t\tChannelBuffer ib = ChannelBuffers.buffer(bb.remaining()\n\t\t\t\t+ headerBytes.length);\n\t\tib.writeBytes(headerBytes);\n\t\tib.writeBytes(bb);\n\t\tchannel.write(ib).addListener(ChannelFutureListener.CLOSE);\n\t}", "public void setMimeType(String mimeType) {\n\t\tthis.mimeType = mimeType;\n\t}", "boolean supports(GenericType<? extends Source<?>> type, HttpClientResponse response);", "public void setMime(String mime) {\n\t\tthis.mime = mime;\n\t}", "public void handleRequest(ExtractionRequest request);", "@Override\n public boolean isRenditionSupported(String mimeType) {\n return mimeType.startsWith(\"image/\");\n }", "private Uri getFileUriAndSetType(Intent intent, String str, String str2, String str3, int i) throws IOException {\n String str4;\n String str5;\n String str6;\n if (str2.endsWith(\"mp4\") || str2.endsWith(\"mov\") || str2.endsWith(\"3gp\")) {\n intent.setType(\"video/*\");\n } else if (str2.endsWith(\"mp3\")) {\n intent.setType(\"audio/x-mpeg\");\n } else {\n intent.setType(\"image/*\");\n }\n if (str2.startsWith(\"http\") || str2.startsWith(\"www/\")) {\n String fileName = getFileName(str2);\n String str7 = \"file://\" + str + \"/\" + fileName.replaceAll(\"[^a-zA-Z0-9._-]\", \"\");\n if (str2.startsWith(\"http\")) {\n URLConnection openConnection = new URL(str2).openConnection();\n String headerField = openConnection.getHeaderField(\"Content-Disposition\");\n if (headerField != null) {\n Matcher matcher = Pattern.compile(\"filename=([^;]+)\").matcher(headerField);\n if (matcher.find()) {\n fileName = matcher.group(1).replaceAll(\"[^a-zA-Z0-9._-]\", \"\");\n if (fileName.length() == 0) {\n fileName = \"file\";\n }\n str7 = \"file://\" + str + \"/\" + fileName;\n }\n }\n saveFile(getBytes(openConnection.getInputStream()), str, fileName);\n str2 = str7;\n } else {\n saveFile(getBytes(this.webView.getContext().getAssets().open(str2)), str, fileName);\n str2 = str7;\n }\n } else if (str2.startsWith(\"data:\")) {\n if (!str2.contains(\";base64,\")) {\n intent.setType(\"text/plain\");\n return null;\n }\n String substring = str2.substring(str2.indexOf(\";base64,\") + 8);\n if (!str2.contains(\"data:image/\")) {\n intent.setType(str2.substring(str2.indexOf(\"data:\") + 5, str2.indexOf(\";base64\")));\n }\n String substring2 = str2.substring(str2.indexOf(\"/\") + 1, str2.indexOf(\";base64\"));\n if (notEmpty(str3)) {\n StringBuilder sb = new StringBuilder();\n sb.append(sanitizeFilename(str3));\n if (i == 0) {\n str6 = \"\";\n } else {\n str6 = \"_\" + i;\n }\n sb.append(str6);\n sb.append(\".\");\n sb.append(substring2);\n str4 = sb.toString();\n } else {\n StringBuilder sb2 = new StringBuilder();\n sb2.append(\"file\");\n if (i == 0) {\n str5 = \"\";\n } else {\n str5 = \"_\" + i;\n }\n sb2.append(str5);\n sb2.append(\".\");\n sb2.append(substring2);\n str4 = sb2.toString();\n }\n saveFile(Base64.decode(substring, 0), str, str4);\n str2 = \"file://\" + str + \"/\" + str4;\n } else if (str2.startsWith(\"df:\")) {\n if (!str2.contains(\";base64,\")) {\n intent.setType(\"text/plain\");\n return null;\n }\n String substring3 = str2.substring(str2.indexOf(\"df:\") + 3, str2.indexOf(\";data:\"));\n String substring4 = str2.substring(str2.indexOf(\";data:\") + 6, str2.indexOf(\";base64,\"));\n String substring5 = str2.substring(str2.indexOf(\";base64,\") + 8);\n intent.setType(substring4);\n saveFile(Base64.decode(substring5, 0), str, sanitizeFilename(substring3));\n str2 = \"file://\" + str + \"/\" + sanitizeFilename(substring3);\n } else if (str2.startsWith(\"file://\")) {\n intent.setType(getMIMEType(str2));\n } else {\n throw new IllegalArgumentException(\"URL_NOT_SUPPORTED\");\n }\n return Uri.parse(str2);\n }", "void shouldParseTheDataIfContentTypeIsApplicationXWwwFormUrlencoded() {\n }", "@ResponseStatus(HttpStatus.UNSUPPORTED_MEDIA_TYPE)\n @ExceptionHandler(HttpMediaTypeNotSupportedException.class)\n public R handleHttpMediaTypeNotSupportedException(HttpMediaTypeNotSupportedException e) {\n log.error(\"不支持当前媒体类型\", e);\n return R.error(400 , \"content_type_not_supported\");\n }", "public void setMimeType(String mimeType) {\n response.setContentType(mimeType);\n }", "private String getFileExtension(Uri uri) {\n ContentResolver cR = getActivity().getApplicationContext().getContentResolver();\n MimeTypeMap mime = MimeTypeMap.getSingleton();\n return mime.getExtensionFromMimeType(cR.getType(uri));\n }", "public String getMimeType() {\n return mimeType;\n }" ]
[ "0.6395632", "0.6324276", "0.5946134", "0.5923215", "0.58230036", "0.5819948", "0.579421", "0.5773127", "0.5750046", "0.574114", "0.574114", "0.57226795", "0.5713104", "0.5654149", "0.5649304", "0.564498", "0.55954695", "0.5592313", "0.5584232", "0.55636305", "0.55606455", "0.5508337", "0.54971075", "0.5479105", "0.5456999", "0.54158115", "0.54045355", "0.5391726", "0.5360011", "0.5335824", "0.5335824", "0.5335824", "0.5335824", "0.5335824", "0.5335824", "0.5335824", "0.5335824", "0.5335824", "0.5335824", "0.5329644", "0.5329644", "0.53068405", "0.5306633", "0.52702606", "0.527023", "0.5232851", "0.5219463", "0.5199584", "0.51810557", "0.5142828", "0.5142828", "0.5127726", "0.5126562", "0.5126562", "0.5126562", "0.5099306", "0.50886893", "0.5046264", "0.50458455", "0.50431603", "0.50329673", "0.50293833", "0.50124717", "0.49997348", "0.49674308", "0.49674308", "0.49674308", "0.49662903", "0.49629956", "0.4931689", "0.49071592", "0.48876736", "0.48876736", "0.48846462", "0.4869018", "0.48654372", "0.48629147", "0.48620376", "0.48600775", "0.48597762", "0.48437363", "0.48229665", "0.48202908", "0.48100162", "0.48035932", "0.47971785", "0.4795508", "0.47899392" ]
0.53197354
53
Handle requests to insert a new row.
@Override public Uri insert(Uri uri, ContentValues values) { int uriType = sURIMatcher.match(uri); SQLiteDatabase sqlDB = myDB.getWritableDatabase(); long id = 0; switch (uriType) { case ACTIVITY: id = sqlDB.insert(ActivityContract.ActivityEntry.TABLE_NAME, null, values); break; default: throw new IllegalArgumentException("Unknown URI: " + uri); } getContext().getContentResolver().notifyChange(uri, null); return Uri.parse(ActivityContract.ActivityEntry.TABLE_NAME + "/" + id); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void doInsert(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException {\n\t\t\r\n\t}", "public void insert() throws SQLException;", "public void insertRow() throws SQLException\n {\n m_rs.insertRow();\n }", "public String onNewRow(Recordset rs, String rowTemplate) \r\n\t\tthrows Throwable;", "public long insertNewRow(){\n ContentValues initialValues = new ContentValues();\n initialValues.put(KEY_PAIN_ASSESSMENT_NUM, \"0\");\n initialValues.put(KEY_ANALGESIC_PRES_NUM, \"0\");\n initialValues.put(KEY_ANALGESIC_ADMIN_NUM, \"0\");\n initialValues.put(KEY_NERVE_BLOCK_NUM, \"0\");\n initialValues.put(KEY_ALTERNATIVE_PAIN_RELIEF_NUM, \"0\");\n long id = db.insert(DATA_TABLE, null, initialValues);\n\n String value = MainActivity.deviceID + \"-\" + id;\n updateFieldData(id, KEY_UNIQUEID, value);\n\n return id;\n }", "public void dbAddRow(EdaContext xContext)\n\tthrows IcofException{\n\n\t\t// Get the next id for this new row.\n\t\tsetNextIdStatement(xContext);\n\t\tlong id = getNextBigIntId(xContext);\n\t\tcloseStatement(xContext);\n\n\t\t// Create the SQL query in the PreparedStatement.\n\t\tsetAddRowStatement(xContext);\n\t\ttry {\n\t\t\tgetStatement().setLong(1, id);\n\t\t\tgetStatement().setLong(2, getFromChangeReq().getId());\n\t\t\tgetStatement().setLong(3, getToChangeReq().getId());\n\t\t\tgetStatement().setString(4, getRelationshipb());\n\t\t}\n\t\tcatch(SQLException trap) {\n\t\t\tIcofException ie = new IcofException(this.getClass() .getName(),\n\t\t\t \"dbAddRow()\",\n\t\t\t IcofException.SEVERE,\n\t\t\t \"Unable to prepare SQL statement.\",\n\t\t\t IcofException.printStackTraceAsString(trap) + \n\t\t\t \"\\n\" + getQuery());\n\t\t\txContext.getSessionLog().log(ie);\n\t\t\tthrow ie;\n\t\t}\n\n\t\t// Run the query.\n\t\tif (! insertRow(xContext)) {\n\t\t\tIcofException ie = new IcofException(this.getClass() .getName(),\n\t\t\t \"dbAddRow()\",\n\t\t\t IcofException.SEVERE,\n\t\t\t \"Unable to insert new row.\\n\",\n\t\t\t \"QUERY: \" + getQuery());\n\t\t\txContext.getSessionLog().log(ie);\n\t\t\tthrow ie;\n\t\t}\n\n\t\t// Close the PreparedStatement.\n\t\tcloseStatement(xContext);\n\n\t\t// Load the data for the new row.\n\t\tsetId(id);\n\t\tdbLookupById(xContext); \n\n\t}", "int insert(Assist_table record);", "<K, V, R extends IResponse> R insert(IInsertionRequest<K, V> insertionRequest);", "int insert(SelectUserRecruit record);", "int insert(TbComEqpModel record);", "int insert(ParseTableLog record);", "private long insertRow(){\n // Mukund Inserted New Table here\n mDbHelper = new ClientDbHelper(this);\n SQLiteDatabase db = mDbHelper.getWritableDatabase();\n\n // Create a new map of values, where column names are the keys\n ContentValues values = new ContentValues();\n values.put(ClientEntry.COLUMN_CLIENT_NAME, name);\n values.put(ClientEntry.COLUMN_CLIENT_GENDER, mGender);\n values.put(ClientEntry.COLUMN_CLIENT_SOCIETY, society);\n values.put(ClientEntry.COLUMN_CLIENT_ADDRESS, address);\n values.put(ClientEntry.COLUMN_CLIENT_PHONE, phone);\n //values.put(ClientEntry.COLUMN_CLIENT_EMAIL, emailString);\n\n // Insert the new row, returning the primary key value of the new row\n long newRowId = db.insert(ClientEntry.TABLE_NAME, null, values);\n\n\n Log.v(\"ClientActivity\",\"New Row ID: \"+ newRowId);\n return newRowId;\n }", "int insert(AccessModelEntity record);", "int insert(Model record);", "int insert(AdminTab record);", "@Override\n protected Response doInsert(JSONObject data) {\n return null;\n }", "public void insert() {\n\t\tSession session = DBManager.getSession();\n\t\tsession.beginTransaction();\n\t\tsession.save(this);\n\t\tsession.getTransaction().commit();\n\t}", "int insert(Body record);", "int insert(Prueba record);", "int insert(UserInfo record);", "int insert(OrderDetail record);", "int insert(ResourcePojo record);", "int insert(HotelType record);", "int insert(TempletLink record);", "int insert(BaseReturn record);", "public abstract void insert(DataAction data, DataRequest source) throws ConnectorOperationException;", "int insert(TbSerdeParams record);", "public void insertRow() throws SQLException {\n\n try {\n debugCodeCall(\"insertRow\");\n checkClosed();\n if (insertRow == null) { throw Message.getSQLException(ErrorCode.NOT_ON_UPDATABLE_ROW); }\n getUpdatableRow().insertRow(insertRow);\n insertRow = null;\n }\n catch (Exception e) {\n throw logAndConvert(e);\n }\n }", "int insert(Promo record);", "int insert(CraftAdvReq record);", "int insert(OrderDetails record);", "int insert(Forumpost record);", "protected abstract void onAddRow(AjaxRequestTarget target, Form<?> form);", "public G insertar(G entity, HttpServletRequest httpRequest) throws AppException;", "int insert(Massage record);", "public void insert() throws LRException\n\t{\n\t\tDataHRecordData myData=(DataHRecordData)getData();\n\t\tgetBackground();\n\t\ttry { myData.record.save(background.getClient()); }\n\t\tcatch (LDBException e) { setStatus(e); }\n\t}", "void insert(BnesBrowsingHis record) throws SQLException;", "public void insert()\n\t{\n\t}", "int insert(TblMotherSon record);", "int insert(ResultDto record);", "int addRow(RowData row_data) throws IOException;", "int insert(Transaction record);", "int insert(SrHotelRoomInfo record);", "int insert(Commet record);", "int insert(SysCode record);", "int insert(Product record);", "int insert(Cargo record);", "public R onInsert(final R record) {\n // can be overridden.\n return record;\n }", "public void processInsertar() {\n }", "@Override\n\tpublic void insert(String... args) throws SQLException {\n\t\t\n\t}", "int insert(WizardValuationHistoryEntity record);", "int insert(Enfermedad record);", "int insert(Alert record);", "public int insert(){\n\t\tif (jdbcTemplate==null) createJdbcTemplate();\n\t\t jdbcTemplate.update(insertStatement, ticketId,locationNumber);\n\t\treturn ticketId;\n\t}", "int insert(NjProductTaticsRelation record);", "ActionResult onInsert(HopperBlockEntity hopperBlockEntity, BlockPos insertPosition);", "Long insert(EventDetail record);", "int insert(ClOrderInfo record);", "Integer insert(JzAct record);", "int insert(GatewayLog record);", "int insert(ExamineApproveResult record);", "int insert(Question record);", "int insert(Question record);", "int insert(Question record);", "int insert(Question record);", "public int insert(Listing listing) throws SQLException;", "@Override\n\tpublic void insertProcess() {\n\t\t\n\t}", "int insert(GirlInfo record);", "int insertSelective(TbComEqpModel record);", "int insert(Employee record);", "int insert(BPBatchBean record);", "public void onInsert(Statement insert, Connection cx, SimpleFeatureType featureType) throws SQLException {\r\n }", "@Override\n\tpublic void insert() {\n\t\t\n\t}", "int insert(Storydetail record);", "int insert(Tipologia record);", "@Override\r\n\tpublic String insert() {\n\t\treturn \"insert\";\r\n\t}", "int insert(PmPost record);", "int insert(ClinicalData record);", "int insert(EquipmentOrder record);", "int insert(Admin record);", "int insert(Admin record);", "int insert(TestActivityEntity record);", "int insert(Basicinfo record);", "void insert(TbMessage record);", "@RequestMapping(value = \"insert\", method = RequestMethod.POST)\r\n\tpublic String insert(HttpServletRequest request) {\n\t\tint id = Integer.parseInt(request.getParameter(\"id\"));\r\n\t\tString name = request.getParameter(\"name\");\r\n\t\tint marks = Integer.parseInt(request.getParameter(\"marks\"));\r\n\t\t// Create the student\r\n\t\tStudent student = new Student(id, name,marks);\r\n\t\tSystem.out.println(student);\r\n\t\t// insert student to db\r\n\r\n\t\tString res = studentService.insert(student);\r\n\r\n\t\tif (res.equals(\"SUCCESS\"))\r\n\t\t\trequest.setAttribute(\"msg\", \"Record Inserted\");\r\n\t\telse\r\n\t\t\trequest.setAttribute(\"msg\", \"Record Not Inserted\");\r\n\t\treturn \"insert\";\r\n\t}", "int insert(DashboardGoods record);", "int insert(Tourst record);", "void insert(OrderPreferential record) throws SQLException;", "int insert(TestEntity record);", "private void insertButtonActionPerformed(java.awt.event.ActionEvent evt) {// GEN\n // -\n // FIRST\n // :\n // event_insertButtonActionPerformed\n int rowIndex = headerTable.getSelectedRow();\n if (rowIndex > -1) {\n insertRow(rowIndex);\n } else {\n insertRow(_tableModel.getRowCount());\n }\n }", "int insert(QuestionOne record);", "public void moveToInsertRow() throws SQLException\n {\n m_rs.moveToInsertRow();\n }", "int insert(Table2 record);", "@Override\n\tprotected void doPost(HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse) throws ServletException, IOException\n\t{\n\t\tdoDebug(httpServletRequest);\n doSystemMethod(httpServletRequest, httpServletResponse, \"insert\");\n\t}", "int insert(Goods record);", "int insert(LitemallUserFormid record);", "int insert(StudentEntity record);", "public int insert(IEntity entity) throws SQLException;", "int insert(BlogDetails record);", "int insert(Movimiento record);", "int insert(MsgContent record);" ]
[ "0.6402581", "0.6302436", "0.6297354", "0.6179081", "0.61622894", "0.61557114", "0.61540496", "0.61307627", "0.6117499", "0.61020076", "0.6091142", "0.6080949", "0.60745996", "0.60720915", "0.60188377", "0.6015058", "0.5997808", "0.5981079", "0.5979493", "0.59615153", "0.5959734", "0.59466594", "0.59441257", "0.59391564", "0.5932896", "0.5932167", "0.5918611", "0.5917349", "0.5914418", "0.5909379", "0.59087145", "0.5906723", "0.5897111", "0.58967346", "0.5889485", "0.58876675", "0.5885431", "0.58820486", "0.58807486", "0.5877112", "0.58761716", "0.5869912", "0.5863624", "0.5852199", "0.58521646", "0.5836994", "0.58365756", "0.5836457", "0.58359647", "0.5835174", "0.582825", "0.5827844", "0.5823634", "0.5821254", "0.5820228", "0.58181053", "0.5817756", "0.5817544", "0.58136255", "0.5809239", "0.5801777", "0.5782775", "0.5782775", "0.5782775", "0.5782775", "0.5780308", "0.57685614", "0.5765552", "0.5765267", "0.57644826", "0.5763916", "0.57620966", "0.5759143", "0.57529205", "0.5750907", "0.5748101", "0.57469547", "0.5745163", "0.57437646", "0.5743251", "0.5743251", "0.5742023", "0.5737763", "0.57359755", "0.57356775", "0.57353115", "0.57342875", "0.5728845", "0.57284075", "0.57266074", "0.5718413", "0.5718317", "0.57150966", "0.57140785", "0.5712658", "0.57126236", "0.5708897", "0.5706498", "0.5706317", "0.57061", "0.5704511" ]
0.0
-1
Initialize your content provider on startup.
@Override public boolean onCreate() { myDB = new DBHelperActivity(getContext(), null, null, 1); return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@PostConstruct\n public void init() {\n oAuthProviders.registerProvider(this);\n }", "public void initialize() {\n this.loadNewsList();\n }", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_my_act);\n ButterKnife.bind(this);\n init();\n initView();\n initData();\n }", "public void init(ICommonContentExtensionSite config) {\n\t\t\r\n\t}", "@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 public void onCreate() {\n super.onCreate();\n initData();\n }", "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.home_content);\n init();\n }", "@Override\n public void initialize(URL location, ResourceBundle resources) {\n database = App.getDatabase();\n carListView.setItems(App.getDatabase().getCurrentUser().getCarArrayList());\n }", "ProviderManagerExt()\n {\n load();\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}", "@Override\n public void onCreate() {\n initData();\n }", "protected void onInit() {\n\t}", "public void init() {\n\t\tM_log.info(\"initialization...\");\n\t\t\n\t\t// register as an entity producer\n\t\tm_entityManager.registerEntityProducer(this, SakaiGCalendarServiceStaticVariables.REFERENCE_ROOT);\n\t\t\n\t\t// register functions\n\t\tfunctionManager.registerFunction(SakaiGCalendarServiceStaticVariables.SECURE_GCAL_VIEW);\n\t\tfunctionManager.registerFunction(SakaiGCalendarServiceStaticVariables.SECURE_GCAL_VIEW_ALL);\n\t\tfunctionManager.registerFunction(SakaiGCalendarServiceStaticVariables.SECURE_GCAL_EDIT);\n\t\t\n \t\t//Setup cache. This will create a cache using the default configuration used in the memory service.\n \t\tcache = memoryService.newCache(CACHE_NAME);\n\t}", "@Override\n public void initialize(URL url, ResourceBundle rb) {\n// loadDb();\n }", "@Override\n protected void init() {\n viewModel.setNavigator(this);\n setUp();\n subscribeToLiveData();\n\n setUpNotificationUi();\n setUpNotification();\n\n setUpAds();\n\n viewModel.start(getCurrentVersionOfApp());\n }", "private void init() {\r\n\r\n analyticsManager = new xxxxAnalytics(getApplicationContext());\r\n\r\n analyticsSender = new AnalyticsSender(this);\r\n\r\n provider = FeedProviderImpl.getInstance(this);\r\n\r\n feedId = getIntent().getExtras().getInt(Constants.FEED_ID);\r\n if (provider != null) {\r\n friendFeed = provider.getFeed(feedId);\r\n }\r\n\r\n unifiedSocialWindowView = findViewById(R.id.linearLayoutForUnifiedSocialWindow);\r\n\r\n\r\n // Get member contacts.\r\n memberContacts = provider.getContacts(feedId);\r\n\r\n lastDiffs = new LinkedBlockingDeque<Integer>();\r\n }", "public void init()\r\n {\r\n eventPublisher.publishEvent(new CachedContentCleanerCreatedEvent(this));\r\n }", "@Override\n protected void onCreate(@Nullable Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n BusProvider.register(this);\n findViews();\n init();\n getData();\n //customizeActionBar();\n\n loadContact();\n }", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n init();\n }", "public void initialize() {\n // TODO\n }", "@Override\r\n\tpublic void onCreate() {\n\t\tsuper.onCreate();\r\n\t\tdoBindService();\r\n\t\tinitImageLoaderConfig();\r\n\t}", "public void initializeContext(Context context) {\n this.context = context;\n }", "public static void init() {\r\n load();\r\n registerEventListener();\r\n }", "public static void initialize() {\n Security.addProvider(new OAuth2Provider());\n }", "public final void init() {\n onInit();\n }", "public void initialize() {\n // empty for now\n }", "@Override\r\n\tprotected void onCreate(Bundle savedInstanceState) {\r\n\t\tsuper.onCreate(savedInstanceState);\r\n\t\tinit();\r\n\t}", "@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\tsetContentView(R.layout.activity_appmanager);\n\t\tinitView();\n\t\tinitData();\n\t}", "@PostConstruct\n\tprotected void init() {\n\t\tLOGGER.info(\"GalleryModel init Start\");\n\t\tcharacterList.clear();\n\t\ttry {\n\t\t\tif (resource != null && !resource.getPath().contains(\"conf\")) {\n\t\t\t\t\tresolver = resource.getResourceResolver();\n\t\t\t\t\thomePagePath=TrainingHelper.getHomePagePath(resource);\n\t\t\t\t\tif(homePagePath!=null){\n\t\t\t\t\tlandinggridPath = homePagePath;\n\t\t\t\t\tif (!linkNavigationCheck) {\n\t\t\t\t\t\tlinkNavOption = \"\";\n\t\t\t\t\t}\n\t\t\t\t\tcheckLandingGridPath();\n\t\t\t\t\tif (!\"products\".equals(galleryFor)) {\n\t\t\t\t\t\tcharacterList = tileGalleryAndLandingService.getAllTiles(landinggridPath, galleryFor, \"landing\",\n\t\t\t\t\t\t\t\ttrue);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tLOGGER.error(\"Exception Occured\", e);\n\t\t}\n\t\tLOGGER.info(\"GalleryModel init End\");\n\t}", "@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\tsetContentView(R.layout.activity_news);\n\t\tinitView();\n\t}", "@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\tsetContentView(R.layout.activity_contacts);\n\t\tinitView();\n\t}", "private void init() {\n\t\ttv_cd_title = (TextView) contentView.findViewById(R.id.tv_cd_title);\n\t\ttv_cd_content = (TextView) contentView.findViewById(R.id.tv_cd_content);\n\t\tbtn_cd_one = (Button) contentView.findViewById(R.id.btn_cd_one);\n\t\tbtn_cd_two = (Button) contentView.findViewById(R.id.btn_cd_two);\n\t}", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n\n initView();\n }", "@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\tsetContentView(R.layout.main);\n\t\tinit();\n\t}", "private void initializeWithProviderConfiguration() {\n List<JRProvider> socialProviders = mSessionData.getSocialProviders();\n if (socialProviders == null || socialProviders.size() == 0) {\n JREngageError err = new JREngageError(\n \"Cannot load the Publish Activity, no social providers are configured.\",\n JREngageError.ConfigurationError.CONFIGURATION_INFORMATION_ERROR,\n JREngageError.ErrorType.CONFIGURATION_INFORMATION_MISSING);\n mSessionData.triggerPublishingDialogDidFail(err);\n return;\n }\n \n // Configure the properties of the UI\n mActivityObject.shortenUrls(new JRActivityObject.ShortenedUrlCallback() {\n public void setShortenedUrl(String shortenedUrl) {\n mShortenedActivityURL = shortenedUrl;\n \n if (mSelectedProvider == null) return;\n \n if (mSelectedProvider.getSocialSharingProperties().\n getAsBoolean(\"content_replaces_action\")) {\n updatePreviewTextWhenContentReplacesAction();\n } else {\n updatePreviewTextWhenContentDoesNotReplaceAction();\n }\n updateCharacterCount();\n }\n });\n createTabs();\n }", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_chetielist);\n init();\n }", "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.main);\n\n init();\n }", "public ServiceProvider() {\n super();\n setContent(\"\");\n }", "@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\tsetContentView(R.layout.activity_mydetialinfo);\n\t\tinit();\n\t}", "private void init() {\n\t\tinitDesign();\n\t\tinitHandlers();\n\t}", "@Override\r\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\r\n\t\tsetContentView(R.layout.main_layout_holder);\r\n\t\tinitFragments();\r\n\t}", "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.main);\n init();\n }", "public final void init() {\n connectDB();\n\n initMainPanel();\n\n initOthers();\n }", "protected void initialize() {\n \t\n }", "@PostConstruct\n public void initialization() {\n init();\n //setQuestionEditMode(true); //need to initialize question fields\n //addCurrentQuestionsToView(); //initialize view of questions\n //setQuestionEditMode(false);\n }", "@Override\n public void initialize() {\n emissary.core.MetadataDictionary.initialize();\n }", "@Override\r\n public void initialize(URL url, ResourceBundle rb) {\r\n initViews();\r\n }", "public void initialize(){\n\t\t//TODO: put initialization code here\n\t\tsuper.initialize();\n\t\t\n\t}", "private void initDB() {\n dataBaseHelper = new DataBaseHelper(getActivity());\n }", "@Override\n protected void onCreate(Bundle savedInstanceState)\n {\n super.onCreate(savedInstanceState);\n \n requestWindowFeature(Window.FEATURE_NO_TITLE);\n setContentView(R.layout.activity_main);\n \n initPagers();\n \n // initTab();\n initViewPager();\n }", "@Override\n public void onCreate() {\n super.onCreate();\n //是不是第一次打开此app\n// initSplashed();\n //缓存文件\n// initCache();\n\n// initUser();\n\n// initAccessToken();\n }", "@Override\n public void onInit()\n {\n\n }", "@Override\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\n\t\tinit();\n\t}", "protected void initialize()\n\t{\n\t}", "public void init() {\n\t\tdropViewCollections();\n\t\tbuildViewCollections();\n\t\tthis.populateViewCollections();\n\t}", "public void initialize(ServiceProviderConfig config) {\r\n\t\tsetConfiguration(config);\r\n\t}", "private void initialize() {\n\t\tservice = KCSClient.getInstance(this.getApplicationContext(), new KinveySettings(APP_KEY, APP_SECRET));\n\n BaseKinveyDataSource.setKinveyClient(service);\n }", "@Override\n public void onCreate(@Nullable Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n\n setContentView(R.layout.activity_main);\n\n initializeAppBar();\n initializeNavigationDrawer();\n initializeFABMenu();\n }", "@Override\n\tpublic void onInitialize() {\n\t\titemregistry.registeritems();\n\t\tentityregister.registerEntityAttribute();\n\t\tSystem.out.println(\"Project Azure: Starting up...\");\n\n\t}", "@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\n\t\tsetContentView(R.layout.authenticate);\n\t\t\n\t\tinit();\n\t\t\n\t}", "@Override\r\n\tpublic void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\r\n\t\tmInflater = LayoutInflater.from(getActivity());\r\n\t\tmApplication = PushApplication.getInstance();\r\n\t\tmUserDB = mApplication.getUserDB();\r\n\t\tmSpUtil = mApplication.getSpUtil();\r\n\r\n\t\tinitAcountSetView();\r\n\t\tinitFaceEffectView();\r\n\t\tinitExitView();\r\n\t\tinitFeedBackView();\r\n\t\tinitAboutView();\r\n\r\n\t}", "public static void initializeApp(Context context) {\n }", "private void initializeActivity() {\n initializeActionbar();\n initializeActionDrawerToggle();\n setUpNavigationDrawer();\n setStartFragment();\n setFloatingButtonListener();\n setUpShareAppListener();\n hideWindowSoftKeyboard();\n }", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_listing);\n initFragmentAutoInjection();\n\n ButterKnife.bind(this);\n if(savedInstanceState == null) {\n\n // fresh ui\n initUI();\n\n // fragments\n createAllFragments();\n attachFragmentsToFrames();\n\n } else {\n restoreFragmentReferences(savedInstanceState);\n }\n }", "private void initialize(){\r\n \t\taddPositionCategory(EclipseEditorTag.CHAMELEON_CATEGORY);\r\n \t\taddPositionUpdater(new DefaultPositionUpdater(EclipseEditorTag.CHAMELEON_CATEGORY));\r\n \t}", "protected void initialize() {\r\n }", "protected void initialize() {\r\n }", "private void init() {\n\n if (currUserPayments == null) {\n currUserPayments = new ArrayList<>();\n }\n\n networkHelper = NetworkHelper.getInstance(getApplicationContext());\n\n binding = ActivityPaymentsBinding.inflate(getLayoutInflater());\n View view = binding.getRoot();\n setContentView(view);\n\n listHelper = ListHelper.getInstance();\n\n\n getAllExpenses();\n invokeOnClickListeners();\n recyclerViewInit();\n\n }", "public static void init() {\n\n\t\tsnapshot = new SnapshotService();\n\t\tlog.info(\"App init...\");\n\t}", "@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\tinitView();\n\t\tinitData();\n\t\tinitEvent();\n\t}", "@Override\n public void initialize(URL url, ResourceBundle rb) {\n // TODO\n initDrawer();\n }", "@Override\n\tpublic void onCreate(Bundle savedInstanceState)\n\t{\n\t\tsuper.onCreate(savedInstanceState);\n\t\tthis.setContentView(R.layout.mysherpaslist);\n\t\tloadContent();\n\t}", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_main);\n mainLoad();\n onListeningDataChange();\n }", "protected void initialize() {\n\t}", "protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_welcome);\n initData();\n initView();\n }", "protected void initialize() {\n }", "protected void initialize() {\n }", "protected void initialize() {\n }", "protected void initialize() {\n }", "protected void initialize() {\n }", "protected void initialize() {\n }", "protected void initialize() {\n }", "protected void initialize() {\n }", "protected void initialize() {\n }", "protected void initialize() {\n }", "protected void initialize() {\n }", "protected void initialize() {\n }", "protected void initialize() {\n }", "protected void initialize() {\n }", "protected void initialize() {\n }", "protected void initialize() {\n }", "protected void initialize() {\n }", "protected void initialize() {\n }", "public void initialize(Context context) {\n\t\tif (m_Initialized) return;\n\t\tm_Initialized = true;\n\t\t\n\t\t//Get preference and load\n\t\tSharedPreferences Preference = context.getSharedPreferences(PREFERENCE_NAME, Context.MODE_PRIVATE);\n\t\tloadMisc(Preference);\n\t\tloadPlayers(Preference);\n\t}", "@Override\n\tpublic void Initialize()\n\t{\n\t\t// TODO: Add your initialization logic here\n\t\t\n\t\tsuper.Initialize();\n\t}", "public void init() {\n // Perform initializations inherited from our superclass\n super.init();\n // Perform application initialization that must complete\n // *before* managed components are initialized\n // TODO - add your own initialiation code here\n\n // <editor-fold defaultstate=\"collapsed\" desc=\"Creator-managed Component Initialization\">\n // Initialize automatically managed components\n // *Note* - this logic should NOT be modified\n try {\n _init();\n } catch (Exception e) {\n log(\"Page1 Initialization Failure\", e);\n throw e instanceof FacesException ? (FacesException) e: new FacesException(e);\n }\n // </editor-fold>\n // Perform application initialization that must complete\n // *after* managed components are initialized\n // TODO - add your own initialization code here\n\n }", "@Override\n\tpublic void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\t\n\t\tmDataManager = DataManager.getInstance(getActivity().getApplicationContext());\n\t}", "@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\tsetContentView(R.layout.activity_main);\n\t\tinitialiseView();\n\t}", "private void _init(){\n \n context = this;\n \t\n this.countryCodeXml = HelperFunctions.getInstance().parseCountryCodeXml(this);\n \n \t//Initialisieren der EditTexte und Spinner\n this.countrySpinner = (Spinner) findViewById(R.id.countrySpinner);\n addItemsToSpinner();\n countrySpinnerListener();\n this.countryCode = (TextView) findViewById(R.id.countryCode);\n this.numberErrorMessage = (TextView) findViewById(R.id.activity_setup_number_error_message);\n \tthis.telNumber = (EditText) findViewById(R.id.telnummberEditText);\n \tthis.passwordErrorMessage = (TextView) findViewById(R.id.activity_setup_password_error_message);\n this.password = (EditText) findViewById(R.id.passwordEditText);\n passwordInputFilter();\n this.agbCheck = (CheckBox) findViewById(R.id.agbCheck);\n // Hier muss noch eine Default Vlaue gesetzt werden\n //countrySpinner.setSelected(selected)\n this.acceptButton = (Button) findViewById(R.id.AgbConfirmButton);\n acceptButtonListener();\n \n }", "public void init() {\n // Perform initializations inherited from our superclass\n super.init();\n // Perform application initialization that must complete\n // *before* managed components are initialized\n // TODO - add your own initialiation code here\n \n // <editor-fold defaultstate=\"collapsed\" desc=\"Managed Component Initialization\">\n // Initialize automatically managed components\n // *Note* - this logic should NOT be modified\n try {\n _init();\n } catch (Exception e) {\n log(\"Page1 Initialization Failure\", e);\n throw e instanceof FacesException ? (FacesException) e: new FacesException(e);\n }\n \n // </editor-fold>\n // Perform application initialization that must complete\n // *after* managed components are initialized\n // TODO - add your own initialization code here\n }", "@Override\n\tpublic void InitContent(Activity activity,\n\t\t\tContentViewListener contentViewListener) {\n\t\thelpList = activity.getResources().getStringArray(R.array.fh_help_items);\n\t\thelpExpLstV = (ExpandableListView) activity.findViewById(R.id.helpExpandLst);\n\t\thelpExpAdapter = new ExpandableListAdapter();\n\t}" ]
[ "0.6460292", "0.6394149", "0.6381021", "0.6302266", "0.6189392", "0.61304444", "0.607449", "0.60731804", "0.6045762", "0.6020201", "0.5995804", "0.59874004", "0.5982766", "0.5980109", "0.59642565", "0.5954008", "0.5951862", "0.59362805", "0.593415", "0.589719", "0.58963555", "0.58885413", "0.5878689", "0.5874626", "0.58612806", "0.5855523", "0.58428204", "0.5841145", "0.58377177", "0.583347", "0.58333766", "0.58246017", "0.5820817", "0.5819913", "0.58187157", "0.58167046", "0.5815451", "0.58103335", "0.5807907", "0.5807169", "0.5792382", "0.5788614", "0.5782554", "0.5778757", "0.57742715", "0.5769601", "0.57622355", "0.57583266", "0.57563305", "0.57521707", "0.57464504", "0.5746075", "0.5743659", "0.5742244", "0.57187754", "0.5709853", "0.5708932", "0.57078826", "0.57032025", "0.56992275", "0.5686446", "0.5686246", "0.56861234", "0.56846714", "0.5683986", "0.5681219", "0.5681219", "0.5677627", "0.5676631", "0.5673088", "0.567265", "0.5669727", "0.56650376", "0.56626177", "0.5662577", "0.5661449", "0.5661449", "0.5661449", "0.5661449", "0.5661449", "0.5661449", "0.5661449", "0.5661449", "0.5661449", "0.5661449", "0.5661449", "0.5661449", "0.5661449", "0.5661449", "0.5661449", "0.5661449", "0.5661449", "0.5661449", "0.5659807", "0.56562084", "0.5654431", "0.5653942", "0.56534064", "0.56530833", "0.5651932", "0.5645764" ]
0.0
-1
Handle query requests from clients.
@Override public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, String sortOrder) { SQLiteQueryBuilder queryBuilder = new SQLiteQueryBuilder(); queryBuilder.setTables(ActivityContract.ActivityEntry.TABLE_NAME); int uriType = sURIMatcher.match(uri); switch (uriType) { case ACTIVITY_ID: queryBuilder.appendWhere(ActivityContract.ActivityEntry.COLUMN_NAME_ID + "=" + uri.getLastPathSegment()); break; case ACTIVITY: break; default: throw new IllegalArgumentException("Unknown URI"); } Cursor cursor = queryBuilder.query(myDB.getReadableDatabase(), projection, selection, selectionArgs, null, null, sortOrder); cursor.setNotificationUri(getContext().getContentResolver(), uri); return cursor; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract public void onQueryRequestArrived(ClientQueryRequest request);", "private void handleEntitiesQuery(RoutingContext routingContext) {\n LOGGER.debug(\"Info:handleEntitiesQuery method started.;\");\n /* Handles HTTP request from client */\n JsonObject authInfo = (JsonObject) routingContext.data().get(\"authInfo\");\n LOGGER.debug(\"authInfo : \" + authInfo);\n HttpServerRequest request = routingContext.request();\n /* Handles HTTP response from server to client */\n HttpServerResponse response = routingContext.response();\n // get query paramaters\n MultiMap params = getQueryParams(routingContext, response).get();\n MultiMap headerParams = request.headers();\n // validate request parameters\n Future<Boolean> validationResult = validator.validate(params);\n validationResult.onComplete(validationHandler -> {\n if (validationHandler.succeeded()) {\n // parse query params\n NGSILDQueryParams ngsildquery = new NGSILDQueryParams(params);\n if (isTemporalParamsPresent(ngsildquery)) {\n ValidationException ex =\n new ValidationException(\"Temporal parameters are not allowed in entities query.\");\n ex.setParameterName(\"[timerel,time or endtime]\");\n routingContext.fail(ex);\n }\n // create json\n QueryMapper queryMapper = new QueryMapper();\n JsonObject json = queryMapper.toJson(ngsildquery, false);\n Future<List<String>> filtersFuture =\n catalogueService.getApplicableFilters(json.getJsonArray(\"id\").getString(0));\n /* HTTP request instance/host details */\n String instanceID = request.getHeader(HEADER_HOST);\n json.put(JSON_INSTANCEID, instanceID);\n LOGGER.debug(\"Info: IUDX query json;\" + json);\n /* HTTP request body as Json */\n JsonObject requestBody = new JsonObject();\n requestBody.put(\"ids\", json.getJsonArray(\"id\"));\n filtersFuture.onComplete(filtersHandler -> {\n if (filtersHandler.succeeded()) {\n json.put(\"applicableFilters\", filtersHandler.result());\n if (json.containsKey(IUDXQUERY_OPTIONS)\n && JSON_COUNT.equalsIgnoreCase(json.getString(IUDXQUERY_OPTIONS))) {\n executeCountQuery(json, response);\n } else {\n executeSearchQuery(json, response);\n }\n } else {\n LOGGER.error(\"catalogue item/group doesn't have filters.\");\n }\n });\n } else if (validationHandler.failed()) {\n LOGGER.error(\"Fail: Validation failed\");\n handleResponse(response, ResponseType.BadRequestData,\n validationHandler.cause().getMessage());\n }\n });\n }", "public void query()\n\t{\n\t\tJSONObject queryInfo = new JSONObject();\n\t\t\n\t\ttry\n\t\t{\n\t\t\tqueryInfo.put(\"type\", \"query\");\n\t\t\t\n\t\t\tos.println(queryInfo.toString());\n\t\t\tos.flush();\n\t\t\t\n\t\t\tSystem.out.println(\"send query request : \" + queryInfo.toString());\n\t\t}\n\t\tcatch (JSONException e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private void handleTemporalQuery(RoutingContext routingContext) {\n LOGGER.debug(\"Info: handleTemporalQuery method started.\");\n /* Handles HTTP request from client */\n HttpServerRequest request = routingContext.request();\n /* Handles HTTP response from server to client */\n HttpServerResponse response = routingContext.response();\n /* HTTP request instance/host details */\n String instanceID = request.getHeader(HEADER_HOST);\n // get query parameters\n MultiMap params = getQueryParams(routingContext, response).get();\n MultiMap headerParams = request.headers();\n // validate request params\n Future<Boolean> validationResult = validator.validate(params);\n validationResult.onComplete(validationHandler -> {\n if (validationHandler.succeeded()) {\n // parse query params\n NGSILDQueryParams ngsildquery = new NGSILDQueryParams(params);\n // create json\n QueryMapper queryMapper = new QueryMapper();\n JsonObject json = queryMapper.toJson(ngsildquery, true);\n Future<List<String>> filtersFuture =\n catalogueService.getApplicableFilters(json.getJsonArray(\"id\").getString(0));\n json.put(JSON_INSTANCEID, instanceID);\n LOGGER.debug(\"Info: IUDX temporal json query;\" + json);\n /* HTTP request body as Json */\n JsonObject requestBody = new JsonObject();\n requestBody.put(\"ids\", json.getJsonArray(\"id\"));\n filtersFuture.onComplete(filtersHandler -> {\n if (filtersHandler.succeeded()) {\n json.put(\"applicableFilters\", filtersHandler.result());\n if (json.containsKey(IUDXQUERY_OPTIONS)\n && JSON_COUNT.equalsIgnoreCase(json.getString(IUDXQUERY_OPTIONS))) {\n executeCountQuery(json, response);\n } else {\n executeSearchQuery(json, response);\n }\n } else {\n LOGGER.error(\"catalogue item/group doesn't have filters.\");\n }\n });\n } else if (validationHandler.failed()) {\n LOGGER.error(\"Fail: Bad request;\");\n handleResponse(response, ResponseType.BadRequestData,\n validationHandler.cause().getMessage());\n }\n });\n\n }", "void filterQuery(ServerContext context, QueryRequest request, QueryResultHandler handler,\n RequestHandler next);", "private Collection<Record> handleRequest(SearchRequest request) {\n\t\tCollection<Record> resultSet = getResults(request.getQuery());\n\t\treturn resultSet;\n\t}", "@Override\r\n\tpublic void handleRequest(){\r\n\r\n\t\ttry {\r\n\t\t\t_inFromClient = new ObjectInputStream(_socket.getInputStream());\r\n\t\t\t_outToClient = new ObjectOutputStream(_socket.getOutputStream());\r\n\t\t _humanQuery = (String) _inFromClient.readObject();\r\n\t\t _outToClient.writeObject(manageCommunication());\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (ClassNotFoundException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} \r\n\t}", "public abstract void handleClient(Client conn);", "protected abstract void onQueryStart();", "void queryPoint(JsonObject query, Handler<AsyncResult<JsonArray>> resultHandler);", "void clientThreadQueryResult(String queryId, Thread thread);", "private QueryResult performMappedQuery() throws VizException {\n\n if (database == null) {\n throw new VizException(\"Database not specified for query\");\n }\n if (query == null) {\n throw new VizException(\"Cannot execute null query\");\n }\n\n QlServerRequest request = new QlServerRequest(query);\n request.setDatabase(database);\n request.setType(QueryType.QUERY);\n request.setParamMap(paramMap);\n\n // set the mode so the handler knows what to do\n if (queryLanguage == null) {\n throw new VizException(\"Query language not specified\");\n } else if (queryLanguage.equals(QueryLanguage.HQL)) {\n request.setLang(QlServerRequest.QueryLanguage.HQL);\n } else {\n request.setLang(QlServerRequest.QueryLanguage.SQL);\n }\n\n // create request object\n QueryResult retVal = null;\n // get result\n AbstractResponseMessage response = (AbstractResponseMessage) ThriftClient\n .sendRequest(request);\n\n if (response instanceof ResponseMessageGeneric) {\n retVal = (QueryResult) ((ResponseMessageGeneric) response)\n .getContents();\n\n } else if (response instanceof ResponseMessageError) {\n ResponseMessageError rme = (ResponseMessageError) response;\n VizServerSideException innerException = new VizServerSideException(\n rme.toString());\n throw new VizServerSideException(rme.getErrorMsg(), innerException);\n }\n\n return retVal;\n }", "<K, R extends IResponse> R query(IQueryRequest<K> queryRequest);", "private void query(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tString name = req.getParameter(\"name\");\n\t\tString phone = req.getParameter(\"phone\");\n\t\tString address = req.getParameter(\"address\");\n\t\t\n\t\t//2. encapsulate parameters into a CriteriaCustomer object\n\t\tCriteriaCustomer cc = new CriteriaCustomer(name, address, phone);\n\t\t//3. call customerDAO.getListByCriteria() to retrieve a list of all the customers\n\t\tList<Customer> customers = customerDAO.getListByCriteria(cc);\n\t\t//4. put the list into request\n\t\treq.setAttribute(\"customers\", customers);\n\t\t//5. forward to index.jsp\n\t\treq.getRequestDispatcher(\"/index.jsp\").forward(req, resp);\n\t}", "private @NotNull Writer handleUserTask(@NotNull Message message, @NotNull SocketChannel clientChannel)\n throws InvalidQueryException {\n logger.debug(\"handling user query\");\n try (ByteArrayInputStream byteArrayInputStream = new ByteArrayInputStream(message.getData());\n ObjectInputStream input = new ObjectInputStream(byteArrayInputStream)) {\n\n int typeOfQuery = input.readInt();\n Path path = Paths.get((String) input.readObject());\n\n if (typeOfQuery == NetworkConstants.LIST_QUERY) {\n logger.debug(\"User asked for list directory\");\n return new ListQueryHandler(path).handleListQuery(clientChannel);\n }\n if (typeOfQuery == NetworkConstants.GET_QUERY) {\n logger.debug(\"User asked for get file\");\n return new GetQueryHandler(path).handleGetQuery(clientChannel);\n }\n } catch (IOException | ClassNotFoundException e) {\n e.printStackTrace();\n }\n\n throw new InvalidQueryException();\n }", "Query query();", "<T extends BaseDto, V extends BaseDto> List<T> executeQuery(String reqResQuery, V req, QueryResultTransformer<T> transformer, Connection conn);", "public void run() {\n List<Map> queries = (List<Map>) server.get(\"queries\");\n Connection connection = null;\n if (queries != null && !queries.isEmpty()) {\n String dbServerDisplayName = (String) server.get(\"displayName\");\n try {\n long timeBeforeConnection = System.currentTimeMillis();\n connection = getConnection();\n long timeAfterConnection = System.currentTimeMillis();\n logger.debug(\"Time taken to get Connection: \" + (timeAfterConnection - timeBeforeConnection));\n\n logger.debug(\"Time taken to get Connection for \" + dbServerDisplayName + \" : \" + (timeAfterConnection - timeBeforeConnection));\n\n if (connection != null) {\n logger.debug(\" Connection successful for server: \" + dbServerDisplayName);\n for (Map query : queries)\n executeQuery(connection, query);\n } else {\n\n logger.debug(\"Null Connection returned for server: \" + dbServerDisplayName);\n }\n\n } catch (SQLException e) {\n logger.error(\"Error Opening connection\", e);\n status = false;\n } catch (ClassNotFoundException e) {\n logger.error(\"Class not found while opening connection\", e);\n status = false;\n } catch (Exception e) {\n logger.error(\"Error collecting metrics for \"+dbServerDisplayName, e);\n status = false;\n }\n finally {\n try {\n if (connection != null) {\n closeConnection(connection);\n }\n } catch (Exception e) {\n logger.error(\"Issue closing the connection\", e);\n }\n }\n }\n }", "<Q, R> CompletableFuture<QueryResponseMessage<R>> query( QueryMessage<Q, R> query );", "Query queryOn(Connection connection);", "Message handle(Message query, String kind);", "public void handlePostEntitiesQuery(RoutingContext routingContext) {\n LOGGER.debug(\"Info: handlePostEntitiesQuery method started.\");\n HttpServerRequest request = routingContext.request();\n JsonObject requestJson = routingContext.getBodyAsJson();\n LOGGER.debug(\"Info: request Json :: ;\" + requestJson);\n HttpServerResponse response = routingContext.response();\n MultiMap headerParams = request.headers();\n // validate request parameters\n Future<Boolean> validationResult = validator.validate(requestJson);\n validationResult.onComplete(validationHandler -> {\n if (validationHandler.succeeded()) {\n // parse query params\n NGSILDQueryParams ngsildquery = new NGSILDQueryParams(requestJson);\n QueryMapper queryMapper = new QueryMapper();\n JsonObject json = queryMapper.toJson(ngsildquery, requestJson.containsKey(\"temporalQ\"));\n Future<List<String>> filtersFuture =\n catalogueService.getApplicableFilters(json.getJsonArray(\"id\").getString(0));\n String instanceID = request.getHeader(HEADER_HOST);\n json.put(JSON_INSTANCEID, instanceID);\n requestJson.put(\"ids\", json.getJsonArray(\"id\"));\n LOGGER.debug(\"Info: IUDX query json : ;\" + json);\n filtersFuture.onComplete(filtersHandler -> {\n if (filtersHandler.succeeded()) {\n json.put(\"applicableFilters\", filtersHandler.result());\n if (json.containsKey(IUDXQUERY_OPTIONS)\n && JSON_COUNT.equalsIgnoreCase(json.getString(IUDXQUERY_OPTIONS))) {\n executeCountQuery(json, response);\n } else {\n executeSearchQuery(json, response);\n }\n } else {\n LOGGER.error(\"catalogue item/group doesn't have filters.\");\n }\n });\n } else if (validationHandler.failed()) {\n LOGGER.error(\"Fail: Bad request\");\n handleResponse(response, ResponseType.BadRequestData,\n validationHandler.cause().getMessage());\n }\n });\n }", "void contactQueryResult(String queryId, Contact contact);", "@Override\r\n\tpublic void queryResult(queryResultRequest request, StreamObserver<queryResultResponse> responseObserver) {\n\t\tsuper.queryResult(request, responseObserver);\r\n\t}", "@Override\n\tpublic void queryData() {\n\t\t\n\t}", "public abstract void callback_query(CallbackQuery cq);", "@Override\n protected void callCallback(ResponseBuffers responseBuffers, Throwable throwableFromCallback) {\n try {\n if (throwableFromCallback != null) {\n throw throwableFromCallback;\n }\n if (responseBuffers.getReplyHeader().isQueryFailure()) {\n BsonDocument errorDocument = new ReplyMessage<BsonDocument>(responseBuffers, new BsonDocumentCodec(), this.getRequestId()).getDocuments().get(0);\n throw ProtocolHelper.getQueryFailureException(errorDocument, this.getServerAddress());\n }\n ReplyMessage replyMessage = new ReplyMessage(responseBuffers, QueryProtocol.this.resultDecoder, this.getRequestId());\n QueryResult result = new QueryResult(QueryProtocol.this.namespace, replyMessage.getDocuments(), replyMessage.getReplyHeader().getCursorId(), this.getServerAddress());\n QueryProtocol.this.sendQuerySucceededEvent(this.connectionDescription, this.startTimeNanos, this.message, this.isExplainEvent, responseBuffers, result);\n if (LOGGER.isDebugEnabled()) {\n LOGGER.debug(String.format(\"Query results received %s documents with cursor %s\", result.getResults().size(), result.getCursor()));\n }\n this.callback.onResult(result, null);\n }\n catch (Throwable t) {\n if (QueryProtocol.this.commandListener != null) {\n ProtocolHelper.sendCommandFailedEvent(this.message, QueryProtocol.FIND_COMMAND_NAME, this.connectionDescription, System.nanoTime() - this.startTimeNanos, t, QueryProtocol.this.commandListener);\n }\n this.callback.onResult(null, t);\n }\n finally {\n try {\n if (responseBuffers != null) {\n responseBuffers.close();\n }\n }\n catch (Throwable t1) {\n LOGGER.debug(\"GetMore ResponseBuffer close exception\", t1);\n }\n }\n }", "public FutureResultWithAnswer queryToServer(Query query) throws IOException, Net4CareException;", "void runQueries();", "@Override\n\t\tpublic void handleMessage(Message msg) {\n\t\t\tsuper.handleMessage(msg);\n\t\t\tswitch (msg.what) {\n\t\t\tcase 911:\n\t\t\t\tqueryMsg();\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t}", "public void Query() {\n }", "public void queryServer() {\n final String lastTime = \"2020-11-17 00:00:00\";\n final OkHttpClient client = HttpHelper.getOkHttpClient();\n final RequestBody requestBody = new FormBody.Builder()\n .add(Config.STR_TIME, lastTime)\n .build();\n final Request request = new okhttp3.Request.Builder()\n .post(requestBody)\n .url(Config.URL_TALK_QUERY)\n .build();\n client.newCall(request).enqueue(new Callback() {\n @Override\n public void onFailure(@NonNull Call call, @NonNull IOException e) {\n uniApiResult.postValue(new UniApiResult.Fail(Config.ERROR_NET, Arrays.toString(e.getStackTrace())));\n Log.e(\"Contacts\", Config.ERROR_NET);\n }\n @Override\n public void onResponse(@NonNull Call call, @NonNull Response response) throws IOException {\n if( !response.isSuccessful() ) {\n uniApiResult.postValue(new UniApiResult.Fail(Config.ERROR_NET, String.valueOf(response.code())));\n return;\n }\n assert response.body() != null;\n String resJson = response.body().string();\n try {\n JSONObject jsonO = new JSONObject(resJson);\n uniApiResult.postValue(new UniApiResult<>(jsonO.getString(Config.STR_STATUS), \"\"));\n\n JSONArray jsonA = (JSONArray) jsonO.get(Config.STR_STATUS_DATA);\n// List<TMessage> newTMessages = new ArrayList<>();\n for (int i = 0; i < jsonA.length(); ++i) {\n TMessage message = TMessage.jsonToTMessage((JSONObject) jsonA.get(i));\n if (!tMessageDao.isMessageExist(message.getAccount1(), message.getAccount2(),message.getSendTime())) {\n tMessageDao.InsertMessage(message);\n// newTMessages.add(message);\n }\n }\n// TMessageList.postValue(newTMessages);\n ThreadPoolHelper.getInstance().execute(TalkViewModel.this::queryLocalMessageList);\n //new Thread(TalkViewModel.this::queryLocalMessageList).start();\n } catch (JSONException e) {\n e.printStackTrace();\n uniApiResult.postValue(new UniApiResult.Fail(Config.ERROR_UNKNOWN, Arrays.toString(e.getStackTrace())));\n }\n }\n });\n }", "@Override\n public QueryResult<T> execute(InternalConnection connection) {\n if (LOGGER.isDebugEnabled()) {\n LOGGER.debug(String.format(\"Sending query of namespace %s on connection [%s] to server %s\", this.namespace, connection.getDescription().getConnectionId(), connection.getDescription().getServerAddress()));\n }\n long startTimeNanos = System.nanoTime();\n QueryMessage message = null;\n boolean isExplain = false;\n ByteBufferBsonOutput bsonOutput = new ByteBufferBsonOutput(connection);\n try {\n message = this.createQueryMessage(connection.getDescription());\n message.encode(bsonOutput, NoOpSessionContext.INSTANCE);\n isExplain = this.sendQueryStartedEvent(connection, message, bsonOutput, message.getEncodingMetadata());\n connection.sendMessage(bsonOutput.getByteBuffers(), message.getId());\n }\n finally {\n bsonOutput.close();\n }\n ResponseBuffers responseBuffers = connection.receiveMessage(message.getId());\n try {\n if (responseBuffers.getReplyHeader().isQueryFailure()) {\n BsonDocument errorDocument = new ReplyMessage<BsonDocument>(responseBuffers, new BsonDocumentCodec(), message.getId()).getDocuments().get(0);\n throw ProtocolHelper.getQueryFailureException(errorDocument, connection.getDescription().getServerAddress());\n }\n ReplyMessage<T> replyMessage = new ReplyMessage<T>(responseBuffers, this.resultDecoder, message.getId());\n QueryResult<T> result = new QueryResult<T>(this.namespace, replyMessage.getDocuments(), replyMessage.getReplyHeader().getCursorId(), connection.getDescription().getServerAddress());\n this.sendQuerySucceededEvent(connection.getDescription(), startTimeNanos, message, isExplain, responseBuffers, result);\n LOGGER.debug(\"Query completed\");\n QueryResult<T> queryResult = result;\n responseBuffers.close();\n return queryResult;\n }\n catch (Throwable throwable) {\n try {\n responseBuffers.close();\n throw throwable;\n }\n catch (RuntimeException e) {\n if (this.commandListener != null) {\n ProtocolHelper.sendCommandFailedEvent(message, FIND_COMMAND_NAME, connection.getDescription(), System.nanoTime() - startTimeNanos, e, this.commandListener);\n }\n throw e;\n }\n }\n }", "private void onQueryEventFunctionality() {\n hideKeypad();\n // Find a reference to the {@link EditText} in the layout\n EditText bookQuery = (EditText) findViewById(R.id.book_search_text);\n // Get the user typed text from the EditText view\n mbookQueryText = bookQuery.getText().toString();\n // Make the final URL, based on user input, to be used to fetch data from the server\n mGBooksRequestUrl = makeUrlFromInput(mbookQueryText);\n\n // Get a reference to the ConnectivityManager to check state of network connectivity\n ConnectivityManager connMgr = (ConnectivityManager)\n getSystemService(Context.CONNECTIVITY_SERVICE);\n\n // Get details on the currently active default data network\n NetworkInfo networkInfo = connMgr.getActiveNetworkInfo();\n\n mEmptyStateTextView.setVisibility(GONE);\n\n //Show the progress indicator\n View loadingIndicator = findViewById(R.id.loading_indicator);\n loadingIndicator.setVisibility(VISIBLE);\n\n // If there is a network connection, fetch data\n if (networkInfo != null && networkInfo.isConnected()) {\n // Get a reference to the LoaderManager, in order to interact with loaders.\n LoaderManager loaderManager = getLoaderManager();\n // Initialize the loader. Pass in the int ID constant defined above and pass in null for\n // the bundle. Pass in this activity for the LoaderCallbacks parameter (which is valid\n // because this activity implements the LoaderCallbacks interface).\n loaderManager.restartLoader(BOOK_LOADER_ID, null, BookActivity.this);\n } else {\n // Otherwise, display error\n // First, hide loading indicator so error message will be visible\n loadingIndicator.setVisibility(View.GONE);\n\n // Update empty state with no connection error message\n mEmptyStateTextView.setText(R.string.no_internet_connection);\n }\n }", "public List<QueryHit> processQuery(String query) {\n // Do something!\n System.err.println(\"Processing query '\" + query + \"'\");\n return new ArrayList<QueryHit>();\n }", "void requestReceived( C conn ) ;", "public interface QueryService {\n @GET(API.URL_CLOCK)\n Call<String> query(@Path(\"page\") int page);\n\n @GET(API.URL_LEAVE)\n Call<String> getLeaveData();\n\n @GET(API.URL_BROADCAST_DETAIL)\n Call<String> getBroadcastData(@Query(\"mid\") String mid);\n}", "protected abstract List performQuery(String[] ids);", "void handleRequest();", "public QueryResponse query(SolrParams params) throws SolrServerException, IOException {\n return new QueryRequest(params).process(this);\n }", "public void handleMessageFromClient (Object msg, ConnectionToClient client)\n {\n\t int i=0;\n\t int scanCode=0;\n\t ArrayList<Object> answer = new ArrayList<Object>();\n\t \n\t String command = (String)( ((ArrayList<Object>)msg).get(0) );\n\t \t \n\t scanCode = convertToScanCode( command );\n\t \n\t String logLine = new String (client.getName() + \" \" + command + \" \"); \n\t logger.addString(logLine);\n\t\n\t switch (scanCode)\n\t {\n\t \n\t case(001):\n\t\t {\n\t\t\ttry {\n\t\t\t\t\t\n\t\t\t\t\t\tanswer = functions.login( (UserEntity) ((ArrayList<Object>)msg).get(1) );\n\t\t\t\t\t\n\t\t\t\t\t\tclient.sendToClient(answer);\n\n\t\t\t\t\t}catch (IOException 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\tbreak;\n\t\t\t\t\n\t\t }\n\t\t \n\t case(002):\n\t\t {\n\t\t\t\n\t\n\t\t\t String userID = new String((String) ((ArrayList<Object>)msg).get(1));\n\t\t\t answer = functions.getInfo(userID);\n\t\t\t try {\n\t\t\t\tclient.sendToClient(answer);\n\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\t\tbreak;\n\t\t }\n\t\t \n\t case(003):\n\t {\n\t \tRequestEntity request= (RequestEntity) ((ArrayList<Object>)msg).get(1);\n\t \t//int fileLength= (int) ((ArrayList<Object>)msg).get(3);\n\t \tint fileLength= Integer.parseInt((((ArrayList<Object>)msg).get(3).toString()));\n\t \tbyte[] bytes= (byte[]) ((ArrayList<Object>)msg).get(2);\t\t\n\t\tanswer = functions.request( (RequestEntity) ((ArrayList<Object>)msg).get(1) );\n\t \tif(fileLength>0){\n\t \t\tfunctions.uploadFile(request, bytes, fileLength);\n\t \t}\n\t\ttry {\n\t\t\tclient.sendToClient(answer);\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\t\tbreak;\n\t }\n\t\t \n\t case(004):\n\t\t {\n\t\t\t \n\t\t \tanswer = functions.getListOfColumn(\"systeminfo\", \"Description\", \"listOfSystems\"); // General reusable method\n\t\t\t try {\n\t\t\t\tclient.sendToClient(answer);\n\t\t\t} catch (IOException e) \n\t\t\t{\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t//e.printStackTrace();\n\t\t\t}\n\t\t\t\tbreak;\n\t\t }\n\t\t\n\n\t case(007):\n\t {\n\t\t\n\t\t String userID = new String((String) ((ArrayList<Object>)msg).get(1));\n\t\t answer = functions.getRequestHistory(userID);\n\t\t try {\n\t\t\tclient.sendToClient(answer);\n\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\t//e.printStackTrace();\n\t\t}\n\t\t\tbreak;\n\t }\n\t \n\t case(8):\n\t {\n\t\t\n\t\t String requestID = new String((String) ((ArrayList<Object>)msg).get(1));\n\t\t answer = functions.getRequest(requestID);\n\t\t try {\n\t\t\tclient.sendToClient(answer);\n\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\t//e.printStackTrace();\n\t\t}\n\t\t\tbreak;\n\t }\n\t case(9):\n\t {\n\t\t \n\t\t\n\t\t answer = functions.getReq((String)( ((ArrayList<Object>)msg).get(1)));\n\t\t try {\n\t\t\tclient.sendToClient(answer);\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\t\tbreak;\n\t\t }\n\t case(102):\n\t {\n\t\t\n\t\t \n\t\t\n\t\t String userID = new String((String) ((ArrayList<Object>)msg).get(1));\n\t\t String currentStatus= new String((String) ((ArrayList<Object>)msg).get(2));\n\t\t \n\t\t \n\t\t answer = functions.getlistOfRequests(userID,currentStatus);\n\t\t try {\n\t\t\t \n\t\t\t \n\t\t\tclient.sendToClient(answer);\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\t\t}\n\t\t\tbreak;\n\t }\n case(101):\n {\n\t scanCode=000;\n\t String request = new String((String) ((ArrayList<Object>)msg).get(1));\n\t String days = new String((String) ((ArrayList<Object>)msg).get(2));\n\t String newStatus= new String((String) ((ArrayList<Object>)msg).get(3));\n\t answer = functions.setTaskDuration(request,days,newStatus);\n\t try { \n\t\tclient.sendToClient(answer);\n\t} catch (IOException e) {\n\t\t// TODO Auto-generated catch block\n\t//\te.printStackTrace();\n\t}\n\t\tbreak;\n }\n\n \n case(302):\n { \n\t\t\n \tString assID = new String((String) ((ArrayList<Object>)msg).get(1));\t\n \tanswer = functions.getReviewAndDecision(assID); \n \n \t\t try {\n \t\t\tclient.sendToClient(answer);\n \t\t} catch (IOException e)\n \t\t{\n \t\t//\te.printStackTrace();\n \t\t}\n \t\t\tbreak;\n }\n \n case(303):\n { \n \tString requestID = new String((String) ((ArrayList<Object>)msg).get(1));\n \tString discussionLog = new String((String) ((ArrayList<Object>)msg).get(2));\n \tanswer = functions.setValueByRequestID(\"reviewanddecision\", \"reviewAndDecision\", \"reqID\", requestID, discussionLog, \"discussionLogAnswer\" ); \n \t\n \t\t try {\n \t\t\tclient.sendToClient(answer);\n \t\t} catch (IOException e)\n \t\t{\n \t\t\t//e.printStackTrace();\n \t\t}\n \t\t\tbreak;\n }\n \n case(304):\n\t {\n\t\t\n\t\t String assessmentID = new String((String) ((ArrayList<Object>)msg).get(1));\n\t\t answer = functions.getAssessment(assessmentID);\n\t\t try {\n\t\t\tclient.sendToClient(answer);\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\t\t\tbreak;\n\t }\n \n case(200):\n {\n\t String userID = new String((String) ((ArrayList<Object>)msg).get(1));\n\t String currentStatus= new String((String) ((ArrayList<Object>)msg).get(2));\n\t String Elid = (String) ((ArrayList<Object>)msg).get(3);\n\t String table = (String) ((ArrayList<Object>)msg).get(4);\n\t answer = functions.getlistOfExRequests(userID,currentStatus,Elid,table);\n\t try {\n\t\tclient.sendToClient(answer);\n\t} catch (IOException e) {\n\t\t//e.printStackTrace();\n\t}\n\t\tbreak;\n }\n \n case(305):\n { \n \t\n \tanswer = functions.getRequestsWithTwoValues(\"request\", \"Status\", \"Rid\", \"5\", \"6\", \"reviewableRequests\"); \n\t\t try {\n\t\t\tclient.sendToClient(answer);\n\t\t} catch (IOException e)\n\t\t{\n\t\t\t//e.printStackTrace();\n\t\t}\n\t\t\tbreak;\n }\n \n case(307):\n { \n\t \tString requestID = new String((String) ((ArrayList<Object>)msg).get(1));\n\t \tString discussionLog = new String((String) ((ArrayList<Object>)msg).get(2));\n \tanswer = functions.insertValuesToReviewAndDecision (requestID, discussionLog ); \n\t\t try {\n\t\t\tclient.sendToClient(answer);\n\t\t} catch (IOException e)\n\t\t{\n\t\t\t//e.printStackTrace();\n\t\t}\n\t\t\tbreak;\n }\n \n case(308):\n { \n\t \tString requestID = new String((String) ((ArrayList<Object>)msg).get(1));\n \tanswer = functions.convertRequestIDtoAssessmentID(requestID); \n\t\t try {\n\t\t\tclient.sendToClient(answer);\n\t\t} catch (IOException e)\n\t\t{\n\t\t\t//e.printStackTrace();\n\t\t}\n\t\t\tbreak;\n }\n \n case(309):\n\t {\n\t\t\n\t\t String requestID = new String((String) ((ArrayList<Object>)msg).get(1));\n\t\t answer = functions.getRequest(requestID);\n\t\t try {\n\t\t\tclient.sendToClient(answer);\n\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\t//e.printStackTrace();\n\t\t}\n\t\t\tbreak;\n\t }\n case(310):\n {\n\t\n\t\n\t answer = functions.getAss();\n\t try {\n\t\tclient.sendToClient(answer);\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\t//e.printStackTrace();\n\t\t}\n\t\t\tbreak;\n\t }\n\t \n\n case(201):\n {\n\t String code = ((String)((ArrayList<Object>)msg).get(0));\n\t String request = new String((String) ((ArrayList<Object>)msg).get(1));\n\t String det= new String((String) ((ArrayList<Object>)msg).get(2));\n\t String newStatus = (String) ((ArrayList<Object>)msg).get(4);\n\t functions.changeStatus(request, newStatus);\n\t int req = Integer.parseInt(request);\n\t answer = functions.getExeccutionEntity(code,req);\n\t if (answer.get(1).equals(\"Valid\"))\n\t {\n\t\t answer = functions.updateExecutedReq(code, request, det);\n\t }\n\t else{\n\t\t answer = functions.enterNewExecutionRecord(code, request, det, \"no\");\n\t }\n\t if(!((ArrayList<Object>)msg).get(5).equals(\"nothing\"))\n\t {\n\t\t ArrayList<Object> ex = new ArrayList<Object>();\n\t\t String code1=((String)((ArrayList<Object>)msg).get(5));\n\t\t int number = Integer.parseInt((((ArrayList<Object>)msg).get(6)).toString());\n\t\t RequestEntity en = ((RequestEntity)((ArrayList<Object>)msg).get(7));\n\t\t String status = ((String)((ArrayList<Object>)msg).get(8));\n\t\t String pid1 = ((String)((ArrayList<Object>)msg).get(9));\n\t\t ex = functions.fillInExceeded(code1,en.getRID(),en.getUid(),number,status);\n\t\t ArrayList<Object> eleader = functions.getUsers(\"getEleader\",pid1);\n\t\t if(eleader.get(1).equals(\"Valid\"))\n\t\t {\n\t\t\t EmailEntity eleMail = (EmailEntity) eleader.get(2);\n\t\t\t String mail = eleMail.getMail();\n\t\t\t SendMailSSL.SendEmail(mail, \"Ass' exceeded\", \"For your notice ! the ass number\" + request + \"have Exceeded!\" );\n\t\t\t SendMailSSL.SendEmail(\"braudeSupervisor@gmail.com\",\"Ass' exceeded\", \"For your notice ! the ass number\"+request + \"have Exceeded!\");\n\t\t\t SendMailSSL.SendEmail(\"no1984name@hotmail.com\",\"Ass' exceeded\", \"For your notice ! the ass number\" + request + \"have Exceeded!\");\n\t\t }\n\t\t \n\t\t \n\t\t answer.add(ex);\n\t }\n\t else\t// was put in order not to check out of bounds place .\n\t {\n\t\t ArrayList<Object> ex = new ArrayList<Object>();\n\t\t String code1 = \"fillInExceeded\";\n\t\t String Valid = \"notValid\";\n\t\t ex.add(code1);\n\t\t ex.add(Valid);\n\t\t answer.add(ex);\n\t }\n\t try {\n\t\tclient.sendToClient(answer);\n\t} catch (IOException e) {\n\t\t// TODO Auto-generated catch block\n\t\t//e.printStackTrace();\n\t}\n\t\tbreak; \n }\n \n case(900):\n { \n\t \tExtendEntity deadlineRequest = ((ExtendEntity) ((ArrayList<Object>)msg).get(1));\n \tanswer = functions.extendDeadlineRequest(deadlineRequest); \n\t\t try {\n\t\t\tclient.sendToClient(answer);\n\t\t} catch (IOException e)\n\t\t{\n\t\t\t//e.printStackTrace();\n\t\t}\n\t\t\tbreak;\n }\n\t \n case(901):\n { \n\t \t\n \tanswer.add(\"extentionRequestWasSent\");\n\t\t try {\n\t\t\tclient.sendToClient(answer);\n\t\t} catch (IOException e)\n\t\t{\n\t\t//\te.printStackTrace();\n\t\t}\n\t\t\tbreak;\n }\n \n case(902):\n { \n\t String requestID = ((String)((ArrayList<Object>)msg).get(1));\n\t \tanswer = functions.changeStatus(requestID,\"62\");\n\t\t try {\n\t\t\tclient.sendToClient(answer);\n\t\t} catch (IOException e)\n\t\t{\n\t\t\t//e.printStackTrace();\n\t\t}\n\t\t\tbreak;\n }\n \n\r\n case(903):\n { \n\t String requestID = ((String)((ArrayList<Object>)msg).get(1));\n\t \tanswer = functions.changeStatus(requestID,\"7\");\n\t\t try {\n\t\t\tclient.sendToClient(answer);\n\t\t} catch (IOException e)\n\t\t{\n\t\t//\te.printStackTrace();\n\t\t}\n\t\t\tbreak;\n }\n \n case(904):\n { \n\t String requestID = ((String)((ArrayList<Object>)msg).get(1));\n\t String additionalInformation = ((String)((ArrayList<Object>)msg).get(2));\n\t \n\t \tanswer = functions.requireAdditionalInformation(requestID,additionalInformation);\n\t\t try {\n\t\t\tclient.sendToClient(answer);\n\t\t} catch (IOException e)\n\t\t{\n\t\t//\te.printStackTrace();\n\t\t}\n\t\t\tbreak;\n }\n \n\r\n case(800):\n {\n\r\n\t\n\t String userID = new String((String) ((ArrayList<Object>)msg).get(1));\n\t answer = functions.getUser(userID);\n\t try {\n\t\tclient.sendToClient(answer);\n\n\t} catch (IOException e) {\n\t\t// TODO Auto-generated catch block\n\t\t//e.printStackTrace();\n\t}\n\t\tbreak;\n }\n case(801):\n {\n\t\n\t String reqID = new String((String) ((ArrayList<Object>)msg).get(1));\n\t String ID = new String((String) ((ArrayList<Object>)msg).get(2));\n\t String identity =new String((String) ((ArrayList<Object>)msg).get(3));\n\t String status =new String((String) ((ArrayList<Object>)msg).get(4));\n\t \n\t answer = functions.Pair(reqID,ID,identity,status);\n\t try {\n\t\tclient.sendToClient(answer);\n\n\t} catch (IOException e) {\n\t\t// TODO Auto-generated catch block\n\t\t//e.printStackTrace();\n\t}\n\t\tbreak;\n }\n case(802):\n {\n\t \n\t\n\t answer = functions.getExe();\n\t try {\n\t\tclient.sendToClient(answer);\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\t//e.printStackTrace();\n\t\t}\n\t\t\tbreak;\n\t }\n\t\n case(103):\n {\n\t \n\t AssessmentEntity assessmentEntity=((AssessmentEntity) ((ArrayList<Object>)msg).get(1));\n\t String newStatus= new String((String) ((ArrayList<Object>)msg).get(2));\n\t String requestID= assessmentEntity.getRid();\n\t String userID = functions.requestToUserID(requestID);\n\t String email;\n\t \n\t ArrayList<Object> requestArray = functions.getRequest(requestID);\n\t RequestEntity request = (RequestEntity)(requestArray.get(1));\n\t if (CommonMethods.exceededDeadline(request.getDeadline()))\n\t {\n\t\t functions.fillInExceeded(\"fillInExceeded\", Integer.parseInt(requestID), request.getUid(),CommonMethods.getExceededTime(request.getDeadline()), request.getStatusid());\n\t\t if (!userID.equalsIgnoreCase(\"none\"))\n\t\t {\n\t\t\t ArrayList<Object> user = functions.getInfo(userID);\n\t\t\t email = (String)user.get(3);\n\t\t\tSendMailSSL.SendEmail(email, \"Deadline exceeded!\", \"You have exceeded the deadline for request \" + requestID);\n\t\t }\n\t\t\n\t\t\n\t }\n\t \n\t \n\t answer = functions.setAssessment(assessmentEntity, newStatus);\n\t try {\n\t\t \n\t\t client.sendToClient(answer);\n\t\t \n\t } catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t//\te.printStackTrace();\n\t }\n\t break;\n }\n\n case(202):\n { \n\t \tArrayList<Object> extra = new ArrayList<Object>();\n\t \tString code = new String((String) ((ArrayList<Object>)msg).get(0));\n \t\tString requestID = new String((String) ((ArrayList<Object>)msg).get(1));\n\t\tanswer = functions.getRequest(requestID);\n \tint request = Integer.parseInt(requestID);\n \textra = functions.getExeccutionEntity(code,request);\n \tanswer.add(extra);\n \ttry {\n\t\t\tclient.sendToClient(answer);\n\t\t} catch (IOException e)\n\t\t{\n\t\t\t//e.printStackTrace();\n\t\t}\n\t\t\tbreak;\n }\n \n case(905):\n { \n\t String status = new String((String) ((ArrayList<Object>)msg).get(1));\n\t \tanswer = functions.getListsForAssignment(status);\n\t\t try {\n\t\t\tclient.sendToClient(answer);\n\t\t} catch (IOException e)\n\t\t{\n\t\t//\te.printStackTrace();\n\t\t}\n\t\t\tbreak;\n }\n \n case(906):\n { \n\t String userSkill = new String((String) ((ArrayList<Object>)msg).get(1));\n\t \tanswer = functions.getListOfUsers(userSkill);\n\t\t try {\n\t\t\tclient.sendToClient(answer);\n\t\t} catch (IOException e)\n\t\t{\n\t\t//\te.printStackTrace();\n\t\t}\n\t\t\tbreak;\n }\n case(803):\n {\n\t\n\t String reqID = new String((String) ((ArrayList<Object>)msg).get(1));\n\t String status = new String((String) ((ArrayList<Object>)msg).get(2));\n\t answer = functions.approveEXDu(reqID, status);\n\t try {\n\t\tclient.sendToClient(answer);\n\n\t} catch (IOException e) {\n\t\t// TODO Auto-generated catch block\n\t\t//e.printStackTrace();\n\t}\n\t\tbreak;\n }\n case(804):\n {\n\t\n\t String reqID = new String((String) ((ArrayList<Object>)msg).get(1));\n\t\t\n\n\t answer = functions.getDu(reqID);\n\t try {\n\t\tclient.sendToClient(answer);\n\n\t} catch (IOException e) {\n\t\t// TODO Auto-generated catch block\n\t\t//e.printStackTrace();\n\t}\n\t\tbreak;\n }\n \n case(907):\n { \n\t String inspectorID = new String((String) ((ArrayList<Object>)msg).get(1));\n\t String requestID = new String((String) ((ArrayList<Object>)msg).get(2));\n\t \tanswer = functions.setInspectorToRequest(requestID, inspectorID);\n\t\t try {\n\t\t\tclient.sendToClient(answer);\n\t\t} catch (IOException e)\n\t\t{\n\t\t//\te.printStackTrace();\n\t\t}\n\t\t\tbreak;\n }\n case(805):\n { \n\t\t\n\n\t String reqID = new String((String) ((ArrayList<Object>)msg).get(1));\n\t //int newDuration=(int)((ArrayList<Object>) msg).get(2);\n\t int newDuration= Integer.parseInt((((ArrayList<Object>) msg).get(2)).toString());\n\t\t\n\t \tanswer = functions.setNewDuration(reqID,newDuration);\n\n\t\t try {\n\t\t\tclient.sendToClient(answer);\n\t\t} catch (IOException e)\n\t\t{\n\t\t//\te.printStackTrace();\n\t\t}\n\t\t\tbreak;\n }\n case(205):\n {\n\t String code = ((String)((ArrayList<Object>)msg).get(0));\n\t String request = new String((String) ((ArrayList<Object>)msg).get(1));\n\t String det= new String((String) ((ArrayList<Object>)msg).get(2));\n\t String bool = new String((String) ((ArrayList<Object>)msg).get(3));\n\t answer = functions.enterNewExecutionRecord(code,request,det,bool);\n\t try {\n\t\t\tclient.sendToClient(answer);\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t//\te.printStackTrace();\n\t\t}\n\t\t\tbreak; \n }\n case(204):\n {\n\t String code = ((String)((ArrayList<Object>)msg).get(0));\n\t String request = new String((String) ((ArrayList<Object>)msg).get(1));\n\t String det= new String((String) ((ArrayList<Object>)msg).get(2));\n\t answer = functions.updateExecutedReq(code,request,det);\n\t try {\n\t\tclient.sendToClient(answer);\n\t} catch (IOException e) {\n\t//\te.printStackTrace();\n\t}\n\t\tbreak; \n }\n \n case(203):\n { \n\t \tArrayList<Object> extra = new ArrayList<Object>();\n \tString code = ((String) ((ArrayList<Object>)msg).get(0));\n \tString requestID = new String((String) ((ArrayList<Object>)msg).get(1));\n \tint request = Integer.parseInt(requestID);\n \textra = functions.getExeccutionEntity(code,request);\n \ttry {\n\t\t\tclient.sendToClient(extra);\n\t\t} catch (IOException e)\n\t\t{\n\t\t//\te.printStackTrace();\n\t\t}\n\t\t\tbreak;\n } \n\ncase(908):\n{ \n\t\tString inspectorID = new String((String) ((ArrayList<Object>)msg).get(1));\n\t \tanswer = functions.getRequestsWithTwoValues(\"request\", \"Status\", \"Rid\", \"12\", \"5555\", \"listOfInspectionableRequests\");\n\t\t try\n\t\t {\n\t\t\tclient.sendToClient(answer);\n\t\t}catch (IOException e)\n\t\t{\n\t\t//\te.printStackTrace();\n\t\t}\n\t\t\tbreak;\n}\n\n\n\ncase(909):\n{ \n\t\tString requestID = new String((String) ((ArrayList<Object>)msg).get(1));\n\t \tanswer = functions.getExeccutionEntity(\"executionEntity\",Integer.parseInt(requestID));\n\r\n\t\t try\n\t\t {\n\t\t\tclient.sendToClient(answer);\n\t\t}catch (IOException e)\n\t\t{\n\t\t\t//e.printStackTrace();\n\t\t}\n\t\t\tbreak;\n}\n\ncase(910):\n{ \n\t\tString requestID = new String((String) ((ArrayList<Object>)msg).get(1));\n\t \tanswer = functions.getInspection(requestID);\n\t\t try\n\t\t {\n\t\t\tclient.sendToClient(answer);\n\t\t}catch (IOException e)\n\t\t{\n\t\t\t//e.printStackTrace();\n\t\t}\n\t\t\tbreak;\n\t\t\t\n}\n\ncase(911):\n{ \n\t\n\t\tInspectionEntity inspection = ((InspectionEntity) ((ArrayList<Object>)msg).get(1));\n\t\tArrayList<Object> ans1 = new ArrayList<Object>();\n\t\tString action = ((String)((ArrayList<Object>)msg).get(2));\n\t\tanswer = functions.setInspection(inspection, action);\n\t \n\t\tif (action.equalsIgnoreCase(\"approve\") && ((String)answer.get(1)).equalsIgnoreCase(\"Valid\") )\n\t \t{\n\t \t\tans1=functions.changeStatus(inspection.getRequestID(), \"121\");\n\t \t}\n\t \telse\n\t \tif (action.equalsIgnoreCase(\"deny\") && ((String)answer.get(1)).equalsIgnoreCase(\"Valid\") )\n\t\t{\n\t\t \tans1=functions.changeStatus(inspection.getRequestID(), \"122\");\n\t\t}\t\n\t \telse\n\t \t{\n\t\t\tans1.add(\"somthing\");\n\t\t\tans1.add(\"StatusNotSet\");\n\t\t}\t\n\t\tanswer.add(ans1.get(1).toString());\n\t\t try\n\t\t {\n\t\t\tclient.sendToClient(answer);\n\t\t}catch (IOException e)\n\t\t{\n\t\t//\te.printStackTrace();\n\t\t}\n\t\t\tbreak;\n\t\t\t\n} \ncase(806):\n{ \n\t\n\t \tanswer = functions.getExtend();\n\t\t try\n\t\t {\n\t\t\tclient.sendToClient(answer);\n\t\t}catch (IOException e)\n\t\t{\n\t\t//\te.printStackTrace();\n\t\t}\n\t\t\tbreak;\n\t\t\t\n}\n\ncase(500):\n{ \n\t\t\n\t\tanswer = functions.initializeMangeEmployees();\n\t\t\n\t\t try\n\t\t {\n\t\t\tclient.sendToClient(answer);\n\t\t}catch (IOException e)\n\t\t{\n\t\t//\te.printStackTrace();\n\t\t}\n\t\t\tbreak;\n\t\t\t\n} \ncase(807):\n{ \n\t\tString reqID = new String( (String)((ArrayList<Object>)msg).get(1));\n\t \tanswer = functions.getExtendInfo(reqID);\n\t\t try\n\t\t {\n\t\t\tclient.sendToClient(answer);\n\t\t}catch (IOException e)\n\t\t{\n\t\t//\te.printStackTrace();\n\t\t}\n\t\t\tbreak;\n\t\t\t\n}\n\ncase(501):\n{ \n\t\tUserEntity oldChairman = ((UserEntity) ((ArrayList<Object>)msg).get(1));\n\t\tUserEntity newChairman = ((UserEntity) ((ArrayList<Object>)msg).get(2));\n\t\tanswer = functions.switchChairman(oldChairman, newChairman);\n\t \n\t\t try\n\t\t {\n\t\t\tclient.sendToClient(answer);\n\t\t}catch (IOException e)\n\t\t{\n\t\t//\te.printStackTrace();\n\t\t}\n\t\t\tbreak;\n\t\t\t\n} \ncase(104):\n{\n\t \n\t AssessmentEntity assessmentEntity=((AssessmentEntity) ((ArrayList<Object>)msg).get(1));\n\t answer = functions.newAssessmentRow(assessmentEntity);\n\t try {\n\t\t \n\t\t client.sendToClient(answer);\n\t\t \n\t } catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\t//e.printStackTrace();\n\t }\n\t break;\n}\ncase(808):\n{ \n\t\tString code = new String((String) ((ArrayList<Object>)msg).get(1));\n\t\tString extID = new String((String) ((ArrayList<Object>)msg).get(2));\n\t \tanswer = functions.approvDenyExt(code,extID);\n\t\t try\n\t\t {\n\t\t\tclient.sendToClient(answer);\n\t\t}catch (IOException e)\n\t\t{\n\t//\t\te.printStackTrace();\n\t\t}\n\t\t\tbreak;\n\t\t\t\n}\n\ncase(502):\n{ \n\t\tUserEntity oldCommitteeMember = ((UserEntity) ((ArrayList<Object>)msg).get(1));\n\t\tUserEntity newCommitteeMember = ((UserEntity) ((ArrayList<Object>)msg).get(2));\n\t\tanswer = functions.switchCommitteeMembers(oldCommitteeMember, newCommitteeMember);\n\t \n\t\t try\n\t\t {\n\t\t\tclient.sendToClient(answer);\n\t\t}catch (IOException e)\n\t\t{\n\t\t\t//e.printStackTrace();\n\t\t}\n\t\t\tbreak;\n\t\t\t\n} \n\ncase(206):\n{\n\t\n\tString code = ((String) ((ArrayList<Object>)msg).get(0));\n\tString pid = ((String) ((ArrayList<Object>)msg).get(1));\n\tString oldStatus =((String) ((ArrayList<Object>)msg).get(2));\n\tanswer = functions.getDeniedExecutions(code,pid,oldStatus);\n\ttry {\n\t\tclient.sendToClient(answer);\n\t}\n\tcatch (Exception e)\n\t{\n\t\te.getCause();\n\t\t\n\t}\n\tbreak;\n}\n\ncase(207):\n{\n\tArrayList<Object> extra = new ArrayList<Object>();\n\tString code = ((String) ((ArrayList<Object>)msg).get(0));\n\tString rid = ((String) ((ArrayList<Object>)msg).get(1));\n\tString newStatus =((String) ((ArrayList<Object>)msg).get(2));\n\tanswer = functions.changeStatus(rid,newStatus);\n\textra = functions.DelExeReq(rid);\n\ttry{\n\t\tclient.sendToClient(extra);\n\t}\n\tcatch(Exception e)\n\t{\n\t\te.getCause();\n\t\t\n\t}\n\tbreak;\n}\n\ncase(503):\n{ \n\t\tUserEntity currentUser = ((UserEntity) ((ArrayList<Object>)msg).get(1));\n\t\tanswer = functions.setUserAccess(currentUser);\n\t \n\t\t try\n\t\t {\n\t\t\tclient.sendToClient(answer);\n\t\t}catch (IOException e)\n\t\t{\n\t\t//\te.printStackTrace();\n\t\t}\n\t\t\tbreak;\n\t\t\t\n}\ncase(105):\n{\n\tanswer = functions.changeStatus();\n\ttry\n\t{\n\t\tclient.sendToClient(answer);\n\t}\n\tcatch (IOException e)\n\t{\n\t//\te.printStackTrace();\n\t}\n\tbreak;\n}\ncase(809):\n{\n\tString reqID = ((String) ((ArrayList<Object>)msg).get(1));\n\tString currentS = ((String) ((ArrayList<Object>)msg).get(2));\n\tString change = ((String) ((ArrayList<Object>)msg).get(3));\n\tString explanation =((String) ((ArrayList<Object>)msg).get(4));\n\tString supervisorID = ((String) ((ArrayList<Object>)msg).get(5));\n\tanswer = functions.updateFields(reqID,currentS,change,explanation,supervisorID);\n\ttry {\n\t\tclient.sendToClient(answer);\n\t\t\n\t}\n\tcatch (Exception e)\n\t{\n\t\te.getCause();\n\t\t}\n\tbreak;\n}\ncase(810):\n{\n\tString status1 = ((String) ((ArrayList<Object>)msg).get(1));\n\tString status2 = ((String) ((ArrayList<Object>)msg).get(2));\n\tanswer = functions.completeReq(status1,status2);\n\ttry {\n\t\tclient.sendToClient(answer);\n\t\t\n\t}\n\tcatch (Exception e)\n\t{\n\t\te.getCause();\n\t\t}\n\tbreak;\n}\n\n\n\ncase(504):\n{ \n\t\tString userID = ((String) ((ArrayList<Object>)msg).get(1));\n\t\tfunctions.logOff(userID);\n\t\t\n\t\n\t\t\tbreak;\n}\n\n\n\n\n\ncase(811):\n{\n\tString reqID = ((String) ((ArrayList<Object>)msg).get(1));\n\tString status = ((String) ((ArrayList<Object>)msg).get(2));\n\tanswer = functions.changeStatus(reqID,status);\n\ttry {\n\t\tclient.sendToClient(answer);\n\t\t\n\t}\n\tcatch (Exception e)\n\t{\n\t\te.getCause();\n\t\t}\n\tbreak;\n}\ncase(106):\n{\n\tString reqID = ((String) ((ArrayList<Object>)msg).get(1));\n\tanswer = functions.getFile(reqID);\n\n\ttry{\n\t\tclient.sendToClient(answer);\n\t}\n\tcatch(IOException e)\n\t{\n\t\t//e.printStackTrace();\n\t}\n\tbreak;\n}\n\n\ncase(812):\n{\n\tString exeID = ((String) ((ArrayList<Object>)msg).get(1));\n\t\n\tanswer = functions.getExecute(exeID);\n\ttry {\n\t\tclient.sendToClient(answer);\n\t\t\n\t}\n\tcatch (Exception e)\n\t{\n\t\te.getCause();\n\t\t}\n\tbreak;\n}\ncase(813):\n{\n\tString rID = ((String) ((ArrayList<Object>)msg).get(1));\n\t\n\tanswer = functions.ridToAid(rID);\n\ttry {\n\t\tclient.sendToClient(answer);\n\t\t\n\t}\n\tcatch (Exception e)\n\t{\n\t\te.getCause();\n\t\t}\n\tbreak;\n}\n\ncase(912):\n{\n\t \n\tanswer = functions.getListOfColumn(\"request\", \"Rid\", \"getListOfAllRequests\"); // General reusable method\n\t try {\n\t\tclient.sendToClient(answer);\n\t} catch (IOException e) \n\t{\n\t\t// TODO Auto-generated catch block\n\t//\te.printStackTrace();\n\t}\n\t\tbreak;\n}\ncase(913):\n{\n\t \n\tanswer = functions.getListOfColumn(\"assessment\", \"Assid\", \"getListOfAllAssessments\"); // General reusable method\n\t try {\n\t\tclient.sendToClient(answer);\n\t} catch (IOException e) \n\t{\n\t\t// TODO Auto-generated catch block\n\t\t//e.printStackTrace();\n\t}\n\t\tbreak;\n}\n\n\ncase(914):\n{\n\t \n\tanswer = functions.getListOfColumn(\"assessment\", \"Assid\", \"getListOfAllExecutions\"); // General reusable method\n\t try {\n\t\tclient.sendToClient(answer);\n\t} catch (IOException e) \n\t{\n\t\t// TODO Auto-generated catch block\n\t//\te.printStackTrace();\n\t}\n\t\tbreak;\n}\n\n\ncase(915):\n{\n\tint numberofdays;\n\tString days;\n\tString requestID = ((String) ((ArrayList<Object>)msg).get(1));\n\tArrayList<Object> request = functions.getRequest(requestID);\n\t\n\tRequestEntity myrequest = ((RequestEntity) ((ArrayList<Object>)request).get(1));\n\t\t\n\tnumberofdays = functions.getexceedTime(requestID);\n\tnumberofdays = numberofdays + CommonMethods.numberOfDays(myrequest.getDate(), myrequest.getDeadline());\n\tdays= Integer.toString(numberofdays);\n\t\n\tanswer = functions.changeStatus(requestID , \"999\");\n\tfunctions.setTaskDuration(requestID, days, \"999\");\n\t try {\n\t\tclient.sendToClient(answer);\n\t} catch (IOException e) \n\t{\n\t\t// TODO Auto-generated catch block\n\t\t//e.printStackTrace();\n\t}\n\t\tbreak;\n}\n\ncase(814):\n{\n \n answer = functions.getAllReq();\n try {\n client.sendToClient(answer);\n } catch (IOException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n break;\n }\ncase(815):\n{\n String rID = ((String) ((ArrayList<Object>)msg).get(1));\n String reason= ((String) ((ArrayList<Object>)msg).get(2));\n answer = functions.suspend(rID, reason);\n try {\n client.sendToClient(answer);\n \n }\n catch (Exception e)\n {\n e.getCause();\n }\n break;\n}\ncase(816):\n{\n String rID = ((String) ((ArrayList<Object>)msg).get(1));\n answer = functions.resume(rID);\n try {\n client.sendToClient(answer);\n \n }\n catch (Exception e)\n {\n e.getCause();\n }\n break;\n}\ncase(817):\n{\n String rID = ((String) ((ArrayList<Object>)msg).get(1));\n answer = functions.susInfo(rID);\n try {\n client.sendToClient(answer);\n \n }\n catch (Exception e)\n {\n e.getCause();\n }\n break;\n}\ncase(107):\n{\n\tString from = ((String) ((ArrayList<Object>)msg).get(1));\n\tString to = ((String) ((ArrayList<Object>)msg).get(2));\n\tanswer = functions.activityReport(from, to);\n\tSystem.out.println(\"after answer sent to user\");\n\ttry {\n\t\tclient.sendToClient(answer);\t\t\n\t}\n\tcatch (Exception e)\n\t{\n\t\te.getCause();\n\t}\n\tbreak;\n}\ncase(108):\n{\n\tString date = ((String) ((ArrayList<Object>)msg).get(1));\n\tbyte[] bytes = ((byte[]) ((ArrayList<Object>)msg).get(2));\n\tint fileLength=((int) ((ArrayList<Object>)msg).get(3));\n\tanswer = functions.saveReport(date, bytes, fileLength);\n\ttry {\n\t\tclient.sendToClient(answer);\t\t\n\t}\n\tcatch (Exception e)\n\t{\n\t\te.getCause();\n\t}\n\tbreak;\n}\ncase(109):\n{\n\tString date = ((String) ((ArrayList<Object>)msg).get(1));\n\tanswer = functions.getReport(date);\n\ttry {\n\t\tclient.sendToClient(answer);\t\t\n\t}\n\tcatch (Exception e)\n\t{\n\t\te.getCause();\n\t}\n\tbreak;\n}\n\n }\n}", "@Nullable\r\n public static List<JSONArray> sendSearchRequest(final Context context, String query)\r\n {\r\n List<JSONArray> content = new ArrayList<>();\r\n\r\n SharedPreferencesManager sharedPreferencesManager = new SharedPreferencesManager(context);\r\n\r\n User user = sharedPreferencesManager.retrieveUser();\r\n\r\n String fixedURL = Utils.fixUrl(Properties.SERVER_URL + \":\" + Properties.SERVER_SPRING_PORT\r\n + \"/search/\" + user.getId() + \"/\" + query);\r\n\r\n RequestFuture<JSONArray> future = RequestFuture.newFuture();\r\n\r\n Log.d(Properties.TAG, \"[REST_CLIENT_SINGLETON] Conectando con: \" + fixedURL + \" + para realizar una búsqueda\");\r\n\r\n // Creamos una peticion\r\n final JsonArrayRequest jsonObjReq = new JsonArrayRequest(Request.Method.GET\r\n , fixedURL\r\n , null\r\n , future\r\n , future);\r\n\r\n // La mandamos a la cola de peticiones\r\n VolleySingleton.getInstance(context).addToRequestQueue(jsonObjReq);\r\n\r\n try\r\n {\r\n JSONArray response = future.get(20, TimeUnit.SECONDS);\r\n\r\n content.add(response);\r\n\r\n } catch (InterruptedException | ExecutionException | TimeoutException e) {\r\n ExceptionPrinter.printException(\"REST_CLIENT_SINGLETON\", e);\r\n\r\n return null;\r\n }\r\n\r\n return content;\r\n }", "public void queryData() throws SolrServerException {\n\t\tfinal SolrQuery query = new SolrQuery(\"*:*\");\r\n\t\tquery.setRows(2000);\r\n\t\t// 5. Executes the query\r\n\t\tfinal QueryResponse response = client.query(query);\r\n\r\n\t\t/*\t\tassertEquals(1, response.getResults().getNumFound());*/\r\n\r\n\t\t// 6. Gets the (output) Data Transfer Object.\r\n\t\t\r\n\t\t\r\n\t\r\n\t\tif (response.getResults().iterator().hasNext())\r\n\t\t{\r\n\t\t\tfinal SolrDocument output = response.getResults().iterator().next();\r\n\t\t\tfinal String from = (String) output.getFieldValue(\"from\");\r\n\t\t\tfinal String to = (String) output.getFieldValue(\"to\");\r\n\t\t\tfinal String body = (String) output.getFieldValue(\"body\");\r\n\t\t\t// 7.1 In case we are running as a Java application print out the query results.\r\n\t\t\tSystem.out.println(\"It works! I found the following book: \");\r\n\t\t\tSystem.out.println(\"--------------------------------------\");\r\n\t\t\tSystem.out.println(\"ID: \" + from);\r\n\t\t\tSystem.out.println(\"Title: \" + to);\r\n\t\t\tSystem.out.println(\"Author: \" + body);\r\n\t\t}\r\n\t\t\r\n\t\tSolrDocumentList list = response.getResults();\r\n\t\tSystem.out.println(\"list size is: \" + list.size());\r\n\r\n\r\n\r\n\t\t/*\t\t// 7. Otherwise asserts the query results using standard JUnit procedures.\r\n\t\tassertEquals(\"1\", id);\r\n\t\tassertEquals(\"Apache SOLR Essentials\", title);\r\n\t\tassertEquals(\"Andrea Gazzarini\", author);\r\n\t\tassertEquals(\"972-2-5A619-12A-X\", isbn);*/\r\n\t}", "@Override\n public void onEmulatorQuery(int query_id, int query_type, ByteBuffer query_data) {\n switch (query_type) {\n case ProtocolConstants.SENSORS_QUERY_LIST:\n // Preallocate large response buffer.\n ByteBuffer resp = ByteBuffer.allocate(1024);\n resp.order(getEndian());\n // Iterate through the list of monitored sensors, dumping them\n // into the response buffer.\n for (MonitoredSensor sensor : mSensors) {\n // Entry for each sensor must contain:\n // - an integer for its ID\n // - a zero-terminated emulator-friendly name.\n final byte[] name = sensor.getEmulatorFriendlyName().getBytes();\n final int required_size = 4 + name.length + 1;\n resp = ExpandIf(resp, required_size);\n resp.putInt(sensor.getType());\n resp.put(name);\n resp.put((byte) 0);\n }\n // Terminating entry contains single -1 integer.\n resp = ExpandIf(resp, 4);\n resp.putInt(-1);\n sendQueryResponse(query_id, resp);\n return;\n\n default:\n Loge(\"Unknown query \" + query_type);\n return;\n }\n }", "private void handle(Socket socket) throws IOException {\n\n System.err.println(\"client connected\");\n WikiMediator my_wiki = new WikiMediator();\n\n // get the socket's input stream, and wrap converters around it\n // that convert it from a byte stream to a character stream,\n // and that buffer it so that we can read a line at a time\n BufferedReader in = new BufferedReader(new InputStreamReader(\n socket.getInputStream()));\n\n // similarly, wrap character=>bytestream converter around the\n // socket output stream, and wrap a PrintWriter around that so\n // that we have more convenient ways to write Java primitive\n // types to it.\n PrintWriter out = new PrintWriter(new OutputStreamWriter(\n socket.getOutputStream()), true);\n\n try {\n JsonParser parser = new JsonParser();\n Gson gson = new Gson();\n // each request is a single line containing\n // id , type , query, limit\n for (String line = in.readLine(); line != null; line = in\n .readLine()) {\n System.err.println(\"request: \" + line);\n try {\n JsonElement json = parser.parse(line);\n if (json.isJsonArray()) {\n JsonArray questionArray = json.getAsJsonArray();\n for (int i = 0; i < questionArray.size(); i++) {\n JsonObject question = questionArray.get(i).getAsJsonObject();\n String type = question.get(\"id\").getAsString();\n JsonElement answer;\n if (type.compareTo(\"simpleSearch\") == 0) {\n answer = simpleSearchquery(question, my_wiki);\n }\n else if(type.compareTo(\"zeitgeist\")==0){\n answer = zeitgeistquery(question, my_wiki);\n }\n else if(type.compareTo(\"getConnectedPages\")==0){\n answer = getConnectedPagesquery(question, my_wiki);\n }\n else if(type.compareTo(\"trending\")==0){\n answer = zeitgeistquery(question, my_wiki);\n }\n else if(type.compareTo(\"peakLoad30s\")==0){\n answer = peakLoad30squery(question, my_wiki);\n }\n else {\n answer = parser.parse(\"Request cannot be resolved\");\n }\n\n System.out.println(answer);\n\n }\n }\n } catch (Exception e) {\n // complain about ill-formatted request\n System.err.println(\"reply: err\");\n out.print(\"err\\n\");\n }\n }\n } finally {\n out.close();\n in.close();\n }\n\n }", "public void process()\n {\n ClientRequest clientRequest = threadPool.remove();\n\n if (clientRequest == null)\n {\n return;\n }\n\n\n // Do the work\n // Create new Client\n ServiceLogger.LOGGER.info(\"Building client...\");\n Client client = ClientBuilder.newClient();\n client.register(JacksonFeature.class);\n\n // Get uri\n ServiceLogger.LOGGER.info(\"Getting URI...\");\n String URI = clientRequest.getURI();\n\n ServiceLogger.LOGGER.info(\"Getting endpoint...\");\n String endpointPath = clientRequest.getEndpoint();\n\n // Create WebTarget\n ServiceLogger.LOGGER.info(\"Building WebTarget...\");\n WebTarget webTarget = client.target(URI).path(endpointPath);\n\n // Send the request and save it to a Response\n ServiceLogger.LOGGER.info(\"Sending request...\");\n Response response = null;\n if (clientRequest.getHttpMethodType() == Constants.getRequest)\n {\n // Create InvocationBuilder\n ServiceLogger.LOGGER.info(\"Starting invocation builder...\");\n Map<String, Object> queryMap = clientRequest.getQueryParams();\n String pathParam = clientRequest.getPathParam();\n\n if (pathParam != null)\n {\n webTarget = webTarget.path(pathParam);\n }\n\n if (queryMap != null)\n {\n ServiceLogger.LOGGER.info(\"QUERY MAP NOT NULL.\");\n for (Map.Entry<String, Object> entry : queryMap.entrySet())\n {\n webTarget = webTarget.queryParam(entry.getKey(), entry.getValue());\n }\n }\n ServiceLogger.LOGGER.info(\"WEBTARGET: \" + webTarget.toString());\n\n Invocation.Builder invocationBuilder = webTarget.request(MediaType.APPLICATION_JSON);\n\n ServiceLogger.LOGGER.info(\"Got a GET request.\");\n response = invocationBuilder\n .header(\"email\", clientRequest.getEmail())\n .header(\"sessionID\", clientRequest.getSessionID())\n .header(\"transactionID\", clientRequest.getTransactionID())\n .get();\n }\n else if (clientRequest.getHttpMethodType() == Constants.postRequest)\n {\n // Create InvocationBuilder\n ServiceLogger.LOGGER.info(\"Starting invocation builder...\");\n Invocation.Builder invocationBuilder = webTarget.request(MediaType.APPLICATION_JSON);\n Map<String, Object> queryMap = clientRequest.getQueryParams();\n\n if (queryMap != null)\n {\n ServiceLogger.LOGGER.info(\"QUERY MAP NOT NULL.\");\n for (Map.Entry<String, Object> entry : queryMap.entrySet())\n {\n webTarget = webTarget.queryParam(entry.getKey(), entry.getValue());\n }\n }\n ServiceLogger.LOGGER.info(\"WEBTARGET: \" + webTarget.toString());\n\n ServiceLogger.LOGGER.info(\"Got a POST request.\");\n response = invocationBuilder\n .header(\"email\", clientRequest.getEmail())\n .header(\"sessionID\", clientRequest.getSessionID())\n .header(\"transactionID\", clientRequest.getTransactionID())\n .post(Entity.entity(clientRequest.getRequest(), MediaType.APPLICATION_JSON));\n }\n else if (clientRequest.getHttpMethodType() == Constants.deleteRequest)\n {\n String pathParam = clientRequest.getPathParam();\n if (pathParam != null)\n {\n webTarget = webTarget.path(pathParam);\n }\n Invocation.Builder invocationBuilder = webTarget.request(MediaType.APPLICATION_JSON);\n\n ServiceLogger.LOGGER.info(\"Got a DELETE request.\");\n response = invocationBuilder\n .header(\"email\", clientRequest.getEmail())\n .header(\"sessionID\", clientRequest.getSessionID())\n .header(\"transactionID\", clientRequest.getTransactionID())\n .delete();\n }\n else\n {\n ServiceLogger.LOGGER.warning(ANSI_YELLOW + \"Request was not sent successfully\");\n }\n ServiceLogger.LOGGER.info(ANSI_GREEN + \"Sent!\" + ANSI_RESET);\n\n // Check status code of request\n String jsonText = \"\";\n int httpstatus = response.getStatus();\n\n jsonText = response.readEntity(String.class);\n\n // Add response to database\n String email = clientRequest.getEmail();\n String sessionID = clientRequest.getSessionID();\n ResponseDatabase.insertResponseIntoDB(clientRequest.getTransactionID(), jsonText, email, sessionID, httpstatus);\n\n }", "@Override\n public boolean onQueryTextSubmit(String query) {\n\n new Clientes().execute(query);\n Toast.makeText(c, query,\n Toast.LENGTH_SHORT).show();\n\n return false;\n }", "public void run()\n\t\t\t{\n\t\t\t\t\n\t\t\t\ttry {\n\t\t\t\t\tThread.sleep(5000);\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/**\n\t\t\t\t * \n\t\t\t\t * Process Query Here\n\t\t\t\t * \n\t\t\t\t **/\n\t\t\t}", "protected abstract void onQueryResult(NewsResponse newsResponse);", "@Override\n public void readyToSend(Connection ignoreMe) {\n sendQuery(connection, query);\n }", "void queryDone(String queryId);", "private void handleClient() {\n\t\t//Socket link = null;\n\t\tRequestRecord reqRec = new RequestRecord();\n\t\tResponder respondR = new Responder();\n\t\t\n\t\ttry {\n\t\t\t// STEP 1 : accepting client request in client socket\n\t\t\t//link = servSock.accept(); //-----> already done in *ThreadExecutor*\n\t\t\t\n\t\t\t// STEP 2 : creating i/o stream for socket\n\t\t\tScanner input = new Scanner(link.getInputStream());\n\t\t\tdo{\n\t\t\t\t//PrintWriter output = new PrintWriter(link.getOutputStream(),true);\n\t\t\t\t//DataOutputStream ds = new DataOutputStream(link.getOutputStream());\n\t\t\t\tint numMsg = 0;\n\t\t\t\tString msg = input.nextLine();\n\t\t\t\t\n\t\t\t\t//to write all requests to a File\n\t\t\t\tFileOutputStream reqFile = new FileOutputStream(\"reqFile.txt\");\n\t\t\t\tDataOutputStream dat = new DataOutputStream(reqFile);\n\t\t\t\t\n\t\t\t\t// STEP 4 : listening iteratively till close string send\n\t\t\t\twhile(msg.length()>0){\n\t\t\t\t\tnumMsg++;\n\t\t\t\t\tdat.writeChars(msg + \"\\n\");\n\t\t\t\t\tSystem.out.println(\"\\nNew Message Received\");\n\t\t\t\t\tif(reqRec.setRecord(msg)==false)\n\t\t\t\t\t\tSystem.out.println(\"\\n-----\\nMsg#\"+numMsg+\": \"+msg+\":Error with Request Header Parsing\\n-----\\n\");\n\t\t\t\t\telse\n\t\t\t\t\t\tSystem.out.println(\"Msg#\" + numMsg + \": \" + msg);\n\t\t\t\t\tmsg = input.nextLine();\n\t\t\t\t};\n\t\t\t\tdat.writeChars(\"\\n-*-*-*-*-*-*-*-*-*-*-*-*-*-\\n\\n\");\n\t\t\t\tdat.close();\n\t\t\t\treqFile.close();\n\t\t\t\tSystem.out.println(\"---newEST : \" + reqRec.getResource());\n\t\t\t\t\n\t\t\t\tSystem.out.println(\"\\n==========Send HTTP Response for Get Request of\\n\"+reqRec.getResource()+\"\\n***********\\n\");\n\t\t\t\tif(respondR.sendHTTPResponseGET(reqRec.getResource(), link)==true)//RES, ds)==true)\n\t\t\t\t\tSystem.out.println(\"-----------Resource Read\");\n\t\t\t\tSystem.out.println(\"Total Messages Transferred: \" + numMsg);\n\t\t\t\t//link.close();\n\t\t\t\tif(reqRec.getConnection().equalsIgnoreCase(\"Keep-Alive\")==true && respondR.isResourceExisting(reqRec.getResource())==true)\n\t\t\t\t\tlink.setKeepAlive(true);\n\t\t\t\telse\n\t\t\t\t\tbreak;\n\t\t\t}while(true);\n\t\t\tSystem.out.print(\"Request Link Over as Connection: \" + reqRec.getConnection());\n\t\t} catch (IOException e) {\n\t\t\tif(link.isClosed())\n\t\t\t\tSystem.out.print(\"\\n\\nCritical(report it to developer):: link closed at exception\\n\\n\");\n\t\t\tSystem.out.println(\"Error in listening.\\n {Error may be here or with RespondR}\\nTraceString: \");\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\t// STEP 5 : closing the connection\n\t\t\tSystem.out.println(\"\\nClosing Connection\\n\");\n\t\t\ttry {\t\t\t\t\n\t\t\t\tlink.close();\n\t\t\t} catch (IOException e) {\n\t\t\t\tSystem.out.println(\"Unable to disconnect.\\nTraceString: \");\n\t\t\t\te.printStackTrace();\n\t\t\t\tSystem.exit(1);\n\t\t\t}\n\t\t}/*ends :: try...catch...finally*/\n\t\t\n\t}", "public interface BackendQuery {\n\n @GET(\"/user/getUser.php\") Observable<BaseResponse<User>> getUser(\n @Query(\"username\") String username);\n}", "public interface QueryUserHandler {\n UserDO handle(String key);\n}", "protected void service(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\t\tString actionType=req.getParameter(\"actionType\");\n\t\tif(actionType.equals(\"query\"))\n\t\t{\n\t\t\tquery(req,resp);\n\t\t}\n\t\tif(actionType.equals(\"kanweizhang\"))\n\t\t{\n\t\t\tkanweizhang(req,resp);\n\t\t}\n\t\tif(actionType.equals(\"tuiweizhang\"))\n\t\t{\n\t\t\ttuiweizhang(req,resp);\n\t\t}\n\t\t\n\t\tif(actionType.equals(\"querywenlei\"))\n\t\t{\n\t\t\tquerywenlei(req,resp);\n\t\t}\n\t}", "QueryResponse query(SolrParams solrParams) throws SolrServerException;", "public void handleClientRequest() {\n System.out.println(\"... new ConnectionHandler constructed ...\");\n try {\n while (true) {\n // Get input data from client over socket\n String line = br.readLine();\n String[] lineArray = line.split(\" \");\n String requestType = lineArray[0];\n String resourceName = lineArray[1];\n // Log this request\n log.append(\"\\nRequest at \").append(fldt).append(\":\\n\").append(line);\n log.newLine();\n File f = new File(path + resourceName);\n String contentLength = String.valueOf(f.length());\n\n // Interpret request and respond accordingly\n if (!f.isFile()) {\n byte[] response = getHeader(404, contentLength, resourceName);\n\n os.write(response);\n // Log this response\n log.append(\"Response code:\\n404 Not Found\");\n log.newLine();\n break;\n } else if (requestType.contains(\"GET\")) {\n byte[] header = getHeader(200, contentLength, resourceName);\n byte[] content = getContent(f);\n byte[] response = new byte[header.length + content.length];\n System.arraycopy(header, 0, response, 0, header.length);\n System.arraycopy(content, 0, response, header.length, content.length);\n\n os.write(response);\n // Log this response\n log.append(\"Response code:\\n200 OK\");\n log.newLine();\n break;\n } else if (requestType.equals(\"HEAD\")) {\n byte[] response = getHeader(200, contentLength, resourceName);\n\n os.write(response);\n // Log this response\n log.append(\"Response code:\\n200 OK\");\n log.newLine();\n break;\n } else if (requestType.equals(\"DELETE\")) {\n f.delete();\n break;\n } else {\n byte[] response = getHeader(501, contentLength, resourceName);\n\n os.write(response);\n // Log this response\n log.append(\"Response code:\\n501 Not Implemented\");\n log.newLine();\n break;\n }\n }\n cleanUp();\n } catch (IOException | IndexOutOfBoundsException e) {\n System.err.println(\"ConnectionHandler:handleClientRequest (error): \" + e.getMessage());\n cleanUp();\n }\n }", "public void handleMessageFromClient\n (Object msg, ConnectionToClient client)\n \t{\n\t System.out.println(\"Message received: \" + msg + \" from \" + client);\n\t try {\n\t \tObject rs = dbConnector.accessToDB(msg);\n\t \tif(rs != null)\t\n\t \t\tclient.sendToClient(rs);\n\t \t}\n\t\tcatch (ClassCastException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t catch (IOException q)\n\t {\n\t \t\n\t }\n\t }", "@Override\n public void run() {\n handleClientRequest();\n }", "protected void doQuery(HttpServletRequest request, HttpServletResponse response)\r\n\t\t\tthrows ServletException, IOException {\n\r\n\t\tPrintWriter out = response.getWriter();\r\n\r\n\t\tint orderNo = 1;\r\n\t\t// System.out.println(\"jinlaile\");\r\n\t\t// System.out.println(request.getParameter(\"orderNo\"));\r\n\t\tString orderNoStr = request.getParameter(\"orderNo\");\r\n\r\n\t\tif (null == orderNoStr || \"\".equals(orderNoStr)) {\r\n\t\t} else {\r\n\t\t\torderNo = Integer.parseInt(orderNoStr);\r\n\t\t}\r\n\r\n\t\tList<LogisticsBean> list = ls.queryTruckRoutingByOrderNo(orderNo);\r\n\t\tfor (LogisticsBean logisticsBean : list) {\r\n\t\t\tSystem.out.println(logisticsBean);\r\n\t\t}\r\n\r\n\t\tGson gson = new Gson();\r\n\t\tString jsonString = gson.toJson(list);\r\n\r\n\t\tout.println(jsonString);\r\n\t\tout.close();\r\n\r\n\t\t// 将查询的关键字也存储起来 传递到jsp\r\n\t\t// request.setAttribute(\"logistics\", list);\r\n\r\n\t\t// 转发到页面\r\n\t\t// request.getRequestDispatcher(\"follow.jsp\").forward(request, response);\r\n\t}", "private QueryResponse query(Query query) throws ElasticSearchException{\r\n\t\tQueryResponse response = executor.executeQuery(query);\r\n\t\tresponse.setObjectMapper(mapper);\r\n\t\treturn response;\t\t\r\n\t}", "public void customerQuery(){\n }", "Object callQuery(String name, Map<String, String> params);", "private void querys() {\n\t try {\r\n\t\tBoxYieldRptFactory.getRemoteInstance().SteDate();\r\n\t } catch (EASBizException e) {\r\n\t\t// TODO Auto-generated catch block\r\n\t\te.printStackTrace();\r\n\t } catch (BOSException e) {\r\n\t\t// TODO Auto-generated catch block\r\n\t\te.printStackTrace();\r\n\t }\r\n\t}", "@Override\n public void onMessage(Message message) {\n try {\n // Generate data\n QueueProcessor processor = getBean(QueueProcessor.class);\n ServiceData serviceData = processor.parseResponseMessage(response, message);\n\n // If return is a DataList or Data, parse it with the query\n if (serviceData.getClientActionList() == null || serviceData.getClientActionList().isEmpty()) {\n serviceData = queryService.onSubscribeData(query, address, serviceData, parameterMap);\n } else {\n // Add address to client action list\n for (ClientAction action : serviceData.getClientActionList()) {\n action.setAddress(getAddress());\n }\n }\n\n // Broadcast data\n broadcastService.broadcastMessageToUID(address.getSession(), serviceData.getClientActionList());\n\n // Log sent message\n getLogger().log(QueueListener.class, Level.DEBUG,\n \"New message received from subscription to address {0}. Content: {1}\",\n getAddress().toString(), message.toString());\n } catch (AWException exc) {\n broadcastService.sendErrorToUID(address.getSession(), exc.getTitle(), exc.getMessage());\n\n // Log error\n getLogger().log(QueueListener.class, Level.ERROR, \"Error in message from subscription to address {0}. Content: {1}\", exc,\n getAddress().toString(), message.toString());\n } catch (Exception exc) {\n broadcastService.sendErrorToUID(address.getSession(), null, exc.getMessage());\n\n // Log error\n getLogger().log(QueueListener.class, Level.ERROR, \"Error in message from subscription to address {0}. Content: {1}\", exc,\n getAddress().toString(), message.toString());\n }\n }", "@Override\r\n\t\t\tpublic void handleMessage(Message msg) {\n\t\t\t\tswitch (msg.what) {\r\n\t\t\t\tcase Constant.CONFERENCE_QUERY_SECCUESS:\r\n\t\t\t\t\tdismissProgressDialog();\r\n\t\t\t\t\tMeetingDetail.this.data = (ConferenceUpdateQueryResponseItem) msg.obj;\r\n\t\t\t\t\tiniParams();\r\n\t\t\t\t\tbreak;\r\n\r\n\t\t\t\tcase Constant.CONFERENCE_QUERY_FAIL:\r\n\t\t\t\t\tdismissProgressDialog();\r\n\t\t\t\t\tshowLongToast(\"错误代码:\" + ((NormalServerResponse) msg.obj).getEc());\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}", "public void getSelect(String query, ArrayList<Object> params) {\r\n\t\tif (null != connection) {\r\n\t\t\tSystem.out.println(QueryProcessor.exec(connection, query, params));\r\n\t\t} else {\r\n\t\t\tSystem.out.println(\"Hubo algún error con la conexión...\");\r\n\t\t}\r\n\t}", "@Override \n\t\t public void run() {\n\t\t \t\n\t\t \tif (isCompleteQuery) {\n\t\t \t\tisCompleteQuery = !isCompleteQuery;\n\t\t \t\t\n\t\t \t\tMessage message = new Message(); \n\t\t\t message.what = 911; \n\t\t\t handler.sendMessage(message); \n\t\t\t LogUtils.i(\"*****************定时任务查询\");\n\t\t\t\t}\n\t\t \n\t\t }", "@Override\n\tpublic List<JsonEvent> getEvents(final EventQuery query) throws Exception {\n\t\tList<JsonEvent> events = null;\n\n\t\t// Set the HTTP status code to the special value for failed connection attempt.\n\n\t\thttp_status_code = -2;\n\n\t\t// Construct the URL that contains the query.\n\t\t// Throws MalformedURLException (subclass of IOException) if error in forming URL.\n\n\t\tURL url = getUrl (query, Format.GEOJSON);\n\n\t\t// Create a connection.\n\t\t// This is a local operation that does not call out to the network.\n\t\t// Throws IOException if there is a problem.\n\t\t// The object returned should be an HttpURLConnection (subclass of URLConnection).\n\n\t\tURLConnection conn = url.openConnection();\n\n\t\t// Add a property to indicate we can accept gzipped data.\n\t\t// This should not throw an exception.\n\n\t\tconn.addRequestProperty(\"Accept-encoding\", UrlUtil.GZIP_ENCODING);\n\n\t\t// Connect to Comcat.\n\t\t// Throws SocketTimeoutException (subclass of IOException) if timeout trying to establish connection.\n\t\t// Throws IOException if there is some other problem.\n\n\t\tconn.connect();\n\n\t\t// Here is where we can examine the HTTP status code.\n\t\t// The connection should be an HTTP connection.\n\n\t\tif (conn instanceof HttpURLConnection) {\n\t\t\tHttpURLConnection http_conn = (HttpURLConnection)conn;\n\n\t\t\t// This is the HTTP status code\n\n\t\t\thttp_status_code = http_conn.getResponseCode();\n\n\t\t\tswitch (http_status_code) {\n\t\t\t\n\t\t\tcase HttpURLConnection.HTTP_OK:\t\t\t\t// 200 = OK\n\t\t\tcase HttpURLConnection.HTTP_PARTIAL:\t\t// 206 = Partial content\n\t\t\tcase -1:\t\t\t\t\t\t\t\t\t// -1 = unknown status (getResponseCode returns -1 if it can't determine the status code)\n\t\t\t\tbreak;\t\t\t\t\t\t\t\t\t// continue\n\n\t\t\tcase HttpURLConnection.HTTP_NO_CONTENT:\t\t// 204 = No data matches the selection\n\t\t\tcase HttpURLConnection.HTTP_NOT_FOUND:\t\t// 404 = Not found, also used by Comcat to indicate no data matches the selection\n\t\t\tcase HttpURLConnection.HTTP_CONFLICT:\t\t// 409 = Conflict, used by Comcat to indicate event deleted\n\t\t\t\treturn new ArrayList<JsonEvent>();\t\t// return empty list to indicate nothing found\n\n\t\t\tdefault:\t\t\t\t\t\t\t\t\t// any other status code is an error\n\t\t\t\tthrow new IOException (\"Call to Comcat failed with HTTP status code \" + http_status_code);\n\t\t\t}\n\n\t\t} else {\n\t\t\n\t\t\t// Connection is not HTTP, so set status code to unknown status\n\n\t\t\thttp_status_code = -1;\n\t\t}\n\n\t\ttry (\n\n\t\t\t// Open an input stream on the connection.\n\t\t\t// Throws SocketTimeoutException (subclass of IOException) if timeout while reading.\n\t\t\t// Throws UnknownServiceException (subclass of IOException) if input is not supported.\n\t\t\t// Might throw FileNotFoundException (subclass of IOException) if server indicated no data available.\n\t\t\t// Throws IOException if there is some other problem.\n\n\t\t\tInputStreamHolder stream_holder = new InputStreamHolder (conn.getInputStream());\n\t\t\n\t\t){\n\n\t\t\t// Test if we received a gzipped response.\n\t\t\t// Note getContentEncoding should not throw an exception, but it can return null, in\n\t\t\t// which case the equals function will be false.\n\n\t\t\tif (UrlUtil.GZIP_ENCODING.equals(conn.getContentEncoding())) {\n\n\t\t\t\t// Make a gzip wrapper around the stream.\n\t\t\t\t// Throws ZipException (subclass of IOException) if input is not supported.\n\t\t\t\t// Throws IOException if there is an I/O error.\n\n\t\t\t\tGZIPInputStream zip_stream = new GZIPInputStream (stream_holder.get_stream());\n\t\t\t\tstream_holder.set_stream (zip_stream);\n\t\t\t}\n\n\t\t\t// Parse the input stream.\n\t\t\t// Throws IOException if there is an I/O error reading from the network.\n\t\t\t// Throws Exception if there is a problem parsing the data.\n\t\t\t// Might throw other exceptions.\n\t\t\n\t\t\tevents = parseJsonEventCollection (stream_holder.get_stream());\n\t\t}\n\n\t\treturn events;\n\t}", "@Override\n public void run() {\n Node serverValue = serverSyncTree.getServerValue(query.getSpec());\n if (serverValue != null) {\n source.setResult(\n InternalHelpers.createDataSnapshot(\n query.getRef(), IndexedNode.from(serverValue)));\n return;\n }\n serverSyncTree.setQueryActive(query.getSpec());\n final DataSnapshot persisted = serverSyncTree.persistenceServerCache(query);\n if (persisted.exists()) {\n // Prefer the locally persisted value if the server is not responsive.\n scheduleDelayed(() -> source.trySetResult(persisted), GET_TIMEOUT_MS);\n }\n connection\n .get(query.getPath().asList(), query.getSpec().getParams().getWireProtocolParams())\n .addOnCompleteListener(\n ((DefaultRunLoop) ctx.getRunLoop()).getExecutorService(),\n (@NonNull Task<Object> task) -> {\n if (source.getTask().isComplete()) {\n return;\n }\n if (!task.isSuccessful()) {\n if (persisted.exists()) {\n source.setResult(persisted);\n } else {\n source.setException(Objects.requireNonNull(task.getException()));\n }\n } else {\n /*\n * We need to replicate the behavior that occurs when running `once()`. In other words,\n * we need to create a new eventRegistration, register it with a view and then\n * overwrite the data at that location, and then remove the view.\n */\n Node serverNode = NodeUtilities.NodeFromJSON(task.getResult());\n QuerySpec spec = query.getSpec();\n // EventRegistrations require a listener to be attached, so a dummy\n // ValueEventListener was created.\n keepSynced(spec, /*keep=*/ true, /*skipDedup=*/ true);\n List<? extends Event> events;\n if (spec.loadsAllData()) {\n events = serverSyncTree.applyServerOverwrite(spec.getPath(), serverNode);\n } else {\n events =\n serverSyncTree.applyTaggedQueryOverwrite(\n spec.getPath(),\n serverNode,\n getServerSyncTree().tagForQuery(spec));\n }\n repo.postEvents(\n events); // to ensure that other listeners end up getting their cached\n // events.\n source.setResult(\n InternalHelpers.createDataSnapshot(\n query.getRef(),\n IndexedNode.from(serverNode, query.getSpec().getIndex())));\n keepSynced(spec, /*keep=*/ false, /*skipDedup=*/ true);\n }\n });\n }", "public void queryServer()\n {\n if(!getPassword().equals(getPasswordConfirm()))\n {\n Toast.makeText( (getActivity() ) .getBaseContext(), \"Password Mismatch.\", Toast.LENGTH_SHORT).show();\n passwordEdit.setText(\"\");\n passwordConfirmEdit.setText(\"\");\n }\n else if(!noNullUserInput())\n {\n //TODO highlight unfished fields.\n Toast.makeText( (getActivity() ) .getBaseContext(), \"Finish filling out the data!\", Toast.LENGTH_SHORT).show();\n }\n else if(Model.instance().getServerHost() == null || Model.instance().getServerHost() == null )\n {\n ((FamilyMap) getActivity() ).createServerInfoQuery(this); //easy...\n }\n else\n {\n //try it out. if it fails\n WebAccess wa = new WebAccess();\n RegisterRequest rr = new RegisterRequest(this.getUserName(),this.getPassword(),this.getEmail(), this.getFirstName(), this.getLastName(), this.getGender());\n wa.execute(rr);\n deactivateButtons();\n }\n }", "public void handle_request(Request request){\n currentRequest.add(request);\n System.out.println(\"[Worker\"+String.valueOf(id)+\"] Received request of client \"+String.valueOf(request.getId()));\n }", "private String doQueryById(HttpServletRequest request,\n HttpServletResponse response) {\n return null;\n }", "public void run() {\n\t\tString choice = null;\n\t\tBufferedReader inFromClient = null;\n\t\tDataOutputStream outToClient = null;\n\t\t\n\t\ttry {\n\t\t\tinFromClient = new BufferedReader(new InputStreamReader(client.getInputStream()));\n\t\t\toutToClient = new DataOutputStream(client.getOutputStream());\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\ttry {\n\t\t\t// Loops until the client's connection is lost\n\t\t\twhile (true) {\t\n\t\t\t\t// Request that was sent from the client\n\t\t\t\tchoice = inFromClient.readLine();\n\t\t\t\tif(choice != null) {\n\t\t\t\t\tSystem.out.println(choice);\n\t\t\t\t\tswitch (choice) {\n\t\t\t\t\t\t// Calculates the next even fib by creating a new\n\t\t\t\t\t\t// thread to handle that calculation\n\t\t\t\t\t\tcase \"NEXTEVENFIB\":\n\t\t\t\t\t\t\tnew EvenFib(client).run();\n\t\t\t\t\t\t\t// Increments the fib index tracker so no duplicates\n\t\t\t\t\t\t\t// are sent\n\t\t\t\t\t\t\tServer.fib++;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t// Calculates the next even nextLargerRan by creating a new\n\t\t\t\t\t\t// thread to handle that calculation\n\t\t\t\t\t\tcase \"NEXTLARGERRAND\":\n\t\t\t\t\t\t\tnew NextLargeRan(client).run();\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t// Calculates the next prime by creating a new\n\t\t\t\t\t\t// thread to handle that calculation\n\t\t\t\t\t\tcase \"NEXTPRIME\":\n\t\t\t\t\t\t\tnew NextPrime(client).run();\n\t\t\t\t\t\t\t// Increments the prime index tracker so no duplicates\n\t\t\t\t\t\t\t// are sent\n\t\t\t\t\t\t\tServer.prime++;\n\t\t\t\t\t\t\tbreak;\n\t\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\t// Displays that the client it was connected to\n\t\t\t// has disconnected\n\t\t\tSystem.out.println(\"Client Disconnected\");\n\t\t}\n\n\t}", "@Override\n public DataObjectResponse<T> handleGET(DataObjectRequest<T> request)\n {\n if(getRequestValidator() != null) getRequestValidator().validateGET(request);\n\n DefaultDataObjectResponse<T> response = new DefaultDataObjectResponse<>();\n try\n {\n VisibilityFilter<T, DataObjectRequest<T>> visibilityFilter = visibilityFilterMap.get(VisibilityMethod.GET);\n List<Query> queryList = new LinkedList<>();\n if(request.getQueries() != null)\n queryList.addAll(request.getQueries());\n\n if(request.getId() != null)\n {\n // if the id is specified\n queryList.add(new ById(request.getId()));\n }\n\n DataObjectFeed<T> feed = objectPersister.retrieve(queryList);\n if(feed == null)\n feed = new DataObjectFeed<>();\n List<T> filteredObjects = visibilityFilter.filterByVisible(request, feed.getAll());\n response.setCount(feed.getCount());\n response.addAll(filteredObjects);\n }\n catch(PersistenceException e)\n {\n ObjectNotFoundException objectNotFoundException = new ObjectNotFoundException(String.format(OBJECT_NOT_FOUND_EXCEPTION, request.getId()), e);\n response.setErrorResponse(ErrorResponseFactory.objectNotFound(objectNotFoundException, request.getCID()));\n }\n return response;\n }", "public void testUsingQueriesFromQueryManger(){\n\t\tSet<String> names = testDataMap.keySet();\n\t\tUtils.prtObMess(this.getClass(), \"atm query\");\n\t\tDseInputQuery<BigDecimal> atmq = \n\t\t\t\tqm.getQuery(new AtmDiot());\n\t\tMap<String, ComplexQueryResult<BigDecimal>> bdResult = \n\t\t\t\tatmq.get(names, 1, TimeUnit.SECONDS);\n\t\tCollectionsStaticMethods.prtMapItems(bdResult);\n\n\t\tUtils.prtObMess(this.getClass(), \"vol query\");\n\t\tDseInputQuery<BigDecimal> volq = \n\t\t\t\tqm.getQuery(new VolDiotForTest());\n\t\tMap<String, ComplexQueryResult<BigDecimal>> dbResult = \n\t\t\t\tvolq.get(names, 1, TimeUnit.SECONDS);\n\t\tCollectionsStaticMethods.prtMapItems(dbResult);\n\t\n\t\tUtils.prtObMess(this.getClass(), \"integer query\");\n\t\tDseInputQuery<BigDecimal> strikeq = \n\t\t\t\tqm.getQuery(new StrikeDiotForTest());\n\t\tMap<String, ComplexQueryResult<BigDecimal>> strikeResult = \n\t\t\t\tstrikeq.get(names, 1, TimeUnit.SECONDS);\n\t\tCollectionsStaticMethods.prtMapItems(strikeResult);\n\t\n\t}", "protected void queryMsg() {\n\t\tif (currentPosition == 0) {//LIVE\n\t\t\tobtainLiveData(true, currentPosition, liveMaxChatId);\n\t\t} else {//CHAT\n\t\t\tobtainChatData(true, currentPosition, chatModels.get(0).getChatId());\n\t\t}\n\t}", "public long query(Date timestamp, String user, String hostname, Long referral, String questionText, InputMode mode);", "public void customQuery(String query) {\n sendQuery(query);\n }", "private void executeSearchQuery(JsonObject json, HttpServerResponse response) {\n database.searchQuery(json, handler -> {\n if (handler.succeeded()) {\n LOGGER.info(\"Success: Search Success\");\n handleSuccessResponse(response, ResponseType.Ok.getCode(),\n handler.result().toString());\n } else if (handler.failed()) {\n LOGGER.error(\"Fail: Search Fail\");\n processBackendResponse(response, handler.cause().getMessage());\n }\n });\n }", "private void dispatchRequests(RoutingContext context) {\n int initialOffset = 5; // length of `/api/`\n // Run with circuit breaker in order to deal with failure\n circuitBreaker.execute(future -> {\n getAllEndpoints().setHandler(ar -> {\n if (ar.succeeded()) {\n List<Record> recordList = ar.result();\n // Get relative path and retrieve prefix to dispatch client\n String path = context.request().uri();\n if (path.length() <= initialOffset) {\n notFound(context);\n future.complete();\n return;\n }\n\n String prefix = (path.substring(initialOffset).split(\"/\"))[0];\n String newPath = path.substring(initialOffset + prefix.length());\n\n // Get one relevant HTTP client, may not exist\n Optional<Record> client = recordList.stream()\n .filter(record -> record.getMetadata().getString(\"api.name\") != null)\n .filter(record -> record.getMetadata().getString(\"api.name\").equals(prefix))\n .findAny(); // simple load balance\n\n if (client.isPresent()) {\n doDispatch(context, newPath, discovery.getReference(client.get()).get(), future);\n } else {\n notFound(context);\n future.complete();\n }\n } else {\n future.fail(ar.cause());\n }\n });\n }).setHandler(ar -> {\n if (ar.failed()) {\n badGateway(ar.cause(), context);\n }\n });\n }", "public void doGet(final HttpTransaction tx) throws IOException\r\n {\r\n String path = tx.getRequestURI();\r\n\r\n //System.out.println();\r\n //System.out.println(\"QpidServer doGet \" + path);\r\n //tx.logRequest();\r\n\r\n if (path.startsWith(\"/qpid/connection/\"))\r\n {\r\n path = path.substring(17);\r\n\r\n String user = tx.getPrincipal(); // Using the principal lets different users use the default connection.\r\n if (path.length() == 0)\r\n { // handle \"/qpid/connection/\" request with unspecified connection (returns list of available connections).\r\n tx.sendResponse(HTTP_OK, \"application/json\", JSON.fromObject(_connections.getAll(user))); \r\n }\r\n else\r\n { // if path.length() > 0 we're dealing with a specified Connection so extract the name and look it up.\r\n String connectionName = path;\r\n int i = path.indexOf(\"/\");\r\n if (i > 0) // Can use > rather than >= as we've already tested for \"/qpid/connection/\" above.\r\n {\r\n connectionName = path.substring(0, i);\r\n path = path.substring(i + 1);\r\n }\r\n else\r\n {\r\n path = \"\";\r\n }\r\n\r\n connectionName = user + \".\" + connectionName;\r\n\r\n // TODO what if we don't want a default connection.\r\n // If necessary we create a new \"default\" Connection associated with the user. The default connection\r\n // attempts to connect to a broker specified in the QpidRestAPI config (or default 0.0.0.0:5672).\r\n if (connectionName.equals(user + \".default\"))\r\n {\r\n ConnectionProxy defaultConnection = _connections.get(connectionName);\r\n if (defaultConnection == null)\r\n {\r\n defaultConnection = _connections.create(connectionName, _defaultBroker, \"\", false);\r\n\r\n // Wait a maximum of 1000ms for the underlying Qpid Connection to become available. If we\r\n // don't do this the first call using the default will return 404 Not Found.\r\n defaultConnection.waitForConnection(1000);\r\n }\r\n }\r\n\r\n // Find the Connection with the name extracted from the URI.\r\n ConnectionProxy connection = _connections.get(connectionName);\r\n\r\n if (connection == null)\r\n {\r\n tx.sendResponse(HTTP_NOT_FOUND, \"text/plain\", \"404 Not Found.\");\r\n }\r\n else if (!connection.isConnected())\r\n {\r\n tx.sendResponse(HTTP_INTERNAL_ERROR, \"text/plain\", \"500 Broker Disconnected.\");\r\n }\r\n else\r\n {\r\n if (path.length() == 0)\r\n { // handle request for information about a specified Console\r\n tx.sendResponse(HTTP_OK, \"application/json\", connection.toString());\r\n }\r\n else\r\n { // In this block we are dealing with resources associated with a specified connectionName.\r\n // path describes the resources specifically related to \"/qpid/connection/<connectionName>\"\r\n Console console = connection.getConsole();\r\n\r\n if (path.startsWith(\"console/objects/\"))\r\n { // Get information about specified objects.\r\n path = path.substring(16);\r\n sendGetObjectsResponse(tx, console, path);\r\n }\r\n else if (path.startsWith(\"console/objects\") && path.length() == 15)\r\n { // If objects is unspecified treat as a synonym for classes.\r\n tx.sendResponse(HTTP_OK, \"application/json\", JSON.fromObject(console.getClasses()));\r\n }\r\n else if (path.startsWith(\"console/address/\"))\r\n { // Get the Console AMQP Address\r\n tx.sendResponse(HTTP_OK, \"application/json\", JSON.fromObject(console.getAddress()));\r\n }\r\n else if (path.startsWith(\"console/address\") && path.length() == 15)\r\n { // Get the Console AMQP Address\r\n tx.sendResponse(HTTP_OK, \"application/json\", JSON.fromObject(console.getAddress()));\r\n }\r\n else if (path.startsWith(\"console/workItemCount/\"))\r\n { // Returns the count of pending WorkItems that can be retrieved.\r\n tx.sendResponse(HTTP_OK, \"text/plain\", \"\" + console.getWorkitemCount());\r\n }\r\n else if (path.startsWith(\"console/workItemCount\") && path.length() == 21)\r\n { // Returns the count of pending WorkItems that can be retrieved.\r\n tx.sendResponse(HTTP_OK, \"text/plain\", \"\" + console.getWorkitemCount());\r\n }\r\n else if (path.startsWith(\"console/nextWorkItem/\"))\r\n { // Obtains the next pending work item, or null if none available.\r\n tx.sendResponse(HTTP_OK, \"application/json\", JSON.fromObject(console.getNextWorkitem()));\r\n }\r\n else if (path.startsWith(\"console/nextWorkItem\") && path.length() == 20)\r\n { // Obtains the next pending work item, or null if none available.\r\n tx.sendResponse(HTTP_OK, \"application/json\", JSON.fromObject(console.getNextWorkitem()));\r\n }\r\n else if (path.startsWith(\"console/agents\") && path.length() == 14)\r\n { // Get information about all available Agents.\r\n tx.sendResponse(HTTP_OK, \"application/json\", JSON.fromObject(console.getAgents()));\r\n }\r\n else if (path.startsWith(\"console/agent/\"))\r\n { // Get information about a specified Agent.\r\n Agent agent = console.getAgent(path.substring(14));\r\n if (agent == null)\r\n {\r\n tx.sendResponse(HTTP_NOT_FOUND, \"text/plain\", \"404 Not Found.\");\r\n }\r\n else\r\n {\r\n tx.sendResponse(HTTP_OK, \"application/json\", JSON.fromObject(agent));\r\n }\r\n }\r\n else if (path.startsWith(\"console/agent\") && path.length() == 13)\r\n { // If agent is unspecified treat as a synonym for agents.\r\n tx.sendResponse(HTTP_OK, \"application/json\", JSON.fromObject(console.getAgents()));\r\n }\r\n else if (path.startsWith(\"console/classes/\"))\r\n { // Get information about the classes for a specified Agent\r\n path = path.substring(16); // Get Agent name\r\n\r\n // TODO handle getClasses() for specified Agent\r\n tx.sendResponse(HTTP_NOT_IMPLEMENTED, \"text/plain\", \"501 getClasses() for specified Agent not yet implemented.\");\r\n }\r\n else if (path.startsWith(\"console/classes\") && path.length() == 15)\r\n { // Get information about all the classes for all Agents\r\n tx.sendResponse(HTTP_OK, \"application/json\", JSON.fromObject(console.getClasses()));\r\n }\r\n else if (path.startsWith(\"console/packages/\"))\r\n { // Get information about the packages for a specified Agent\r\n path = path.substring(17); // Get Agent name\r\n\r\n // TODO handle getPackages() for specified Agent.\r\n tx.sendResponse(HTTP_NOT_IMPLEMENTED, \"text/plain\", \"501 getPackages() for specified Agent not yet implemented.\");\r\n }\r\n else if (path.startsWith(\"object/\"))\r\n {\r\n /**\r\n * This is the REST implementation of getObjects(oid) it is also the equivalent of\r\n * the QmfConsoleData refresh() method where an object can update its state.\r\n * N.B. that the ManagementAgent on the broker appears not to set the timestamp properties\r\n * in the response to this call, which means that they get set to current time in the\r\n * QmfConsoleData, this is OK for _update_ts but not for _create_ts and _delete_ts\r\n * users of this call should be aware of that in their own code.\r\n */\r\n path = path.substring(7);\r\n\r\n // The ObjectId has been passed in the URI, create a real ObjectId\r\n ObjectId oid = new ObjectId(path);\r\n\r\n List<QmfConsoleData> objects = console.getObjects(oid);\r\n if (objects.size() == 0)\r\n {\r\n tx.sendResponse(HTTP_NOT_FOUND, \"text/plain\", \"404 Not Found.\");\r\n }\r\n else\r\n {\r\n // Not that in a departure from the QMF2 API this returns the QmfConsoleData object\r\n // rather than a list of size one. Perhaps the APIs should be completely consistent\r\n // but this response seems more convenient.\r\n tx.sendResponse(HTTP_OK, \"application/json\", JSON.fromObject(objects.get(0)));\r\n }\r\n }\r\n else if (path.startsWith(\"console/packages\") && path.length() == 16)\r\n { // Get information about all the packages for all Agents\r\n tx.sendResponse(HTTP_OK, \"application/json\", JSON.fromObject(console.getPackages()));\r\n }\r\n else\r\n {\r\n tx.sendResponse(HTTP_NOT_FOUND, \"text/plain\", \"404 Not Found.\");\r\n }\r\n }\r\n }\r\n }\r\n }\r\n else if (path.startsWith(\"/qpid/connection\"))\r\n { // handle \"/qpid/connection\" request with unspecified connection (returns list of available connections).\r\n String user = tx.getPrincipal(); // Using the principal lets different users use the default connection.\r\n tx.sendResponse(HTTP_OK, \"application/json\", JSON.fromObject(_connections.getAll(user))); \r\n }\r\n else\r\n {\r\n tx.sendResponse(HTTP_NOT_FOUND, \"text/plain\", \"404 Not Found.\");\r\n }\r\n }", "public static String processRequest(HttpServerExchange exchange) {\n\t\tMap<String, Deque<String>> paras = exchange.getQueryParameters();\n\t\ttry {\n\t\t\tString userId = paras.get(\"userid\").getFirst();\n\t\t\t\n\t\t\tString response = queryHbase(userId).replace('_', '\\n');\n\t\t\treturn response;\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(e);\n\t\t}\n\t\treturn null;\n\t}", "protected void doGet ( HttpServletRequest req, HttpServletResponse resp )\n\t{\n\t\tQueryResultCache cache = null;\n\t\tif ( getConfig().getUseQueryResultCache() ) {\n\t\t\tcache = new QueryResultCacheImpl( getConfig().getPathOfQueryResultCache(),\n\t\t\t getConfig().getMaxQueryResultCacheEntryDuration() );\n\t\t}\n\n\t\tlog.info( \"Start processing request \" + req.hashCode() + \" with \" + getLinkedDataCache().toString() + \".\" );\n// log.info( \"real path: \" + getServletContext().getRealPath(\"WW\") );\nlog.info( \"getInitialFilesDirectory: \" + getInitialFilesDirectory() );\n\n\t\tString accept = req.getHeader( \"ACCEPT\" );\n\t\tif ( accept != null\n\t\t && ! accept.contains(Constants.MIME_TYPE_RESULT_XML)\n\t\t && ! accept.contains(Constants.MIME_TYPE_XML1)\n\t\t && ! accept.contains(Constants.MIME_TYPE_XML2)\n\t\t && ! accept.contains(Constants.MIME_TYPE_RESULT_JSON)\n\t\t && ! accept.contains(Constants.MIME_TYPE_JSON)\n\t\t && ! accept.contains(\"application/*\")\n\t\t && ! accept.contains(\"*/*\") )\n\t\t{\n\t\t\tlog.info( \"NOT ACCEPTABLE for request \" + req.hashCode() + \" (ACCEPT header field: \" + accept + \")\" );\n\n\t\t\ttry {\n\t\t\t\tresp.sendError( HttpServletResponse.SC_NOT_ACCEPTABLE, \"Your client does not seem to accept one of the possible content types (e.g. '\" + Constants.MIME_TYPE_RESULT_XML + \"', '\" + Constants.MIME_TYPE_RESULT_JSON + \"').\" );\n\t\t\t} catch ( IOException e ) {\n\t\t\t\tlog.error( \"Sending the error reponse to request \" + req.hashCode() + \" caused a \" + Utils.className(e) + \": \" + e.getMessage(), e );\n\t\t\t}\n\n\t\t\treturn;\n\t\t}\n\n\t\t// get (and check) the request parameters\n\t\tDirectResultRequestParameters params = new DirectResultRequestParameters ();\n\t\tif ( ! params.process(req) )\n\t\t{\n\t\t\tlog.info( \"BAD REQUEST for request \" + req.hashCode() + \": \" + params.getErrorMsgs() );\n\n\t\t\ttry {\n\t\t\t\tresp.sendError( HttpServletResponse.SC_BAD_REQUEST, params.getErrorMsgs() );\n\t\t\t} catch ( IOException e ) {\n\t\t\t\tlog.error( \"Sending the error reponse to request \" + req.hashCode() + \" caused a \" + Utils.className(e) + \": \" + e.getMessage(), e );\n\t\t\t}\n\n\t\t\treturn;\n\t\t}\n\n\t\tInputStream cachedResultSet = null;\n\t\tResultSetMem resultSet = null;\n\t\tif ( ! params.getIgnoreQueryCache() && cache != null && cache.hasResults(params.getQueryString(),params.getResponseContentType()) )\n\t\t{\n\t\t\tlog.info( \"Found cached result set for request \" + req.hashCode() + \" with query: \" + params.getQueryString() );\n\n\t\t\tcachedResultSet = cache.getResults( params.getQueryString(), params.getResponseContentType() );\n\t\t}\n\t\telse\n\t\t{\n\t\t\t// execute the query\n\t\t\tlog.info( \"Start executing request \" + req.hashCode() + \" with query:\" );\n\t\t\tlog.info( params.getQueryString() );\n\n\t\t\tLinkTraversalBasedQueryEngine.register();\n\t\t\tJenaIOBasedLinkedDataCache ldcache = getLinkedDataCache();\n\t\t\tQueryExecution qe = QueryExecutionFactory.create( params.getQuery(),\n\t\t\t new LinkedDataCacheWrappingDataset(ldcache) );\n\t\t\tresultSet = new ResultSetMem( qe.execSelect() );\n\n\t\t\tlog.info( \"Created the result set (size: \" + resultSet.size() + \") for request \" + req.hashCode() + \".\" );\n\t\t}\n\n\t\t// create the response\n\t\tOutputStream out = null;\n\t\ttry {\n\t\t\tout = resp.getOutputStream();\n\t\t}\n\t\tcatch ( IOException e )\n\t\t{\n\t\t\tlog.error( \"Getting the response output stream for request \" + req.hashCode() + \" caused a \" + Utils.className(e) + \": \" + e.getMessage(), e );\n\n\t\t\ttry {\n\t\t\t\tresp.sendError( HttpServletResponse.SC_INTERNAL_SERVER_ERROR );\n\t\t\t} catch ( IOException e2 ) {\n\t\t\t\tlog.error( \"Sending the error reponse for request \" + req.hashCode() + \" caused a \" + Utils.className(e2) + \": \" + e2.getMessage(), e2 );\n\t\t\t}\n\n\t\t\treturn;\n\t\t}\n\n\t\t// write the response\n\t\tresp.setContentType( params.getResponseContentType() );\n\t\ttry\n\t\t{\n\t\t\tif ( cachedResultSet == null )\n\t\t\t{\n\t\t\t\tif ( params.getResponseContentType() == Constants.MIME_TYPE_RESULT_JSON ) {\n\t\t\t\t\tResultSetFormatter.outputAsJSON( out, resultSet );\n\t\t\t\t} else {\n\t\t\t\t\tResultSetFormatter.outputAsXML( out, resultSet );\n\t\t\t\t}\n\t\t\t}\n\t\t\telse {\n\t\t\t\tcopy( cachedResultSet, out );\n\t\t\t}\n\n\t\t\tlog.info( \"Result written to the response stream for request \" + req.hashCode() + \".\" );\n\t\t}\n\t\tcatch ( Exception e )\n\t\t{\n\t\t\tlog.error( \"Writing the model to the response stream for request \" + req.hashCode() + \" caused a \" + Utils.className(e) + \": \" + e.getMessage() );\n\t\t\ttry {\n\t\t\t\tresp.sendError( HttpServletResponse.SC_INTERNAL_SERVER_ERROR );\n\t\t\t} catch ( IOException e2 ) {\n\t\t\t\tlog.error( \"Sending an error response for request \" + req.hashCode() + \" caused a \" + Utils.className(e2) + \": \" + e2.getMessage(), e2 );\n\t\t\t}\n\t\t}\n\n\t\t// finish\n\t\ttry\n\t\t{\n\t\t\tout.flush();\n\t\t\tresp.flushBuffer();\n\t\t\tout.close();\n\t\t\tlog.info( \"Response buffer for request \" + req.hashCode() + \" flushed.\" );\n\t\t}\n\t\tcatch ( IOException e )\n\t\t{\n\t\t\tlog.error( \"Flushing the response buffer for request \" + req.hashCode() + \" caused a \" + Utils.className(e) + \": \" + e.getMessage(), e );\n\t\t}\n\n\t\tlog.info( \"Finished processing request \" + req.hashCode() + \" with \" + getLinkedDataCache().toString() + \".\" );\n\n\t\tif ( cache != null && cachedResultSet == null ) {\n\t\t\tcache.cacheResults( params.getQueryString(), resultSet );\n\t\t}\n\t}", "void requestProcessed( C conn, int numResponseExpected ) ;", "@Override\n protected Void doInBackground(String... args) {\n \twhile(true) {\n\t \tInputStream is = null;\n\t \tint response = 0;\n\t try {\n\t URL url = new URL(meshDisplayEngine.getServerBaseURL() + \"/device_list_for_event/event_id/\" \n\t \t\t\t\t+ meshDisplayEngine.eventID);\n\t HttpURLConnection conn = (HttpURLConnection) url.openConnection();\n\t conn.setReadTimeout(10000 /* milliseconds */);\n\t conn.setConnectTimeout(15000 /* milliseconds */);\n\t conn.setRequestMethod(\"GET\");\n\t conn.setRequestProperty(\"accept\",\"application/json\");\n\t conn.setDoInput(true);\n\t \n\t // Starts the query\n\t conn.connect();\n\t \n\t //Check the response code and decode the message sent by the server\n\t response = conn.getResponseCode();\n\t is = conn.getInputStream();\n\t BufferedReader reader = new BufferedReader(new InputStreamReader(is), 8192);\n\t String line = \"\";\n\t StringBuffer receivedMessage = new StringBuffer();\n\t while ((line = reader.readLine()) != null) {\n\t \treceivedMessage = receivedMessage.append(line);\n\t }\n\t reader.close();\n\t Log.d(\"LiveMeshEventControllerActivity PollServerForClients\", \"receivedMessage: \" + receivedMessage);\n\t JSONArray clientList = new JSONArray(receivedMessage.toString());\n\t publishProgress(new ResponseInfo(response, clientList));\n\t } catch (IOException e) {\n\t\t\t\t\t//Some IO problem occurred - dump stack and inform caller\n\t \tLog.d(\"LiveMeshEventControllerActivity PollServerForClients\", \"exception posting join event request - response code: \" + response);\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t} catch (JSONException e) {\n\t\t\t\t\t//An Error occurred decoding the JSON\n\t\t\t\t\tLog.d(\"LiveMeshEventControllerActivity PollServerForClients\", \"exception parsing JSON response\");\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t} finally {\n\t\t // Makes sure that the InputStream is closed after the app is\n\t\t // finished using it.\n\t if (is != null) {\n\t \ttry {\n\t \t\tis.close();\n\t \t} catch (IOException e) {\n\t \t\t\t\t//Some IO problem occurred while closing is - just to a stack dump in this case\n\t \t\tLog.d(\"LiveMeshEventControllerActivity PollServerForClients\", \"exception closing is file\");\n\t \t\t\t\te.printStackTrace();\n\t \t}\n\t } \n\t }\n\t \n\t //Sleep until the next poll\n\t try {\n\t\t\t\t\tThread.sleep(2000);\n\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t//Interrupted while sleeping - simply log this\n\t\t\t\t\tLog.d(\"LiveMeshEventControllerActivity PollServerForClients\", \"interupted while sleeping\");\n\t\t\t\t\treturn null;\n\t\t\t\t}\n \t}\n }", "String processQuery(String query);", "<T extends BaseDto> List<T> executeQuery(String resQuery, QueryResultTransformer<T> transformer, Connection conn);", "@Override\n\t\t\tpublic Object handle(Request req, Response res) {\n\t\t\t\tfinal String op = req.params(\":op\");\n\t\t\t\tfinal String path = req.queryParams(\"path\");\n\t\t\t\t//--- list will list down all available results for a course ---//\n\t\t\t\tif (op.equals(\"list\")) return Results.list(path);\n\t\t\t\t//--- get will display one single result ---//\n\t\t\t\telse if (op.equals(\"get\")) return Results.get(path);\n\t\t\t\telse return null;\n\t\t\t}", "@Override\n\t\t\tpublic Object handle(Request req, Response res) {\n\t\t\t\tfinal String op = req.params(\":op\");\n\t\t\t\tfinal String path = req.queryParams(\"path\");\n\t\t\t\t//--- list will list down all available results for a course ---//\n\t\t\t\tif (op.equals(\"list\")) return Results.list(path);\n\t\t\t\t//--- get will display one single result ---//\n\t\t\t\telse if (op.equals(\"get\")) return Results.get(path);\n\t\t\t\telse return null;\n\t\t\t}", "@Override\r\n\t\t\tpublic void handle(final HttpServerRequest req) {\n\t\t\t\tString startTime = \"1355562000000\"; //--multi-dist\r\n\t\t\t\tIterator<EventInfo> iter = \r\n\t\t\t\t\t\tdataService.events()\r\n\t\t\t\t\t\t\t.find(\"{timestamp:{$gt:\"+startTime+\"}}\")\r\n\t\t\t\t\t\t\t.sort(\"{timestamp:1}\")\r\n\t\t\t\t\t\t\t.as(EventInfo.class).iterator();\r\n\t\t\t\tEventCounter multiCounter = new EventCounter(\"/multi\");\r\n\t\t\t\tint processed = 0;\r\n\t\t\t\twhile (iter.hasNext() && processed < limit) {\r\n\t\t\t\t\tEventInfo event = iter.next();\r\n\t\t\t\t\tmultiCounter.countEvent(event);\r\n\t\t\t\t\tprocessed++;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\treq.response.setChunked(true);\r\n\t\t\t\tmultiCounter.printDistance(req, \"multidist\");\r\n\t\t\t\t//multiCounter.printResponse(req, \"multidist\");\r\n\t\t\t\t//use response time data\r\n\t\t\t\tIterator<ResponseInfo> respIter = \r\n\t\t\t\t\t\tdataService.response()\r\n\t\t\t\t\t\t\t.find(\"{timestamp:{$gt:\"+startTime+\"}}\")\r\n\t\t\t\t\t\t\t.sort(\"{timestamp:1}\")\r\n\t\t\t\t\t\t\t.as(ResponseInfo.class).iterator();\r\n\t\t\t\tResponseCounter responseCounter = new ResponseCounter();\r\n\t\t\t\tprocessed = 0;\r\n\t\t\t\twhile (respIter.hasNext() && processed < limit) {\r\n\t\t\t\t\tResponseInfo resp = respIter.next();\r\n\t\t\t\t\tresponseCounter.count(resp);\r\n\t\t\t\t\tprocessed++;\r\n\t\t\t\t}\r\n\t\t\t\tresponseCounter.printResponse(req, \"multidist\");\r\n\r\n\t\t\t\treq.response.end();\r\n\t\t\t}", "@Override\n\t\t\tpublic void run() {\n\t\t\t\tCursor cursor = context.getContentResolver().query(uri,\n\t\t\t\t\t\tprojection, selection, selectionArgs, sortOrder);\n\t\t\t\tMessage msg = Message.obtain();\n\t\t\t\tif (cursor != null) {\n\t\t\t\t\tmsg.what = SUCCESS;\n\t\t\t\t} else {\n\t\t\t\t\tmsg.what = FAIL;\n\t\t\t\t}\n\t\t\t\thandler.sendMessage(msg);\n\t\t\t}", "SearchResponse query(SearchRequest request, Map<SearchParam, String> params);", "public void handleMessage(Msg clientMsg) {\n switch (clientMsg.getMsgType()) {\n case ID_IS_SET:\n handle_id_is_set(clientMsg);\n break;\n\n case SHIPS_PLACED:\n handle_ships_placed(clientMsg);\n break;\n\n case WAITING:\n break;\n\n case SHOT_PERFORMED:\n handle_shot_performed(clientMsg);\n break;\n }\n }", "public void processRequest(String request) {\r\n // Request for closing connection\r\n if (request.equals(\"CLOSE\")) {\r\n isOpen = false;\r\n\r\n // Request for getting all of the text on the Server's text areas\r\n } else if (request.equals(\"GET ALL TEXT\")) {\r\n String [] array = FileIOFunctions.getAllTexts();\r\n\r\n sendMessage(\"GET ALL TEXT\");\r\n sendMessage(array[0]);\r\n sendMessage(array[1]);\r\n } else {}\r\n }", "private QueryResults query(String queryName, Object[] args) {\n Command command = CommandFactory.newQuery(\"persons\", queryName, args);\n String queryStr = template.requestBody(\"direct:marshall\", command, String.class);\n\n String json = template.requestBody(\"direct:test-session\", queryStr, String.class);\n ExecutionResults res = (ExecutionResults) template.requestBody(\"direct:unmarshall\", json);\n return (QueryResults) res.getValue(\"persons\");\n }", "private RequestResponse handleSearchRequest(Request request, Response response) throws ServiceException {\n response.type(\"application/json\");\n\n String core = request.params(\":core\");\n if (StringUtils.isEmpty(core)) {\n throw new ServiceException(\"Failed to provide an index core for the document\");\n }\n\n SearchParameters searchParameters = new RequestToSearchParameters().convert(request);\n return this.searchService.query(core, searchParameters);\n }", "public abstract void handleServer(ServerConnection conn);", "@Override\n\t\t\t\t\tpublic void run() {\n\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tList<String> headers = readRequest(client);\n\t\t\t\t\t\t\tif (headers != null && headers.size() >= 1) {\n\t\t\t\t\t\t\t\tString requestURL = getRequestURL(headers.get(0));\n\t\t\t\t\t\t\t\tLog.d(TAG, requestURL);\n\n\t\t\t\t\t\t\t\tif (requestURL.startsWith(\"http://\")) {\n\n\t\t\t\t\t\t\t\t\t// HttpRequest request = new\n\t\t\t\t\t\t\t\t\t// BasicHttpRequest(\"GET\", requestURL);\n\n\t\t\t\t\t\t\t\t\tprocessHttpRequest(requestURL, client, headers);\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tprocessFileRequest(requestURL, client, headers);\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} catch (IllegalStateException e) {\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t}", "public QueryResponse query(SolrParams params, METHOD method) throws SolrServerException, IOException {\n return new QueryRequest(params, method).process(this);\n }", "protected void serveClient() {\r\n\t\tif (lineIn == null || lineOut == null) {\r\n\t\t\tSystem.err.printf(\"I/O has not been set up.%n\");\r\n\t\t} else {\r\n\t\t\ttry {\r\n\t\t\t\tString clientRequest;\r\n\t\t\t\tStringTokenizer args;\r\n\r\n\t\t\t\t// control loop, receiving client requests\r\n\t\t\t\twhile (!exitRecieved) {\r\n\t\t\t\t\t// PRESENT PROMPT\r\n\t\t\t\t\tsendMessage(PROMPT);\r\n\r\n\t\t\t\t\t// ACCEPT & PROCESS INPUT\r\n\t\t\t\t\tclientRequest = receiveMessage();\r\n\t\t\t\t\targs = new StringTokenizer(clientRequest);\r\n\t\t\t\t\tprocessCommand(args);\r\n\t\t\t\t}\r\n\r\n\t\t\t} catch (IOException ioe) {\r\n\t\t\t\tSystem.err.printf(\"IO Error receiving client input: %s%n\", ioe);\r\n\t\t\t}\r\n\t\t}\r\n\t}" ]
[ "0.73105764", "0.65392447", "0.63516486", "0.63182247", "0.6116352", "0.59634554", "0.59596175", "0.5899209", "0.58382595", "0.582178", "0.5804298", "0.57661235", "0.5755198", "0.5710919", "0.57073814", "0.5696964", "0.56936926", "0.56732094", "0.56577235", "0.56498855", "0.5633012", "0.56207687", "0.56183004", "0.560389", "0.55994993", "0.55231225", "0.54938495", "0.54796565", "0.5477518", "0.54686487", "0.5463491", "0.5456213", "0.544944", "0.5448455", "0.54401726", "0.5429943", "0.5402277", "0.5396332", "0.5383388", "0.5380748", "0.53777903", "0.5377671", "0.53688174", "0.5358619", "0.53375036", "0.5335854", "0.5335288", "0.5328064", "0.5327898", "0.5323641", "0.53194994", "0.5312764", "0.5303312", "0.5296916", "0.52945584", "0.5289868", "0.5273204", "0.5267638", "0.5267065", "0.52654", "0.5245406", "0.5245163", "0.52413243", "0.523471", "0.5229196", "0.52208745", "0.51917046", "0.51721895", "0.5163682", "0.5162362", "0.5162213", "0.51566476", "0.5155988", "0.51545066", "0.514943", "0.5140929", "0.5140173", "0.51381886", "0.51358414", "0.5109416", "0.51093054", "0.5108643", "0.51058763", "0.509958", "0.5098939", "0.50938183", "0.5078811", "0.50783634", "0.5076628", "0.5076628", "0.5061473", "0.5053811", "0.5046008", "0.50427765", "0.5022181", "0.50220734", "0.5015564", "0.50078917", "0.5004342", "0.49976847", "0.49963206" ]
0.0
-1
Handle requests to update one or more rows.
@Override public int update(Uri uri, ContentValues values, String selection, String[] selectionArgs) { throw new UnsupportedOperationException("Not yet implemented"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract int update(Iterable<T> messages, QueryOption.WhereOption... whereOptions)\n throws DatabaseRequestException, DatabaseSchemaException;", "@Override\n public RespResult<List<SqlExecRespDto>> batchExecuteUpdate(String username, List<SqlExecReqDto> updates) {\n return null;\n }", "abstract Integer processUpdateQuery(String collectionName, ArrayList<HashMap<String,Object>> data, boolean isNew);", "private int executeUpdateInternal(List<Object> values) {\r\n\t\tif (logger.isDebugEnabled()) {\r\n\t\t\tlogger.debug(\"The following parameters are used for update \" + getUpdateString() + \" with: \" + values);\r\n\t\t}\r\n\t\tint updateCount = jdbcTemplate.update(updateString, values.toArray(), columnTypes);\r\n\t\treturn updateCount;\r\n\t}", "<T extends BaseDto> void executeUpdate(String reqQuery, T req, Connection conn);", "@Override\n protected void executeUpdate(final String requestId, DSRequest request, final DSResponse response)\n {\n JavaScriptObject data = request.getData();\n final ListGridRecord rec = new ListGridRecord(data);\n ContactDTO testRec = new ContactDTO();\n copyValues(rec, testRec);\n service.update(testRec, new AsyncCallback<Void>()\n {\n @Override\n public void onFailure(Throwable caught)\n {\n response.setStatus(RPCResponse.STATUS_FAILURE);\n processResponse(requestId, response);\n SC.say(\"Contact Edit Save\", \"Contact edits have NOT been saved!\");\n }\n\n @Override\n public void onSuccess(Void result)\n {\n ListGridRecord[] list = new ListGridRecord[1];\n // We do not receive removed record from server.\n // Return record from request.\n list[0] = rec;\n response.setData(list);\n processResponse(requestId, response);\n SC.say(\"Contact Edit Save\", \"Contact edits have been saved!\");\n }\n });\n }", "public abstract void rowsUpdated(int firstRow, int endRow);", "public void executeUpdate(String request) {\n try {\r\n st.executeUpdate(request);\r\n } catch (SQLException ex) {\r\n Logger.getLogger(Database.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }", "private boolean update(Object[] data)throws Exception{\n String query = \"UPDATE \" + tableName + \" SET name=?, city=? WHERE phone=?\";\n PreparedStatement pstm = con.prepareStatement(query);\n \n pstm.setObject(1, data[0]);\n pstm.setObject(2, data[1]);\n pstm.setObject(3, data[2]);\n\n int result = pstm.executeUpdate();\n\n return (result > 0);\n }", "public abstract void rowsUpdated(int firstRow, int endRow, int column);", "public abstract Response update(Request request, Response response);", "public void executeUpdate();", "int update(String table, ContentValues values, String whereClause, String[] whereArgs);", "public abstract void update(@Nonnull Response response);", "@RestAPI\n \t@PreAuthorize(\"hasAnyRole('A')\")\n \t@RequestMapping(value = \"/api\", params = \"action=update\", method = RequestMethod.PUT)\n \tpublic HttpEntity<String> update(@RequestParam(\"ids\") String ids) {\n \t\tString[] split = StringUtils.split(ids, \",\");\n \t\tfor (String each : split) {\n \t\t\tupdate(Long.parseLong(each));\n \t\t}\n \t\treturn successJsonHttpEntity();\n \t}", "@Override\r\n\tpublic void updateForHql(String hql, Object[] params) throws Exception {\n\r\n\t\ttry {\r\n\t\t\tQuery q = this.getcurrentSession().createQuery(hql);\r\n\t\t\tif (params != null && params.length > 0) {\r\n\t\t\t\tfor (int i = 0; i < params.length; i++) {\r\n\t\t\t\t\tq.setParameter(i, params[i]);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tq.executeUpdate();\r\n\t\t} catch (DataAccessException e) {\r\n\t\t\t// TODO: handle exception\r\n\t\t\tthrow new Exception(\"update error for updateForHql\", e);\r\n\t\t}\r\n\t}", "@Override\n\t\t\t\tpublic void rowsUpdated(int firstRow, int endRow) {\n\n\t\t\t\t}", "public void doUpdate(T objectToUpdate) throws SQLException;", "public int updateRequestData(Request input) throws SQLException{\n String sqlquery = \"UPDATE Request SET Requester=?, ModelName=?, Worker=?,Ps=?, Status=?, ExecutionTime=?,Accuracy=?, DownloadUrl=? WHERE id=?\";\n PreparedStatement statement = this.connection.prepareStatement(sqlquery);\n this.setCreateAndUpdateStatement(statement,input);\n statement.setInt(9,input.getId());\n return statement.executeUpdate();\n }", "int updateByPrimaryKeySelective(TbComEqpModel record);", "@Override\n public int update(Uri uri, ContentValues contentValues, String selection, String[] selectionArgs) {\n final int match = sUriMatcher.match(uri);\n switch (match) {\n case DATA:\n return updateItem(uri, contentValues, selection, selectionArgs, DataEntry.TABLE_NAME, DataEntry.COLUMN_NAME);\n case DATA_ID:\n // updates the table at specific id\n selection = DataEntry._ID + \"=?\";\n selectionArgs = new String[]{String.valueOf(ContentUris.parseId(uri))};\n return updateItem(uri, contentValues, selection, selectionArgs, DataEntry.TABLE_NAME, DataEntry.COLUMN_NAME);\n default:\n throw new IllegalArgumentException(\"Update is not supported for \" + uri);\n }\n }", "int updateByPrimaryKey(Body record);", "public abstract int execUpdate(String query) ;", "public String update(String id, String datetime, String description, String request, String status);", "public abstract void update(PaginationParameters parameters,\r\n\t\t\tAsyncCallback updateTableCallback);", "public int req(Long req_id)throws SQLException {\nint i=DbConnect.getStatement().executeUpdate(\"update requested set status='processed',remark='bought fail' where reqid=\"+req_id+\"\");\t\r\n\treturn i;\r\n}", "void executeUpdate();", "void executeUpdate(String noParamQuery, Connection conn);", "@Override\n public int update(Uri uri, ContentValues values, String selection, String[] selectionArgs) {\n int rowsUpdated = 0;\n//\n// // Used to match uris with Content Providers\n// switch (uriMatcher.match(uri)) {\n// case uriCode:\n// // Update the row or rows of data\n// rowsUpdated = sqlDB.update(TABLE_NAME, values, selection, selectionArgs);\n// break;\n// default:\n// throw new IllegalArgumentException(\"Unknown URI \" + uri);\n// }\n//\n// // getContentResolver provides access to the content model\n// // notifyChange notifies all observers that a row was updated\n// getContext().getContentResolver().notifyChange(uri, null);\n return rowsUpdated;\n }", "int updateByPrimaryKey(TbComEqpModel record);", "@Override\r\n\tpublic void update() throws SQLException {\n\r\n\t}", "public void testBatchUpdate() {\n template.getJdbcOperations().batchUpdate(new String[]{websource.method2()});\n\n //Test SimpleJdbcOperations execute\n template.getJdbcOperations().execute(websource.method2());\n }", "void filterUpdate(ServerContext context, UpdateRequest request,\n ResultHandler<Resource> handler, RequestHandler next);", "@Override\n\tpublic boolean batchUpdate(String[] SQLs) throws RemoteException {\n\t\treturn DAManager.batchUpdate(SQLs);\n\t}", "private void updateAll() {\n updateAction();\n updateQueryViews();\n }", "int updateByPrimaryKey(ResultDto record);", "int updateByPrimaryKeySelective(Body record);", "int updateByPrimaryKey(StatusReplies record);", "void row_Modify(String[] col, int row_id){\n\t\tString values=\"\";\n\t\tStatement stm=null;\n\t\t//Change tuple by executing SQL command\n\t\tfor(int i=1;i<colNum;i++){\n\t\t\tif(col[i]!=\"\"){\n\t\t\t\tif(i!=1 && values!=\"\") values+=\", \";\n\t\t\t\tif(i==1) values+=\"Type='\"+col[i]+\"' \";\n\t\t\t\telse if(i==2) values+=\"Address='\"+col[i]+\"' \";\n\t\t\t\telse if(i==3) values+=\"City='\"+col[i]+\"' \";\n\t\t\t\telse if(i==4) values+=\"State='\"+col[i]+\"' \";\n\t\t\t\telse if(i==5) values+=\"Zip='\"+col[i]+\"' \";\n\t\t\t\telse if(i==6) values+=\"Price=\"+col[i]+\" \";\n\t\t\t\telse if(i==7) values+=\"Beds=\"+col[i]+\" \";\n\t\t\t\telse if(i==8) values+=\"Baths=\"+col[i]+\" \";\n\t\t\t\telse if(i==9) values+=\"SQFT=\"+col[i]+\" \";\n\t\t\t\telse if(i==10) values+=\"Year_built=\"+col[i]+\" \";\n\t\t\t\telse if(i==11) values+=\"Parking_spot=\"+col[i]+\" \";\n\t\t\t\telse if(i==12) values+=\"Days_on_market=\"+col[i]+\" \";\n\t\t\t\telse if(i==13) values+=\"Status='\"+col[i]+\"' \";\n\t\t\t\telse if(i==14) values+=\"Agency='\"+col[i]+\"' \";\n\t\t\t\t\n\t\t\t}\n\t\t}//end of for loop\n\t\t\n\t\tif(values!=\"\"){\n\t\t String sql=\"update \"+tableName+\" set \"+values+\" where id=\"+row_id;\n\t\t System.out.println(\"sql: \"+sql); \n\t\t try{\n\t\t \t stm=con.createStatement(); \n\t\t \t stm.executeUpdate(sql);\n\t\t \t //Append SQL command and time stamp on log file\n\t\t \t outfile.write(\"TIMESTAMP: \"+getTimestamp());\n\t\t\t\t outfile.newLine();\n\t\t\t\t outfile.write(sql);\n\t\t\t\t outfile.newLine();\n\t\t\t\t outfile.newLine();\n\t\t\t //Catch SQL exception\t \n\t\t }catch (SQLException e ) {\n\t\t \t e.printStackTrace();\n\t\t //Catch I/O exception \t \n\t\t }catch(IOException ioe){ \n\t\t \t ioe.printStackTrace();\n\t\t } finally {\n\t\t \t try{\n\t\t if (stm != null) stm.close(); \n\t\t }\n\t\t \t catch (SQLException e ) {\n\t\t \t\t e.printStackTrace();\n\t\t\t }\n\t\t }\t\n\t\t}\n\t}", "public void updateRoomChanges_DB() throws SQLException{\n \n //update all rooms\n for(int i=0;i<roomCounter;i++){\n String sqlstmt = \"UPDATE \\\"APP\\\".\\\"HOTELROOMS\\\" \"\n + \"SET ISAVAILABLE = \"+myHotel[i].getStatus()\n + \", OCCUPANT = '\" + myHotel[i].getOccupant()\n + \"', GUESTID = \" + myHotel[i].getOccupantID()\n + \" , STARTDATE = '\"+ myHotel[i].getStartDate()\n + \"', ENDDATE = '\"+ myHotel[i].getEndDate()\n + \"' WHERE ROOMNUMBER = \" + myHotel[i].getRoomNum();\n \n cs = con.prepareCall(sqlstmt); \n cs.execute(); //execute the sql command \n }\n \n }", "@Override\n\tpublic String updateBatch(List<Map<String, Object>> entityMap)\n\t\t\tthrows DataAccessException {\n\t\treturn null;\n\t}", "int updateByPrimaryKeySelective(StatusReplies record);", "@Override\n public void update(String table_name, String[] values, String where_condition, String[] whereArgs) {\n\n // silently return if connection is closed\n if (!is_open) {\n return;\n }\n\n // build update string\n StringBuilder update_string = new StringBuilder(\"UPDATE \" + table_name + \" SET \");\n\n // loop through values and update each\n int length = values.length;\n for (int i = 0; i < length; i++) {\n update_string.append(values[i]);\n\n // if we aren't at the last value, separate with a comma\n if (i != length - 1) {\n update_string.append(\", \");\n }\n }\n\n // if there is a condition, include it\n if (where_condition != null) {\n update_string.append(\" WHERE \");\n\n // replace question marks in where condition with strings (Android style!)\n if (where_condition.contains(\"?\") && whereArgs != null && whereArgs.length > 0) {\n for (String whereArg : whereArgs) {\n where_condition = where_condition.replaceFirst(\"\\\\?\", \"'\" + whereArg + \"'\");\n }\n }\n\n // update with the new where condition\n update_string.append(where_condition);\n } else {\n // if no condition, update every row! (dangerous)\n update_string.append(\" WHERE 1 = 1\");\n }\n\n // try to update the entry\n try {\n statement.execute(update_string.toString());\n connection.commit();\n } catch (SQLException e) {\n System.out.println(\"Could not update entry in table \" + table_name);\n e.printStackTrace();\n }\n\n //System.out.println(\"Updated entry in table \" + table_name);\n\n }", "int updateByPrimaryKey(Addresses record);", "int executeUpdate() throws SQLException;", "int updateByPrimaryKey(BaseReturn record);", "@Override\n public RespResult<Integer> batchExecuteUpdateNoBlocking(String username, String system, List<SqlExecReqDto> updates) {\n return RespResult.buildSuccessWithData(0);\n }", "int updateByPrimaryKey(VoteList record);", "int updateByPrimaryKey(Employee record);", "int updateByPrimaryKeySelective(ResultDto record);", "@Override\n public MockResponse handleUpdate(RecordedRequest request) {\n return process(request, putHandler);\n }", "int updateByPrimaryKeySelective(BaseReturn record);", "@RequestMapping(value = \"/action\", method = RequestMethod.POST)\r\n //@ResponseStatus(HttpStatus.CREATED)\r\n\tpublic ResponseEntity<RequestWrapper> updateWithMultipleObjects(\r\n\t\t\t@RequestBody RequestWrapper requestWrapper) {\r\n\t\t\tSystem.out.println( \"Dentro del Action Estructura cargada: \");\r\n\t\t\t//System.out.println( this.e );\r\n\t\t\t//System.out.println( \"RW: \");\r\n\t\t\t//System.out.println( requestWrapper.toString() );\r\n\t\t\t//System.out.println( \"\");System.out.println( \"\");\r\n\t\t\trequestWrapper.ejecutar(this.e);\r\n\r\n\t\t\t/*requestWrapper.getCars().stream()\r\n\t\t\t\t\t\t\t\t.forEach(c -> c.setMiles(c.getMiles() + 100));\r\n\t\t\tSystem.out.println( \"post add\");\r\n\t\t\t//console.log( requestWrapper.toString());\r\n\r\n\t\t\tSystem.out.println( \"post String print\");\r\n\t\t// TODO: call persistence layer to update\r\n*/\r\n\t\treturn new ResponseEntity<RequestWrapper>(requestWrapper, HttpStatus.OK);\r\n\t}", "int updateByPrimaryKey(HpItemParamItem record);", "int updateByPrimaryKey(BPBatchBean record);", "int updateByPrimaryKey(SelectUserRecruit record);", "@Override\n protected Response doUpdate(Long id, JSONObject data) {\n return null;\n }", "@Override\n\t\t\t\tpublic void rowsUpdated(int firstRow, int endRow, int column) {\n\n\t\t\t\t}", "int updateByPrimaryKeyWithBLOBs(StatusReplies record);", "int updateByPrimaryKeySelective(Thing record);", "public void updateRow() throws SQLException\n {\n m_rs.updateRow();\n }", "int updateByPrimaryKeySelective(BPBatchBean record);", "private int updateItem(Uri uri, ContentValues values, String selection, String[] selectionArgs, String table_name, String column_name) {\n /** If the {@link column_name} key is present, check that the name value is not null.*/\n if (values.containsKey(column_name)) {\n // Check that the name is not null\n String name = values.getAsString(column_name);\n if (name == null) {\n throw new IllegalArgumentException(\"Task requires a name\");\n }\n }\n\n // If there are no values to update, then don't try to update the database\n if (values.size() == 0) {\n return 0;\n }\n SQLiteDatabase database = dataDbHelper.getWritableDatabase();\n // Perform the update on the database and get the number of rows affected\n int rowsUpdated = database.update(table_name, values, selection, selectionArgs);\n\n // If 1 or more rows were updated, then notify all listeners that the data at the\n // given URI has changed\n if (rowsUpdated != 0) {\n getContext().getContentResolver().notifyChange(uri, null);\n }\n //Return the number of rows that were affected\n return rowsUpdated;\n }", "@Override\n public int update(Model model) throws ServiceException {\n try {\n \treturn getDao().updateByID(model);\n\t\t} catch (Exception e) {\n\t\t\t// TODO: handle exception\n\t\t\tlogger.error(e.getMessage());\n\t\t\tthrow new ServiceException(ResultCode.DB_ERROR);\n\t\t}\n }", "int updateByPrimaryKey(Forumpost record);", "int updateByPrimaryKeySelective(Assist_table record);", "int updateByPrimaryKeySelective(Employee record);", "int updateByPrimaryKey(RecordLike record);", "@Override\n public int executeUpdate(String sql, String columnNames[]) \n throws SQLException {\n return 0;\n }", "int updateByPrimaryKey(ResourcePojo record);", "int updateByPrimaryKey(Model record);", "int update(Purchase purchase) throws SQLException, DAOException;", "int updateByPrimaryKey(Assist_table record);", "public void updateData() throws SQLException {\n pst=con.prepareStatement(\"update employee set name=?,city=? where id=?\");\n System.out.println(\"Enter name: \");\n String name=sc.next();\n pst.setString(1,name);\n\n System.out.println(\"Enter city: \");\n String city=sc.next();\n pst.setString(2,city);\n\n System.out.println(\"Enter id: \");\n int id=sc.nextInt();\n pst.setInt(3,id);\n pst.execute();\n\n System.out.println(\"Data updated successfully\");\n }", "public void updates(String hql, Object... param) {\n\t\tthis.rsDAO.updates(hql, param) ;\n\t}", "int updateByPrimaryKey(Orderall record);", "int updateByPrimaryKey(Yqbd record);", "int updateByPrimaryKey(AccessModelEntity record);", "public abstract int update(T item) throws RepositoryException;", "E update(ID id, E entity, RequestContext context);", "public void setRowsToUpdate(java.util.Collection<UpdateRowData> rowsToUpdate) {\n if (rowsToUpdate == null) {\n this.rowsToUpdate = null;\n return;\n }\n\n this.rowsToUpdate = new java.util.ArrayList<UpdateRowData>(rowsToUpdate);\n }", "public int updateById(EvaluetingListDO evaluetingList) throws DataAccessException;", "int updateByPrimaryKeySelective(Forumpost record);", "void update(EmployeeDetail detail) throws DBException;", "@Override\r\n\tpublic void doUpdate(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException {\n\t\t\r\n\t}", "public int updateOrderItem(OrderItem u) {\n int ok = 0;\n try {\n String query = \"UPDATE order_Item SET amount = ?, product_id_Product = ?, order_id_Order = ? WHERE id_Order_Item = ? ;\";\n\n PreparedStatement st = con.prepareStatement(query); //Prepared the query\n //Select id informated \n List<OrderItem> l = new OrderItemDao().searchOrderItem(u.getIdOrderItem());\n \n for (OrderItem lc : l) {\n st.setInt(4, lc.getIdOrderItem());\n }\n st.setInt(1, u.getAmount());\n st.setInt(2, u.getProductIdProduct());\n st.setInt(3, u.getOrderIdItem());\n\n ok = st.executeUpdate(); //Execute the update\n st.close(); //Close the Statment\n con.close(); //Close the connection\n\n } catch (SQLException e) {\n e.printStackTrace();\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n return ok;\n }", "Table8 update(Table8 table8) throws EntityNotFoundException;", "public abstract void update(DataAction data, DataRequest source) throws ConnectorOperationException;", "public abstract void updateEmployee(int id, Employee emp) throws DatabaseExeption;", "@Override\n\tpublic int update(Object obj) throws SQLException {\n\t\treturn 0;\n\t}", "int updateAllComponents(RecordSet inputRecords);", "int updateByPrimaryKey(TempletLink record);", "int updateByPrimaryKey(SupplyNeed record);", "public void attemptToUpdate();", "int updateByPrimaryKey(CraftAdvReq record);", "int updateByPrimaryKeySelective(Addresses record);", "public void update(T object) throws SQLException;", "Future<UpdateBackendResponse> updateBackend(\n UpdateBackendRequest request,\n AsyncHandler<UpdateBackendRequest, UpdateBackendResponse> handler);", "int updateByPrimaryKey(T record);", "int updateByPrimaryKeySelective(AccessModelEntity record);", "int updateByPrimaryKeySelective(AbiFormsForm record);" ]
[ "0.6462745", "0.6232543", "0.6176219", "0.61561966", "0.6153838", "0.6153735", "0.61176753", "0.61046153", "0.6079177", "0.6016764", "0.6001728", "0.5996146", "0.5953438", "0.59085333", "0.58959097", "0.5887959", "0.5871661", "0.5868391", "0.58537185", "0.58466053", "0.5836277", "0.5824229", "0.58107644", "0.5809447", "0.5787443", "0.5781139", "0.57646054", "0.5764048", "0.5758863", "0.5755313", "0.5748547", "0.5732677", "0.5731314", "0.57247585", "0.5716619", "0.5707477", "0.569879", "0.56972945", "0.568913", "0.56831473", "0.5679894", "0.56645095", "0.5662712", "0.5661866", "0.56615967", "0.56598854", "0.5637422", "0.5633062", "0.5625105", "0.5623336", "0.5621432", "0.5611297", "0.5599524", "0.5593691", "0.559008", "0.55884445", "0.55730206", "0.55702287", "0.55692977", "0.5565701", "0.5565237", "0.55456614", "0.5534207", "0.5533829", "0.55221325", "0.55178154", "0.55080926", "0.55068225", "0.550567", "0.5491965", "0.54917973", "0.54880667", "0.5483854", "0.54828423", "0.54824984", "0.5482311", "0.5482214", "0.54819584", "0.5480516", "0.54793334", "0.54787153", "0.5474619", "0.5467437", "0.5456401", "0.54559034", "0.5452261", "0.54509217", "0.5448873", "0.5443065", "0.54424894", "0.54412913", "0.5440961", "0.544", "0.54373467", "0.5435732", "0.5434493", "0.5430864", "0.5427823", "0.5425593", "0.5425452", "0.54243" ]
0.0
-1
The documentation says that `getPageWidth(...)` returns the fraction of the _measured_ width that that page takes up. However, the code seems to use the width so we will here too.
@Override public void onPageScrolled(int position, float positionOffset, int positionOffsetPixels) { final int width = getWidth(); PagerAdapter adapter = RtlViewPager.super.getAdapter(); if (isRtl() && adapter != null) { int count = adapter.getCount(); int remainingWidth = (int) (width * (1 - adapter.getPageWidth(position))) + positionOffsetPixels; while (position < count && remainingWidth > 0) { position += 1; remainingWidth -= (int) (width * adapter.getPageWidth(position)); } position = count - position - 1; positionOffsetPixels = -remainingWidth; positionOffset = positionOffsetPixels / (width * adapter.getPageWidth(position)); } mListener.onPageScrolled(position, positionOffset, positionOffsetPixels); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n public int getWidth()\r\n {\r\n try\r\n {\r\n return pageSwitcher.getWidth();\r\n }\r\n catch(NullPointerException e)\r\n {\r\n return super.getWidth();\r\n }\r\n }", "public int getPageWidth() {\n/* 116 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "private BigInteger getDocumentWidth() {\r\n\t\tCTPageSz pageSize = this.getDocument().getDocument().getBody()\r\n\t\t\t\t.getSectPr().getPgSz();\r\n\t\tBigInteger documentWidth = pageSize.getW();\r\n\t\treturn documentWidth;\r\n\t}", "private int measureWidth(int measureSpec) {\n\n int result = 0;\n int specMode = MeasureSpec.getMode(measureSpec);\n int specSize = MeasureSpec.getSize(measureSpec);\n\n if (specMode == MeasureSpec.EXACTLY) {\n // We were told how big to be\n result = specSize;\n } else {\n // Measure the text\n result = viewWidth;\n\n }\n\n return result;\n }", "@Override\r\n\t\tpublic float getPageWidth(int position) {\n\t\t\tif (position == 0) {\r\n\t\t\t\treturn 0.5f;\r\n\t\t\t} else {\r\n\t\t\t\treturn super.getPageWidth(position);\r\n\t\t\t}\r\n\t\t}", "public int getWidth () {\r\n\tcheckWidget();\r\n\tint [] args = {OS.Pt_ARG_WIDTH, 0, 0};\r\n\tOS.PtGetResources (handle, args.length / 3, args);\r\n\treturn args [1];\r\n}", "public double getWidth(long paramLong) throws PDFNetException {\n/* 646 */ return GetWidth(this.a, paramLong);\n/* */ }", "private void calculateWidthRatio() {\n\tif (texWidth != 0) {\n\t widthRatio = ((float) width) / texWidth;\n\t}\n }", "public double getWidth();", "public double getWidth();", "private int measureWidth(int measureSpec) {\n\t\tint result = 0;\n\t\tint specMode = MeasureSpec.getMode(measureSpec);\n\t\tint specSize = MeasureSpec.getSize(measureSpec);\n\n\t\tif (specMode == MeasureSpec.EXACTLY) {\n\t\t\tresult = specSize;\n\t\t} else {\n\t\t\tresult = getSuggestedMinimumWidth();\n\t\t\tif (specMode == MeasureSpec.AT_MOST) {\n\t\t\t\tresult = Math.min(result, specSize);\n\t\t\t}\n\t\t}\n\n\t\treturn result;\n\t}", "private void countSizes() {\r\n Double pageWidth = Double.valueOf(pageWidthParameter.getType().getValue().replace(\",\", \".\"));\r\n double pageHeight = Double.valueOf(pageHeightParameter.getType().getValue().replace(\",\", \".\"));\r\n Double max = Math.max(pageWidth, pageHeight);\r\n max /= PAPER_SIZE;\r\n widthSize = (int) (pageWidth / max);\r\n heightSize = (int) (pageHeight / max);\r\n }", "public int numPages() {\n // some code goes here\n return (int)Math.ceil(f.length()/BufferPool.PAGE_SIZE);\n \n }", "double getWidth();", "double getWidth();", "public int numPages() {\n // some code goes here\n return (int) Math.ceil(m_f.length() / BufferPool.PAGE_SIZE);\n }", "public Integer getExpectedWidth() {\n f f2 = this.d();\n if (f2 == null) return null;\n try {\n return f2.a;\n }\n catch (Throwable throwable) {\n com.adincube.sdk.util.a.c(\"BannerView.getExpectedWidth\", new Object[]{throwable});\n ErrorReportingHelper.report(\"BannerView.getExpectedWidth\", com.adincube.sdk.h.c.b.b, throwable);\n }\n return null;\n }", "public int getWidth();", "public int getWidth();", "public int getWidth();", "public int getWidthNumOfBytes() {\n return widthNumOfBytes;\n }", "public int getActualWidthInTiles() {\n return getWidth() / getActualTileWidth();\n }", "public static int getWidth()\r\n\t{\r\n\t\treturn width;\r\n\t}", "@Override\n\tpublic double getRenderWidth() {\n\t\treturn width;\n\t}", "public double getWidthInMillimeters()\n {\n return MILLIMETERS * width;\n }", "public int getWidth() {\n // Replace the following line with your solution.\n return width;\n }", "public int numPages() {\n // some code goes here\n //System.out.println(\"File length :\" + f.length());\n\n return (int) Math.ceil(f.length() * 1.0 / BufferPool.PAGE_SIZE * 1.0);\n }", "int getWidth();", "int getWidth();", "int getWidth();", "int getWidth();", "int getWidth();", "int getWidth();", "int getWidth();", "int getWidth();", "int getWidth();", "int getWidth();", "int getWidth();", "int getWidth();", "int getWidth();", "int getWidth();", "int getWidth();", "int getWidth();", "int getWidth();", "private float ScreenWidth() {\n RelativeLayout linBoardGame = (RelativeLayout) ((Activity) context).findViewById(R.id.gridContainer);\n Resources r = linBoardGame.getResources();\n DisplayMetrics d = r.getDisplayMetrics();\n return d.widthPixels;\n }", "public float getWidth() {\n\treturn widthRatio;\n }", "public int getCurrentWidth();", "public int width();", "public int getWidth() {\n return (int) Math.round(width);\n }", "public float getWidth();", "public double getPrefWidth(double aValue)\n{\n Double v = (Double)get(\"PrefWidth\"); if(v!=null) return v;\n return computePrefWidth(-1);\n}", "public abstract double getBaseWidth();", "Integer getCurrentWidth();", "String getWidth();", "String getWidth();", "protected int measureWidth(int measureSpec) {\n int specMode = MeasureSpec.getMode(measureSpec);\n int specSize = MeasureSpec.getSize(measureSpec);\n int result;\n if (specMode == MeasureSpec.EXACTLY) {\n result = specSize;\n } else {\n result = (int) (2 * radius) + getPaddingLeft() + getPaddingRight() + (int) (2 * strokeWidth);\n if (specMode == MeasureSpec.AT_MOST) {\n result = Math.min(result, specSize);\n }\n }\n return result;\n }", "public double getScaleToFitWidth() throws FOPException {\n final Dimension extents = this.previewArea.getViewport()\n .getExtentSize();\n return getScaleToFit(extents.getWidth() - 2 * BORDER_SPACING,\n Double.MAX_VALUE);\n }", "long getWidth();", "public double getWidthInInches()\n {\n return width;\n }", "public abstract int layoutWidth();", "public abstract int getWidth();", "public int getWidth() {\n return mPresentationEngine.getWidth();\n }", "public abstract int getExtraWidth(int specifiedWidth);", "public int getWidthInChunks() {\n return (int)Math.ceil((double)getWidth() / (double)getChunkWidth());\n }", "public int getWidth()\r\n\t{\r\n\t\treturn WIDTH;\r\n\t}", "public int getImageWidth()\n {\n \n int retVal = getImageWidth_0(nativeObj);\n \n return retVal;\n }", "public int getWidth() { return width; }", "public int getWidth() { return width; }", "public MeasurementCSSImpl getWidth()\n\t{\n\t\treturn width;\n\t}", "public Number getWidth() {\n\t\treturn getAttribute(WIDTH_TAG);\n\t}", "public int width() \n {\n return this.picture.width();\n }", "public int getUsedViewportWidth() {\n return Math.abs((int)(0.5 + widthViewport - xMargin));\n }", "public int getExactWidth() {\n\t\tLog.d(TAG, \"measure width:\" + getMeasuredWidth() + \" , width:\"+ getWidth());\n\t\treturn getMeasuredWidth();\n\t}", "public float getWidth() {\n\t\t\n\t\tfloat width= 0;\n\t\tfor(int i = 0; i < text.length(); i++) {\n\t\t\twidth += font.getChar(text.charAt(i)).X_ADVANCE * size;\n\t\t}\n\t\t\n\t\treturn width;\n\t}", "int width();", "public int numPages() {\n \t//numOfPages = (int)(this.fileName.length()/BufferPool.PAGE_SIZE);\n return numOfPages;\n }", "private float getCurrentDisplayedWidth() {\n if (getDrawable() != null)\n return getDrawable().getIntrinsicWidth() * matrixValues[Matrix.MSCALE_X];\n else\n return 0;\n }", "@java.lang.Override\n public long getWidth() {\n return width_;\n }", "public double getWidth()\r\n {\r\n return width;\r\n }", "short getFitWidth();", "public double getWidth () {\n return width;\n }", "public double getWidth()\n {\n return width;\n }", "public int getWidth() {\n return getTileWidth() * getWidthInTiles();\n }", "public int getWidth() {\r\n if ( fontMetrics != null && lbl != null ) {\r\n return fontMetrics.stringWidth(lbl) + 12; \r\n } else {\r\n return 10;\r\n }\r\n }", "public abstract int getDisplayWidth();", "public int getWidth()\r\n\t{\r\n\t\treturn width;\r\n\t}", "protected double computePrefWidth(double aHeight) { return getWidth(); }", "public int getWidth()\n {\n return width;\n }", "public int getWidth()\n {\n return width;\n }", "public int getWidth()\n {\n return width;\n }", "private double getWidth() {\n\t\treturn width;\n\t}", "public float getWidth()\n {\n return getBounds().width();\n }", "int getPagesize();", "public int getGraphicsWidth(Graphics g);", "public int getViewportWidth() {\n return viewport.getWidth();\n }", "public int getWidth()\n {\n return width;\n }", "int getNumPages();", "int getBoundsWidth();", "public int getWidth() {\n\t\treturn width;\r\n\t}", "@Test\n public void testWidth() {\n BetterImageSpan span = new BetterImageSpan(mDrawable, mAlignment);\n int size = span.getSize(null, null, 0, 0, null);\n assertThat(size).isEqualTo(mDrawableWidth);\n }", "public int getWidth() {\n return width;\n }" ]
[ "0.6847422", "0.67515206", "0.6617614", "0.64238465", "0.6376873", "0.6324391", "0.6267627", "0.6235597", "0.60426754", "0.60426754", "0.5985225", "0.59724146", "0.5953917", "0.5945559", "0.5945559", "0.5899845", "0.58919615", "0.58747417", "0.58747417", "0.58747417", "0.58742124", "0.5835696", "0.5829542", "0.5827522", "0.58134365", "0.5811482", "0.57977784", "0.5785768", "0.5785768", "0.5785768", "0.5785768", "0.5785768", "0.5785768", "0.5785768", "0.5785768", "0.5785768", "0.5785768", "0.5785768", "0.5785768", "0.5785768", "0.5785768", "0.5785768", "0.5785768", "0.5785768", "0.5776524", "0.5773422", "0.5772274", "0.57654506", "0.57591045", "0.5758018", "0.5752791", "0.57519823", "0.5748186", "0.57185316", "0.57185316", "0.57111454", "0.5703084", "0.5692664", "0.5691147", "0.56837684", "0.5650079", "0.56447494", "0.5624064", "0.5607483", "0.5606513", "0.56021637", "0.56009483", "0.56009483", "0.56008273", "0.5594043", "0.5590733", "0.55895483", "0.558447", "0.55839145", "0.5581826", "0.5577439", "0.5570084", "0.5564331", "0.5557774", "0.5554371", "0.5547481", "0.55457383", "0.55408895", "0.5535055", "0.5534519", "0.5532598", "0.55325544", "0.55316305", "0.55316305", "0.55316305", "0.5528718", "0.5527232", "0.5521387", "0.55208486", "0.5518362", "0.5515956", "0.5515729", "0.5502842", "0.54937875", "0.5491898", "0.5484363" ]
0.0
-1
Creates a new chatModel that relays and receives messages from the server and modifies the chatGUI accordingly.
public ChatModel(PrintWriter toServer, int chatID, String username, String otherUsername, ArrayList<String> availableUsers, ClientModel clientModel, boolean addedToChat){ this.username = username; this.toServer = toServer; this.chatID = chatID; this.clientModel = clientModel; this.availableUsers = availableUsers; this.userStatuses = new HashMap<String, String>(); String guiTitle = addedToChat ? "" : " " + otherUsername + " "; gui = new ChatGUI(guiTitle, this); for (String user : this.availableUsers){ gui.addUserToDropDown(user); } addTypingStatus(username, "no_text"); addTypingStatus(otherUsername, "no_text"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ChatModel() {\n\t}", "private void createNewChat() {\n if (advertisement.getUniqueOwnerID().equals(dataModel.getUserID())) {\n view.showCanNotSendMessageToYourselfToast();\n return;\n }\n\n dataModel.createNewChat(advertisement.getUniqueOwnerID(), advertisement.getOwner(), advertisement.getUniqueID(),\n advertisement.getImageUrl(), chatID -> view.openChat(chatID));\n }", "private void createGUI() {\r\n\t\t// Create the frame for client window.\r\n\t\tJFrame frame = new JFrame(\"Client\");\r\n\t\t/*\r\n\t\t * Set the layout as null as using setbounds to set complonents set size\r\n\t\t * and close the frame when clicked on exit\r\n\t\t */\r\n\t\tframe.setLayout(null);\r\n\t\t// exit chat rrom system if clicks on close icon\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\tJLabel userlabel = new JLabel(\"Enter Username\");// label for username\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t// input\r\n\t\tJLabel inputlabel = new JLabel(\"Enter Message\");// label for message\r\n\t\t/*\r\n\t\t * Create the buttons Send button to send messegs connect to connect to\r\n\t\t * chat room disconnect to logout from the chat room\r\n\t\t */\r\n\t\tJButton send = new JButton(\"Send\");\r\n\t\tJButton connect = new JButton(\"Connect\");\r\n\t\tJButton disconnect = new JButton(\"Disconnect\");\r\n\t\t// usertext is to input username from user and inputfield is to input\r\n\t\t// messages\r\n\t\tJTextField usertext = new JTextField();\r\n\t\t// set textfield as editable\r\n\t\tusertext.setEditable(true);\r\n\t\tJTextField inputfield = new JTextField();\r\n\t\t// set textfield as editable\r\n\t\tinputfield.setEditable(true);\r\n\t\tuserlabel.setBounds(10, 40, 100, 20);\r\n\t\tusertext.setBounds(120, 40, 120, 30);\r\n\t\tinputlabel.setBounds(10, 70, 150, 20);\r\n\t\tinputfield.setBounds(120, 70, 120, 30);\r\n\t\ttextarea.setBounds(10, 110, 500, 300);\r\n\t\t// https://www.youtube.com/watch?v=Uo5DY546rKY\r\n\t\tsend.setBounds(10, 430, 150, 30);\r\n\t\tconnect.setBounds(180, 430, 150, 30);\r\n\t\tdisconnect.setBounds(350, 430, 150, 30);\r\n\t\t// provide scrolling capability to textarea\r\n\t\tJScrollPane scrollPane = new JScrollPane(textarea);\r\n\t\t// set textarea as not editable\r\n\t\ttextarea.setEditable(false);\r\n\t\t// Create textfield to write message\r\n\t\t// http://cs.lmu.edu/~ray/notes/javanetexamples/\r\n\t\t// exit on close\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\r\n\t\t// put created components in the frame.\r\n\t\tframe.add(userlabel);// add userlabel to the frame\r\n\t\tframe.add(usertext);// add usertext to the frame\r\n\t\tframe.add(inputlabel);// add inputlabel to the frame\r\n\t\tframe.add(inputfield);// add inputfield to the frame\r\n\t\tframe.add(textarea);// add textarea to the frame\r\n\t\tscrollPane.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);\r\n\t\tframe.add(send);// add send button to the frame\r\n\t\tframe.add(connect);// add connect button to the frame\r\n\t\tframe.add(disconnect);// add disconnect button to the frame\r\n\t\t/*\r\n\t\t * add listeners set action to start button\r\n\t\t * https://docs.oracle.com/javase/tutorial/uiswing/components/button.\r\n\t\t * html#abstractbutton When user clicks on send button after adding\r\n\t\t * message then client converts that message to HTTP format\r\n\t\t */\r\n\t\tsend.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent action) {\r\n\r\n\t\t\t\ttry {\r\n\r\n\t\t\t\t\t/*\r\n\t\t\t\t\t * user-agent displays name of the browsers,this list shows\r\n\t\t\t\t\t * this application is independent of a browser. display the\r\n\t\t\t\t\t * host name in this case host is \"localhost\"\r\n\t\t\t\t\t */\r\n\t\t\t\t\tString useragent = \" User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.132 Safari/537.36\";\r\n\t\t\t\t\tString host = \" Host:\" + socket.getInetAddress().getHostName();// get\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// host\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// name\r\n\r\n\t\t\t\t\t/* get length of the original messsage */\r\n\t\t\t\t\tString ContentLength = \" Content-length:\" + inputfield.getText().length();\r\n\t\t\t\t\t/*\r\n\t\t\t\t\t * htm as this is simple chat room system,independent of the\r\n\t\t\t\t\t * browser the content type is text/plain\r\n\t\t\t\t\t */\r\n\t\t\t\t\tString contentType = \" Conent-Type:text/plain\";\r\n\t\t\t\t\t/*\r\n\t\t\t\t\t * To print current date in the HTTP date format explicitly\r\n\t\t\t\t\t * adding the time zone to the formatter\r\n\t\t\t\t\t */\r\n\t\t\t\t\tInstant i = Instant.now();\r\n\t\t\t\t\tString dateFormatted = DateTimeFormatter.RFC_1123_DATE_TIME.withZone(ZoneOffset.UTC).format(i);\r\n\t\t\t\t\tString currentDate = \"Date:\" + dateFormatted;\r\n\t\t\t\t\t/*\r\n\t\t\t\t\t * To get time difference between to messages and converting\r\n\t\t\t\t\t * it to the string format\r\n\t\t\t\t\t */\r\n\t\t\t\t\tString time2 = dispTime.format(System.currentTimeMillis());\r\n\t\t\t\t\tdate2 = dispTime.parse(time2);\r\n\t\t\t\t\t// get difference between previous message and recent\r\n\t\t\t\t\t// message\r\n\t\t\t\t\tdifference = date2.getTime() - date1.getTime();\r\n\t\t\t\t\tint min = (int) ((difference / (1000 * 60)) % 60);// calculate\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// minute\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// difference\r\n\t\t\t\t\tint sec = (int) ((difference / 1000) % 60);//// calculate\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//// seconds\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//// difference\r\n\t\t\t\t\t/*\r\n\t\t\t\t\t * the format of the time is two digit numbers so concevert\r\n\t\t\t\t\t * minutes and seconds to 2 digits\r\n\t\t\t\t\t */\r\n\t\t\t\t\tString m = String.format(\"%02d\", min);\r\n\t\t\t\t\tString s = String.format(\"%02d\", sec);\r\n\t\t\t\t\tString time = \"(\" + m + \".\" + s + \") - \";\r\n\t\t\t\t\t// minutes and seconds\r\n\t\t\t\t\tdate1 = date2;\r\n\t\t\t\t\t// append useragent,host,ContentLength,contentType to a\r\n\t\t\t\t\tString httpmsg = useragent + host + ContentLength + contentType + currentDate;\r\n\t\t\t\t\t// append timedifference to the username\r\n\t\t\t\t\tString timetrack = username + time;\r\n\t\t\t\t\t/*\r\n\t\t\t\t\t * append all the strings\r\n\t\t\t\t\t * useragent,host,ContentLength,contentType, timedifference\r\n\t\t\t\t\t * to the username for HTTP format in the main message\r\n\t\t\t\t\t * entered server reads this whole message\r\n\t\t\t\t\t */\r\n\t\t\t\t\tString wholeMsg = \"POST:\" + timetrack + \":\" + inputfield.getText() + \":\" + httpmsg + \":Chat\";\r\n\t\t\t\t\tout.println(wholeMsg);// send whole message in HTTP format\r\n\t\t\t\t\t\t\t\t\t\t\t// to output stream\r\n\t\t\t\t\tout.flush(); // flushes the buffer\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\t\t * After sending message to output stream clear the textfield\r\n\t\t\t\t * and set focus to inputfield to take messages input\r\n\t\t\t\t */\r\n\t\t\t\tinputfield.setText(\"\");\r\n\t\t\t\tinputfield.requestFocus();\r\n\r\n\t\t\t}\r\n\r\n\t\t});\r\n\t\t/*\r\n\t\t * add listner to connect button after entering username if user clicks\r\n\t\t * on connect button then it checks if the username is valid(ie.only\r\n\t\t * charachters) then its creates a new thread with setting username in\r\n\t\t * title\r\n\t\t */\r\n\t\tconnect.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent action) {\r\n\t\t\t\tif (isConnected == false) {\r\n\t\t\t\t\t// take username\r\n\t\t\t\t\tusername = usertext.getText();\r\n\r\n\t\t\t\t\t// check if the user name is valid that is contains only\r\n\t\t\t\t\t// letters\r\n\t\t\t\t\tif (username.matches(\"[a-zA-Z]*\")) {\r\n\t\t\t\t\t\tusertext.setEditable(false);\r\n\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\t// server is at localhost and port 7879 so use same\r\n\t\t\t\t\t\t\t// port number here\r\n\t\t\t\t\t\t\tsocket = new Socket(\"localhost\", 7879);\r\n\t\t\t\t\t\t\t// create inputstream and outputstream\r\n\t\t\t\t\t\t\tInputStreamReader streamreader = new InputStreamReader(socket.getInputStream());\r\n\t\t\t\t\t\t\tin = new BufferedReader(streamreader);\r\n\t\t\t\t\t\t\tout = new PrintWriter(socket.getOutputStream());\r\n\t\t\t\t\t\t\tout.println(\"POST:\" + username + \":(00.00) has connected.:Connect\");\r\n\t\t\t\t\t\t\tout.flush();\r\n\t\t\t\t\t\t\tisConnected = true; // connection is established so\r\n\t\t\t\t\t\t\t\t\t\t\t\t// this value is true\r\n\t\t\t\t\t\t\tconnect.setEnabled(false);// disable the connect\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t// button\r\n\t\t\t\t\t\t\tframe.setTitle(\"Thread \" + username);\r\n\t\t\t\t\t\t} // try\r\n\t\t\t\t\t\tcatch (Exception e) {\r\n\t\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t// create and start a new thread\r\n\t\t\t\t\t\tThread thread = new Thread(new ListenServer());\r\n\t\t\t\t\t\tthread.start();\r\n\t\t\t\t\t} // if\r\n\t\t\t\t\t\t// if user enters invalid username then give message to\r\n\t\t\t\t\t\t// enter valid user name\r\n\t\t\t\t\telse {\r\n\t\t\t\t\t\ttextarea.append(\"Username is not valid.\");\r\n\t\t\t\t\t\ttextarea.append(\"\\nPlease enter only Charachters.\");\r\n\t\t\t\t\t\ttextarea.append(\"\");\r\n\r\n\t\t\t\t\t} // else\r\n\r\n\t\t\t\t} // if\r\n\t\t\t}\r\n\t\t});\r\n\t\t/*\r\n\t\t * add listner to disconnect button this button logs off the user from\r\n\t\t * chat room\r\n\t\t */\r\n\t\tdisconnect.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent action) {\r\n\t\t\t\tString dc = (\"POST:\" + username + \": has disconnected.:Disconnect\");\r\n\r\n\t\t\t\ttry {\r\n\t\t\t\t\t/*\r\n\t\t\t\t\t * set output stream disable disconnect and send buttons\r\n\t\t\t\t\t */\r\n\t\t\t\t\tout.println(dc);\r\n\t\t\t\t\tout.flush();\r\n\t\t\t\t\tdisconnect.setEnabled(false);\r\n\t\t\t\t\tsend.setEnabled(false);\r\n\t\t\t\t\t// socket.close();\r\n\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\tisConnected = false;\r\n\t\t\t}\r\n\t\t});\r\n\t\t// setting frame as visible\r\n\t\tframe.setVisible(true);\r\n\t\tframe.setSize(520, 500);\r\n\t\tframe.setResizable(false);\r\n\r\n\t}", "private void setupChat() {\n chatArrayAdapter = new ArrayAdapter<String>(MainActivity.this, R.layout.message);\n\n listView.setAdapter(chatArrayAdapter);\n\n // Initialize the compose field with a listener for the return key\n editText.setOnEditorActionListener(mWriteListener);\n\n // Initialize the send button with a listener that for click events\n sendButton.setOnClickListener(new View.OnClickListener() {\n public void onClick(View v) {\n String message = editText.getText().toString();\n if(!message.equals(\"\")) {\n sendMessage(message);\n }\n }\n });\n\n }", "private void setupChat() {\n\n\n // Initialize the array adapter for the conversation thread\n mConversationArrayAdapter = new ArrayAdapter<String>(getActivity(), R.layout.message);\n\n mConversationView.setAdapter(mConversationArrayAdapter);\n\n // Initialize the compose field with a listener for the return key\n mOutEditText.setOnEditorActionListener(mWriteListener);\n\n // Initialize the send button with a listener that for click events\n mSendButton.setOnClickListener(new View.OnClickListener() {\n public void onClick(View v) {\n // Send a message using content of the edit text widget\n View view = getView();\n if (null != view) {\n TextView textView = (TextView) view.findViewById(R.id.edit_text_out);\n String message = textView.getText().toString();\n Bundle bundle=new Bundle();\n bundle.putString(BluetoothChatFragment.EXTRAS_ADVERTISE_DATA, message);\n mCallback.onSendMessage(bundle);\n //對話框上顯示\n mConversationArrayAdapter.add(\"Me: \" + message);\n //設為不可發送 並清除訊息文字編輯區\n Send_btn=false;\n mSendButton.setEnabled(Send_btn);\n mOutStringBuffer.setLength(0);\n mOutEditText.setText(mOutStringBuffer);\n\n }\n }\n });\n\n // Initialize the buffer for outgoing messages\n mOutStringBuffer = new StringBuffer(\"\");\n }", "public ChatGUI() {\r\n\r\n String propertiesPath = \"kchat.properties\";\r\n try {\r\n Configuration.getInstance().setFile(propertiesPath);\r\n sock = new ChatSocket(new UdpMulticast(Configuration.getInstance().getValueAsString(\"udp.iface\"),\r\n Configuration.getInstance().getValueAsString(\"udp.host\"), Configuration.getInstance()\r\n .getValueAsInt(\"udp.port\")), this);\r\n } catch (IOException e) {\r\n JOptionPane.showMessageDialog(null, \"Cannot Open Socket\", \"alert\", JOptionPane.ERROR_MESSAGE);\r\n // Exit the application if socket is not established\r\n // print stack trace to terminal\r\n e.printStackTrace();\r\n System.exit(0);\r\n }\r\n\r\n // exit the frame on closure of the frame\r\n setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\r\n // set the bounds of the frame\r\n setBounds(100, 100, 450, 300);\r\n\r\n // Initialize the content pane\r\n contentPane = new JPanel();\r\n\r\n // set the borders of the content pane\r\n contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));\r\n\r\n // set the layout of the content pane\r\n contentPane.setLayout(new BorderLayout(0, 0));\r\n\r\n // add content pane to frame\r\n setContentPane(contentPane);\r\n\r\n // create panel and layout for input, button and field at top of content\r\n // pane\r\n JPanel panel = new JPanel();\r\n panel.setLayout(new FlowLayout(FlowLayout.CENTER, 5, 5));\r\n contentPane.add(panel, BorderLayout.NORTH);\r\n\r\n // create the username lael\r\n JLabel lblNewLabel = new JLabel(\"Username\");\r\n panel.add(lblNewLabel);\r\n\r\n // create the field for the Username to input text\r\n textField = new JTextField();\r\n panel.add(textField);\r\n // set column length of the field\r\n textField.setColumns(10);\r\n\r\n // get rooms from the socket return array of long\r\n LongInteger[] rooms = sock.getPresenceManager().getRooms();\r\n // initialize field to store room names\r\n String[] roomNames = new String[rooms.length];\r\n // using for loop convert long to string and store in room name array\r\n for (int i = 0; i < rooms.length; i++) {\r\n roomNames[i] = rooms[i].toString();\r\n }\r\n\r\n // create the combo box\r\n final JComboBox comboBox = new JComboBox(roomNames);\r\n\r\n // refresh the rooms on button press\r\n final JButton btnNewButton = new JButton(\"Refresh Rooms\");\r\n // the action listener for button press\r\n btnNewButton.addActionListener(new ActionListener() {\r\n public void actionPerformed(ActionEvent arg0) {\r\n comboBox.removeAllItems();\r\n // get rooms from the socket\r\n LongInteger[] rooms = sock.getPresenceManager().getRooms();\r\n // initialize field to store room names\r\n String[] roomNames = new String[rooms.length];\r\n // using for loop convert long to string and store in room name\r\n // array\r\n for (int i = 0; i < rooms.length; i++) {\r\n comboBox.addItem(roomNames);\r\n roomNames[i] = rooms[i].toString();\r\n }\r\n }\r\n });\r\n\r\n // add the label for joins\r\n JLabel lblJoin = new JLabel(\" [--- joins \");\r\n panel.add(lblJoin);\r\n\r\n // add the textfield for user input for user to user connection\r\n textField_3 = new JTextField();\r\n\r\n // create a checkbox for when you which to select drop down or input\r\n // user\r\n final JCheckBox chckbxNewCheckBox = new JCheckBox(\"\");\r\n chckbxNewCheckBox.setSelected(true);\r\n final JCheckBox chckbxNewCheckBox_1 = new JCheckBox(\"\");\r\n\r\n // add action listener to checkbox for drop down\r\n chckbxNewCheckBox.addActionListener(new ActionListener() {\r\n public void actionPerformed(ActionEvent arg0) {\r\n // if checkbox is checked\r\n if (chckbxNewCheckBox.isSelected() == true) {\r\n // set the other checkbox to unchecked\r\n chckbxNewCheckBox_1.setSelected(false);\r\n // enable the combox box drop down\r\n comboBox.setEnabled(true);\r\n // disable the textfield for the user input\r\n textField_3.setEnabled(false);\r\n textField_3.setText(\"\");\r\n // enable the refresh rooms button\r\n btnNewButton.setEnabled(true);\r\n }\r\n }\r\n });\r\n panel.add(chckbxNewCheckBox);\r\n\r\n // add the drop down to the contentpane\r\n panel.add(comboBox);\r\n\r\n // additional labels are added to the content pane\r\n JLabel lblOrChatWith = new JLabel(\" OR chat with user\");\r\n panel.add(lblOrChatWith);\r\n\r\n // add action listener to checkbox for user input\r\n chckbxNewCheckBox_1.addActionListener(new ActionListener() {\r\n public void actionPerformed(ActionEvent arg0) {\r\n // if checkbox is checked\r\n if (chckbxNewCheckBox_1.isSelected() == true) {\r\n // set the other checkbox to unchecked\r\n chckbxNewCheckBox.setSelected(false);\r\n // disable the combox box drop down\r\n comboBox.setEnabled(false);\r\n // enable the textfield for the user input\r\n textField_3.setEnabled(true);\r\n textField_3.setText(\"\");\r\n // disable the refresh rooms button\r\n btnNewButton.setEnabled(false);\r\n }\r\n }\r\n });\r\n panel.add(chckbxNewCheckBox_1);\r\n\r\n // set the textfield for user to user input to false by default and add\r\n // to contentpane panel\r\n textField_3.setEnabled(false);\r\n panel.add(textField_3);\r\n textField_3.setColumns(10);\r\n\r\n // the label is added to the content pane panel\r\n JLabel label = new JLabel(\" ---] \");\r\n panel.add(label);\r\n\r\n // the refresh rooms button is added to content pane panel\r\n panel.add(btnNewButton);\r\n\r\n // the connection button is created\r\n JButton btnNewButton_1 = new JButton(\"Connect\");\r\n // action listener is added to button to take action on key press\r\n btnNewButton_1.addActionListener(new ActionListener() {\r\n public void actionPerformed(ActionEvent e) {\r\n // if no input or only spaces is put in text field it counts as\r\n // invalid entry\r\n if (textField.getText().trim().equals(\"\")) {\r\n // prompt to user and do nothing\r\n JOptionPane.showMessageDialog(null, \"Please input a valid username\", \"alert\",\r\n JOptionPane.ERROR_MESSAGE);\r\n textField.setText(\"\");\r\n } else {\r\n // if checkbox for room drop down is selected meaning we are\r\n // connecting to a room\r\n if (chckbxNewCheckBox.isSelected() == true) {\r\n\r\n // if no tab exist with a chosen room name continue\r\n if (tabbedPane.indexOfTab(comboBox.getSelectedItem().toString()) == -1) {\r\n\r\n // get the room members\r\n Set<LongInteger> roomMembers = sock.getPresenceManager().membersOf(\r\n new LongInteger(comboBox.getSelectedItem().toString()));\r\n // initialize field to store room member names\r\n String[] roomMemberNames = new String[roomMembers.size()];\r\n // using for loop convert long to string and store\r\n // in room member name array\r\n int i = 0;\r\n for (LongInteger member : roomMembers) {\r\n roomMemberNames[i] = member.toString();\r\n i++;\r\n }\r\n\r\n // connect to room below and based on return type\r\n // add tab\r\n try {\r\n sock.executeCommand(new PresenceCommand(new LongInteger(comboBox.getSelectedItem()\r\n .toString()), true));\r\n } catch (InvalidCommandException ex) {\r\n JOptionPane.showMessageDialog(null, \"Unable to join room.\", \"alert\",\r\n JOptionPane.ERROR_MESSAGE);\r\n }\r\n // add tab based on return type above\r\n // once you connect successfully disable the\r\n // username textfield\r\n textField.setEnabled(false);\r\n // add tab for Room to user chat\r\n addTab(comboBox.getSelectedItem().toString(), roomMemberNames, 1);\r\n } else {\r\n // prompt user and ensures that one does not open\r\n // multiple tabs to the same room\r\n JOptionPane.showMessageDialog(null, \"You are already connected to \"\r\n + comboBox.getSelectedItem().toString(), \"alert\", JOptionPane.ERROR_MESSAGE);\r\n }\r\n }\r\n // if checkbox for user is selected meaning we are\r\n // connecting to a user\r\n else if (chckbxNewCheckBox_1.isSelected() == true) {\r\n\r\n if (tabbedPane.indexOfTab(\"Chat with \" + textField_3.getText()) == -1) {\r\n // one does not connect to a user so the tab is\r\n // automatically created\r\n // once you connect successfully disable the\r\n // username textfield\r\n // disable the textfield for usernname\r\n textField.setEnabled(false);\r\n // add tab for User to user chat\r\n addTab(\"Chat with \" + textField_3.getText(), new String[] { textField_3.getText() }, 2);\r\n } else {\r\n // prompt user and ensures that one does not open\r\n // multiple tabs to the same user\r\n JOptionPane.showMessageDialog(null, \"You are already connected to \" + \"Chat with \"\r\n + textField_3.getText(), \"alert\", JOptionPane.ERROR_MESSAGE);\r\n }\r\n }\r\n }\r\n }\r\n });\r\n panel.add(btnNewButton_1);\r\n\r\n // set the tabbed pane to top\r\n tabbedPane = new JTabbedPane(SwingConstants.TOP);\r\n\r\n // add tabbed pane to center of content pane\r\n contentPane.add(tabbedPane, BorderLayout.CENTER);\r\n }", "public void receive()\n {\n //Client receives a message: it finds out which type of message is and so it behaves differently\n //CHAT message: prints the message in the area\n //CONNECT message: client can't receive a connect message from the server once it's connected properly\n //DISCONNECT message: client can't receive a disconnect message from the server\n //USER_LIST message: it shows the list of connected users\n try\n {\n String json = inputStream.readLine();\n\n switch (gson.fromJson(json, Message.class).getType())\n {\n case Message.CHAT:\n ChatMessage cmsg = gson.fromJson(json, ChatMessage.class);\n\n if(cmsg.getReceiverClient() == null)\n ChatGUI.getInstance().getChatHistory().append(cmsg.getSenderClient() + \" (TO ALL): \" + cmsg.getText() + \"\\n\");\n else\n ChatGUI.getInstance().getChatHistory().append(cmsg.getSenderClient() + \" (TO YOU): \" + cmsg.getText() + \"\\n\");\n break;\n case Message.CONNECT:\n //Send login nickname and wait for permission to join\n //if message code is 1, nickname is a duplicate and must be changed, then login again\n //(send call is inside button event)\n ConnectMessage comsg = gson.fromJson(json, ConnectMessage.class);\n\n if(comsg.getCode() == 1)\n {\n //Show error\n ChatGUI.getInstance().getLoginErrorLabel().setVisible(true);\n }\n else\n {\n //Save nickname\n nickname = ChatGUI.getInstance().getLoginField().getText();\n\n //Hide this panel and show main panel\n ChatGUI.getInstance().getLoginPanel().setVisible(false);\n ChatGUI.getInstance().getMainPanel().setVisible(true);\n }\n break;\n case Message.USER_LIST:\n UserListMessage umsg2 = gson.fromJson(json, UserListMessage.class);\n fillUserList(umsg2);\n break;\n }\n } \n catch (JsonSyntaxException | IOException e)\n {\n System.out.println(e.getMessage());\n System.exit(1);\n }\n }", "private SquareLiveChatModel initLiveChatModel() {\n\t\tSquareLiveChatModel squareLiveChatModel = new SquareModel().new SquareLiveChatModel();\n\t\tsquareLiveChatModel.setArticleId(squareLiveModel.getArticleId());\n\t\tsquareLiveChatModel.setChatContent(null);\n\t\tsquareLiveChatModel.setUserId(dataManager.userModel.UserId);\n\t\tsquareLiveChatModel.setUserRole(userRole);\n\t\tsquareLiveChatModel.setParentId(0);\n\t\tsquareLiveChatModel.setUserAvatar(dataManager.userModel.Avatar);\n\t\tsquareLiveChatModel.setUserNickName(dataManager.userModel.NickName);\n\t\t\n\t\treturn squareLiveChatModel;\n\t}", "private void setupChat() {\n Log.d(TAG, \"setupChat()\");\n\n // Initialize the array adapter for the conversation thread\n mConversationArrayAdapter = new ArrayAdapter<String>(getActivity(), R.layout.message);\n\n mConversationView.setAdapter(mConversationArrayAdapter);\n\n // Initialize the compose field with a listener for the return key\n\n // Initialize the send button with a listener that for click events\n\n // Initialize the BluetoothChatService to perform bluetooth connections\n mChatService = new BluetoothChatService(getActivity(), mhandler);\n\n // Initialize the buffer for outgoing messages\n mOutStringBuffer = new StringBuffer(\"\");\n switchForFileSaved.setOnCheckedChangeListener(switchListener) ;\n }", "public ChatView() {\n\t\t// Load Font and Style Sheet\n\t\tFont.loadFont(Resources.el_font, 20);\n\t\tgetStylesheets().add(Resources.Css_ChatView);\n\n\t\t// Creating \"Chat Messages\" observable list and list view\n\t\tthis.chatMessages = FXCollections.observableArrayList();\n\t\t\n\t\tthis.lstChatMessages = new ListView<String>(chatMessages);\n\t\tthis.lstChatMessages.setPrefWidth(780);\n\t\tthis.lstChatMessages.setPrefHeight(780);\n\t\tthis.lstChatMessages.setStyle(\"\");\n\t\t//\t this.lstChatMessages.setPadding(new Insets(0,10,0,10));\n\t\tthis.lstChatMessages.setStyle(\"-fx-background-color: white;\");\n\t\tthis.lstChatMessages.setId(\"chatMessages\");\n\t\tthis.lstChatMessages.setCellFactory(\n\t\t\t\tnew Callback<ListView<String>, ListCell<String>>() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic ListCell<String> call(ListView<String> lstChatMessages) {\n\t\t\t\t\t\tfinal ListCell<String> cell =\n\t\t\t\t\t\t\t\tnew ListCell<String>() {\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tsetPrefWidth(5);\n\t\t\t\t\t\t\t\tsetWrapText(true);\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\tprotected void updateItem(String item, boolean empty) {\n\t\t\t\t\t\t\t\tsuper.updateItem(item, empty);\n\t\t\t\t\t\t\t\tif (item == null) {\n\t\t\t\t\t\t\t\t\tsetText(null);\n\t\t\t\t\t\t\t\t\tsetStyle(null);\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tsetText(item);\n\t\t\t\t\t\t\t\t\tsetStyle(\"-fx-font-family: 'Elianto Regular';\");\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\treturn cell;\n\t\t\t\t\t}\n\t\t\t\t});\n\t\tthis.lstChatMessages.setId(\"lstChatMessages\");\n\t\tthis.lstChatMessages.setItems(getChatMessages());\n\n\n\t\t// Setup Labels\n\t\tthis.title = new Text(\"Chat\");\n\t\tthis.title.setOnMouseClicked(e -> {slideChat();});\n\t\t\n\t\tthis.title.setId(\"Title\");\n\t\tthis.lblCharactersLeft = new Label(Integer.toString(this.maxCharacters));\n\t\tthis.lblCharactersLeft.setId(\"lblCharactersLeft\");\n\n\t\t// Setup Message Text Input\n\t\tthis.textInputMessage = new TextField();\n\t\tthis.textInputMessage.prefWidthProperty().bind(lstChatMessages.widthProperty().multiply(0.8));\n\t\tthis.textInputMessage.setPrefHeight(40);\n\t\tthis.textInputMessage.setFont(Font.loadFont(Resources.el_font, 16));\n\n\t\tfinal UnaryOperator<Change> limit = c -> {\n\t\t\tif (c.isContentChange()) {\n\t\t\t\tint newLength = c.getControlNewText().length();\n\t\t\t\tif (newLength > maxCharacters) {\n\t\t\t\t\tc.setText(c.getControlText());\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn c;\n\t\t};\n\t\tfinal UnaryOperator<Change> chatFilter =\n\t\t\t\tchange -> { // Setup Filter\n\t\t\t\t\tif (change.getControlNewText().length() > maxCharacters) {\n\t\t\t\t\t\tnumCharactersLeft = 0;\n\t\t\t\t\t\tlblCharactersLeft.setText(Integer.toString(numCharactersLeft));\n\t\t\t\t\t\treturn null;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tnumCharactersLeft = maxCharacters - change.getControlNewText().length();\n\t\t\t\t\t\tlblCharactersLeft.setText(Integer.toString(numCharactersLeft));\n\t\t\t\t\t\treturn change;\n\t\t\t\t\t}\n\t\t\t\t};\n\t\t\t\tthis.textInputMessage.setTextFormatter(new TextFormatter<>(limit));\n\t\t\t\tthis.textInputMessage.setTextFormatter(new TextFormatter<>(chatFilter));\n\t\t\t\tthis.textInputMessage.setOnKeyPressed(\n\t\t\t\t\t\tnew EventHandler<KeyEvent>() {\n\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\tpublic void handle(KeyEvent keyEvent) {\n\t\t\t\t\t\t\t\tif ((keyEvent.getCode() == KeyCode.ENTER) && (!keyEvent.isAltDown())) {\n\t\t\t\t\t\t\t\t\tkeyEvent.consume();\n\t\t\t\t\t\t\t\t\tString message = textInputMessage.getText();\n\t\t\t\t\t\t\t\t\ttextInputMessage.clear();\n\t\t\t\t\t\t\t\t\tsendMessage(message);\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\tthis.textInputMessage.setId(\"textInputMessage\");\n\n\n\t\t\t\t// Setup Send Button\n\t\t\t\tButton sendBtn = new Button(\"Send\");\n\t\t\t\tsendBtn.prefWidthProperty().bind(lstChatMessages.widthProperty().multiply(0.2));\n\t\t\t\tsendBtn.setOnAction(e ->{ // Show deck\n\t\t\t\t\tsendMessage(textInputMessage.getText());\n\t\t\t\t});\n\n\t\t\t\tStackPane top = new StackPane();\n\t\t\t\ttop.getChildren().add(lstChatMessages);\n\n\t\t\t\tHBox bottom = new HBox(5);\n\t\t\t\tbottom.setAlignment(Pos.CENTER);\n\t\t\t\tbottom.getChildren().addAll(textInputMessage, sendBtn);\n\t\t\t\tbottom.setPadding(new Insets(0,0,10,0));\n\n\n\t\t\t\t// Put all together\n\t\t\t\tthis.container = new VBox(10);\n\t\t\t\tcontainer.setAlignment(Pos.BOTTOM_CENTER);\n\t\t\t\tcontainer.getChildren().addAll(lstChatMessages, bottom, title);\n\t\t\t\tcontainer.setPadding(new Insets(10,10,10,10));\n\t\t\t\tcontainer.setId(\"chat\");\n\n\t\t\t\tthis.getChildren().add(container);\n\t}", "public Server () {\n\t\t\n\t\tsuper(\"The best messager ever! \");\n\t\t//This sets the title. (Super - JFrame).\n\t\t\n\t\tuserText = new JTextField();\n\t\tuserText.setEditable(false);\n\t\tuserText.addActionListener(\n\t\t\t\tnew ActionListener() {\n\t\t\t\t\t\n\t\t\t\t\tpublic void actionPerformed(ActionEvent event) {\n\t\t\t\t\t\t\n\t\t\t\t\t\tsendMessage(event.getActionCommand());\n\t\t\t\t\t\t//This returns whatever event was performed in the text field i.e the text typed in.\n\t\t\t\t\t\tuserText.setText(\"\");\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t);\n\t\t\n\t\tadd(userText,BorderLayout.NORTH);\n\t\tchatWindow = new JTextArea();\n\t\tadd(new JScrollPane (chatWindow));\n\t\tsetSize(800,600);\n\t\tsetVisible(true);\n\t\t\n\t\t\n\t\n\t\n\t}", "@Override\n public void sendChat(String message) throws ModelException {\n assert message != null;\n\n try {\n String clientModel = m_theProxy.sendChat(GameModelFacade.instance().getLocalPlayer().getIndex(), message);\n new ModelInitializer().initializeClientModel(clientModel, m_theProxy.getPlayerId());\n } catch (NetworkException e) {\n throw new ModelException(e);\n }\n }", "public TCPMessengerServer() {\n initComponents();\n customInitComponents();\n listenForClient(); \n }", "private void initGUI() {\n\t JPanel optionsPane = initOptionsPane();\n\n\t // Set up the chat pane\n\t JPanel chatPane = new JPanel(new BorderLayout());\n\t chatText = new JTextPane();\n\t chatText.setEditable(false);\n\t chatText.setBorder(BorderFactory.createLineBorder(Color.DARK_GRAY));\n\t chatText.setMargin(new Insets(5, 5, 5, 5));\n\t JScrollPane jsp = new JScrollPane(chatText);\n\t \n\t chatLine = new JTextField();\n\t chatLine.setEnabled(false);\n\t chatLine.addActionListener(new ActionListener() {\n\t public void actionPerformed(ActionEvent e) {\n\t String s = chatLine.getText();\n\t chatLine.setText(\"\");\n\t MessageColor c = (MessageColor)colorCombo.getSelectedItem();\n\t support.firePropertyChange(\"UI\", \"message\", new Message(username, MessageType.MESSAGE, c, s));\n\t }\n\t });\n\t chatPane.add(chatLine, BorderLayout.SOUTH);\n\t chatPane.add(jsp, BorderLayout.CENTER);\n\n\t colorCombo = new JComboBox<MessageColor>(MessageColor.values());\n\t chatPane.add(colorCombo, BorderLayout.NORTH);\n\t \n\t chatPane.setPreferredSize(new Dimension(500, 200));\n\n\t // Set up the main pane\n\t JPanel mainPane = new JPanel(new BorderLayout());\n\t mainPane.add(optionsPane, BorderLayout.WEST);\n\t mainPane.add(chatPane, BorderLayout.CENTER);\n\n\t // Set up the main frame\n\t mainFrame = new JFrame(\"SPL Chat\");\n\t mainFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t mainFrame.setContentPane(mainPane);\n\t mainFrame.setSize(mainFrame.getPreferredSize());\n\t mainFrame.setLocation(200, 200);\n\t mainFrame.pack();\n\t mainFrame.setVisible(true);\n\t }", "public Chat() {\n }", "@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 txtChats = new javax.swing.JTextArea();\n txtChatType = new javax.swing.JTextField();\n btnSend = new javax.swing.JButton();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setTitle(\"LAN Chat client\");\n\n txtChats.setColumns(20);\n txtChats.setEditable(false);\n txtChats.setLineWrap(true);\n txtChats.setRows(5);\n jScrollPane1.setViewportView(txtChats);\n\n txtChatType.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n txtChatTypeKeyPressed(evt);\n }\n });\n\n btnSend.setText(\"Send\");\n btnSend.setToolTipText(\"Click to send text\");\n btnSend.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));\n btnSend.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnSendActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jScrollPane1)\n .addGroup(layout.createSequentialGroup()\n .addComponent(txtChatType, javax.swing.GroupLayout.PREFERRED_SIZE, 433, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 41, Short.MAX_VALUE)\n .addComponent(btnSend, javax.swing.GroupLayout.PREFERRED_SIZE, 92, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addContainerGap())\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 223, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(txtChatType)\n .addComponent(btnSend, javax.swing.GroupLayout.DEFAULT_SIZE, 36, Short.MAX_VALUE))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n\n pack();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n textLabelTitle = new javax.swing.JLabel();\n jSeparator1 = new javax.swing.JSeparator();\n textFieldInputChat = new javax.swing.JTextField();\n buttonSendChat = new javax.swing.JButton();\n jScrollPane1 = new javax.swing.JScrollPane();\n jTextchat = new javax.swing.JTextPane();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n textLabelTitle.setFont(new java.awt.Font(\"Segoe UI\", 1, 14)); // NOI18N\n textLabelTitle.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n textLabelTitle.setText(\"Chat Bot\");\n\n buttonSendChat.setText(\"Send\");\n buttonSendChat.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n buttonSendChatActionPerformed(evt);\n }\n });\n\n jTextchat.setEditable(false);\n jScrollPane1.setViewportView(jTextchat);\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(textLabelTitle, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(textFieldInputChat, javax.swing.GroupLayout.DEFAULT_SIZE, 318, Short.MAX_VALUE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(buttonSendChat))\n .addComponent(jScrollPane1))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jSeparator1, javax.swing.GroupLayout.DEFAULT_SIZE, 1, Short.MAX_VALUE)\n .addContainerGap())\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(textLabelTitle, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jSeparator1, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 210, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(textFieldInputChat)\n .addComponent(buttonSendChat, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addContainerGap())\n );\n\n pack();\n }", "public void ChatGUI() {\n try {\n\n DataOutputStream out = new DataOutputStream(socket.getOutputStream());\n DataInputStream in = new DataInputStream(socket.getInputStream());\n out.writeUTF(\"Connmain\");\n String message = in.readUTF();\n if (message.equals(\"Conf\")) {\n ObjectInputStream inOb = new ObjectInputStream(socket.getInputStream());\n ArrayList<String> chatlog = (ArrayList<String>) inOb.readObject();\n\n new ChatGUI().start(stage, this, socket, chatlog);\n }\n } catch (IOException | ClassNotFoundException e) {\n e.printStackTrace();\n }\n }", "public Chat(){ }", "private ChatAdministration(){\n\t\troomlist = new ChatRoomTableModel();\n\t\tfilelist = new ChatFileTableModel();\n\t\tchatConnection = ChatConnection.getInstance();\n\t\tconnectionconfig = loadConnectionConfiguration();\n\t}", "private void buildGUI() {\n ActionListener sendListener = new ActionListener() {\n public void actionPerformed(ActionEvent e) {\n String str = jTextField1.getText();\n if (str != null && str.trim().length() > 0)\n chatAccess.send(str);\n jTextField1.selectAll();\n jTextField1.requestFocus();\n jTextField1.setText(\"\");\n }\n };\n jTextField1.addActionListener(sendListener);\n jButton1.addActionListener(sendListener);\n\n this.addWindowListener(new WindowAdapter() {\n @Override\n public void windowClosing(WindowEvent e) {\n chatAccess.close();\n }\n });\n }", "public Server() {\n initComponents();\n listModel = new DefaultListModel<>();\n listModel2 = new DefaultListModel<>();\n \n }", "private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.setResizable(false);\n\t\tframe.setBounds(100, 100, 600, 600);\n\t\tframe.setTitle(\"WSChat Client\");\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tJPanel mainPanel = new JPanel();\n\t\tframe.getContentPane().add(mainPanel);\n\t\tmainPanel.setLayout(null);\n\n\t\tJLabel setNameLabel = new JLabel();\n\t\tsetNameLabel.setText(\"Nickname: \");\n\t\tmainPanel.add(setNameLabel);\n\t\tsetNameLabel.setBounds(168, 10, 80, 30);\n\t\tnameField = new JTextField();\n\t\tnameField.setBounds(247, 10, 100, 30);\n\t\tsendName = new JButton(\"Set Name\");\n\t\tsendName.setBounds(359, 11, 120, 30);\n\t\tnameField.setColumns(10);\n\t\tmainPanel.add(nameField);\n\t\tmainPanel.add(sendName);\n\t\tsendName.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tWSChatApplication.this.send(\"/nick \" + nameField.getText());\n\t\t\t}\n\t\t});\n\n\t\tJScrollPane msg_pane = new JScrollPane();\n\t\tmsg_area = new JTextArea();\n\t\tmsg_area.setEditable(false);\n\t\tmsg_area.setLineWrap(true);\n\t\tmsg_area.setWrapStyleWord(true);\n\t\tmsg_pane.setViewportView(msg_area);\n\t\tmsg_pane.setBounds(10, 45, 450, 450);\n\t\tmainPanel.add(msg_pane);\n\n\t\tJScrollPane list_pane = new JScrollPane();\n\t\tlist = new JList<String>(listModel);\n\t\tlist.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\tcurrentTarget = list.getSelectedValue();\n\t\t\t}\n\t\t});\n\n\t\tJTextPane textPane = new JTextPane();\n\t\ttextPane.setBounds(0, 0, 1, 16);\n\t\tmainPanel.add(textPane);\n\t\tlist_pane.setViewportView(list);\n\t\tlist_pane.setBounds(470, 45, 120, 450);\n\t\tmainPanel.add(list_pane);\n\n\t\tJScrollPane in_pane = new JScrollPane();\n\t\tfinal JTextArea in_area = new JTextArea();\n\t\tin_area.setLineWrap(true);\n\t\tin_area.setWrapStyleWord(true);\n\t\tin_pane.setViewportView(in_area);\n\t\tJButton sendBut = new JButton(\"Send\");\n\t\tsendBut.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tif (list.getSelectedIndex() == 0)\n\t\t\t\t\tWSChatApplication.this.send(in_area.getText());\n\t\t\t\telse\n\t\t\t\t\tWSChatApplication.this.send(\"/to \" + currentTarget + \" \"\n\t\t\t\t\t\t\t+ in_area.getText());\n\t\t\t\tin_area.setText(\"\");\n\t\t\t}\n\t\t});\n\t\tmainPanel.add(sendBut);\n\t\tsendBut.setBounds(470, 500, 120, 70);\n\t\tmainPanel.add(in_pane);\n\t\tin_pane.setBounds(10, 500, 450, 70);\n\t}", "private void setupChat() {\n // Initialize the array adapter for the conversation thread\n mConversationArrayAdapter = new ArrayAdapter<String>(getActivity(), R.layout.message);\n\n //\n mFlashButton.setOnClickListener(new View.OnClickListener() {\n public void onClick(View v) {\n View view = getView();\n if (null != view) {\n sendMessage((byte)Constants.FLASH,(byte)Constants.LED3);\n\n }\n }\n });\n mLightButton.setOnClickListener(new View.OnClickListener() {\n public void onClick(View v) {\n View view = getView();\n if (null != view) {\n sendMessage((byte)Constants.FLASH,(byte)Constants.LED2);\n }\n }\n });\n mN1FlashButton.setOnClickListener(new View.OnClickListener() {\n public void onClick(View v) {\n View view = getView();\n if (null != view) {\n sendMessage((byte)Constants.CLEARMEMORY,(byte)Constants.NODE1);\n }\n }\n });\n mN2FlashButton.setOnClickListener(new View.OnClickListener() {\n public void onClick(View v) {\n View view = getView();\n if (null != view) {\n sendMessage((byte)Constants.BUSSIGNAL,(byte)Constants.NODE2);\n }\n }\n });\n\n updateLightSensorValuesButton.setOnClickListener(new View.OnClickListener() {\n public void onClick(View v) {\n View view = getView();\n if (null != view) {\n updateLightSensorValues();\n }\n }\n });\n downloadDataButton.setOnClickListener(new View.OnClickListener() {\n public void onClick(View v) {\n View view = getView();\n if (null != view)\n {\n sendMessage((byte)Constants.READMEMORY,(byte)0);\n dataStream.clear();\n }\n }\n });\n\n\n // Initialize the BluetoothChatService to perform bluetooth connections\n mChatService = new BluetoothChatService(getActivity(), mHandler);\n\n // Initialize the buffer for outgoing messages\n mOutStringBuffer = new StringBuffer(\"\");\n }", "public RoomManagementPanel(ChatView chatView, ChatController chatController, JFrame frame) {\n this.chatView = chatView;\n this.chatController = chatController;\n\n createComponents();\n }", "private void buildGUI() {\r\n textArea = new JTextArea(20, 50);\r\n textArea.setEditable(false);\r\n textArea.setLineWrap(true);\r\n add(new JScrollPane(textArea), BorderLayout.CENTER);\r\n\r\n Box box = Box.createHorizontalBox();\r\n add(box, BorderLayout.SOUTH);\r\n inputTextField = new JTextField();\r\n sendButton = new JButton(\"Send\");\r\n box.add(inputTextField);\r\n box.add(sendButton);\r\n\r\n // Action for the inputTextField and the goButton\r\n ActionListener sendListener = new ActionListener() {\r\n public void actionPerformed(ActionEvent e) {\r\n String str = inputTextField.getText();\r\n if (str != null && str.trim().length() > 0) {\r\n chatAccess.send(str);\r\n }\r\n inputTextField.selectAll();\r\n inputTextField.requestFocus();\r\n inputTextField.setText(\"\");\r\n }\r\n };\r\n inputTextField.addActionListener(sendListener);\r\n sendButton.addActionListener(sendListener);\r\n\r\n this.addWindowListener(new WindowAdapter() {\r\n @Override\r\n public void windowClosing(WindowEvent e) {\r\n chatAccess.close();\r\n }\r\n });\r\n }", "public TCommChatPanel() {\r\n\t\tinitialize();\r\n\t}", "public ChatClient() {\r\n\r\n // Layout GUI\r\n textField.setEditable(false);\r\n messageArea.setEditable(false);\r\n frame.getContentPane().add(textField, \"North\");\r\n frame.getContentPane().add(new JScrollPane(messageArea), \"Center\");\r\n frame.pack();\r\n\r\n // Add Listeners\r\n textField.addActionListener(new ActionListener() {\r\n /**\r\n * Responds to pressing the enter key in the textfield by sending the contents of the text\r\n * field to the server. Then clear the text area in preparation for the next message.\r\n */\r\n public void actionPerformed(ActionEvent e)\r\n {\r\n out.println(textField.getText());\r\n textField.setText(\"\");\r\n }\r\n });\r\n }", "public Server(){\r\n //Create a Random object\r\n rand = new Random();\r\n\r\n //Create the GUI\r\n //Text area for displaying console\r\n JTextArea jtaCommandHistory = new JTextArea(35,45);\r\n jtaCommandHistory.setFont(new Font(\"Helvetica\", Font.BOLD, 12));\r\n jtaCommandHistory.setBackground(Color.BLACK);\r\n jtaCommandHistory.setForeground(Color.GREEN);\r\n jtaCommandHistory.setEditable(false);\r\n //Wrap the text area in a JScrollPane\r\n JScrollPane jspCommandHistory = new JScrollPane(jtaCommandHistory);\r\n\r\n //Text field for entering commands\r\n JTextField jtfConsole = new JTextField(15);\r\n\r\n //Binding the Enter key to reset\r\n jtfConsole.getInputMap().put(KeyStroke.getKeyStroke(KeyEvent.VK_ENTER, 0), \"sendMessage\");\r\n jtfConsole.getActionMap().put(\"sendMessage\", new AbstractAction(){\r\n public void actionPerformed(ActionEvent ae){\r\n\r\n //Store the command in history\r\n sbCommandHistory.append(\"\\n\");\r\n sbCommandHistory.append(\">>\");\r\n sbCommandHistory.append(jtfConsole.getText());\r\n sbCommandHistory.append(\"\\n\");\r\n\r\n //Execute the command\r\n parseCommand(jtfConsole.getText());\r\n\r\n //Reset the text field\r\n jtfConsole.setText(\"\");\r\n }\r\n });\r\n add(jspCommandHistory, BorderLayout.CENTER);\r\n add(jtfConsole, BorderLayout.SOUTH);\r\n\r\n //Use a Timer to set the command history area to the StringBuilder text\r\n ActionListener alRefresh = new ActionListener() {\r\n public void actionPerformed(ActionEvent ae) {\r\n jtaCommandHistory.setText(sbCommandHistory.toString());\r\n }\r\n };\r\n javax.swing.Timer timer = new javax.swing.Timer(350, alRefresh);\r\n timer.start();\r\n\r\n //JFrame Initialization\r\n setTitle(\"Portals Server\");\r\n setVisible(true);\r\n setDefaultCloseOperation(EXIT_ON_CLOSE);\r\n setLocationRelativeTo(null);\r\n pack();\r\n\r\n //Creating a GameLogic to serve as the portal layout\r\n GameLogic glLayout = new GameLogic(10, true);\r\n boardLayout = glLayout.getUpdatedBoardInformation();\r\n\r\n //Accept and handle client connections\r\n try {\r\n Socket cs;\r\n ServerSocket ss = new ServerSocket(PORT);\r\n //Print server information\r\n InetAddress ina = InetAddress.getLocalHost();\r\n consoleAppend(\"Host name: \" + ina.getHostName());\r\n consoleAppend(\"IP Address: \" + ina.getHostAddress());\r\n while (true) {\r\n cs = ss.accept();\r\n ClientHandler ct = new ClientHandler(cs);\r\n ct.start();\r\n clientThreads.add(ct);\r\n }\r\n } catch (UnknownHostException uhe) {\r\n System.err.println(\"Could not determine host IP address.\");\r\n uhe.printStackTrace();\r\n } catch (IOException uhe) {\r\n uhe.printStackTrace();\r\n }\r\n }", "public Controller(GUI guy) throws NetworkingException.ReceivingException, NetworkingException.ReceivingFileException {\n gui = guy;\n ni = new ChatNI(this);\n }", "public ChatClient() {\n\n }", "private SimpleChatUI() {\n initComponents();\n convo = null;\n setConnStatus(false);\n jMessageEntry.addActionListener(new java.awt.event.ActionListener() {\n @Override\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jSendButtonActionPerformed(evt);\n }\n });\n }", "@Override\r\n public void setListener() {\n input.setInputListener(this);\r\n\r\n //bind load more listener, it will track scroll up\r\n messagesAdapter.setLoadMoreListener(this);\r\n\r\n //bind on message long click\r\n messagesAdapter.setOnMessageLongClickListener(this);\r\n\r\n //get called when a incoming message come..\r\n socketManager.getSocket().on(\"updateChat\", new Emitter.Listener() {\r\n @Override\r\n public void call(Object... args) {\r\n String messageData = (String) args[0];\r\n Gson gson = new Gson();\r\n _Message message = gson.fromJson(messageData, _Message.class);\r\n\r\n //double check for valid room\r\n if (me.isValidRoomForUser(message.getRoomName())) {\r\n\r\n //sometime nodejs can broadcast own message so check and message should be view immediately\r\n\r\n if(!message.getUser().getId().equals(me.getId())) {\r\n //save new incoming message to realm\r\n saveOrUpdateNewMessageRealm(message);\r\n\r\n //check and save validity of room incoming user\r\n runOnUiThread(() -> {\r\n\r\n messagesAdapter.addToStart(message, true);\r\n });\r\n }\r\n\r\n }\r\n }\r\n });\r\n }", "ChatWithServer.Relay getChatWithServerRelay();", "private void init() {\n\t\tname = getIntent().getStringExtra(\"name\");\n\t\tnameID = getIntent().getStringExtra(\"id\");\n\n\t\tsetSupportActionBar(mToolbar);\n\t\tsetSupportActionBar(mToolbar);\n\t\tgetSupportActionBar().setDisplayHomeAsUpEnabled(true);\n\t\tgetSupportActionBar().setDisplayShowHomeEnabled(true);\n\t\tmToolbar.setTitle(name);\n\t\tmToolbar.setNavigationOnClickListener(new View.OnClickListener() {\n\t\t\t@Override\n\t\t\tpublic void onClick(View view) {\n\t\t\t\tfinish();\n\t\t\t}\n\t\t});\n\n\t\tmBtnSendText.setEnabled(false);\n\t\tchatViewModel = ViewModelProviders.of(this).get(ChatViewModel.class);\n\t\tchatAdapter = new ChatAdapter(this, this);\n\n\t\tLinearLayoutManager linearLayoutManager = new LinearLayoutManager(getApplicationContext(), RecyclerView.VERTICAL, false);\n\t\tlinearLayoutManager.setStackFromEnd(true);\n\t\tmChatList.setLayoutManager(linearLayoutManager);\n\t\tmChatList.setAdapter(chatAdapter);\n\n\t\t// Send Button click listener.\n\t\tmBtnSendText.setOnClickListener(new View.OnClickListener() {\n\t\t\t@Override\n\t\t\tpublic void onClick(View view) {\n\t\t\t\tcheckConnection();\n\t\t\t}\n\t\t});\n\n\t\t// Chat Box text change listener.\n\t\tmChatBox.addTextChangedListener(new TextWatcher() {\n\t\t\t@Override\n\t\t\tpublic void beforeTextChanged(CharSequence charSequence, int i, int i1, int i2) {\n\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void onTextChanged(CharSequence charSequence, int i, int i1, int i2) {\n\t\t\t\tif (charSequence.length() == 0)\n\t\t\t\t\tmBtnSendText.setEnabled(false);\n\t\t\t\telse\n\t\t\t\t\tmBtnSendText.setEnabled(true);\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void afterTextChanged(Editable editable) {\n\n\t\t\t}\n\t\t});\n\t}", "public abstract void newChatMembersMessage(Message m);", "@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 chatList = new javax.swing.JList<>();\n chatText = new javax.swing.JTextField();\n sendButton = new javax.swing.JButton();\n clearButton = new javax.swing.JButton();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE);\n setTitle(\"ChatFrame\");\n addWindowListener(new java.awt.event.WindowAdapter() {\n public void windowClosing(java.awt.event.WindowEvent evt) {\n formWindowClosing(evt);\n }\n });\n\n chatList.setModel(new DefaultListModel());\n chatList.setCellRenderer(new ChatMessageRenderer());\n jScrollPane1.setViewportView(chatList);\n\n sendButton.setText(\"send\");\n\n clearButton.setText(\"clear\");\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(chatText, javax.swing.GroupLayout.PREFERRED_SIZE, 618, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(sendButton)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(clearButton)\n .addContainerGap(41, Short.MAX_VALUE))\n .addComponent(jScrollPane1)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 377, Short.MAX_VALUE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(chatText, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(sendButton)\n .addComponent(clearButton)))\n );\n\n pack();\n }", "public void receiveChatRequest() {\n\t\t\r\n\t\tString message = \"Chat request details\";\r\n\t\t\r\n\t\t//Notify the chat request details to the GUI\r\n\t\tthis.observable.notifyObservers(message);\r\n\t}", "public AbstractReceivedChatMessage(MutableJsonObject mutableJsonObject, IModelRegistry modelRegistry)\n {\n super(mutableJsonObject, modelRegistry);\n \n messageML_ = initMessageML();\n }", "@Override\n\tpublic IChatServer createNewRoomServer(IChatroom chatroom) throws RemoteException {\n\t\tChatServer chatServer = new ChatServer(this, chatroom);\n\t\tusr2MdlAdpt.createMiniMVC(chatServer);\n\t\tfor (IChatServer that : chatroom.getChatServers()) {\n\t\t\tthat.joinChatroom(chatServer);\n\t\t\tchatroom.addChatServer(that);\n\t\t}\n\t\taddRoom(chatroom);\n\t\tchatroom.addChatServer(chatServer);\n\t\treturn chatServer;\n\t}", "public MyModel() {\n mazeGeneratingServer = new Server(5400, 1000, new ServerStrategyGenerateMaze());\n solveSearchProblemServer = new Server(5401, 1000, new ServerStrategySolveSearchProblem());\n //Raise the servers\n }", "@OnClick(R.id.enter_chat1)\n public void sendMessage() {\n if (getView() == null) {\n return;\n }\n EditText editText = getView().findViewById(R.id.chat_edit_text1);\n sendMessageBackend(editText.getText().toString(), utils.getChatUser());\n updateListAdapter();\n editText.setText(\"\");\n }", "@Override\r\n\tpublic void addMessage(String ChatMessageModel) {\n\t\t\r\n\t}", "public Client() {\n // Naming the client window Player\n super(\"Player\");\n\n // Setting up the textField. Must press enter to start the game.\n textField = new JTextField(\"Please press enter to start...\");\n\n // Adding the ActionListener\n textField.addActionListener(\n event -> {\n try // create and send packet\n {\n // get message from textfield\n String message = event.getActionCommand();\n\n // convert to bytes\n byte[] data = message.getBytes();\n\n // create sendPacket\n DatagramPacket sendPacket = new DatagramPacket(data,\n data.length, InetAddress.getLocalHost(), 5000);\n\n // sending packet to Server\n socket.send(sendPacket);\n\n // Displaying the message in \"Player: Message\" Format\n displayArea.setCaretPosition(\n displayArea.getText().length());\n } catch (IOException ioException) {\n displayMessage(ioException + \"\\n\");\n ioException.printStackTrace();\n }\n }\n );\n add(textField, BorderLayout.NORTH);\n\n // Creating and Adding the Display Area text box.\n displayArea = new JTextArea();\n add(new JScrollPane(displayArea), BorderLayout.CENTER);\n\n // Making the Window for Client\n setSize(400, 300); // set window size\n setVisible(true); // show window\n\n try // create DatagramSocket for sending and receiving packets\n {\n socket = new DatagramSocket();\n } catch (SocketException socketException) {\n socketException.printStackTrace();\n System.exit(1);\n }\n }", "private void setupChat() {\n chatService = new BluetoothChatService(NavigationDrawerActivity.this, mHandler);\n\n }", "public static void setupGUI() {\n\t\t\n\t\t//My GUI Frame\n\t\tJFrame GUIframe = new JFrame(\"ChatBot Conversation GUI\");\n\t\tGUIframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tGUIframe.setSize(800,400);\n\t\t\n\t\t//GUI Panel Setup\n\t\tJPanel panel1 = new JPanel();\n\t\tJButton enter = new JButton(\"Enter\");\n\t\t\n\t\t//Listener for the Submit button\n\t\tenter.addActionListener(new ActionListener(){\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tString newUserInput = (myTextField.getText()).trim();\n\t\t\t\t\n\t\t\t\tif(newUserInput.length()>=1){\n\t\t\t\t\tagent.execute(conversation, newUserInput);\n\t\t\t\t\tmyTextField.setText(\"\");\n\t\t\t\t}\t\n\t\t\t}\n\t\t});\n\t\t//Listener to enable users to press Enter into the textfield\n\t\tmyTextField.addActionListener(new ActionListener(){\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tString newUserInput = (myTextField.getText()).trim();\n\t\t\t\t\n\t\t\t\tif(newUserInput.length()>=1){\n\t\t\t\t\tagent.execute(conversation, newUserInput);\n\t\t\t\t\tmyTextField.setText(\"\");\n\t\t\t\t}\t\n\t\t\t}\n\t\t});\n\t\t\n\t\tpanel1.add(myTextField);\n\t\tpanel1.add(enter);\n\t\t\n\t\t//JTextArea chat = new JTextArea();\n\t\tchat.setEditable(false);\n\t\tJScrollPane letsScroll = new JScrollPane(chat);\n\t\t\n\t\tGUIframe.getContentPane().add(BorderLayout.SOUTH, panel1);\n\t\t//GUIframe.getContentPane().add(BorderLayout.CENTER, chat);\n\t\tGUIframe.getContentPane().add(BorderLayout.CENTER, letsScroll);\n\t\tGUIframe.setVisible(true);\t\n\n\t\t\n\t}", "public MainWindow()\n {\n Chat loadedChat = loadChat();\n if (loadedChat != null) {\n chat = loadedChat;\n for (User user : chat.getUsers()) {\n chatWindows.add(new ChatWindow(user, chat));\n }\n }\n add(new JLabel(\"Username\"));\n addNameInput();\n addButton();\n setSize(220, 125);\n setLayout(new GridLayout(3, 1));\n setVisible(true);\n setDefaultCloseOperation(EXIT_ON_CLOSE);\n addWindowListener(new WindowAdapter() {\n\n @Override\n public void windowClosing(WindowEvent e)\n {\n try {\n storeChat(chat);\n } catch (IOException exception) {\n showError(rootPane, \"Couldn't store application state\");\n }\n for (ChatWindow chatWindow : chatWindows) {\n chatWindow.dispatchEvent(new WindowEvent(chatWindow, WINDOW_CLOSING));\n }\n super.windowClosing(e);\n }\n });\n }", "public ChatRec(User receiver, User sender, String msg,boolean fol) {\n\t\tsetType(Type.UTILITY);\n\t\tsetTitle(\"NEW MESSAGE\");\n\t\tsetBounds(100, 100, 452, 369);\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\n\t\ttextField = new JTextField();\n\t\ttextField.setForeground(UIManager.getColor(\"MenuBar.highlight\"));\n\t\ttextField.setEditable(false);\n\t\ttextField.setFont(new Font(\"Noto Sans CJK JP Black\", Font.BOLD, 16));\n\t\ttextField.setBackground(UIManager.getColor(\"OptionPane.questionDialog.border.background\"));\n\t\ttextField.setText(\" \" + sender.getName() + \" \" + sender.getSurname() + \" \");\n\t\ttextField.setBounds(53, 22, 329, 39);\n\t\tcontentPane.add(textField);\n\t\ttextField.setColumns(10);\n\n\t\tJRadioButton lastBtn = new JRadioButton(\"Finish Chat\");\n\t\tlastBtn.setBounds(295, 261, 127, 24);\n\t\tcontentPane.add(lastBtn);\n\t\t\n\t\tJEditorPane textarea = new JEditorPane();\n\t\ttextarea.setFont(new Font(\"Noto Sans CJK SC Bold\", Font.PLAIN, 14));\n\t\tJButton btnSend = new JButton(\"REPLY\");\n btnSend.setEnabled(false);\n\t\t\n\t\ttextarea.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\t\tbtnSend.setText(\"SEND\");\n\t\t\t\tbtnSend.setEnabled(true);\n\t\t\t\ttextarea.setText(\"\");\n\t\t\t\ttextarea.setEditable(true);\n\t\t\t\tFile bmp=new File(receiver.getInbox()+\"/\"+sender.getUsername()+\".bmp\");\n\t\t\t bmp.delete();\n\t\t\t\tFile msg=new File(receiver.getInbox()+\"/\"+sender.getUsername()+\".msg\");\n\t\t\t\tmsg.delete();\n\t\t\t\tFile kgn=new File(receiver.getInbox()+\"/\"+sender.getUsername()+\".kgn\");\n\t\t\t\tkgn.delete();\n\t\t\t\tFile sign1=new File(receiver.getInbox()+\"/\"+sender.getUsername()+\".ksgn\");\n\t\t\t\tsign1.delete();\n\t\t\t\tFile sign2=new File(receiver.getInbox()+\"/\"+sender.getUsername()+\".msgn\");\n\t\t\t\tsign2.delete();\n\t\t\t}\n\t\t});\n\t\ttextarea.setBounds(53, 70, 329, 178);\n\t\tcontentPane.add(textarea);\n\t\ttextarea.setText(msg);\n\t\ttextarea.setEditable(false);\n\n\t\tif(fol==true)\n\t\t{\n\t\t\tbtnSend.setEnabled(false);\n\t\t\ttextarea.addMouseListener(new MouseAdapter() {\n\t\t\t\t@Override\n\t\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\ttextarea.setText(\"Last message...\");\n\t\t\t\t\ttry {\n\t\t\t\t\t\tThread.sleep(3000);\n\t\t\t\t\t} catch (InterruptedException e1) {\n\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t\tdispose();\t\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t\t\n\t\tbtnSend.addActionListener(new ActionListener() {\n\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tString msgToReply = textarea.getText();\n\t\t\t\tif(lastBtn.isSelected())\n\t\t\t\t{\n\t\t\t\t\ttry {\n\t\t\t\t\t\treceiver.sendSteganographyMessage(\"LAST MESSAGE\\n\"+msgToReply, sender,true);\n\t\t\t\t\t} catch (IOException e1) {\n\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\ttry {\n\t\t\t\t\treceiver.sendMessage(msgToReply, sender);\n\t\t\t\t} catch (Exception e1) {\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tdispose();\n\t\t\t}\n\t\t});\n\t\tbtnSend.setBounds(166, 260, 102, 26);\n\t\tcontentPane.add(btnSend);\n\t}", "public MessageEdit(Display display, Displayable pView, Contact to, String body) {\r\n t = new TextBox(to.toString(), \"\", 500, TextField.ANY);\r\n try {\r\n //expanding buffer as much as possible\r\n maxSize = t.setMaxSize(4096); //must not trow\r\n \r\n } catch (Exception e) {}\r\n \r\n insert(body, 0); // workaround for Nokia S40\r\n this.to=to;\r\n this.display=display;\r\n \r\n cf=Config.getInstance();\r\n //#ifdef DETRANSLIT\r\n //# DeTranslit.getInstance();\r\n //#endif\r\n \r\n if (!cf.swapSendAndSuspend) {\r\n cmdSuspend=new Command(SR.MS_SUSPEND, Command.BACK, 90);\r\n cmdSend=new Command(SR.MS_SEND, Command.OK, 1);\r\n } else {\r\n cmdSuspend=new Command(SR.MS_SUSPEND, Command.OK, 1);\r\n cmdSend=new Command(SR.MS_SEND, Command.BACK, 90);\r\n }\r\n //#ifdef ARCHIVE\r\n //#ifdef PLUGINS\r\n //# if (StaticData.getInstance().Archive)\r\n //#endif\r\n t.addCommand(cmdPaste);\r\n //#endif\r\n //#ifdef CLIPBOARD\r\n //# if (cf.useClipBoard) {\r\n //# clipboard=ClipBoard.getInstance();\r\n //# if (!clipboard.isEmpty()) {\r\n //# t.addCommand(cmdPasteText);\r\n //# }\r\n //# }\r\n //#endif\r\n //#if TEMPLATES\r\n //#ifdef PLUGINS\r\n //# if (StaticData.getInstance().Archive)\r\n //#endif\r\n //# t.addCommand(cmdTemplate);\r\n //#endif\r\n \r\n t.addCommand(cmdSend);\r\n t.addCommand(cmdInsMe);\r\n //#ifdef SMILES\r\n t.addCommand(cmdSmile);\r\n //#endif\r\n if (to.origin>=Contact.ORIGIN_GROUPCHAT)\r\n t.addCommand(cmdInsNick);\r\n //#ifdef DETRANSLIT\r\n //# t.addCommand(cmdSendInTranslit);\r\n //# t.addCommand(cmdSendInDeTranslit);\r\n //#endif\r\n t.addCommand(cmdSuspend);\r\n t.addCommand(cmdCancel);\r\n \r\n if (to.origin==Contact.ORIGIN_GROUPCHAT)\r\n t.addCommand(cmdSubj);\r\n \r\n if (to.lastSendedMessage!=null)\r\n t.addCommand(cmdLastMessage); \r\n //#ifdef RUNNING_MESSAGE\r\n //# if (cf.notifyWhenMessageType == 1) {\r\n //# t.setTicker(ticker);\r\n //# } else {\r\n //# t.setTicker(null);\r\n //# }\r\n //# if (thread==null) (thread=new Thread(this)).start() ; // composing\r\n //#else\r\n send() ; // composing\r\n //#endif\r\n setInitialCaps(cf.capsState);\r\n if (Config.getInstance().phoneManufacturer == Config.SONYE) System.gc(); // prevent flickering on Sony Ericcsson C510\r\n t.setCommandListener(this);\r\n display.setCurrent(t); \r\n this.parentView=pView;\r\n }", "public ChatFrame() {\n initComponents();\n }", "public ChatWindow()\n {\n if (!ConfigurationUtils.isWindowDecorated())\n this.setUndecorated(true);\n\n this.addWindowFocusListener(this);\n\n this.setDefaultCloseOperation(JFrame.DO_NOTHING_ON_CLOSE);\n\n //If in mode TABBED_CHAT_WINDOW initialize the tabbed pane\n if(ConfigurationUtils.isMultiChatWindowEnabled())\n chatTabbedPane = new ConversationTabbedPane();\n\n menuBar = new MessageWindowMenuBar(this);\n\n contactPhotoPanel = new ContactPhotoPanel();\n\n this.setJMenuBar(menuBar);\n\n toolbarPanel = createToolBar();\n\n this.getContentPane().add(toolbarPanel, BorderLayout.NORTH);\n this.getContentPane().add(mainPanel, BorderLayout.CENTER);\n this.getContentPane().add(statusBarPanel, BorderLayout.SOUTH);\n\n this.initPluginComponents();\n\n this.setKeybindingInput(KeybindingSet.Category.CHAT);\n this.addKeybindingAction( \"chat-nextTab\",\n new ForwardTabAction());\n this.addKeybindingAction( \"chat-previousTab\",\n new BackwordTabAction());\n this.addKeybindingAction( \"chat-copy\",\n new CopyAction());\n this.addKeybindingAction( \"chat-paste\",\n new PasteAction());\n this.addKeybindingAction( \"chat-openSmileys\",\n new OpenSmileyAction());\n this.addKeybindingAction( \"chat-openHistory\",\n new OpenHistoryAction());\n this.addKeybindingAction( \"chat-close\",\n new CloseAction());\n\n this.addWindowListener(new ChatWindowAdapter());\n\n int width = GuiActivator.getResources()\n .getSettingsInt(\"impl.gui.CHAT_WINDOW_WIDTH\");\n int height = GuiActivator.getResources()\n .getSettingsInt(\"impl.gui.CHAT_WINDOW_HEIGHT\");\n\n this.setSize(width, height);\n }", "public AbstractReceivedChatMessage(ImmutableJsonObject jsonObject, IModelRegistry modelRegistry)\n {\n super(jsonObject, modelRegistry);\n \n messageML_ = initMessageML();\n }", "public static BorderPane GUIClientChatRoom(){\n\n BorderPane rootchat = new BorderPane();\n\n clientlistMessageView = new ListView<>();\n clientOnlineView = new ListView<>();\n clientMessageList = new ArrayList<>();\n clientUsersOnlineList = new ArrayList<>();\n\n clientlistMessageView.setMaxWidth(400);\n clientlistMessageView.setPrefHeight(300);\n\n clientOnlineView.setMaxWidth(100);\n clientOnlineView.setPrefHeight(30);\n\n clientinputText = new TextArea();\n\n clientinputText.setMaxWidth(250);\n clientinputText.setPrefHeight(50);\n\n HBox hboxchat = new HBox();\n HBox hboxchatonline = new HBox();\n HBox hboxchatbuttons = new HBox();\n VBox vboxchat = new VBox();\n\n VBox logout = new VBox();\n\n hboxchat.setSpacing(30);\n hboxchat.getChildren().addAll(clientinputText);\n\n logout.setSpacing(10);\n logout.setPadding(new Insets(0,0,0,80));\n logout.getChildren().addAll(logOut);\n\n hboxchatbuttons.setSpacing(10);\n hboxchatbuttons.getChildren().addAll(sendClientMessage,sendClientPersonalMessage, addClientChatRoom,logout);\n\n hboxchatonline.setSpacing(30);\n hboxchatonline.getChildren().addAll(clientlistMessageView, clientOnlineView);\n\n\n vboxchat.setSpacing(10);\n vboxchat.getChildren().addAll(hboxchatonline, hboxchat, hboxchatbuttons);\n\n rootchat.setPadding(new Insets(30, 40, 30, 40));\n rootchat.setStyle(\"-fx-background-image: url('\" + image2 + \"'); \" +\n \"-fx-background-position: center center; \" +\n \"-fx-background-repeat: stretch;\");\n rootchat.setCenter(vboxchat);\n return rootchat;\n\n }", "@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 msgInputArea = new javax.swing.JTextArea();\n msgSendButton = new javax.swing.JButton();\n jScrollPane2 = new javax.swing.JScrollPane();\n msgDisplayArea = new javax.swing.JTextArea();\n userNameLabel = new javax.swing.JLabel();\n userNameArea = new javax.swing.JTextField();\n userNameButton = new javax.swing.JButton();\n jSeparator1 = new javax.swing.JSeparator();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setTitle(\"TCP Messenger - Server\");\n setIconImage(setIcon());\n setLocation(new java.awt.Point(75, 100));\n setMinimumSize(new java.awt.Dimension(400, 440));\n setName(\"TCPMessengerServer\"); // NOI18N\n setPreferredSize(new java.awt.Dimension(454, 475));\n\n msgInputArea.setColumns(20);\n msgInputArea.setLineWrap(true);\n msgInputArea.setRows(1);\n msgInputArea.setWrapStyleWord(true);\n msgInputArea.setNextFocusableComponent(userNameArea);\n msgInputArea.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyTyped(java.awt.event.KeyEvent evt) {\n msgInputAreaKeyTyped(evt);\n }\n });\n jScrollPane1.setViewportView(msgInputArea);\n\n msgSendButton.setText(\"Send\");\n msgSendButton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n msgSendButtonActionPerformed(evt);\n }\n });\n\n msgDisplayArea.setEditable(false);\n msgDisplayArea.setColumns(20);\n msgDisplayArea.setLineWrap(true);\n msgDisplayArea.setText(\"Waiting for connection from client...\");\n msgDisplayArea.setWrapStyleWord(true);\n jScrollPane2.setViewportView(msgDisplayArea);\n\n userNameLabel.setText(\"Your name:\");\n\n userNameArea.setNextFocusableComponent(msgInputArea);\n userNameArea.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n userNameAreaFocusGained(evt);\n }\n public void focusLost(java.awt.event.FocusEvent evt) {\n userNameAreaFocusLost(evt);\n }\n });\n userNameArea.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n userNameAreaActionPerformed(evt);\n }\n });\n userNameArea.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyTyped(java.awt.event.KeyEvent evt) {\n userNameAreaKeyTyped(evt);\n }\n });\n\n userNameButton.setText(\"Submit\");\n userNameButton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n userNameButtonActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jScrollPane1)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(msgSendButton, javax.swing.GroupLayout.PREFERRED_SIZE, 113, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addComponent(jScrollPane2, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 437, Short.MAX_VALUE)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addGap(34, 34, 34)\n .addComponent(userNameLabel)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(userNameArea)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(userNameButton, javax.swing.GroupLayout.PREFERRED_SIZE, 82, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addContainerGap())\n .addComponent(jSeparator1)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(userNameButton, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(userNameArea, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(userNameLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 21, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jSeparator1, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jScrollPane2, javax.swing.GroupLayout.DEFAULT_SIZE, 303, Short.MAX_VALUE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(msgSendButton, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 73, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 73, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addContainerGap())\n );\n\n userNameLabel.getAccessibleContext().setAccessibleName(\"\");\n\n pack();\n }", "public static void main(String[] args) {\n message.Message m = new ChatMessage();\r\n m.addReceiver();\r\n }", "private void changeChat(ChangeChatEvent changeChatEvent) {\n IChat chat = changeChatEvent.getChat();\n if(chat != null && chat.getMessages() != null){\n Platform.runLater(() -> {\n List<? extends IMessageIn> mes = new ArrayList<>(chat.getMessages());\n messages.setAll(mes);\n });\n } else {\n Platform.runLater(() -> {\n messages.clear();\n });\n }\n\n }", "public void init() {\r\n window = new Frame(title);\r\n window.setLayout(new BorderLayout());\r\n chat = new TextArea();\r\n chat.setEditable(false);\r\n chat.setFont(new Font(police, Font.PLAIN, size));\r\n message = \"Chat room opened !\";\r\n window.add(BorderLayout.NORTH, chat);\r\n pan.add(logInButton = new Button(\"Enter\"));\r\n logInButton.setEnabled(true);\r\n logInButton.requestFocus();\r\n logInButton.addActionListener(new ActionListener() {\r\n public void actionPerformed(ActionEvent e) {\r\n login();\r\n logInButton.setEnabled(false);\r\n logOutButton.setEnabled(true);\r\n myText.requestFocus();\r\n }\r\n });\r\n pan.add(logOutButton = new Button(\"Exit\"));\r\n logOutButton.setEnabled(false);\r\n logOutButton.addActionListener(new ActionListener() {\r\n public void actionPerformed(ActionEvent e) {\r\n logout();\r\n logInButton.setEnabled(true);\r\n logOutButton.setEnabled(false);\r\n logInButton.requestFocus();\r\n }\r\n });\r\n pan.add(new Label(\"Your message:\"));\r\n myText = new TextField(myTextDimension);\r\n myText.addActionListener(new ActionListener() {\r\n public void actionPerformed(ActionEvent e) {\r\n if (connected) {\r\n writer.println(myText.getText());\r\n myText.setText(\"\");\r\n }\r\n }\r\n });\r\n pan.add(myText);\r\n window.add(BorderLayout.SOUTH, pan);\r\n window.addWindowListener(new WindowAdapter() {\r\n public void windowClosing(WindowEvent e) {\r\n ForumClient.this.window.setVisible(false);\r\n ForumClient.this.window.dispose();\r\n logout();\r\n }\r\n });\r\n window.pack();\t\t\t\t\t\t\t\t\t// Causes window to be sized to fit\r\n // the preferred size and layouts of its subcomponents\r\n\r\n // Let's place the chatting framework at the center of the screen\r\n screenSize = Toolkit.getDefaultToolkit().getScreenSize();\r\n frameSize = window.getSize();\r\n int X = (screenSize.width - frameSize.width) / 2;\r\n int Y = (screenSize.height - frameSize.height) / 2;\r\n window.setLocation(X, Y);\r\n\r\n window.setVisible(true);\r\n repaint();\r\n }", "public ServerThread(Socket socket, String UserName){\n this.socket = socket;\n this.UserName = UserName;\n ChatMessage = new LinkedList<String>();\n }", "public final InternalMessageModel newMessageModel() {\n return (InternalMessageModel) newProxy(InternalMessageModel.class,\n MessageModelImpl.class);\n }", "public ChatServer(){\r\n\t\tblnKeepRunning = true;\r\n\t\ttry{\r\n\t\t\tss = new ServerSocket(SERVER_PORT);\t\r\n\t\t\tThread t = new Thread(new Listener(), \"Chat Server Main Thread\"); //Run the service in its own thread\r\n\t\t\tt.start(); //The Hollywood Principle - \"Don't Call Us, We'll Call You.\". Threads are based on the Template Pattern\r\n\t\t}catch(Exception e){\t\t\t\r\n\t\t\te.printStackTrace();\t\r\n\t\t}\r\n\t}", "public LoginGUI() {\n\n super(\"Login\");\n //Integer.parseInt(jTextField_password.getText())\n\n this.client = new ChatClient(\"localhost\",8818 );\n client.connect();\n\n setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n jButton_login.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton_loginActionPerformed(evt);\n }\n });\n\n {\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel_PASSWORD)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jTextField_password, javax.swing.GroupLayout.PREFERRED_SIZE, 182, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel_USERNAME)\n .addComponent(jLabel_PORT, javax.swing.GroupLayout.PREFERRED_SIZE, 31, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(23, 23, 23)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jTextField_port, javax.swing.GroupLayout.PREFERRED_SIZE, 182, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jTextField_username, javax.swing.GroupLayout.PREFERRED_SIZE, 182, javax.swing.GroupLayout.PREFERRED_SIZE))))\n .addContainerGap(38, Short.MAX_VALUE))\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel_IP, javax.swing.GroupLayout.PREFERRED_SIZE, 31, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jTextField_ip, javax.swing.GroupLayout.PREFERRED_SIZE, 182, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(38, 38, 38))))\n .addGroup(layout.createSequentialGroup()\n .addGap(105, 105, 105)\n .addComponent(jButton_login, javax.swing.GroupLayout.PREFERRED_SIZE, 81, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 0, Short.MAX_VALUE))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel_IP)\n .addComponent(jTextField_ip, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(10, 10, 10)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel_PORT)\n .addComponent(jTextField_port, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(12, 12, 12)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel_USERNAME)\n .addComponent(jTextField_username, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(16, 16, 16)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel_PASSWORD)\n .addComponent(jTextField_password, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addComponent(jButton_login, javax.swing.GroupLayout.DEFAULT_SIZE, 28, Short.MAX_VALUE)\n .addContainerGap())\n );\n }\n\n pack();\n\n setVisible(true);\n\n //initComponents();\n }", "public NewMessageView(Controller controller) {\n\t\tsuper(controller);\n\t\t\n\t\tsetLayout(new BoxLayout(this, BoxLayout.Y_AXIS));\n\t\tsetBackground(Color.WHITE);\n\t\tsetMinimumSize(new Dimension(Window.WINDOW_WIDTH, Window.WINDOW_HEIGHT));\n\t\t\n\t\tFont buttonFont = new Font(\"Ariel\", Font.PLAIN, 14);\t\n\t\t\n\t\tJPanel contactsArea = new JPanel();\n\t\tcontactsArea.setLayout(new BoxLayout(contactsArea, BoxLayout.Y_AXIS));\n\t\tcontactsArea.setBorder(new EmptyBorder(10, 10, 10, 10));\n\t\t\n\t\tJButton addContact = new JButton(addIconNormal);\n\t\taddContact.setActionCommand(\"Add Contact\");\n\t\taddContact.setBorder(new EmptyBorder(5, 5, 5, 5));\n\t\taddContact.setForeground(Color.BLACK);\n\t\taddContact.setFocusPainted(false);\n\t\taddContact.setBorderPainted(false);\n\t\taddContact.setContentAreaFilled(false);\n\t\taddContact.setOpaque(false);\n\t\taddContact.addActionListener(controller);\n\t\taddContact.addMouseListener((MouseListener) controller);\n\t\t\n\t\tJButton select = new JButton(\"Select\");\n\t\tselect.setBorder(new EmptyBorder(5, 5, 5, 5));\n\t\tselect.setForeground(new Color(0, 122, 255));\n\t\tselect.setFont(buttonFont);\n\t\tselect.setBorderPainted(false);\n\t\tselect.setContentAreaFilled(false);\n\t\tselect.setFocusPainted(false);\n\t\tselect.addActionListener(controller);\n\n\t\t\n\t\tNewMessageModel model = (NewMessageModel) getController().getModel();\n\t\t\n\t\tlist = new JList(model.contactList);\n\t\tlist.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);\n\t\tlist.setBorder(null);\n\t\tlist.addListSelectionListener((ListSelectionListener) getController());\n\t\tJScrollPane listScroller = new JScrollPane(list);\n\t\tlistScroller.setBorder(null);\n\t\n\t\t\n\t\tNavigationPane navigationPane = new NavigationPane(\"New Message\", listScroller);\n\t\tnavigationPane.setMinimumSize(new Dimension(300, getHeight()));\n\t\tnavigationPane.getHeader().add(addContact, BorderLayout.WEST);\n\t\tnavigationPane.getHeader().add(select, BorderLayout.EAST);\n\t\t\n\t\tadd(navigationPane);\n\t}", "public GlobalChat() {\r\n // Required empty public constructor\r\n }", "public void actionPerformed(ActionEvent ae) {\n\t\tmyObject = new ChatMessage();\n\t\t//sets name for ChatMessage\n\t\tmyObject.setName(nameField.getText());\n\t\t//gets the text from the chat text area and puts it in the ChatMessage \n\t\tmyObject.setMessage(tf.getText());\n\t\t//Resets the column for typing message again\n\t\ttf.setText(\"\");\n\t\ttry {\n\t\t\tmyOutputStream.reset();\n\t\t\t//writes the object to output stream\n\t\t\tmyOutputStream.writeObject(myObject);\n\t\t} catch (IOException ioe) {\n\t\t\tSystem.out.println(ioe.getMessage());\n\t\t}\n\n\t}", "public ModelChatlist(String id) {\n this.id = id;\n }", "public Server() {\n\t\tserverMessageArea.setEditable(true);\n\t\tserverFrame.getContentPane().add(new JScrollPane(serverMessageArea), \"Center\");\n\t\tserverFrame.pack();\n\t\t\n\t\t// Restore contents of the previous sessions\n\t\ttry {\n\t\tFile file = new File(\"ServerDB.txt\"); \n\t\t BufferedReader br = new BufferedReader(new FileReader(file)); \n\t\t String st;\n\t\t while ((st = br.readLine()) != null) {\n\t\t System.out.println(st);\n\t\t serverMessageArea.append(st+\"\\n\");\n\t\t }\n\t\t}\n\t\tcatch(Exception exp) {\n\t\t\tSystem.out.println(exp);\n\t\t}\n\t\tserverMessageArea.append(\"\\n\"+LocalDateTime.now()+\"\\nChat Server is running\\n\");\n\t\twriteFile(LocalDateTime.now()+\"\\nChat Server is running\\n\");\n\t}", "public ChatServer()\n {\n try\n {\n ServerSocket socketServidor = new ServerSocket(PORT);\n while (true)\n {\n Socket client = socketServidor.accept();\n Runnable nuevoCliente = new ClientThread(chat, client);\n Thread thread = new Thread(nuevoCliente);\n thread.start();\n }\n } catch (Exception e)\n {\n e.getMessage();\n }\n }", "@Override\n public void onClick(View v) {\n String message = etMessage.getText().toString();\n // buat objek chat\n Chat chat = new Chat(\"yogi\", message);\n // kirim chat ke database\n chatReference.push().setValue(chat);\n // kosongkan inputan\n etMessage.getText().clear();\n }", "@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 jtaChatHistory = new javax.swing.JTextArea();\n jtfIPAddress = new javax.swing.JTextField();\n jLabel1 = new javax.swing.JLabel();\n jScrollPane2 = new javax.swing.JScrollPane();\n jtaChatMessage = new javax.swing.JTextArea();\n jbSendMessage = new javax.swing.JButton();\n jlStatusMessage = new javax.swing.JLabel();\n jbeChat = new javax.swing.JButton();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setResizable(false);\n\n jtaChatHistory.setEditable(false);\n jtaChatHistory.setColumns(20);\n jtaChatHistory.setRows(14);\n jtaChatHistory.setFocusable(false);\n jScrollPane1.setViewportView(jtaChatHistory);\n\n jtfIPAddress.setText(\"192.168.1.\");\n\n jLabel1.setText(\"IP Address:\");\n\n jtaChatMessage.setColumns(20);\n jtaChatMessage.setRows(5);\n jtaChatMessage.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n jtaChatMessageKeyPressed(evt);\n }\n });\n jScrollPane2.setViewportView(jtaChatMessage);\n\n jbSendMessage.setText(\"SEND\");\n jbSendMessage.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jbSendMessageActionPerformed(evt);\n }\n });\n\n jbeChat.setText(\"END CHAT\");\n jbeChat.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jbeChatActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jScrollPane2, javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 612, Short.MAX_VALUE)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addComponent(jLabel1)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jtfIPAddress))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addComponent(jbeChat)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jbSendMessage))\n .addComponent(jlStatusMessage, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addContainerGap())\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jtfIPAddress, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel1))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jbSendMessage)\n .addComponent(jbeChat))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jlStatusMessage)\n .addContainerGap(37, Short.MAX_VALUE))\n );\n\n pack();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n SendBox = new javax.swing.JTextField();\n SendButton = new javax.swing.JButton();\n title = new javax.swing.JLabel();\n back_button = new javax.swing.JButton();\n jScrollPane2 = new javax.swing.JScrollPane();\n chat_area = new javax.swing.JTextPane();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n SendBox.setFont(new java.awt.Font(\"Book Antiqua\", 2, 12)); // NOI18N\n SendBox.setForeground(new java.awt.Color(0, 0, 0));\n SendBox.setDisabledTextColor(new java.awt.Color(51, 51, 51));\n SendBox.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n SendBoxActionPerformed(evt);\n }\n });\n\n SendButton.setBackground(new java.awt.Color(255, 204, 255));\n SendButton.setFont(new java.awt.Font(\"Book Antiqua\", 2, 14)); // NOI18N\n SendButton.setText(\"Send\");\n SendButton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n SendButtonActionPerformed(evt);\n }\n });\n\n title.setFont(new java.awt.Font(\"DejaVu Math TeX Gyre\", 3, 18)); // NOI18N\n title.setForeground(new java.awt.Color(0, 0, 0));\n title.setText(\"Welcome to chat\");\n\n back_button.setFont(new java.awt.Font(\"Book Antiqua\", 2, 14)); // NOI18N\n back_button.setText(\"Back\");\n back_button.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n back_buttonActionPerformed(evt);\n }\n });\n\n jScrollPane2.setViewportView(chat_area);\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(40, 40, 40)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(SendBox, javax.swing.GroupLayout.PREFERRED_SIZE, 354, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(63, 63, 63)\n .addComponent(SendButton))\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(title, javax.swing.GroupLayout.PREFERRED_SIZE, 350, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 469, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(28, 28, 28)\n .addComponent(back_button, javax.swing.GroupLayout.PREFERRED_SIZE, 60, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(back_button, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(layout.createSequentialGroup()\n .addComponent(title, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 355, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 56, Short.MAX_VALUE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(SendBox, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(SendButton, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addContainerGap())\n );\n\n pack();\n }", "public interface Chat {\n UUID getChatId();\n void setChatId(UUID chatId);\n UUID getObjectId();\n void setObjectId(UUID objectId);\n String getLocalActorType();\n void setLocalActorType(String localActorType);\n String getLocalActorPublicKey();\n void setLocalActorPublicKey(String localActorPublicKey);\n String getRemoteActorType();\n void setRemoteActorType(String remoteActorType);\n String getRemoteActorPublicKey();\n void setRemoteActorPublicKey(String remoteActorPublicKey);\n String getChatName();\n void setChatName(String chatName);\n ChatStatus getStatus();\n void setStatus(ChatStatus status);\n Date getDate();\n void setDate(Date date);\n Date getLastMessageDate();\n void setLastMessageDate(Date lastMessageDate);\n}", "public static void main(String args[]) {\n\t\tchatClient c = new chatClient();\r\n\t\tc.createGUI();// call createGUI() method\r\n\r\n\t}", "@Override\n public void onReceive(DataTransfer message) {\n ChatBox currentChatBox = getCurrentChat();\n final String current = currentChatBox != null ? currentChatBox.getTarget() : null;\n\n boolean isCurrentOnline = current == null;\n\n // Clear all exist chat item\n lvUserItem.getItems().clear();\n\n // Retrieve online users\n List<String> onlineUsers = (List<String>) message.data;\n\n // Clear all offline user chat messages in MessageManager\n MessageManager.getInstance().clearOffline(onlineUsers);\n MessageSubscribeManager.getInstance().clearOffline(onlineUsers);\n\n for (String user : onlineUsers) {\n // Add user (not your self) into listview\n if (!username.equals(user)) {\n ChatItem item = new UserChatItem();\n item.setName(user);\n lvUserItem.getItems().add(item);\n\n // Check whether current user still online\n if (user.equals(current))\n isCurrentOnline = true;\n else {\n String topic = String.format(\"chat/%s\", user);\n if (!MessageSubscribeManager.getInstance().containsKey(topic)) {\n // with other user listen message\n Subscriber subscriber = subscribeMessages(username, topic);\n MessageSubscribeManager.getInstance().put(topic, subscriber);\n }\n }\n }\n }\n\n // In case current user offline\n // Clear chat box\n if (!isCurrentOnline) {\n clearChatBox();\n }\n }", "private void createGUI()\n {\n JPanel contentPane = new JPanel(new GridBagLayout());\n GridBagConstraints c = new GridBagConstraints();\n int numColumns = 3;\n\n JLabel l1 = new JLabel(\"Received Messages:\", SwingConstants.CENTER);\n c.gridx = 0;\n c.gridy = 0;\n c.anchor = GridBagConstraints.SOUTH;\n c.gridwidth = numColumns;\n contentPane.add(l1, c);\n\n display = new JTextArea(5, 20);\n JScrollPane scrollPane = new JScrollPane(display);\n display.setEditable(false);\n display.setForeground(Color.gray);\n c.gridy = 1;\n c.gridwidth = numColumns;\n c.anchor = GridBagConstraints.CENTER;\n c.weighty = 1.0;\n c.fill = GridBagConstraints.BOTH;\n contentPane.add(scrollPane, c);\n\n sendButton = new JButton(\"Send\");\n c.gridy = 2;\n c.gridwidth = 1;\n c.anchor = GridBagConstraints.SOUTH;\n c.weighty = 0.0;\n c.fill = GridBagConstraints.NONE;\n contentPane.add(sendButton, c);\n\n sendButton.addActionListener(this);\n\n JButton clearButton = new JButton(\"Clear\");\n c.gridx = 2;\n c.weightx = 0.0;\n c.anchor = GridBagConstraints.SOUTHEAST;\n c.fill = GridBagConstraints.NONE;\n contentPane.add(clearButton, c);\n\n clearButton.addActionListener(new ActionListener()\n {\n public void actionPerformed(final ActionEvent e)\n {\n display.setText(\"\");\n }\n });\n\n // Finish setting up the content pane and its border.\n contentPane.setBorder(BorderFactory.createCompoundBorder(BorderFactory.createLineBorder(Color.black),\n BorderFactory.createEmptyBorder(5, 20, 5, 10)));\n setContentPane(contentPane);\n }", "private void sendMessage() {\n\t\tString text = myMessagePane.getText();\n\t\tMessage msg = new Message(text, myData.userName, myData.color);\n\n\t\tcommunicationsHandler.send(msg);\n\n\t\t// De-escape xml-specific characters\n\t\tXmlParser xmlParser = new XmlParser(myData);\n\t\tString outText = xmlParser.deEscapeXMLChars(msg.text);\n\t\tmsg.text = outText;\n\n\t\tmyMessagePane.setText(\"\");\n\t\tupdateMessageArea(msg);\n\n\t}", "public Client(String host) {\n super(\"Client\");\n\n chatServer = host; // set server to which this client connects\n\n enterField = new JTextField(); // create enterField\n enterField.setEditable(false);\n enterField.addActionListener(\n new ActionListener() {\n // send message to server\n public void actionPerformed(ActionEvent event) {\n sendData(event.getActionCommand());\n enterField.setText(\"\");\n } // end method actionPerformed\n } // end anonymous inner class\n ); // end call to addActionListener\n\n add(enterField, BorderLayout.NORTH);\n displayArea = new JTextArea(); // create displayArea\n add(new JScrollPane(displayArea), BorderLayout.CENTER);\n\n setSize(300, 150); // set size of window\n setVisible(true); // show window\n }", "public void doBehaviour( Object sessionContext ) {\n \n // The sessionContext is here a PlayerImpl.\n PlayerImpl player = (PlayerImpl) sessionContext;\n WotlasLocation location = player.getLocation();\n\n // 0 - We check the length of the chat room name\n if( name.length() > ChatRoom.MAXIMUM_NAME_SIZE )\n name = name.substring(0,ChatRoom.MAXIMUM_NAME_SIZE-1);\n\n // 1 - We get the message router\n MessageRouter mRouter = player.getMessageRouter();\n\n if( mRouter==null ) {\n Debug.signal( Debug.ERROR, this, \"No Message Router !\" );\n player.sendMessage( new WarningMessage(\"Error #ChCreMsgRtr while performing creation !\\nPlease report the bug !\") );\n return; // rare internal error occured !\n }\n\n // 2 - Do we have to delete the previous chatroom ?\n if( !player.getCurrentChatPrimaryKey().equals(ChatRoom.DEFAULT_CHAT) ) {\n // The following message behaviour does this job...\n RemPlayerFromChatRoomMsgBehaviour remPlayerFromChat =\n new RemPlayerFromChatRoomMsgBehaviour( player.getPrimaryKey(),\n player.getCurrentChatPrimaryKey() );\n\n try{\n remPlayerFromChat.doBehaviour( player );\n }catch( Exception e ) {\n Debug.signal( Debug.ERROR, this, e );\n player.setCurrentChatPrimaryKey(ChatRoom.DEFAULT_CHAT);\n }\n }\n\n // 3 - We try to create the new chatroom\n ChatRoom chatRoom = new ChatRoom();\n chatRoom.setPrimaryKey( ChatRoom.getNewChatPrimaryKey() );\n chatRoom.setName(name);\n chatRoom.setCreatorPrimaryKey(creatorPrimaryKey);\n chatRoom.addPlayer(player);\n\n synchronized( mRouter.getPlayers() ) {\n ChatList chatList = player.getChatList();\n \n if(chatList==null) {\n \tchatList = (ChatList) new ChatListImpl();\n \t\n // We set the chatList to all the players in the chat room...\n \tIterator it = mRouter.getPlayers().values().iterator();\n \n \twhile( it.hasNext() ) {\n \t PlayerImpl p = (PlayerImpl) it.next();\n \t p.setChatList( chatList );\n \t}\n }\n\n if( chatList.getNumberOfChatRooms() > ChatRoom.MAXIMUM_CHATROOMS_PER_ROOM \n && !isBotChatRoom )\n return; // can't add ChatRoom : too many already !\n\n chatList.addChatRoom( chatRoom );\n }\n\n player.setCurrentChatPrimaryKey( chatRoom.getPrimaryKey() );\n player.setIsChatMember(true);\n\n // 4 - We advertise the newly created chatroom\n // We send the information to all players of the same room or town or world\n mRouter.sendMessage( new ChatRoomCreatedMessage( chatRoom.getPrimaryKey(),\n name, creatorPrimaryKey ) );\n }", "private void $$$setupUI$$$() {\n mainPanel = new JPanel();\n mainPanel.setLayout(new GridLayoutManager(2, 2, new Insets(30, 30, 30, 30), -1, -1));\n final JScrollPane scrollPane1 = new JScrollPane();\n mainPanel.add(scrollPane1, new GridConstraints(0, 0, 1, 2, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\n chatPane = new JTextPane();\n chatPane.setText(\"\");\n scrollPane1.setViewportView(chatPane);\n chatField = new JTextField();\n mainPanel.add(chatField, new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));\n sendButton = new JButton();\n sendButton.setText(\"Send\");\n mainPanel.add(sendButton, new GridConstraints(1, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n }", "public void run() {\n SimpleChatUI firstWin = new SimpleChatUI();\n windows.add(firstWin);\n firstWin.setVisible(true);\n hub = new HubSession(new LoginCredentials(new ChatKeyManager(CHAT_USER)));\n\n firstWin.setStatus(\"No active chat\");\n }", "private void initialize() {\r\n\t\tfrmChatApplicationClient = new JFrame();\r\n\t\tfrmChatApplicationClient.addWindowListener(new WindowAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void windowClosing(WindowEvent arg0) {\r\n\t\t\t\r\n\t\t\t\tif(connected){\r\n\t\t\t\tclient.sendMessage(\"clientclosed\");\r\n\t\t\t\tclient.close();\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\tbtnRemove = new JButton(\"Remove!\");\r\n\t\tbtnRemove.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\r\n\t\t\t\t\r\n\t\t\t\tString nick = nickname.getText();\r\n\t\t\t\t\r\n\t\t\t\r\n\t\t\t\tString user = LoginUsername.getText();\r\n\t\t\t\tif((!nick.equals(\"\")) && (!nick.equals(user))){\r\n\t\t\t\t\r\n\t\t\t\tclient.sendMessage(\"removeclient\");\r\n\t\t\t\tclient.sendMessage(nick);\r\n\t\t\t\t}\t\r\n\t\t\t\telse if(nick.equals(user)){\r\n\t\t\t\t\tJOptionPane.showMessageDialog(new JFrame(), \"You can remove yourself from system\", \"Error\",JOptionPane.ERROR_MESSAGE); // display error message\r\n\r\n\t\t\t\t}\r\n\t\t\t\tnickname.setText(\"\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t\r\n\t\t});\r\n\t\t\r\n\t\tRestart = new JButton(\"Restart\");\r\n\t\tRestart.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\tclient.sendMessage(\"restart\");\r\n\t\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\tbtnSendPrivateMessage = new JButton(\"Send private message\");\r\n\t\tbtnSendPrivateMessage.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\r\n\t\t\t\tString pmtext=pmtextfield.getText();\r\n\t\t\t\tString pmnick = pmnickname.getText();\r\n\t\t\t\t\t\r\n\t\t\t\tif (pmtext.equals(\"\") || pmnick.equals(\"\")){\r\n\t\t\t\t\tJOptionPane.showMessageDialog(new JFrame(), \"Make sure to enter message and receiver\", \"Private Message Error\",JOptionPane.ERROR_MESSAGE); // display error message\r\n\r\n\t\t\t\t}\r\n\t\t\t\telse if(pmnick.equals(LoginUsername.getText())){\r\n\t\t\t\t\tJOptionPane.showMessageDialog(new JFrame(), \"You can send private message to your self\", \"Private Message Error\",JOptionPane.ERROR_MESSAGE); // display error message\r\n\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tString pmmsg = pmtextfield.getText();\r\n\t\t\t\t\tString receiver = pmnickname.getText();\r\n\t\t\t\t\tclient.sendMessage(\"pm\");\r\n\t\t\t\t\tclient.sendMessage(receiver);\r\n\t\t\t\t\tclient.sendMessage(pmmsg);\r\n\t\t\t\r\n\t\t\t\t\tpmnickname.setText(\"\");\r\n\t\t\t\t\tpmtextfield.setText(\"\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\tfrmChatApplicationClient.getContentPane().setBackground(Color.LIGHT_GRAY);\r\n\t\tfrmChatApplicationClient.setResizable(false);\r\n\t\tfrmChatApplicationClient.getContentPane().setForeground(Color.WHITE);\r\n\t\tfrmChatApplicationClient.setTitle(\"Chat Client\");\r\n\t\tfrmChatApplicationClient.setBounds(100, 100, 752, 645);\r\n\t\tfrmChatApplicationClient.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\tfrmChatApplicationClient.getContentPane().setLayout(null);\r\n\t\t\r\n\t\tJPanel RegisterPanel = new JPanel();\r\n\t\tRegisterPanel.setBorder(new LineBorder(Color.DARK_GRAY));\r\n\t\tRegisterPanel.setBounds(508, 11, 222, 176);\r\n\t\tfrmChatApplicationClient.getContentPane().add(RegisterPanel);\r\n\t\tRegisterPanel.setLayout(null);\r\n\t\t\t\r\n\t\tbtnRegister = new JButton(\"Register\");\r\n\r\n\t\tbtnRegister.setFont(new Font(\"Sitka Text\", Font.PLAIN, 12));\r\n\t\tbtnRegister.setBounds(10, 123, 202, 40);\r\n\t\tRegisterPanel.add(btnRegister);\r\n\t\t\r\n\t\tRegisterUsername = new JTextField();\r\n\t\tRegisterUsername.setFont(new Font(\"Sitka Text\", Font.PLAIN, 12));\r\n\t\tRegisterUsername.setBounds(126, 33, 86, 20);\r\n\t\tRegisterPanel.add(RegisterUsername);\r\n\t\tRegisterUsername.setColumns(10);\r\n\t\t\r\n\t\tRegisterPassword1 = new JPasswordField();\r\n\t\tRegisterPassword1.setFont(new Font(\"Sitka Text\", Font.PLAIN, 12));\r\n\t\tRegisterPassword1.setBounds(126, 64, 86, 20);\r\n\t\tRegisterPanel.add(RegisterPassword1);\r\n\t\t\r\n\t\tJLabel lblLogin = new JLabel(\"Username:\");\r\n\t\tlblLogin.setFont(new Font(\"Sitka Text\", Font.PLAIN, 12));\r\n\t\tlblLogin.setBounds(10, 36, 69, 14);\r\n\t\tRegisterPanel.add(lblLogin);\r\n\t\t\r\n\t\tJLabel lblPassword = new JLabel(\"Password:\");\r\n\t\tlblPassword.setFont(new Font(\"Sitka Text\", Font.PLAIN, 12));\r\n\t\tlblPassword.setBounds(10, 67, 69, 14);\r\n\t\tRegisterPanel.add(lblPassword);\r\n\t\t\r\n\t\tJLabel lblRegisterToUse = new JLabel(\"Create new Account\");\r\n\t\tlblRegisterToUse.setFont(new Font(\"Sitka Text\", Font.PLAIN, 15));\r\n\t\tlblRegisterToUse.setBounds(10, 11, 169, 14);\r\n\t\tRegisterPanel.add(lblRegisterToUse);\r\n\t\t\r\n\t\tRegisterPassword2 = new JPasswordField();\r\n\t\tRegisterPassword2.setFont(new Font(\"Sitka Text\", Font.PLAIN, 12));\r\n\t\tRegisterPassword2.setBounds(126, 95, 86, 20);\r\n\t\tRegisterPanel.add(RegisterPassword2);\r\n\t\t\r\n\t\tJLabel lblNewLabel = new JLabel(\"Repeat Password:\");\r\n\t\tlblNewLabel.setFont(new Font(\"Sitka Text\", Font.PLAIN, 12));\r\n\t\tlblNewLabel.setBounds(10, 98, 106, 14);\r\n\t\tRegisterPanel.add(lblNewLabel);\r\n\t\t\r\n\t\tJPanel Loginpanel = new JPanel();\r\n\t\tLoginpanel.setBorder(new LineBorder(Color.DARK_GRAY));\r\n\t\tLoginpanel.setBounds(10, 11, 187, 134);\r\n\t\tfrmChatApplicationClient.getContentPane().add(Loginpanel);\r\n\t\tLoginpanel.setLayout(null);\r\n\t\t\r\n\t\tJLabel lblLogin_1 = new JLabel(\"Login\");\r\n\t\tlblLogin_1.setFont(new Font(\"Sitka Text\", Font.PLAIN, 15));\r\n\t\tlblLogin_1.setBounds(10, 11, 46, 14);\r\n\t\tLoginpanel.add(lblLogin_1);\r\n\t\t\r\n\t\tJLabel lblUsername = new JLabel(\"Username:\");\r\n\t\tlblUsername.setFont(new Font(\"Sitka Text\", Font.PLAIN, 12));\r\n\t\tlblUsername.setBounds(10, 36, 79, 14);\r\n\t\tLoginpanel.add(lblUsername);\r\n\t\t\r\n\t\tJLabel lblPassword_1 = new JLabel(\"Password:\");\r\n\t\tlblPassword_1.setFont(new Font(\"Sitka Text\", Font.PLAIN, 12));\r\n\t\tlblPassword_1.setBounds(10, 65, 79, 14);\r\n\t\tLoginpanel.add(lblPassword_1);\r\n\t\t\r\n\t\tLoginUsername = new JTextField();\r\n\t\tLoginUsername.setFont(new Font(\"Sitka Text\", Font.PLAIN, 12));\r\n\t\tLoginUsername.setBounds(92, 33, 86, 20);\r\n\t\tLoginpanel.add(LoginUsername);\r\n\t\tLoginUsername.setColumns(10);\r\n\t\t\r\n\t\tLoginPassword = new JPasswordField();\r\n\t\tLoginPassword.setFont(new Font(\"Sitka Text\", Font.PLAIN, 12));\r\n\t\tLoginPassword.setBounds(92, 62, 86, 20);\r\n\t\tLoginpanel.add(LoginPassword);\r\n\t\t\r\n\t\tLoginbtn = new JButton(\"Login\");\r\n\t\t\t\r\n\t\tLoginbtn.setFont(new Font(\"Sitka Text\", Font.PLAIN, 12));\r\n\t\tLoginbtn.setBounds(10, 90, 168, 33);\r\n\t\tLoginpanel.add(Loginbtn);\r\n\t\t\r\n\t\t\r\n\t\tJPanel ServerInfopanel = new JPanel();\r\n\t\tServerInfopanel.setBorder(new LineBorder(Color.DARK_GRAY));\r\n\t\tServerInfopanel.setBounds(207, 11, 291, 134);\r\n\t\tfrmChatApplicationClient.getContentPane().add(ServerInfopanel);\r\n\t\tServerInfopanel.setLayout(null);\r\n\t\t\r\n\t\tJLabel lblServerInfo = new JLabel(\"Server Info\");\r\n\t\tlblServerInfo.setFont(new Font(\"Sitka Text\", Font.PLAIN, 15));\r\n\t\tlblServerInfo.setBounds(10, 11, 139, 14);\r\n\t\tServerInfopanel.add(lblServerInfo);\r\n\t\t\r\n\t\tJLabel lblServer = new JLabel(\"Server Address:\");\r\n\t\tlblServer.setFont(new Font(\"Sitka Text\", Font.PLAIN, 12));\r\n\t\tlblServer.setBounds(10, 36, 92, 14);\r\n\t\tServerInfopanel.add(lblServer);\r\n\t\t\r\n\t\tJLabel lblServerPort = new JLabel(\"Server Port:\");\r\n\t\tlblServerPort.setFont(new Font(\"Sitka Text\", Font.PLAIN, 12));\r\n\t\tlblServerPort.setBounds(10, 61, 92, 14);\r\n\t\tServerInfopanel.add(lblServerPort);\r\n\t\t\r\n\t\tServerAddress = new JTextField();\r\n\t\tServerAddress.setFont(new Font(\"Sitka Text\", Font.PLAIN, 12));\r\n\t\tServerAddress.setText(\"127.0.0.1\");\r\n\t\tServerAddress.setColumns(10);\r\n\t\tServerAddress.setBounds(112, 33, 166, 20);\r\n\t\tServerInfopanel.add(ServerAddress);\r\n\t\t\r\n\t\tServerPort = new JTextField();\r\n\t\tServerPort.setFont(new Font(\"Sitka Text\", Font.PLAIN, 12));\r\n\t\tServerPort.setText(\"33333\");\r\n\t\tServerPort.setColumns(10);\r\n\t\tServerPort.setBounds(112, 58, 166, 20);\r\n\t\tServerInfopanel.add(ServerPort);\r\n\t\t\r\n\t\tChatpanel = new JPanel();\r\n\t\tChatpanel.setBorder(new LineBorder(Color.DARK_GRAY));\r\n\t\tChatpanel.setBounds(10, 156, 488, 449);\r\n\t\tfrmChatApplicationClient.getContentPane().add(Chatpanel);\r\n\t\tChatpanel.setLayout(null);\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\tJScrollPane scrollPane = new JScrollPane();\r\n\t\tscrollPane.setBounds(10, 11, 464, 325);\r\n\t\tChatpanel.add(scrollPane);\r\n\t\t\r\n\t\tChattextArea = new JTextArea();\r\n\t\tChattextArea.setFont(new Font(\"Sitka Text\", Font.PLAIN, 13));\r\n\t\tscrollPane.setViewportView(ChattextArea);\r\n\r\n\t\t\r\n\t\tJLabel lblTypeYourMessage = new JLabel(\"Type your message:\");\r\n\t\tlblTypeYourMessage.setFont(new Font(\"Sitka Text\", Font.PLAIN, 11));\r\n\t\tlblTypeYourMessage.setBounds(10, 347, 121, 21);\r\n\t\tChatpanel.add(lblTypeYourMessage);\r\n\t\t\r\n\t\tMessagetext = new JTextField();\r\n\t\tMessagetext.setFont(new Font(\"Sitka Text\", Font.PLAIN, 11));\r\n\t\tMessagetext.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tString msg = Messagetext.getText();\r\n\t\t\t\tif(msg.equals(\"\")){\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\tclient.sendMessage(msg);\r\n\t\t\t\t\tMessagetext.setText(\"\");\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\tMessagetext.setBounds(133, 347, 341, 20);\r\n\t\tChatpanel.add(Messagetext);\r\n\t\tMessagetext.setColumns(10);\r\n\t\t\r\n\t\t\r\n\t\tJPanel Statuspanel = new JPanel();\r\n\t\tStatuspanel.setBorder(new LineBorder(new Color(0, 0, 0)));\r\n\t\tStatuspanel.setBounds(508, 198, 222, 227);\r\n\t\tfrmChatApplicationClient.getContentPane().add(Statuspanel);\r\n\t\tStatuspanel.setLayout(null);\r\n\t\t\r\n\t\tJLabel lblStatus = new JLabel(\"Status\");\r\n\t\tlblStatus.setFont(new Font(\"Sitka Text\", Font.PLAIN, 15));\r\n\t\tlblStatus.setBounds(10, 11, 139, 14);\r\n\t\tStatuspanel.add(lblStatus);\r\n\t\t\r\n\t\tonlineradio = new JRadioButton(\"Online\");\r\n\t\tonlineradio.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tonlineradio.setSelected(true);\r\n\t\t\t\tbusyradio.setSelected(false);\r\n\t\r\n\t\t\t\tclient.sendMessage(\"online\");\r\n\t\t\t\r\n\t\t\t}\r\n\t\t});\r\n\t\r\n\t\tonlineradio.setFont(new Font(\"Sitka Text\", Font.PLAIN, 12));\r\n\t\tonlineradio.setBounds(69, 8, 109, 23);\r\n\t\tStatuspanel.add(onlineradio);\r\n\t\t\r\n\t\tbusyradio = new JRadioButton(\"Busy\");\r\n\t\tbusyradio.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tonlineradio.setSelected(false);\r\n\t\t\t\tbusyradio.setSelected(true);\r\n\t\t\t\tclient.sendMessage(\"busy\");\r\n\t\t\t}\r\n\t\t});\r\n\t\tbusyradio.setFont(new Font(\"Sitka Text\", Font.PLAIN, 12));\r\n\t\tbusyradio.setBounds(69, 32, 109, 23);\r\n\t\tStatuspanel.add(busyradio);\r\n\t\t\r\n\t\tbtnLogout = new JButton(\"Logout\");\r\n\t\tbtnLogout.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\t\r\n\t\t\t\tServerAddress.setEditable(true);\r\n\t\t\t\tServerPort.setEditable(true);\r\n\t\t\t\tRegisterUsername.setEditable(true);\r\n\t\t\t\tRegisterPassword1.setEditable(true);\t\r\n\t\t\t\tRegisterPassword2.setEditable(true);\r\n\t\t\t\tbtnRegister.setEnabled(true);\r\n\t\t\t\tLoginbtn.setEnabled(true);\r\n\t\t\t\tLoginUsername.setEditable(true);\r\n\t\t\t\tLoginPassword.setEditable(true);\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\tMessagetext.setEditable(false);\r\n\t\t\t\tpmtextfield.setEditable(false);\r\n\t\t\t\tpmnickname.setEditable(false);\r\n\t\t\t\tbtnSendPrivateMessage.setEnabled(false);\r\n\t\t\t\tonlineradio.setEnabled(false);\r\n\t\t\t\tbusyradio.setEnabled(false);\r\n\t\t\t\tbtnLogout.setEnabled(false);\r\n\t\t\t\tbtnListOnlineUsers.setEnabled(false);\r\n\t\r\n\t\t\t\t\r\n\t\t\t\tLoginUsername.setText(\"\");\r\n\t\t\t\tLoginPassword.setText(\"\");\r\n\t\t\t\tChattextArea.setText(\"\");\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\tonlineradio.setSelected(false);\r\n\t\t\t\tbusyradio.setSelected(false);\r\n\t\t\t\t\r\n\t\t\t\tif(Adminpanel.isVisible()){\r\n\t\t\t\t\tAdminpanel.setVisible(false);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tclient.sendMessage(\"logout\");\r\n\t\t\t\tclient.close();\r\n\t\t\t\tconnected = false;\r\n\t\t\t\t\r\n\t\t\t\tclient.clearPms();\r\n\t\t\t\t\r\n\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnLogout.setBounds(10, 156, 168, 33);\r\n\t\tStatuspanel.add(btnLogout);\r\n\t\tbtnLogout.setFont(new Font(\"Sitka Text\", Font.PLAIN, 12));\r\n\t\t\r\n\t\tbtnListOnlineUsers = new JButton(\"List online users\");\r\n\t\tbtnListOnlineUsers.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\r\n\t\t\t\tclient.sendMessage(\"listonlineusers\");\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnListOnlineUsers.setBounds(10, 83, 168, 33);\r\n\t\tStatuspanel.add(btnListOnlineUsers);\r\n\t\tbtnListOnlineUsers.setFont(new Font(\"Sitka Text\", Font.PLAIN, 12));\r\n\t\t\r\n\t\tbtnRegister.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\r\n\t\t\t\tserver = ServerAddress.getText();\r\n\t\t\t\tport = Integer.parseInt(ServerPort.getText());\r\n\t\t\t\t\r\n\t\t\t\tchar[] passwordchar1 = RegisterPassword1.getPassword();\r\n\t\t\t\tchar[] passwordchar2 = RegisterPassword2.getPassword();\r\n\t\t\t\t\r\n\t\t\t\tString username = RegisterUsername.getText();\r\n\t\t\t\tString password1 = String.valueOf(passwordchar1);\r\n\t\t\t\tString password2 = String.valueOf(passwordchar2);\r\n\t\t\t\t\r\n\t\t\r\n\t\t\t\tif (password1.equals(password2) && password1.length()>= 4){// if passwords are the same then...\r\n\t\t\t\t\tString registerd = client.register(server,port,username,password1);\r\n\t\t\t\t\tif(registerd.equals(\"registersuccess\")){\r\n\t\t\t\t\t\tJOptionPane.showMessageDialog(new JFrame(), \"You have registered successfully\\n\" + \"Your nickname is: \" + username +\"\\n\" + \"Your password is: \" + password1, \"Register successful\",JOptionPane.INFORMATION_MESSAGE); \r\n\t\t\t\t\t\tRegisterUsername.setText(\"\");\r\n\t\t\t\t\t\tRegisterPassword1.setText(\"\");\r\n\t\t\t\t\t\tRegisterPassword2.setText(\"\");\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if(registerd.equals(\"nicknameinuse\")){\r\n\t\t\t\t\t\tJOptionPane.showMessageDialog(new JFrame(), \"Error, this nickname is already in use\", \"Register Error\",JOptionPane.ERROR_MESSAGE); // display error message\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\telse{// if passwords are different then...\r\n\t\t\t\t\tJOptionPane.showMessageDialog(new JFrame(), \"Register Error, Please re-enter passwords\", \"Register Error\",JOptionPane.ERROR_MESSAGE); // display error message\r\n\t\t\t\t\tRegisterPassword1.setText(\"\"); // clear textbox\r\n\t\t\t\t\tRegisterPassword2.setText(\"\"); // clear textbox\r\n\t\t\t\t}\t\t\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\tLoginbtn.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\t\r\n\t\t\t\tserver = ServerAddress.getText();\r\n\t\t\t\tport = Integer.parseInt(ServerPort.getText());\r\n\t\t\t\t\r\n\t\t\t\tString username = LoginUsername.getText();\t\r\n\t\t\t\t\r\n\t\t\t\tchar[] passwordchar = LoginPassword.getPassword();\r\n\t\t\t\tString password = String.valueOf(passwordchar);\r\n\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\tif(!username.equals(\"\") && password.length() >= 4){ // if correct data is enterd then...\r\n\t\t\t\t\tChattextArea.setText(\"\");\r\n\t\t\t\t\t\r\n\t\t\t\t\tString outcome = client.login(server,port,username,password);\r\n\t\t\t\t\tif(outcome.equals(\"loginsuccessfull\")){\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tServerAddress.setEditable(false);\r\n\t\t\t\t\t\tServerPort.setEditable(false);\r\n\t\t\t\t\t\tRegisterUsername.setEditable(false);\r\n\t\t\t\t\t\tRegisterPassword1.setEditable(false);\t\r\n\t\t\t\t\t\tRegisterPassword2.setEditable(false);\r\n\t\t\t\t\t\tbtnRegister.setEnabled(false);\r\n\t\t\t\t\t\tLoginbtn.setEnabled(false);\r\n\t\t\t\t\t\tLoginUsername.setEditable(false);\r\n\t\t\t\t\t\tLoginPassword.setEditable(false);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\tMessagetext.setEditable(true);\r\n\t\t\t\t\t\tpmtextfield.setEditable(true);\r\n\t\t\t\t\t\tpmnickname.setEditable(true);\r\n\t\t\t\t\t\tbtnSendPrivateMessage.setEnabled(true);\r\n\t\t\t\t\t\tonlineradio.setEnabled(true);\r\n\t\t\t\t\t\tbusyradio.setEnabled(true);\r\n\t\t\t\t\t\tbtnLogout.setEnabled(true);\r\n\t\t\t\t\t\tbtnListOnlineUsers.setEnabled(true);\r\n\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tconnected = true;\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tonlineradio.setSelected(true);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\telse if(outcome.equals(\"adminloginsuccessfull\")){\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tServerAddress.setEditable(false);\r\n\t\t\t\t\t\tServerPort.setEditable(false);\r\n\t\t\t\t\t\tRegisterUsername.setEditable(false);\r\n\t\t\t\t\t\tRegisterPassword1.setEditable(false);\t\r\n\t\t\t\t\t\tRegisterPassword2.setEditable(false);\r\n\t\t\t\t\t\tbtnRegister.setEnabled(false);\r\n\t\t\t\t\t\tLoginbtn.setEnabled(false);\r\n\t\t\t\t\t\tLoginUsername.setEditable(false);\r\n\t\t\t\t\t\tLoginPassword.setEditable(false);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tMessagetext.setEditable(true);\r\n\t\t\t\t\t\tpmtextfield.setEditable(true);\r\n\t\t\t\t\t\tpmnickname.setEditable(true);\r\n\t\t\t\t\t\tbtnSendPrivateMessage.setEnabled(true);\r\n\t\t\t\t\t\tonlineradio.setEnabled(true);\r\n\t\t\t\t\t\tbusyradio.setEnabled(true);\r\n\t\t\t\t\t\tbtnLogout.setEnabled(true);\r\n\t\t\t\t\t\tbtnListOnlineUsers.setEnabled(true);\r\n\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tAdminpanel.setVisible(true);\r\n\t\t\t\t\t\tonlineradio.setSelected(true);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tconnected = true;\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\r\n\t\t\t\t}\r\n\t\t\t\telse{\r\n\t\t\t\t\tJOptionPane.showMessageDialog(new JFrame(), \"Login Error, Wrong username or password\", \"Login Error\",JOptionPane.ERROR_MESSAGE); // display error message\r\n\r\n\t\t\t\t}\r\n\t\r\n\t\t\t}\r\n\t\t});\r\n\t\r\n\t\t\r\n\t}", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jUserDialog = new javax.swing.JDialog();\n jPanel1 = new javax.swing.JPanel();\n jTextField1 = new javax.swing.JTextField();\n jButton1 = new javax.swing.JButton();\n jLabel1 = new javax.swing.JLabel();\n jMessageEntry = new javax.swing.JTextField();\n jScrollPane1 = new javax.swing.JScrollPane();\n jChatConvo = new javax.swing.JTextArea();\n jSendButton = new javax.swing.JButton();\n jStatusLine = new javax.swing.JLabel();\n jMenuBar1 = new javax.swing.JMenuBar();\n jMenu1 = new javax.swing.JMenu();\n jMenuItemConnect = new javax.swing.JMenuItem();\n jMenuItemOtherPartyInfo = new javax.swing.JMenuItem();\n jMenuSaveCertInfo = new javax.swing.JMenuItem();\n jMenuItemDisconnect = new javax.swing.JMenuItem();\n\n jButton1.setText(\"Connect\");\n\n jLabel1.setText(\" What user to you want to chat with?\");\n\n javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);\n jPanel1.setLayout(jPanel1Layout);\n jPanel1Layout.setHorizontalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, 207, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(jButton1)\n .addGap(0, 0, Short.MAX_VALUE))\n .addComponent(jLabel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 33, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jButton1))\n .addGap(33, 33, 33))\n );\n\n javax.swing.GroupLayout jUserDialogLayout = new javax.swing.GroupLayout(jUserDialog.getContentPane());\n jUserDialog.getContentPane().setLayout(jUserDialogLayout);\n jUserDialogLayout.setHorizontalGroup(\n jUserDialogLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jUserDialogLayout.createSequentialGroup()\n .addContainerGap()\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 jUserDialogLayout.setVerticalGroup(\n jUserDialogLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel1, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 93, javax.swing.GroupLayout.PREFERRED_SIZE)\n );\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n addWindowListener(new java.awt.event.WindowAdapter() {\n public void windowClosing(java.awt.event.WindowEvent evt) {\n formWindowClosing(evt);\n }\n });\n\n jScrollPane1.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS);\n\n jChatConvo.setEditable(false);\n jChatConvo.setColumns(20);\n jChatConvo.setLineWrap(true);\n jChatConvo.setRows(5);\n jChatConvo.setWrapStyleWord(true);\n jScrollPane1.setViewportView(jChatConvo);\n\n jSendButton.setText(\"Send\");\n jSendButton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jSendButtonActionPerformed(evt);\n }\n });\n\n jStatusLine.setText(\"Status: Initializing\");\n\n jMenu1.setText(\"Connection\");\n\n jMenuItemConnect.setText(\"New Connection...\");\n jMenuItemConnect.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jMenuItemConnectActionPerformed(evt);\n }\n });\n jMenu1.add(jMenuItemConnect);\n\n jMenuItemOtherPartyInfo.setText(\"Other Party Info\");\n jMenuItemOtherPartyInfo.setEnabled(false);\n jMenuItemOtherPartyInfo.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jMenuItemOtherPartyInfoActionPerformed(evt);\n }\n });\n jMenu1.add(jMenuItemOtherPartyInfo);\n\n jMenuSaveCertInfo.setText(\"Save Certificate Info\");\n jMenuSaveCertInfo.setEnabled(false);\n jMenuSaveCertInfo.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jMenuItemSaveCertInfoActionPerformed(evt);\n }\n });\n jMenu1.add(jMenuSaveCertInfo);\n \n jMenuItemDisconnect.setText(\"Disconnect\");\n jMenuItemDisconnect.setEnabled(false);\n jMenuItemDisconnect.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jMenuItemDisconnectActionPerformed(evt);\n }\n });\n jMenu1.add(jMenuItemDisconnect);\n\n jMenuBar1.add(jMenu1);\n\n setJMenuBar(jMenuBar1);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jMessageEntry)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jStatusLine)\n .addGap(0, 0, Short.MAX_VALUE)))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jSendButton))\n .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 526, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 248, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jMessageEntry)\n .addComponent(jSendButton, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jStatusLine))\n );\n\n pack();\n }", "public void start() throws IOException{\n\t\tSystem.out.println(\"starting new chatclient with socket ID ...\"); //socketID is currently determined in chatserverthread so inaccessible\n\t\tstrOut = new DataOutputStream(new BufferedOutputStream (socket.getOutputStream()) );\n\t\tconsole = new BufferedReader(new InputStreamReader(System.in)); //sets up environment for client msgs\n\t\n\t\t//Note: Later, Rather than reading in the console, data must be retrieved consistently from the GUI\n\t\t//Try again\n\t\t\n\t\tif(thread == null){\n\t\t\tclient = new ChatClientThread(this, socket);\n\t\t\tthread = new Thread(this);\n\t\t\tthread.start();\n\t\t\t//Where should this go?\n\t\t\t//Is there another way to start a gui for each new client?\n\t\t\t//Does the run method in here interfere with the run method below?\n\t\t}\n\t\t\n\t}", "public ConsoleFrame(String host) {\n\t\t\tsuper(\"Clueless Client\");\n\t\t\tsetDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);\n\t\t\tsetSize(640, 290);\n\t\t\tsetLocationRelativeTo(null);\n\n\t\t\tContainer consoleContentPane = getContentPane();\n\t\t\tcardLayout = new CardLayout();\n\t\t\tconsoleContentPane.setLayout(cardLayout);\n\t\t\t{\n\t\t\t\tJPanel panel = new JPanel(new BorderLayout());\n\t\t\t\tconsoleContentPane.add(panel, \"progress\");\n\t\t\t\tpanel.add(new JLabel(\"Connecting to \" + host + \"...\"));\n\t\t\t\t{\n\t\t\t\t\tpanel.add(consoleProgressBar = new JProgressBar(), BorderLayout.SOUTH);\n\t\t\t\t\tconsoleProgressBar.setIndeterminate(true);\n\t\t\t\t}\n\t\t\t}\n\t\t\t{\n\t\t\t\tJPanel mainPanel = new JPanel(new BorderLayout());\n\t\t\t\tconsoleContentPane.add(mainPanel, \"clueless\");\n\t\t\t\t{\n\t\t\t\t\tJPanel firstPanel = new JPanel(new GridLayout(1, 2));\n\t\t\t\t\tmainPanel.add(firstPanel);\n\t\t\t\t\t{\n\t\t\t\t\t\tfirstPanel.add(new JScrollPane(consoleTexts = new JList()));\n\t\t\t\t\t\tconsoleTexts.setModel(new DefaultListModel());\n\t\t\t\t\t}\n\t\t\t\t\t{\n\t\t\t\t\t\tfirstPanel.add(new JScrollPane(consoleUserNames = new JList()));\n\t\t\t\t\t\tconsoleUserNames.setModel(new DefaultListModel());\n\t\t\t\t\t}\n\t\t\t\t\tDefaultListSelectionModel disableSelections = new DefaultListSelectionModel() {\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void setSelectionInterval(int index0, int index1) {\n\t\t\t\t\t\t}\n\t\t\t\t\t};\n\t\t\t\t\tconsoleTexts.setSelectionModel(disableSelections);\n\t\t\t\t\tconsoleUserNames.setSelectionModel(disableSelections);\n\t\t\t\t}\n\t\t\t\t{\n\t\t\t\t\tJPanel bottomPanel = new JPanel(new GridBagLayout());\n\t\t\t\t\tmainPanel.add(bottomPanel, BorderLayout.SOUTH);\n\t\t\t\t\tbottomPanel.add(consoleText = new JTextField(), new GridBagConstraints(0, 0, 1, 1, 1, 0,\n\t\t\t\t\t GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(0, 0, 0, 0), 0, 0));\n\t\t\t\t\tbottomPanel.add(sendButton = new JButton(\"Send\"), new GridBagConstraints(1, 0, 1, 1, 0, 0,\n\t\t\t\t\t GridBagConstraints.CENTER, 0, new Insets(0, 0, 0, 0), 0, 0));\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tconsoleText.addActionListener(new ActionListener() {\n\t\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\tsendButton.doClick();\n\t\t\t\t}\n\t\t\t});\n\t\t}", "@Override\n\tpublic void run() {\n\t\t\n\t\tMain.msg_receiver.addNewMessageListener(new NewMessageListener () {\n\t\t\t@Override public void aMessageHasBeenReceived(Message msg) {\n\t\t\t\t\n\t\t\t\tif(!(Main.connecting | Main.connected)) return;\n\t\t\t\t\n\t\t\t\tSystem.out.println(\"messaged recu de : \" + msg.getEmetteur().pseudo);\n\t\t\t\t\n\t\t\t\t//If the message is from the user itself(like a broadcast) exclude it\n\t\t\t\tif(msg.getEmetteur().ip.equals(Main.local_host))return;\t\n\t\t\t\tDefaultTableModel model = (DefaultTableModel) Main.frame_gui.table.getModel();\n\t\t\t\t\n\t\t\t\t//First, message paring and casting to the correct type\n\t\t\t\t//If the message is a check\n\t\t\t\tif(msg instanceof MsgCheck) {\n\t\t\t\t\t\n\t\t\t\t\tSystem.out.println(\"Check recu\");\n\t\t\t\t\tMsgCheck message = (MsgCheck) msg;\t\n\t\t\t\t\t\n\t\t\t\t\t//If it is a message from blank_user and asking an answer\n\t\t\t\t\tif(message.need_an_answer & message.getEmetteur().pseudo.equals(Main.blank.pseudo)) {\n\t\t\t\t\t\t//Then send a check back without asking for an answer\n\t\t\t\t\t\tSystem.out.println(\"Check avec demande de reponse\");\n\t\t\t\t\t\tMain.msg_sender.sendCheck(false, Main.me, message.getEmetteur());\n\t\t\t\t\t}\n\n\t\t\t\t\t//If it is check not asking an answer\n\t\t\t\t\telse if(!message.need_an_answer) {\n\t\t\t\t\t\t//Then add the user to the list of connected people\n\t\t\t\t\t\tSystem.out.println(\"Check sans demande de reponse\");\n\t\t\t\t\t\t\n\t\t\t\t\t\tif(!Main.hm_users.containsKey(message.getEmetteur().pseudo)) {\n\t\t\t\t\t\t\tMain.hm_users.put(message.getEmetteur().pseudo, message.getEmetteur().ip);\n\t\t\t\t\t\t\tSystem.out.println(\"User added: \" + message.getEmetteur().pseudo);\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tmodel.addRow(new Object[]{message.getEmetteur().pseudo});\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\telse if(msg instanceof MsgNewPseudo) {\n\t\t\t\t\tSystem.out.println(\"Message new pseudo recu\");\n\t\t\t\t\t//Remplacer l'ancien user par le nouveau dans les liste d'utilisateurs\n\t\t\t\t\t//connectés et dans la sauvegarde des messages\n\t\t\t\t\tMsgNewPseudo message = (MsgNewPseudo) msg;\n\t\t\t\t\t\n\t\t\t\t\tif(Save_msg.open_conection.containsKey(message.getEmetteur())) {\n\t\t\t\t\t\tSave_msg.open_conection.remove(message.getEmetteur());\n\t\t\t\t\t\tSave_msg.open_conection.put(message.new_me, true);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif(Save_msg.conversations.containsKey(message.getEmetteur().pseudo)){\n\t\t\t\t\t\tString str = Save_msg.conversations.get(message.getEmetteur().pseudo);\n\t\t\t\t\t\tSave_msg.conversations.remove(message.getEmetteur().pseudo);\n\t\t\t\t\t\t\n\t\t\t\t\t\tstr = str + \"=== \" + message.getEmetteur().pseudo + \" became \" + message.new_me.pseudo + \" ===\\n\\n\";\n\t\t\t\t\t\t\n\t\t\t\t\t\tSave_msg.conversations.put(message.new_me.pseudo, str);\n\t\t\t\t\t\t\n\t\t\t\t\t\t//actualisation du texte si on est entrain de discuter avec la personne et de l'entete\n\t\t\t\t\t\tint i = Main.frame_gui.table.getSelectedRow();\n\t\t\t\t\t\tif(i != -1) {\n\t\t\t\t\t\t\tif(Main.frame_gui.table.getValueAt(Main.frame_gui.table.getSelectedRow(), 0).equals(msg.getEmetteur().pseudo) | Main.frame_gui.table.getValueAt(Main.frame_gui.table.getSelectedRow(), 0).equals(\"** \" + msg.getEmetteur().pseudo)) {\n\t\t\t\t\t\t\t\tMain.frame_gui.textPane.setText(str);\n\t\t\t\t\t\t\t\tMain.frame_gui.lblChoisirUnCorrespondant.setText(\"Conversation with \" + message.new_me.pseudo);\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\t//modification du pseudo dans la liste des utilisateurs\n\t\t\t\t\t\tfor (int i2 = Main.frame_gui.table.getRowCount() - 1; i2 >= 0; --i2) {\n\t\t\t\t\t\t\t//Notification\n\t\t\t\t\t\t\tString str2 = (String) model.getValueAt(i2, 0);\n\t\t\t\t\t\t\tif(str2.equals(msg.getEmetteur().pseudo)) model.setValueAt(message.new_me.pseudo, i2, 0);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tMain.hm_users.remove(message.getEmetteur().pseudo);\n\t\t\t\t\t\tMain.hm_users.put(message.new_me.pseudo, message.new_me.ip);\n\t\t\t\t\t\tSystem.out.println(Main.hm_users);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tSave_msg.Save_messages();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t//If the message is a bye, remove the sender from the list of connected users\n\t\t\t\telse if(msg instanceof MsgGoodbye) {\n\t\t\t\t\tSystem.out.println(\"Message goodbye recu\");\n\t\t\t\t\tSystem.out.println(\"User removed: \" + msg.getEmetteur().pseudo);\n\t\t\t\t\tMain.hm_users.remove(msg.getEmetteur().pseudo);\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t//Pour supprimer un utilisateur de la table \n\t\t\t\t\tfor (int i = model.getRowCount() - 1; i >= 0; --i) {\n\t\t\t\t\t\tif (model.getValueAt(i, 0).equals(msg.getEmetteur().pseudo) | model.getValueAt(i, 0).equals(\"** \"+ msg.getEmetteur().pseudo)) {\n\t\t\t\t\t\t\tmodel.removeRow(i);\n\t\t\t }\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//If the message is a text message\n\t\t\t\telse if(msg instanceof MsgTxt) {\n\t\t\t\t\t\n\t\t\t\t\tif(!Main.hm_users.containsKey(msg.getEmetteur().pseudo)) {\n\t\t\t\t\t\tSystem.out.println(Main.hm_users);\n\t\t\t\t\t\tMain.hm_users.put(msg.getEmetteur().pseudo, msg.getEmetteur().ip);\t\t\t\t\t\t\n\t\t\t\t\t\tmodel.addRow(new Object[]{msg.getEmetteur().pseudo});\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tSystem.out.println(\"Message receive from \"+ msg.getEmetteur().pseudo);\n\t\t\t\t\tSystem.out.println(msg.toTxt());\n\t\t\t\t\t\n\t\t\t\t\tString entete = null;\n\t\t\t\t\tif(!Save_msg.conversations.containsKey(msg.getEmetteur().pseudo)) entete=\"\";\n\t\t\t\t\telse entete = Save_msg.conversations.get(msg.getEmetteur().pseudo);\n\t\t\t\t\t\n\t\t\t\t\tString str = entete + (msg.getHorodatation() + \" : \" + msg.getEmetteur().pseudo + \" -> Moi : \\n\" + msg.toTxt() + \"\\n\\n\");\n\t\t\t\t\tSave_msg.conversations.remove(msg.getEmetteur().pseudo);\n\t\t\t\t\tSave_msg.conversations.put(msg.getEmetteur().pseudo, str);\n\t\t\t\t\t\n\t\t\t\t\tint i = Main.frame_gui.table.getSelectedRow();\n\t\t\t\t\tif(i != -1) {\n\t\t\t\t\t\tif(Main.frame_gui.table.getValueAt(Main.frame_gui.table.getSelectedRow(), 0).equals(msg.getEmetteur().pseudo) | Main.frame_gui.table.getValueAt(Main.frame_gui.table.getSelectedRow(), 0).equals(\"** \" + msg.getEmetteur().pseudo)) {\n\t\t\t\t\t\t\tMain.frame_gui.textPane.setText(str);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\t\n\t\t\t\t\t\n\t\t\t\t\t//Notify the user from who he get a new message\n\t\t\t\t\tfor (int i1 = Main.frame_gui.table.getRowCount() - 1; i1 >= 0; --i1) {\n\t\t\t\t\t\t//Notification\n\t\t\t\t\t\tSystem.out.println(\"On Notifie\");\n\t\t\t\t\t\tString str1 = (String) model.getValueAt(i1, 0);\n\t\t\t\t\t\tif(i1==i & i != -1) return;\n\t\t\t\t\t\tif(str1.equals(msg.getEmetteur().pseudo)) model.setValueAt(\"** \" + str1, i1, 0);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tSave_msg.Save_messages();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}", "@Override\n public Receive createReceive() {\n return receiveBuilder()\n\n .match(WhoToGreet.class, wtg -> {\n // -> uses the internal state of wtg and modify this internal state (this.greeting)\n this.greeting = \"Who to greet? -> \" + wtg.who;\n\n }).match(Greet.class, x -> {\n // -> send a message to another actor (thread)\n printerActor.tell(new Printer.Greeting(greeting), getSelf());\n\n }).build();\n }", "@Override\n public void actionPerformed(ActionEvent e) {\n chat.receiveMessage();\n }", "public ChatActivity() {\n }", "public Builder clearChatWithServerRelay() {\n copyOnWrite();\n instance.clearChatWithServerRelay();\n return this;\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}", "private void individualSend(UserLogic t) {\n if(t != UserLogic.this && t != null && ((String)UI.getContacts().getSelectedValue()).equals(t.username)){\r\n if(((String)t.UI.getContacts().getSelectedValue()).equals(username)) { //If both users are directly communicating\r\n t.UI.getProperList().addElement(username + \"> \" + UI.getMessage().getText()); //Send message\r\n t.UI.getContacts().setCellRenderer(clearNotification); //Remove notification\r\n }\r\n else{ //If the user are not directly communicating\r\n t.UI.getContacts().setCellRenderer(setNotification); //Set notification\r\n }\r\n if(t.chats.containsKey(username)){ //Store chats in other users database (When database exists)\r\n ArrayList<String> arrayList = t.chats.get(username); //Get data\r\n arrayList.add(username + \"> \" + UI.getMessage().getText()); //Add new message to the database\r\n t.chats.put(username, arrayList); //Store data\r\n }\r\n else { //When database doesn't exist\r\n ArrayList<String> arrayList = new ArrayList<>(); //create new database\r\n arrayList.add(username + \"> \" + UI.getMessage().getText()); //Add new message to the database\r\n t.chats.put(username, arrayList); //Store data\r\n }\r\n }\r\n //This writes on my screen\r\n if(t == UserLogic.this && t!=null){ //On the current user side\r\n UI.getProperList().addElement(\"Me> \" + UI.getMessage().getText()); //Write message to screen\r\n String currentChat = (String) UI.getContacts().getSelectedValue(); //Get selected user\r\n if(chats.containsKey(currentChat)){ //check if database exists\r\n ArrayList<String> arrayList = chats.get(currentChat);\r\n arrayList.add(\"Me> \" + UI.getMessage().getText());\r\n chats.put(currentChat, arrayList);\r\n }\r\n else { //When database doesn't exist\r\n ArrayList<String> arrayList = new ArrayList<>();\r\n arrayList.add(\"Me> \" + UI.getMessage().getText());\r\n chats.put(currentChat, arrayList);\r\n }\r\n }\r\n }", "private synchronized void createConversation(int id) throws IOException {\n ConversationGUI convo = new ConversationGUI(model, id, this);\n conversations.put(id, convo);\n convo.setVisible(true);\n }", "public void make_chat_room() {\n client_PW.println(\"------------make new chat-------------\");\n client_PW.println(\"Enter chat name : \");\n client_PW.flush();\n String line = null;\n String ad=null;\n PrintWriter pw=null;\n HashMap new_chat = new HashMap();\n try {\n line = client_BR.readLine();\n try{\n File file = new File(System.getProperty(\"user.home\"),line + \".txt\");\n pw = new PrintWriter(file);\n \n }catch(Exception e){System.out.println(e);}\n \n synchronized(chat_room) {\n chat_room.put(line, new_chat);\n }\n synchronized(cur_chat_room) {\n cur_chat_room.remove(client_ID);\n }\n String msg = client_ID + \"님이 퇴장하셨습니다\";\n broadcast(msg, null);\n synchronized(new_chat) {\n new_chat.put(client_ID,client_PW);\n }\n synchronized(new_chat) {\n \n new_chat.put(ad,pw);\n }\n cur_chat_room = new_chat;\n } catch (Exception e) { System.out.println(e); }\n \n\n }", "@PutMapping(value=\"/chat/{id}/{userName}/{sentence}\")\n\t\tpublic ResponseEntity<Chat> newChat (@PathVariable long id, @PathVariable String userName, @PathVariable String sentence) {\n\t\t\tif(lobbies.get(id)!=null) {\n\t\t\t\tif(lobbies.get(id).getUser1()!=null) {\n\t\t\t\t\tif(lobbies.get(id).getUser1().getUserName().equals(userName)) {\n\t\t\t\t\t\t//Añadir el chat al lobby que se solicita\n\t\t\t\t\t\tChat chat = new Chat(sentence,userName);\n\t\t\t\t\t\tif(lobbies.get(id).getMummy().equals(userName)) {\n\t\t\t\t\t\t\tchat.setCharacter(\"Mummy\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif(lobbies.get(id).getPharaoh().equals(userName)) {\n\t\t\t\t\t\t\tchat.setCharacter(\"Pharaoh\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\tlobbies.get(id).addChat(chat);\n\t\t\t\t\t\n\t\t\t\t\treturn new ResponseEntity<>(chat, HttpStatus.OK);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif(lobbies.get(id).getUser2()!=null) {\n\t\t\t\t\tif(lobbies.get(id).getUser2().getUserName().equals(userName)) {\n\t\t\t\t\t\t//Añadir el chat al lobby que se solicita\n\t\t\t\t\t\tChat chat = new Chat(sentence,userName);\n\t\t\t\t\t\tif(lobbies.get(id).getMummy().equals(userName)) {\n\t\t\t\t\t\t\tchat.setCharacter(\"Mummy\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif(lobbies.get(id).getPharaoh().equals(userName)) {\n\t\t\t\t\t\t\tchat.setCharacter(\"Pharaoh\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\tlobbies.get(id).addChat(chat);\n\t\t\t\t\t\n\t\t\t\t\treturn new ResponseEntity<>(chat, HttpStatus.OK);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\treturn new ResponseEntity<>(HttpStatus.NOT_FOUND);\n\t\t\t}else {\n\t\t\t\treturn new ResponseEntity<>(HttpStatus.NOT_FOUND);\n\t\t\t}\n\t\t}", "@Override\n public void onClick(View view) {\n if(input.getText().toString()!=null){\n msg.child(\"convensation\").child(encry(chatTo)+\"\").push()\n .setValue(new MessagesModel(input.getText().toString(),\n FirebaseAuth.getInstance()\n .getCurrentUser()\n .getDisplayName(),\n ChatName,\n FirebaseAuth.getInstance()\n .getCurrentUser()\n .getEmail(),chatTo,false)\n );\n mAdapter.notifyDataSetChanged();\n input.setText(\"\");\n updateConvensation();\n listOfMessages.scrollToPosition(mAdapter.getItemCount());\n }\n }", "@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\tsetContentView(R.layout.chat_activity);\n\t\t\n\t\ttext = (EditText)findViewById(R.id.etSendMsg);\n\t\tchat = (TextView)findViewById(R.id.tvChat);\n\t\tsend = (Button)findViewById(R.id.bSend);\n\t\t\n\t\tsend.setOnClickListener(this);\n\t\tuser = getIntent().getStringExtra(\"user\");\n\t\tchallenged = getIntent().getStringExtra(\"challenged\");\n\t\tsa = ((SharingAtts)getApplication());\n\t\t\n\t\tit = new ItemTest();\n\t\tString colNames = it.printData(\"chat\")[1];\n\t\tdbm = new DBManager(this, colNames, \"chat\", it.printData(\"chat\")[0]);\n\t\tWarpClient.initialize(Constants.apiKey, Constants.secretKey);\n\t\ttry {\n\t\t\tmyGame = WarpClient.getInstance();\n\t\t\tmyGame.addConnectionRequestListener(this); \n\t\t\tmyGame.connectWithUserName(user);\n\t\t\tmyGame.addNotificationListener(this);\n\t\t\tmyGame.addChatRequestListener(this);\n\t\t\tchat.setText(\"\");\n\t\t\t\n\t\t\tmyGame.addZoneRequestListener(this);\n\t\t\t/*\n\t\t\tmyGame.addRoomRequestListener(this);\n\t\t\tmyGame.addChatRequestListener(this);\n\t\t\t\n\t\t\t*/\n\t\t\t//myGame.getOnlineUsers();\n\t\t\t\n\t\t\t//myGame.addTurnBasedRoomListener(this);\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\tdbm.openToRead();\n\t\tString msgs = dbm.directQuery(\"SELECT sender,message FROM chat WHERE ((sender LIKE '\"+ sa.name+\"' AND receiver LIKE '\"+ challenged+ \"')\"+\n\t\t\t\t\" OR (sender LIKE '\"+challenged+\"' AND receiver LIKE '\"+ sa.name+\"'))\"+\n\t\t\t\t\"\", new String[]{ \"sender\",\"message\"});\n\t\tLog.d(\"special_query\", \"SELECT sender,message FROM chat WHERE sender LIKE '\"+ sa.name+\"' AND receiver LIKE '\"+ challenged+ \"'\"+\n\t\t\t\t\" OR sender LIKE '\"+challenged+\"' AND receiver LIKE '\"+ sa.name+\"'\"+\n\t\t\t\t\"\");\n\t\tString allRows = dbm.directQuery(\"SELECT * FROM chat\", it.printData(\"chat\")[1].split(\" \"));\n\t\t//allRows.replace(\" \", \"->\");\n\t\tString[] all = allRows.split(\"\\n\");\n\t\t\n\t\tfor(int i=0; i<all.length;i++){\n\t\t\tall[i].replace(\" \", \"->\");;\n\t\t\tLog.d(\"row_\"+i, all[i]);\n\t\t}\n\t\tdbm.close();\n\t\tmsgs = msgs.replace(\",\", \" : \");\n\t\tif(msgs!=null)\n\t\t\tchat.setText(msgs);\n\t\telse\n\t\t\tLog.e(\"msgs\", \"msg is null\");\n\t\t\n\t}", "@FXML\n private void sendMessage(ActionEvent actionEvent) {\n String playerName = RiskMain.getInstance().getDomain().getPlayerName();\n System.out.println(messageInput.getText());\n String text = playerName + \": \" + messageInput.getText();\n if (RiskMain.getInstance().getDomain().isServer()) {\n this.serverInterface = RiskMain.getInstance().getDomain().getServer();\n this.serverInterface\n .sendMessageChat(RiskMain.getInstance().getDomain().getPlayerName(),\n messageInput.getText(), recipientList.getValue());\n } else {\n this.clientPlayerInterface = RiskMain.getInstance().getDomain().getClient();\n this.clientPlayerInterface.sendMessageChat(RiskMain.getInstance().getDomain().getPlayerName(),\n messageInput.getText(), recipientList.getValue());\n }\n }", "public interface ChatManager {\n //TODO: Implementar los metodos que necesiten manejar el module\n //Documentar\n List<Chat> getChats() throws CantGetChatException;\n\n Chat getChatByChatId(UUID chatId) throws CantGetChatException;\n\n Chat newEmptyInstanceChat() throws CantNewEmptyChatException;\n\n void saveChat(Chat chat) throws CantSaveChatException;\n\n void deleteChat(Chat chat) throws CantDeleteChatException;\n\n List<Message> getMessages() throws CantGetMessageException;\n\n Message getMessageByChatId(UUID chatId) throws CantGetMessageException;\n\n Message getMessageByMessageId(UUID messageId) throws CantGetMessageException;\n\n Message newEmptyInstanceMessage() throws CantNewEmptyMessageException;\n\n void saveMessage(Message message) throws CantSaveMessageException;\n\n void deleteMessage(Message message) throws CantDeleteMessageException;\n\n List<Contact> getContacts() throws CantGetContactException;\n\n Contact getContactByContactId(UUID contactId) throws CantGetContactException;\n\n Contact newEmptyInstanceContact() throws CantNewEmptyContactException;\n\n void saveContact(Contact contact) throws CantSaveContactException;\n\n void deleteContact(Contact contact) throws CantDeleteContactException;\n}", "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.main);\n input = (EditText) findViewById(R.id.input);\n listView = (ListView) findViewById(R.id.listview);\n list = new ArrayList<>();\n adapter = new MyAdapter(this, list);\n listView.setAdapter(adapter);\n handler = new Handler() {\n @Override\n public void handleMessage(Message msg) {\n int what = msg.what;\n switch (what) {\n case 998:\n String receivecontent = (String) msg.obj;\n SimpleDateFormat sDateFormat = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\n String time = sDateFormat.format(System.currentTimeMillis());\n Messages receivemessages = genernateMessages(receivecontent,\n R.drawable.renma,\n time,\n \"mm\",\n \"receive\");\n list.add(receivemessages);\n adapter.notifyDataSetChanged();\n listView.setSelection(adapter.getCount() - 1);\n break;\n }\n }\n };\n }", "public MessageSender(ChatServer server)\n {\n this.server = server;\n }", "private void initComponents() {\n\n\t\tjLabel1 = new javax.swing.JLabel();\n\t\tjTextField1 = new javax.swing.JTextField();\n\t\tjSeparator1 = new javax.swing.JSeparator();\n\t\tjLabel2 = new javax.swing.JLabel();\n\t\tjScrollPane2 = new javax.swing.JScrollPane();\n\t\tjTextArea2 = new javax.swing.JTextArea();\n\t\tjButton1 = new javax.swing.JButton();\n\t\tjScrollPane3 = new javax.swing.JScrollPane();\n\t\tjTextArea1 = new javax.swing.JTextArea();\n\n\t\tsetDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\t\tsetTitle(\"Chatting_lxyu\");\n\t\tsetBounds(new java.awt.Rectangle(0, 0, 10, 0));\n\t\tsetResizable(false);\n\n\t\tjLabel1.setText(\"Name :\");\n\n\t\tjTextField1.setText(\"enter your name\");\n\t\tjTextField1.setBorder(javax.swing.BorderFactory.createEtchedBorder());\n\t\tjTextField1.addActionListener(new java.awt.event.ActionListener() {\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt) {\n\t\t\t\tjTextField1ActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\tjLabel2.setText(\"Enter :\");\n\n\t\tjTextArea2.setColumns(20);\n\t\tjTextArea2.setRows(5);\n\t\tjScrollPane2.setViewportView(jTextArea2);\n\n\t\tjButton1.setText(\"Send\");\n\t\tjButton1.addActionListener(new java.awt.event.ActionListener() {\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt) {\n\t\t\t\tjButton1ActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\tjTextArea1.setColumns(20);\n\t\tjTextArea1.setEditable(false);\n\t\tjTextArea1.setRows(5);\n\t\tjTextArea1.setBorder(javax.swing.BorderFactory.createEtchedBorder());\n\t\tjScrollPane3.setViewportView(jTextArea1);\n\n\t\tjavax.swing.GroupLayout layout = new javax.swing.GroupLayout(\n\t\t\t\tgetContentPane());\n\t\tgetContentPane().setLayout(layout);\n\t\tlayout.setHorizontalGroup(layout\n\t\t\t\t.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n\t\t\t\t.addGroup(\n\t\t\t\t\t\tlayout.createSequentialGroup()\n\t\t\t\t\t\t\t\t.addContainerGap()\n\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\tlayout.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\tjavax.swing.GroupLayout.Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tjSeparator1,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tjavax.swing.GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t565, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tlayout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(6, 6, 6)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlayout.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tjavax.swing.GroupLayout.Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlayout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tjLabel1,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tjavax.swing.GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t47,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tjavax.swing.GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tjavax.swing.LayoutStyle.ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tjTextField1,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tjavax.swing.GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t158,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tjavax.swing.GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlayout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tjLabel2)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tjavax.swing.LayoutStyle.ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tjScrollPane2,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tjavax.swing.GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t438,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tjavax.swing.GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tjavax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tjButton1))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tjScrollPane3,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tjavax.swing.GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t545,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tjavax.swing.GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tjavax.swing.LayoutStyle.ComponentPlacement.RELATED,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t12,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tShort.MAX_VALUE)))\n\t\t\t\t\t\t\t\t.addContainerGap()));\n\t\tlayout.setVerticalGroup(layout\n\t\t\t\t.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n\t\t\t\t.addGroup(\n\t\t\t\t\t\tlayout.createSequentialGroup()\n\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\tlayout.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\tjavax.swing.GroupLayout.Alignment.BASELINE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tjLabel1,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tjavax.swing.GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t39,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tjavax.swing.GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tjTextField1,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tjavax.swing.GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tjavax.swing.GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tjavax.swing.GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t.addPreferredGap(\n\t\t\t\t\t\t\t\t\t\tjavax.swing.LayoutStyle.ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t.addComponent(jSeparator1,\n\t\t\t\t\t\t\t\t\t\tjavax.swing.GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t10,\n\t\t\t\t\t\t\t\t\t\tjavax.swing.GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addPreferredGap(\n\t\t\t\t\t\t\t\t\t\tjavax.swing.LayoutStyle.ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t.addComponent(jScrollPane3,\n\t\t\t\t\t\t\t\t\t\tjavax.swing.GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t188,\n\t\t\t\t\t\t\t\t\t\tjavax.swing.GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\tlayout.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\tjavax.swing.GroupLayout.Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tlayout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(7, 7, 7)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tjLabel2,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tjavax.swing.GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t84,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tShort.MAX_VALUE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tlayout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tjavax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlayout.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tjavax.swing.GroupLayout.Alignment.TRAILING,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tfalse)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tjScrollPane2,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tjavax.swing.GroupLayout.Alignment.LEADING,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t0,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t0,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tShort.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tjButton1,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tjavax.swing.GroupLayout.Alignment.LEADING,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tjavax.swing.GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t64,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tShort.MAX_VALUE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(14, 14,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t14)))\n\t\t\t\t\t\t\t\t.addContainerGap()));\n\n\t\tpack();\n\t}" ]
[ "0.65254444", "0.6406056", "0.6394655", "0.63622963", "0.6290373", "0.62491935", "0.62385094", "0.6207956", "0.613557", "0.6118465", "0.6110286", "0.6037004", "0.6004627", "0.5954019", "0.59126246", "0.5897988", "0.5885729", "0.58828664", "0.58809555", "0.58570516", "0.58441466", "0.58418787", "0.5841174", "0.58348566", "0.5831791", "0.5823688", "0.57460237", "0.57451886", "0.57286334", "0.57225424", "0.57165897", "0.5703509", "0.56998765", "0.568587", "0.5684208", "0.5664975", "0.5657467", "0.565344", "0.5644387", "0.56400657", "0.56305677", "0.563018", "0.5619672", "0.56081027", "0.5569347", "0.5568327", "0.5547028", "0.5519231", "0.5517637", "0.5492411", "0.5485398", "0.5483853", "0.5476448", "0.5461752", "0.5450968", "0.54497945", "0.5444642", "0.54408365", "0.54384816", "0.5435177", "0.54212874", "0.5393818", "0.53865176", "0.5377652", "0.53718305", "0.5370918", "0.53694767", "0.5353002", "0.5342382", "0.53279626", "0.53241974", "0.53237295", "0.5319335", "0.53070015", "0.5301442", "0.52911484", "0.52903396", "0.5282578", "0.5282003", "0.52769357", "0.52695304", "0.5264565", "0.5257482", "0.5253773", "0.5251928", "0.52466375", "0.5236337", "0.5215749", "0.52122104", "0.5211005", "0.5210021", "0.52079284", "0.5203749", "0.5203532", "0.5203481", "0.5195234", "0.5194617", "0.5194454", "0.5191767", "0.5188829" ]
0.65816015
0
Adds a user's typing status to the chat window.
public void addTypingStatus(String user, String status){ if (status.equals("is_typing")) { userStatuses.put(user, "Typing"); } else if (status.equals("has_typed")) { userStatuses.put(user, "Has typed"); } else if (status.equals("no_text")) { userStatuses.put(user, "No Text"); } refreshTypingStatuses(user); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void userStartedTyping(){\n }", "void showOtherUserTyping();", "public interface TypingListener {\n void onTyping(String roomId, String user, Boolean istyping);\n}", "@Override\n public void userStoppedTyping(){\n }", "public void beginTyping(Contact item, boolean type) {\n // #sijapp cond.if modules_SOUND is \"true\" #\n if (type && item.getProtocol().isConnected()) {\n Notify.playSoundNotification(Notify.SOUND_TYPE_TYPING);\n }\n // #sijapp cond.end #\n invalidate();\n }", "public void sendStatusToServer(String status){\n System.out.println(\"typingstatus\" + chatID + username + \" \" + status);\n toServer.println(\"typingstatus\"+ \" \" + chatID + \" \" + username + \" \" + status);\n toServer.flush();\n }", "void isTyping(@NonNull final String conversationId, final boolean isTyping, @Nullable Callback<ComapiResult<Void>> callback);", "@Override\n public void isTypingState(IRainbowContact other, boolean isTyping, String roomId) {\n }", "public void ableToType(final Boolean tof) {\n\t\t\n\t\tSwingUtilities.invokeLater(\n\n\t\t\t\tnew Runnable () {\n\t\t\t\t\t//This is a thread to update the GUI.\n\t\t\t\t\t\n\t\t\tpublic void run () {\n\t\t\t\t//This is the method that gets called everytime the GUI needs to be updated.\n\t\t\t\t\n\t\tuserText.setEditable(tof);\n\t\t\t}\n\t\n\t\t\t\t}\n);\n\t\t\n}", "void isTyping(@NonNull final String conversationId, @Nullable Callback<ComapiResult<Void>> callback);", "private void ableToType(final boolean tof){\n SwingUtilities.invokeLater(\n new Runnable(){\n public void run(){\n userText.setEditable(tof);\n }\n }\n );\n }", "private void ableToType(final boolean ToF){\n\t\tSwingUtilities.invokeLater(\n\t\t\t\tnew Runnable(){\n\t\t\t\t\tpublic void run(){\n\t\t\t\t\t\tuserText.setEditable(ToF);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t);\n\t\t\n\t}", "@Override\r\n public void onStart() {\r\n\r\n FirebaseRecyclerAdapter<TypeModel, TypeHolder> firebaseRecyclerAdapter = new FirebaseRecyclerAdapter<TypeModel, TypeHolder>(\r\n TypeModel.class,\r\n R.layout.typing_layot,\r\n TypeHolder.class,\r\n GlobalTypeData\r\n ) {\r\n @Override\r\n protected void populateViewHolder(TypeHolder typeHolder, TypeModel typeModel, int i) {\r\n String UID = getRef(i).getKey();\r\n GlobalTypeData.child(UID)\r\n .addValueEventListener(new ValueEventListener() {\r\n @Override\r\n public void onDataChange(DataSnapshot dataSnapshot) {\r\n if (dataSnapshot.exists()) {\r\n\r\n Muser_database.child(UID)\r\n .addValueEventListener(new ValueEventListener() {\r\n @Override\r\n public void onDataChange(DataSnapshot dataSnapshot) {\r\n if (dataSnapshot.hasChild(DataManager.GlobalChatTypeStatus)) {\r\n String typing_status = dataSnapshot.child(DataManager.GlobalChatTypeStatus).getValue().toString();\r\n if (typing_status.equals(DataManager.GlobalChatTyping)) {\r\n typeHolder.typelayout.setVisibility(View.VISIBLE);\r\n\r\n if (dataSnapshot.hasChild(DataManager.UserFullname)) {\r\n Username = dataSnapshot.child(DataManager.UserFullname).getValue().toString();\r\n\r\n if (!get_name.isEmpty()) {\r\n if (get_name.equals(Username)) {\r\n typeHolder.typelayout.setVisibility(View.GONE);\r\n } else {\r\n typeHolder.setUsernameset(Username);\r\n typeHolder.setTypestatusset(\"Typing ...\");\r\n }\r\n }\r\n }\r\n\r\n } else if (typing_status.equals(DataManager.GlobalChatNoTyping)) {\r\n typeHolder.typelayout.setVisibility(View.GONE);\r\n\r\n }\r\n }\r\n }\r\n\r\n @Override\r\n public void onCancelled(DatabaseError databaseError) {\r\n\r\n }\r\n });\r\n\r\n\r\n }\r\n }\r\n\r\n @Override\r\n public void onCancelled(DatabaseError databaseError) {\r\n\r\n }\r\n });\r\n }\r\n };\r\n\r\n typingview.setAdapter(firebaseRecyclerAdapter);\r\n super.onStart();\r\n }", "private static void OpenTypingUndoUnit(TextEditor This)\r\n {\r\n UndoManager undoManager = This._GetUndoManager();\r\n\r\n if (undoManager != null && undoManager.IsEnabled)\r\n { \r\n if (This._typingUndoUnit != null && undoManager.LastUnit == This._typingUndoUnit && !This._typingUndoUnit.Locked) \r\n {\r\n undoManager.Reopen(This._typingUndoUnit); \r\n }\r\n else\r\n {\r\n This._typingUndoUnit = new TextParentUndoUnit(This.Selection); \r\n undoManager.Open(This._typingUndoUnit);\r\n } \r\n } \r\n }", "@Override\r\n\t\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\t\tList<User> l=new ArrayList<User>();\r\n\t\t\t\t\t\t\t\ttv.setInput(l);\r\n\t\t\t\t\t\t\t\tMessageDialog.openWarning(Display.getDefault().getActiveShell(), \"wain\", \"you already has this friend\");\r\n\t\t\t\t\t\t\t}", "public void refreshTypingStatuses(String refreshedUser) {\n if (refreshedUser.equals(username)) return;\n \n DefaultTableModel otherUserStatus = (DefaultTableModel) gui.getOtherUserStatus().getModel();\n \n String tStatus = userStatuses.get(refreshedUser);\n \n String status = refreshedUser + \": \" + tStatus;\n \n for (int row = 0; row < otherUserStatus.getRowCount(); row++){\n String userstatus = otherUserStatus.getValueAt(row, 0).toString();\n if (userstatus.contains(refreshedUser + \": \")){\n if (tStatus == null){\n otherUserStatus.removeRow(row);\n }\n else{\n otherUserStatus.setValueAt(status, row, 0);\n }\n return;\n }\n }\n otherUserStatus.addRow(new Object[] {status});\n \n }", "public final native void setAllowTyping(boolean allowTyping) /*-{\r\n\t\tthis.allowTyping = allowTyping;\r\n\t}-*/;", "public void addUserToChat(String otherUsername){\n String guiTitle = gui.getTitle();\n \n guiTitle += \" \" + otherUsername + \" \";\n gui.setTitle(guiTitle);\n gui.removeUserFromDropDown(otherUsername);\n addTypingStatus(otherUsername, \"no_text\");\n gui.addUserToChat(otherUsername);\n }", "public void showChat(){\n\t\tElement chatPanel = nifty.getScreen(\"hud\").findElementByName(\"chatPanel\");\n\t\tElement chatText = nifty.getScreen(\"hud\").findElementByName(\"chatText\");\n\t\tif(!chatPanel.isVisible()){\n\t\t\tchatPanel.startEffect(EffectEventId.onCustom);\n\t\t\tchatPanel.setVisible(true);\n\t\t}\n\t\tchatText.setFocus();\n\t}", "private void setupSpellHereField(){\n\t\tinput_from_user = new JTextField();\n\t\tinput_from_user.setFont(new Font(\"Calibri Light\", Font.PLAIN, 45));\n\t\tinput_from_user.setEditable(true);\n\t\tinput_from_user.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\tinput_from_user.requestFocusInWindow(); //gets focus back on the field\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tadd(input_from_user);\n\t\tinput_from_user.setBounds(374, 484, 942, 74);\n\t}", "Builder addInteractivityType(Text value);", "private void setTweetTextListener() {\n mTvTweetLength.setTextColor(Color.BLACK);\n mEtTweet.addTextChangedListener(new TextWatcher() {\n @Override\n public void beforeTextChanged(CharSequence s, int start, int count, int after) {\n }\n\n @Override\n public void onTextChanged(CharSequence s, int start, int before, int count) {\n long length = 0;\n if (s.length() > 140) {\n mTvTweetLength.setTextColor(Color.RED);\n length = 140 - s.length();\n mBtnTweet.setEnabled(false);\n } else {\n mTvTweetLength.setTextColor(Color.BLACK);\n length = s.length();\n mBtnTweet.setEnabled(true);\n }\n\n mTvTweetLength.setText(Long.toString(length));\n }\n\n @Override\n public void afterTextChanged(Editable s) {\n }\n });\n }", "public void addChatToRoom(String username, String text)\r\n\t{\r\n\t\t// make sure we're not sending the current user's recent chat again\r\n\t\tif(!basicAvatarData.getUsername().equals(username))\r\n\t\t{\r\n\t\t\ttheGridView.addTextBubble(username, text, 100);\r\n\t\t}\r\n\t}", "public void typeUserName(String text) {\n txtUserName().typeText(text);\n }", "public void tweet() {\r\n try {\r\n\r\n String twet = JOptionPane.showInputDialog(\"Tweett:\");\r\n Status status = twitter.updateStatus(twet);\r\n System.out.println(\"Successfully updated the status to [\" + status.getText() + \"].\");\r\n } catch (TwitterException ex) {\r\n java.util.logging.Logger.getLogger(MetodosTwit.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }", "public void addMessageBox(String message, int type)\n {\n if (justOpened)\n setThisRead();\n \n TextView textView = new TextView(Activity_Chat.this);\n textView.setText(message);\n \n LinearLayout.LayoutParams lp2 = new LinearLayout.LayoutParams(ViewGroup.LayoutParams.WRAP_CONTENT, ViewGroup.LayoutParams.WRAP_CONTENT);\n lp2.weight = 1.0f;\n \n if (type == 1)\n {\n lp2.gravity = Gravity.RIGHT;\n textView.setBackgroundResource(R.drawable.bubble_out);\n } else\n {\n lp2.gravity = Gravity.LEFT;\n textView.setBackgroundResource(R.drawable.bubble_in);\n }\n textView.setLayoutParams(lp2);\n layout.addView(textView);\n scrollView.fullScroll(View.FOCUS_DOWN);\n }", "boolean hasChatType();", "public void typeUsername(String username) {\n /*Notice that clearText() implemented before typeText().\n * This is considered to be a 'safe' operation, since in the case there is text already there\n * it will be deleted first, preventing the test from returning a failure for a different scenario.*/\n USERNAME_EDIT.perform(clearText(), typeText(username));\n }", "public void keyTyped(KeyEvent e)\r\n\t\t\t\t{\n\t\t\t\t\tif(chatTextBox.getText().length() > maximumChatCharacters)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\te.consume();\r\n\t\t\t\t\t}\r\n\t\t\t\t}", "@Override\r\n\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\tList<User> l=new ArrayList<User>();\r\n\t\t\t\t\t\t\ttv.setInput(l);\r\n\t\t\t\t\t\t\tMessageDialog.openWarning(Display.getDefault().getActiveShell(), \"wain\", \"Without this user \");\r\n\t\t\t\t\t\t}", "@SuppressWarnings({ \"rawtypes\", \"unchecked\" })\n\t@NiftyEventSubscriber(id = \"chatText\")\n\tpublic void submitChatText(String id, NiftyInputEvent event){\n\t\tTextField tf = nifty.getScreen(\"hud\").findNiftyControl(\"chatText\",TextField.class);\n\t\tListBox lb = nifty.getScreen(\"hud\").findNiftyControl(\"listBoxChat\",ListBox.class);\n\t\tif (NiftyInputEvent.SubmitText.equals(event)) {\n\t\t\tString sendText = tf.getDisplayedText();\n\t\t\tif (sendText.length() == 0){\n\t\t\t\tnifty.getScreen(\"hud\").getFocusHandler().resetFocusElements();\n\t\t\t\treturn;\n\t\t\t}\n\t\t\ttf.setText(\"\");\n\t\t\tif(observers.size()== 0){\n\t\t\t\tlb.addItem(sendText);\n\t\t\t}\n\t\t\tfor (GUIObserver g : observers) {\n\t\t\t\tg.onChatMessage(sendText);\n\t\t\t}\n\t\t\tnifty.getScreen(\"hud\").getFocusHandler().resetFocusElements();\n\t\t\tlb.showItem(lb.getItems().get(lb.getItems().size()-1));\n\t\t}\n\t}", "public void onStatus(Status arg0) {\r\n count++;\r\n if (count <= maxCount)\r\n tweets.add(arg0);\r\n }", "public void askForUserType() {\n System.out.println(\"What type of User would you like to make? (Type Attendee, Speaker, VIP, or Organizer)\");\n }", "private void userViewStep() {\n textUser.requestFocus();\n textUser.postDelayed(\n new Runnable() {\n public void run() {\n InputMethodManager inputMethodManager = (InputMethodManager) getActivity().getSystemService(Context.INPUT_METHOD_SERVICE);\n inputMethodManager.showSoftInput(textUser, 0);\n }\n }, 200);\n EventBus.getDefault().postSticky(new EventOnboardingChanges(EventOnboardingChanges.ChangeType.REGISTER_CHANGE_TITLE, getResources().getString(R.string.tact_username_title)));\n }", "public void update() {\n\t\t\n\t\tif (!editable) {\n\t\t\ttyping = false;\n\t\t}\n\t\t\n\t\t\n\t\tif (System.currentTimeMillis() - cursorTimer > 600) {\n\t\t\tcursorTimer = System.currentTimeMillis();\n\t\t\tcursorShow = !cursorShow;\n\t\t}\n\t\t\n\t\tif (editable) {\n\t\t\tRectangle rect = new Rectangle(position, size);\n\t\t\tif (rect.contains(Mouse.getVector())) {\n\t\t\t\tif (Mouse.left.pressed() && !typing) {\n\t\t\t\t\ttyping = true;\n\t\t\t\t\tcursorTimer = System.currentTimeMillis();\n\t\t\t\t\tcursorShow = true;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse {\n\t\t\t\tif (Mouse.left.pressed() && typing && !justStartedTyping) {\n\t\t\t\t\ttyping = false;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (typing) {\n\t\t\t\tif (Keyboard.keyWasTyped()) {\n\t\t\t\t\tchar typedChar = Keyboard.getTypedChar();\n\t\t\t\t\tif (Keyboard.enter.pressed()) {\n\t\t\t\t\t\ttyping = false;\n\t\t\t\t\t}\n\t\t\t\t\telse if (typedChar == (char)8) {\n\t\t\t\t\t\tif (!text.isEmpty()) {\n\t\t\t\t\t\t\tcursorTimer = System.currentTimeMillis();\n\t\t\t\t\t\t\tcursorShow = true;\n\t\t\t\t\t\t\ttext = text.substring(0, text.length() - 1);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse if (text.length() < maxLength) {\n\t\t\t\t\t\ttext += typedChar;\n\t\t\t\t\t\tcursorTimer = System.currentTimeMillis();\n\t\t\t\t\t\tcursorShow = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tjustStartedTyping = false;\n\t}", "public void keyTyped(char keyIn){\n if(' '<=Character.toLowerCase(keyIn) && Character.toLowerCase(keyIn)<='~'){\n this.sOut.insert(curPos,keyIn);\n this.showCursor = true;\n this.frameCount = 0;\n this.curPos++;\n }\n }", "private void updateViews() {\n String twtText = tweetInput.getText().toString();\n int elapsedLength = MAX_CHAR_COUNT - twtText.length();\n if (elapsedLength >= 0 && elapsedLength < MAX_CHAR_COUNT) {\n btnTweet.setEnabled(true);\n charCounter.setTextColor(getResources().getColor(COLOR_GRAY));\n } else {\n btnTweet.setEnabled(false);\n charCounter.setTextColor(getResources().getColor(COLOR_RED));\n }\n\n charCounter.setText(\"\" + elapsedLength);\n }", "public void appendChatBox(String s){\r\n\t\tsynchronized(msgToAppend){ // synchronized to maintain thread-safety\r\n\t\t\tmsgToAppend.append(s);\r\n\t\t\ttextArea.append(msgToAppend.toString() + \"\\n\");\r\n\t\t\tmsgToAppend.setLength(0);\r\n\t\t}\r\n\t}", "public void enableChat();", "public void addNewStatusToWall(String status, String userUuid);", "public void addChatListener(ChatListener listener){\r\n super.addChatListener(listener);\r\n\r\n if (listenerList.getListenerCount(ChatListener.class) == 1){\r\n setDGState(Datagram.DG_PERSONAL_TELL, true);\r\n setDGState(Datagram.DG_PERSONAL_QTELL, true);\r\n setDGState(Datagram.DG_SHOUT, true);\r\n setDGState(Datagram.DG_CHANNEL_TELL, true);\r\n setDGState(Datagram.DG_CHANNEL_QTELL, true);\r\n setDGState(Datagram.DG_KIBITZ, true);\r\n }\r\n }", "public void beginTyping(int index, boolean reset) {\r\n\t\tif(reset) { strTyped[index] = \"\"; }\r\n\t\tisTyping[index] = true;\r\n\t}", "protected void keyTyped(char par1, int par2)\n {\n if (par2 == 15)\n {\n completePlayerName();\n }\n else\n {\n field_50060_d = false;\n }\n\n if (par2 == 1)\n {\n mc.displayGuiScreen(null);\n }\n else if (par2 == 28)\n {\n String s = field_50064_a.getText().trim();\n\n if (s.length() > 0 && !mc.lineIsCommand(s))\n {\n mc.thePlayer.sendChatMessage(s);\n }\n\n mc.displayGuiScreen(null);\n }\n else if (par2 == 200)\n {\n func_50058_a(-1);\n }\n else if (par2 == 208)\n {\n func_50058_a(1);\n }\n else if (par2 == 201)\n {\n mc.ingameGUI.func_50011_a(19);\n }\n else if (par2 == 209)\n {\n mc.ingameGUI.func_50011_a(-19);\n }\n else\n {\n field_50064_a.func_50037_a(par1, par2);\n }\n }", "public void addMessage(String text) {\n\t\tchatMessages.add(text);\n\t\tlstChatMessages.setItems(getChatMessages());\n\t\tlstChatMessages.scrollTo(text);\n\t}", "public boolean chatEnabled();", "public boolean chatFocused(){\n\t\tTextField tf = nifty.getScreen(\"hud\").findNiftyControl(\"chatText\",TextField.class);\n\t\treturn tf.hasFocus();\n\t}", "public abstract void updateStatus(PresenceType presenceType);", "boolean updateCharacterType(CharacterType t);", "public boolean keyTyped(gb gui, char keyChar, int keyCode) {\n/* 222 */ if (keyCode == NEIConfig.getKeyBinding(\"recipe\"))\n/* 223 */ return transferRect(gui, false); \n/* 224 */ if (keyCode == NEIConfig.getKeyBinding(\"usage\")) {\n/* 225 */ return transferRect(gui, true);\n/* */ }\n/* 227 */ return false;\n/* */ }", "void setType(final UserType type);", "private boolean getGestureTypingEnabled() {\n return mGestureTypingEnabled && isInAlphabetKeyboardMode();\n }", "public void showTextView(String message, int type) {\n\n switch (type) {\n case USER:\n layout = getUserLayout();\n TextView tv = layout.findViewById(R.id.chatMsg);\n\n tv.setText(message);\n\n layout.setFocusableInTouchMode(true);\n chatLayout.addView(layout); // move focus to text view to automatically make it scroll up if softfocus\n layout.requestFocus();\n break;\n case BOT:\n\n\n if (defaultLanguage.equals(\"au\")) {\n\n //languageIdentifier.identifyLanguage(msg).addOnSuccessListener(new OnSuccessListener<String>() {\n\n layout = getBotLayout();\n\n languageIdentifier.identifyLanguage(message).addOnSuccessListener(new OnSuccessListener<String>() {\n @Override\n public void onSuccess(String languageCode) {\n\n\n if (languageCode != \"und\" && languageCode.equals(\"zh\")) {\n\n\n chineseEnglishTranslator.downloadModelIfNeeded(chineseToEnglishConditions).addOnSuccessListener(new OnSuccessListener<Void>() {\n @Override\n public void onSuccess(Void aVoid) {\n\n chineseEnglishTranslator.translate(message).addOnSuccessListener(new OnSuccessListener<String>() {\n @Override\n public void onSuccess(String s) {\n\n TextView tv1 = layout.findViewById(R.id.chatMsg);\n tv1.setText(s);\n layout.setFocusableInTouchMode(true);\n chatLayout.addView(layout); // move focus to text view to automatically make it scroll up if softfocus\n layout.requestFocus();\n\n mtts = new TextToSpeech(getActivity(), new TextToSpeech.OnInitListener() {\n @Override\n public void onInit(int status) {\n if (status == TextToSpeech.SUCCESS) {\n int result = 0;\n result = mtts.setLanguage(Locale.ENGLISH);\n\n float pitch = 1.0f;\n if (pitch < 0.1) pitch = 0.1f;\n float speed = 1.0f;\n mtts.setPitch(pitch);\n mtts.setSpeechRate(speed);\n\n mtts.speak(s, TextToSpeech.QUEUE_FLUSH, null);\n //mtts.speak(\"\",TextToSpeech.QUEUE_FLUSH,null,\"\");\n\n\n }\n }\n });\n\n }\n });\n\n }\n });\n\n\n } else {\n\n TextView tv1 = layout.findViewById(R.id.chatMsg);\n tv1.setText(message);\n layout.setFocusableInTouchMode(true);\n chatLayout.addView(layout); // move focus to text view to automatically make it scroll up if softfocus\n layout.requestFocus();\n\n mtts = new TextToSpeech(getActivity(), new TextToSpeech.OnInitListener() {\n @Override\n public void onInit(int status) {\n if (status == TextToSpeech.SUCCESS) {\n int result = 0;\n result = mtts.setLanguage(Locale.ENGLISH);\n\n float pitch = 1.0f;\n if (pitch < 0.1) pitch = 0.1f;\n float speed = 1.0f;\n mtts.setPitch(pitch);\n mtts.setSpeechRate(speed);\n\n mtts.speak(message, TextToSpeech.QUEUE_FLUSH, null);\n //mtts.speak(\"\",TextToSpeech.QUEUE_FLUSH,null,\"\");\n\n\n }\n }\n });\n\n }\n }\n });\n }\n else {\n mtts = new TextToSpeech(getActivity(), new TextToSpeech.OnInitListener() {\n @Override\n public void onInit(int status) {\n if (status == TextToSpeech.SUCCESS) {\n int result = mtts.setLanguage(Locale.CHINA);\n\n if (result == TextToSpeech.LANG_MISSING_DATA || result == TextToSpeech.LANG_NOT_SUPPORTED) {\n Log.e(\"TTs\", \"Language Not supported\");\n } else {\n float pitch = 1.0f;\n if (pitch < 0.1) pitch = 0.1f;\n float speed = 1.0f;\n mtts.setPitch(pitch);\n mtts.setSpeechRate(speed);\n\n if (defaultLanguage.equals(\"cn\")) {\n\n englishChineseTranslator.translate(message).addOnSuccessListener(new OnSuccessListener<String>() {\n @Override\n public void onSuccess(String s) {\n\n String botResponseArray [] = s.split(\"\\\\|\\\\|\");\n for(int i=0; i<botResponseArray.length;i++){\n\n layout = getBotLayout();\n TextView tv1 = layout.findViewById(R.id.chatMsg);\n tv1.setText(botResponseArray[i]);\n mtts.speak(botResponseArray[i], TextToSpeech.QUEUE_FLUSH, null);\n\n layout.setFocusableInTouchMode(true);\n chatLayout.addView(layout); // move focus to text view to automatically make it scroll up if softfocus\n layout.requestFocus();\n }\n }\n });\n\n }\n\n }\n } else {\n Log.e(\"TTs\", \"Language Not supported\");\n }\n }\n });\n }\n\n\n break;\n default:\n layout = getBotLayout();\n break;\n }\n queryEditText.requestFocus(); // change focus back to edit text to continue typing\n }", "public void typeUsername(String text) {\r\n\t\tusernameInput = driver.findElement(usernameSelector);\r\n\t\tusernameInput.sendKeys(text);\r\n\t\t\t\r\n\t}", "public void addMessage( String buddyId, String buddyNick, String text, int type ) {\n text = \"[p]\".concat( text ).concat( \"[/p]\" );\n /** Checking for type in settings **/\n switch ( type ) {\n case TYPE_STATUS_CHANGE: {\n if ( !MidletMain.statusChange ) {\n return;\n }\n break;\n }\n case TYPE_XSTATUS_READ: {\n if ( !MidletMain.xStatusRead ) {\n return;\n }\n break;\n }\n case TYPE_MSTATUS_READ: {\n if ( !MidletMain.mStatusRead ) {\n return;\n }\n break;\n }\n case TYPE_FILETRANSFER: {\n if ( !MidletMain.fileTransfer ) {\n return;\n }\n break;\n }\n }\n /** Appending message **/\n ChatItem item = new ChatItem( MidletMain.serviceMessagesFrame.pane,\n buddyId, buddyNick, TimeUtil.getTimeString( TimeUtil.getCurrentTimeGMT(), true ),\n type == TYPE_FILETRANSFER ? ChatItem.TYPE_FILE_TRANSFER : ChatItem.TYPE_INFO_MSG, text );\n messages.push( item );\n if ( messages.size() > messagesCount ) {\n messages.removeElementAt( 0 );\n }\n /** Checking for screen exist **/\n if ( MidletMain.serviceMessagesFrame.pane.items.equals( messages )\n && MidletMain.screen.activeWindow.equals( MidletMain.serviceMessagesFrame ) ) {\n MidletMain.serviceMessagesFrame.updateItemsLocation( true );\n }\n }", "private static String getUserTextTyped () {\n\n\t\tBufferedReader myReader = new BufferedReader(new InputStreamReader(System.in));\n\t\tBoolean loop = true;\n\t\tString text = \"\";\n\t\tdo {\n\t\t\ttry {\n\t\t\t\ttext = myReader.readLine();\n\n\t\t\t\tif ((text.length() < 3)) {\n\t\t\t\t\tshowMessage(\"Please type a minimum of 3 characters: \\n\");\n\t\t\t\t} else {\n\t\t\t\t\treturn text;\n\t\t\t\t}\n\n\t\t\t}catch (Exception e) {\n\t\t\t\tSystem.out.println(\"Character invalid.\");\n\t\t\t}\n\t\t} while (loop);\n\n\n\t\treturn text;\n\n\t}", "private void updateListBox() {\n String program = Utils.getListBoxItemText(listBox_Program);\n ArrayList<String> typeList = Classification.getTypeList(program);\n listBox_Type.clear();\n for (String item : typeList) {\n listBox_Type.addItem(item);\n }\n listBox_Type.setItemSelected(0, true);\n listBox_Type.setEnabled(typeList.size() > 1);\n listBox_Type.onBrowserEvent(Event.getCurrentEvent());\n }", "public abstract void newPromptType(long ms, PromptType type);", "public void keyTyped(KeyEvent e) {\n\t\t\t\tgetCmdNXT().commandTypedTerrorist(e.getKeyChar());\r\n\t\t\t}", "public void setType(int type)\n {\n editor.putInt(KEY_TYPE, type);\n // commit changes\n editor.commit();\n Log.d(TAG,\"user type modified in pref\");\n }", "public void addUserVenuesListener(long userId) {\r\n\tStatusListener listener = new StatusListener() { \r\n\t\t@Override public void onStatus(Status status) {\r\n\t\t\t// If the shutdown time is after the current time, record the tweet, otherwise close the connection\r\n\t\t\tif (Calendar.getInstance().getTime().before( shutdownTime.getTime() )) {\r\n\t\t\t\ttweets.add(status);\t\t\t\t\r\n\t\t\t} else {\r\n\t\t\t\tLOGGER.log(Level.FINE, \"Shutting down Twitter stream..\");\r\n\t\t\t\tclearLists();\r\n\t\t\t\tshutdown = true;\r\n\t\t\t\ttwitterStream.shutdown();\r\n\t\t\t}\r\n\t\t} \r\n\t\t@Override public void onDeletionNotice(StatusDeletionNotice statusDeletionNotice) {} \r\n\t\t@Override public void onTrackLimitationNotice(int numberOfLimitedStatuses) {} \r\n\t\t@Override public void onScrubGeo(long userId, long upToStatusId) {} \r\n\t\t@Override public void onStallWarning(StallWarning warning) {}\r\n\t\t@Override public void onException(Exception ex) { ex.printStackTrace(); }\r\n\t\t};\r\n\t\ttwitterStream.addListener(listener);\r\n\t\t\r\n\t\t// Filter the listener to tweets from the given user\r\n\t\tint count = 0;\r\n\t\tlong[] idToFollow = new long[1];\r\n\t\tidToFollow[0] = userId; \r\n\t\tString[] stringsToTrack = null;\r\n\t\tdouble[][] locationsToTrack = null;\r\n\t\ttwitterStream.filter(new FilterQuery(count, idToFollow, stringsToTrack, locationsToTrack));\r\n\t}", "protected void showStatus(int type, String message) {\n showToast(type, message);\n }", "protected void showStatus(int type, String message) {\n showToast(type, message);\n }", "Builder addInteractivityType(String value);", "private static void ScheduleInput(TextEditor This, InputItem item)\r\n { \r\n if (!This.AcceptsRichContent || IsMouseInputPending(This)) \r\n {\r\n // We have to do the work now, or we'll get out of synch. \r\n TextEditorTyping._FlushPendingInputItems(This);\r\n item.Do();\r\n }\r\n else \r\n {\r\n TextEditorThreadLocalStore threadLocalStore; \r\n\r\n threadLocalStore = TextEditor._ThreadLocalStore;\r\n\r\n if (threadLocalStore.PendingInputItems == null)\r\n {\r\n threadLocalStore.PendingInputItems = new ArrayList(1);\r\n Dispatcher.CurrentDispatcher.BeginInvoke(DispatcherPriority.Background, new DispatcherOperationCallback(BackgroundInputCallback), This); \r\n }\r\n\r\n threadLocalStore.PendingInputItems.Add(item); \r\n }\r\n }", "public void aTypeCBaddItemListener(ItemListener listener)\r\n\t{\r\n\t\tanswerTypeCb.addItemListener(listener);\r\n\t}", "protected void type(WebElement element, String text) {\n waitForElementToBeVisible(element);\n element.clear();\n element.sendKeys(text);\n }", "private void userMessageEvent(){\n message = UI.getMessage(); //Get object\r\n message.addKeyListener(new KeyListener() {\r\n @Override\r\n public void keyTyped(KeyEvent e) {}\r\n\r\n @Override\r\n public void keyPressed(KeyEvent e) {\r\n if(e.getKeyCode() == KeyEvent.VK_ENTER){ //Check if enter button is pressed\r\n if(!UI.getMessage().getText().equalsIgnoreCase(\"\")){ //If the message is not empty\r\n for (UserLogic t : threads) { //Go through users\r\n if(((String)UI.getContacts().getSelectedValue()).equals(groupChat)) { //If the chat is a group chat\r\n groupChatSend(t);\r\n }\r\n else { //Current User\r\n individualSend(t);\r\n }\r\n }\r\n UI.getMessage().setText(\"\"); //Clear message\r\n }\r\n }\r\n }\r\n\r\n @Override\r\n public void keyReleased(KeyEvent e) {}\r\n });\r\n }", "public void keyTyped(KeyEvent e) {\n // System.out.println(\"typed\");\n }", "public void onStatus(Status status) {\n String userName = status.getUser().getScreenName();\n String userId = Long.toString(status.getUser().getId());\n String messageTweet = status.getText();\n String imageUrl = status.getUser().getProfileImageURL();\n String lang = status.getUser().getLang();\n String timeZone = status.getUser().getTimeZone();\n String userLocation = status.getUser().getLocation();\n String time = tweetTime();\n\n makeJson(userId,userName,messageTweet,imageUrl, lang, timeZone, userLocation, time);\n \n}", "@SuppressWarnings(\"unchecked\")\n\tpublic void addChatLine(String name, String line){\n\t\t@SuppressWarnings(\"rawtypes\")\n\t\tListBox lb = nifty.getScreen(\"hud\").findNiftyControl(\"listBoxChat\",ListBox.class);\n\t\tif (line.length() + name.length() > 55){\n\t\t\twhile (line.length() > 35){\n\t\t\t\tString splitLine = line.substring(0,35);\n\t\t\t\tlb.addItem(\"<\"+name+\">\"+\": \"+splitLine);\n\t\t\t\tline = line.substring(35);\n\t\t\t}\n\t\t}\n\t\tlb.addItem(\"<\"+name+\">\"+\": \"+line);\n\t\tlb.showItem(lb.getItems().get(lb.getItems().size()-1));\n\t}", "public void type(char c){\n //Only type if a text is selected\n if(currentText != null) {\n //If the character is a newline then a new line should be created and the character and line index's should be updated as appropriate\n if (c == '\\n') {\n currentText = codeWindow.getTextLineController().split(currentText, characterIndex, codeWindow);\n characterIndex = 0;\n lineIndex++;\n }\n //If the character that was typed is any other character then the line will not be split, update it with the typed character and update the character index\n else {\n currentText = codeWindow.getTextLineController().update(currentText, characterIndex, c);\n characterIndex++;\n }\n //After typing the position of the cursor will be different, update the position\n updatePosition();\n }\n }", "public void run () {\n\t\t\t\t//This is the method that gets called everytime the GUI needs to be updated.\n\t\t\t\t\n\t\tuserText.setEditable(tof);\n\t\t\t}", "private void sendUsage(CommandType type) {\n switch (type) {\n case LIST:\n sendMsgToClient(\"@|bold,blue Usage:|@ @|blue list lecturer|subject|@\");\n break;\n case SEARCH:\n sendMsgToClient(\"@|bold,blue Usage:|@ @|blue search (lecturer|subject|room) <search term>|@\");\n break;\n }\n }", "public void toggleChat() {\n chatVisible = !chatVisible;\n }", "public boolean isChatEnabled();", "@Override\n\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\ttwitter.setSource(\"keyrani\");\t\n\t\t\t\t\ttry{\n\t\t\t\t\t\ttwitter.updateStatus(status.getText().toString());\n\t\t\t\t\t\t\n\t\t\t\t\t}catch (Repetition e) {\n\t\t\t\t\t\t Toast.makeText(TwitUpdate.this, \"status tdk boleh sama\", Toast.LENGTH_SHORT).show();\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t}", "protected void type(String text, Finder<WebElement, WebDriver> inputFinder) {\n \t\tcontext.type(text, inputFinder);\n \t}", "public void MonitorTextView()\n {\n TextView textview = (TextView) findViewById(R.id.textViewDelayLength);\n textview.setOnClickListener(new View.OnClickListener()\n {\n @Override\n public void onClick(View v) {\n EditText editText = (EditText) findViewById(R.id.editTextMessageDelay);\n SeekBar seek = (SeekBar) findViewById(R.id.seekBarMessageDelay);\n if (editText.getVisibility() == View.GONE)\n {\n editText.setVisibility(View.VISIBLE);\n seek.setVisibility(View.GONE);\n }\n else if (editText.getVisibility() == View.VISIBLE)\n {\n editText.setVisibility(View.GONE);\n seek.setVisibility(View.VISIBLE);\n }\n }\n });\n }", "public void receiveMyBtStatus(String status) {\n \t\n \tfinal String s = status;\n \t\n \t\n// \tLog.d(\"handler\", \"receiveMyBtStatus\"); \t\n mHandler.post(new Runnable() {\n @Override\n public void run() {\n // This gets executed on the UI thread so it can safely modify Views\n \tBTstatusTextView.setText(s);\n \t\n \tif(s.equals(\"BT-Ready\") && !(poll.getVisibility() == View.VISIBLE)){\n \t\tLog.d(\"poll buttion\", \"setting visible\");\n \t//Ready to poll\n \t\tpoll.setVisibility(View.VISIBLE);\n \t\n }\n }\n });\n }", "void addTextListener(TextListener l);", "private static void reply(Status status){\n String tweetedAtMe = \"@\" + status.getUser().getScreenName(); //retrieve username\n String completeReply = tweetedAtMe + \" \" + replyStatus + tweetedAtMe + \"?”\"; //message to tweet\n long inReply = status.getId(); //get id of status for reply\n StatusUpdate statusUpdate = new StatusUpdate(completeReply).inReplyToStatusId(inReply); //Status update is indicated as a reply\n\n Twitter twitter = TwitterInstantiator.instantiateTwitter(); //authorize to tweet on my behalf\n\n try{\n twitter.updateStatus(statusUpdate); //send tweet\n } catch (TwitterException te) {\n System.out.println(\"Ran into twitter exception: \" + te); //this tells me if I've sent too many tweets in a short time\n }\n }", "@Override\r\n\t\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\t\tList<User> l=new ArrayList<User>();\r\n\t\t\t\t\t\t\t\tl.add(addUser);\r\n\t\t\t\t\t\t\t\ttv.setInput(l);\r\n\t\t\t\t\t\t\t}", "public static void typingTest(String word){\r\n\t\t//create a scanner for input\r\n\t\tScanner scanner = new Scanner(System.in);\r\n\t\tSystem.out.println();\r\n\t\t//keep asking question until user types it in correctly\r\n\t\twhile (true){\r\n\t\t\t//ask the user to type the word in correctly\r\n\t\t\tSystem.out.println(\"Please type \"+ word + \": \");\r\n\t\t\tString input= scanner.next();\r\n\t\t\t//if the user enters the word correctly\r\n\t\t\tif (input.equalsIgnoreCase(word)){\r\n\t\t\t\tSystem.out.println(\"GOOD JOB!\");\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t}", "@Override\n protected boolean isPersonalTell(ChatEvent evt){\n String type = evt.getType();\n return \"tell\".equals(type) || \"say\".equals(type) || \"ptell\".equals(type);\n }", "public void type(){\n while(infiniteLoop){\n System.out.println(\"What type of Tea do you want?\");\n System.out.println(\"Press 1 - green\");\n System.out.println(\"Press 2 - black\");\n System.out.println(\"Press 3 - herbal\");\n System.out.println(\"Press 4 - white\");\n int x = keyboard.nextInt();\n if(x == 1){\n Tea = Tea + \"green tea, \";\n break;\n }\n else if(x == 2){\n Tea = Tea + \"black tea, \";\n break;\n }\n else if(x == 3){\n Tea = Tea + \"herbal tea, \";\n break;\n }\n else if(x == 4){\n Tea = Tea + \"white tea, \";\n break;\n }\n System.out.println(\"Please enter valid response\");\n }\n\n }", "@Override\n\t\tpublic void keyTyped(KeyEvent arg0) {\n\t\t\t\n\t\t}", "@Override\n\t\tpublic void keyTyped(KeyEvent arg0) {\n\t\t\t\n\t\t}", "@Override\n\t\tpublic void keyTyped(KeyEvent arg0) {\n\t\t\t\n\t\t}", "public void addMessage(String username, String message) {\n messagesArea.append(\"\\n\" + \"[\" + username + \"] \" + message);\n messagesArea.setCaretPosition(messagesArea.getDocument().getLength());\n }", "public void onSetUserInputEnabled() {\n }", "protected void keyTyped(char typedChar, int keyCode) throws IOException {\n/* 80 */ if (this.ipEdit.textboxKeyTyped(typedChar, keyCode)) {\n/* */ \n/* 82 */ ((GuiButton)this.buttonList.get(0)).enabled = (!this.ipEdit.getText().isEmpty() && (this.ipEdit.getText().split(\":\")).length > 0);\n/* */ }\n/* 84 */ else if (keyCode == 28 || keyCode == 156) {\n/* */ \n/* 86 */ actionPerformed(this.buttonList.get(0));\n/* */ } \n/* */ }", "public void addTextToTheTA(String msg) {\n\t\tguessArea.append(msg);\n\t}", "@Override\n public void statusChanged(String text) {\n fireStatusChanged(text);\n }", "public void typeEvent(KeyEvent e) {\n char typed = e.getKeyChar();\n //if the char is not a number remove the char\n if (typed < '0' || typed > '9') {\n //input is illigal so put empty char insted of the sent char\n e.setKeyChar(Character.MIN_VALUE);\n } else {\n //update the text that is in the text filed and the value in the factory\n updateShapeFactory(updateValue(e));\n }\n //show the update\n repaint();\n }", "public void appendUser(String str) {\n\t\tDefaultListModel<String> listModel = (DefaultListModel<String>) userList.getModel();\n\t\tlistModel.addElement(str);\n\t}", "@Override\n\t\tpublic void keyTyped(KeyEvent e) {\n\t\t\t// Check if input fields are filled in\n\t\t\ttoggleSearchButton();\n\t\t}", "@Override\r\n\t\t\tpublic void keyTyped(KeyEvent e) {\n\t\t\t\tcount_text();\r\n\t\t\t}", "public static void giveMessage(String text, MutableAttributeSet style) {\n\n if (!cb.isSelected()) {\n return;\n }\n\n if (style == null) {\n style = black;\n }\n\n try {\n textPane.setCharacterAttributes(style, true);\n documentModel.insertString(documentModel.getLength(), text + \"\\n\", style);\n textPane.setCaretPosition(documentModel.getLength());\n\n } catch (BadLocationException ble) {\n System.out.println(\"Bad location for text insert on logpanel.\");\n }\n }", "public void requestAddUserToChat(String otherUsername){\n System.out.println(\"addtochat\" + \" \" + chatID + \" \" + otherUsername);\n toServer.println(\"addtochat\" + \" \" + chatID + \" \" + otherUsername);\n toServer.flush();\n }", "@Override\n\t\t\tpublic void keyTyped(KeyEvent arg0) {\n\t\t\t\t\n\t\t\t}" ]
[ "0.6779074", "0.6590504", "0.6152265", "0.5998867", "0.58640116", "0.5863937", "0.5780106", "0.573146", "0.5717167", "0.5551065", "0.5452531", "0.54297066", "0.54202425", "0.53863865", "0.53752285", "0.52329504", "0.5184001", "0.5157626", "0.51551056", "0.51364434", "0.5131038", "0.5086616", "0.50855225", "0.50783706", "0.5050817", "0.5044321", "0.5042215", "0.49707723", "0.49464265", "0.4943073", "0.4941785", "0.49190804", "0.48890322", "0.48771822", "0.4848532", "0.48455793", "0.48180246", "0.4790659", "0.47888306", "0.47608724", "0.47605854", "0.47434664", "0.47417882", "0.47391793", "0.47090498", "0.4702086", "0.468465", "0.46641332", "0.4664007", "0.46528438", "0.4650975", "0.4647132", "0.46387216", "0.4614064", "0.46131092", "0.45841855", "0.45729217", "0.45655158", "0.45613134", "0.4558261", "0.45570526", "0.45570526", "0.4556025", "0.45545936", "0.45219105", "0.4519196", "0.45087638", "0.45069784", "0.44955206", "0.44922498", "0.44860908", "0.44860518", "0.44823804", "0.4479499", "0.4479137", "0.44790342", "0.44738054", "0.44711912", "0.4462586", "0.44338444", "0.44335225", "0.44331577", "0.44325587", "0.44291058", "0.44253874", "0.44211924", "0.44211924", "0.44211924", "0.44185856", "0.44171485", "0.4416292", "0.4415269", "0.44082716", "0.44061482", "0.44060656", "0.43974417", "0.43965927", "0.43900293", "0.43868083", "0.4384123" ]
0.7550954
0
Refreshes the typing statuses each time a new typing status is received.
public void refreshTypingStatuses(String refreshedUser) { if (refreshedUser.equals(username)) return; DefaultTableModel otherUserStatus = (DefaultTableModel) gui.getOtherUserStatus().getModel(); String tStatus = userStatuses.get(refreshedUser); String status = refreshedUser + ": " + tStatus; for (int row = 0; row < otherUserStatus.getRowCount(); row++){ String userstatus = otherUserStatus.getValueAt(row, 0).toString(); if (userstatus.contains(refreshedUser + ": ")){ if (tStatus == null){ otherUserStatus.removeRow(row); } else{ otherUserStatus.setValueAt(status, row, 0); } return; } } otherUserStatus.addRow(new Object[] {status}); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n public void onStart() {\r\n\r\n FirebaseRecyclerAdapter<TypeModel, TypeHolder> firebaseRecyclerAdapter = new FirebaseRecyclerAdapter<TypeModel, TypeHolder>(\r\n TypeModel.class,\r\n R.layout.typing_layot,\r\n TypeHolder.class,\r\n GlobalTypeData\r\n ) {\r\n @Override\r\n protected void populateViewHolder(TypeHolder typeHolder, TypeModel typeModel, int i) {\r\n String UID = getRef(i).getKey();\r\n GlobalTypeData.child(UID)\r\n .addValueEventListener(new ValueEventListener() {\r\n @Override\r\n public void onDataChange(DataSnapshot dataSnapshot) {\r\n if (dataSnapshot.exists()) {\r\n\r\n Muser_database.child(UID)\r\n .addValueEventListener(new ValueEventListener() {\r\n @Override\r\n public void onDataChange(DataSnapshot dataSnapshot) {\r\n if (dataSnapshot.hasChild(DataManager.GlobalChatTypeStatus)) {\r\n String typing_status = dataSnapshot.child(DataManager.GlobalChatTypeStatus).getValue().toString();\r\n if (typing_status.equals(DataManager.GlobalChatTyping)) {\r\n typeHolder.typelayout.setVisibility(View.VISIBLE);\r\n\r\n if (dataSnapshot.hasChild(DataManager.UserFullname)) {\r\n Username = dataSnapshot.child(DataManager.UserFullname).getValue().toString();\r\n\r\n if (!get_name.isEmpty()) {\r\n if (get_name.equals(Username)) {\r\n typeHolder.typelayout.setVisibility(View.GONE);\r\n } else {\r\n typeHolder.setUsernameset(Username);\r\n typeHolder.setTypestatusset(\"Typing ...\");\r\n }\r\n }\r\n }\r\n\r\n } else if (typing_status.equals(DataManager.GlobalChatNoTyping)) {\r\n typeHolder.typelayout.setVisibility(View.GONE);\r\n\r\n }\r\n }\r\n }\r\n\r\n @Override\r\n public void onCancelled(DatabaseError databaseError) {\r\n\r\n }\r\n });\r\n\r\n\r\n }\r\n }\r\n\r\n @Override\r\n public void onCancelled(DatabaseError databaseError) {\r\n\r\n }\r\n });\r\n }\r\n };\r\n\r\n typingview.setAdapter(firebaseRecyclerAdapter);\r\n super.onStart();\r\n }", "public void addTypingStatus(String user, String status){\n if (status.equals(\"is_typing\")) {\n userStatuses.put(user, \"Typing\");\n } else if (status.equals(\"has_typed\")) {\n userStatuses.put(user, \"Has typed\");\n } else if (status.equals(\"no_text\")) {\n userStatuses.put(user, \"No Text\");\n }\n refreshTypingStatuses(user);\n }", "@Override\n public void userStartedTyping(){\n }", "public synchronized void poll() {\r\n\t\tfor(int i=0; i<KEY_COUNT; i++) {\r\n\t\t\tif(currKeys[i]) {\r\n\t\t\t\tif(keys[i] == KeyState.RELEASED) {\r\n\t\t\t\t\tkeys[i] = KeyState.ONCE;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tkeys[i] = KeyState.PRESSED;\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tkeys[i] = KeyState.RELEASED;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t//DELETE LAST CHAR\r\n\t\tif(keyDownOnce(Key.VK_BACK_SPACE)) {\r\n\t\t\tfor(int i=0; i<MAX_STRINGS_TYPING; i++) {\r\n\t\t\t\tif(isTyping[i] && strTyped[i].length() >= 2) {\r\n\t\t\t\t\tstrTyped[i] = strTyped[i].substring(0, strTyped[i].length()-2);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "@Override\n public void statusChanged(String text) {\n fireStatusChanged(text);\n }", "private void refreshSuggestions() {\n \t\tString text = textBox.getText();\n \t\tif (text.equals(currentText)) {\n \t\t\treturn;\n \t\t} else {\n \t\t\tcurrentText = text;\n \t\t}\n \t\tfindSuggestions(text);\n \t}", "@Override\n public void userStoppedTyping(){\n }", "public void sendStatusToServer(String status){\n System.out.println(\"typingstatus\" + chatID + username + \" \" + status);\n toServer.println(\"typingstatus\"+ \" \" + chatID + \" \" + username + \" \" + status);\n toServer.flush();\n }", "@Override public void onStatus(Status status) {\n\t\t\tif (Calendar.getInstance().getTime().before( shutdownTime.getTime() )) {\r\n\t\t\t\ttweets.add(status);\t\t\r\n\t\t\t} else {\r\n\t\t\t\tLOGGER.log(Level.FINE, \"Shutting down Twitter stream..\");\r\n\t\t\t\tclearLists();\r\n\t\t\t\tshutdown = true;\r\n\t\t\t\ttwitterStream.shutdown();\r\n\t\t\t}\r\n\t\t}", "public void onStatus(Status arg0) {\r\n count++;\r\n if (count <= maxCount)\r\n tweets.add(arg0);\r\n }", "@Override public void onStatus(Status status) {\n\t\t\tif (Calendar.getInstance().getTime().before( shutdownTime.getTime() )) {\r\n\t\t\t\ttweets.add(status);\t\t\t\t\r\n\t\t\t} else {\r\n\t\t\t\tLOGGER.log(Level.FINE, \"Shutting down Twitter stream..\");\r\n\t\t\t\tclearLists();\r\n\t\t\t\tshutdown = true;\r\n\t\t\t\ttwitterStream.shutdown();\r\n\t\t\t}\r\n\t\t}", "private void updateListBox() {\n String program = Utils.getListBoxItemText(listBox_Program);\n ArrayList<String> typeList = Classification.getTypeList(program);\n listBox_Type.clear();\n for (String item : typeList) {\n listBox_Type.addItem(item);\n }\n listBox_Type.setItemSelected(0, true);\n listBox_Type.setEnabled(typeList.size() > 1);\n listBox_Type.onBrowserEvent(Event.getCurrentEvent());\n }", "private void notifyAfterTextChanged() {\n removeMessages(ON_TEXT_CHANGED);\n sendEmptyMessageDelayed(ON_TEXT_CHANGED, DELAY_IN_MILLISECOND);\n }", "private void battleTickStatuses(){\n updateStatuses(battleEnemies);\n updateStatuses(battleAllies);\n }", "private void updateViews() {\n String twtText = tweetInput.getText().toString();\n int elapsedLength = MAX_CHAR_COUNT - twtText.length();\n if (elapsedLength >= 0 && elapsedLength < MAX_CHAR_COUNT) {\n btnTweet.setEnabled(true);\n charCounter.setTextColor(getResources().getColor(COLOR_GRAY));\n } else {\n btnTweet.setEnabled(false);\n charCounter.setTextColor(getResources().getColor(COLOR_RED));\n }\n\n charCounter.setText(\"\" + elapsedLength);\n }", "public void handleStatusUpdated() {\n copyWifiStates();\n notifyListenersIfNecessary();\n }", "private void notifyObservers() {\n BinStatusUpdate newStatus = buildNewStatus();\n observers.iterator().forEachRemaining(binStatusUpdateStreamObserver -> binStatusUpdateStreamObserver.onNext(newStatus));\n }", "public abstract void updateStatus(PresenceType presenceType);", "public void refreshSuggestionList() {\n \t\tif (isAttached()) {\n \t\t\trefreshSuggestions();\n \t\t}\n \t}", "private void update() {\n if (mSuggestionsPref != null) {\n mSuggestionsPref.setShouldDisableView(mSnippetsBridge == null);\n boolean suggestionsEnabled =\n mSnippetsBridge != null && mSnippetsBridge.areRemoteSuggestionsEnabled();\n mSuggestionsPref.setChecked(suggestionsEnabled\n && PrefServiceBridge.getInstance().getBoolean(\n Pref.CONTENT_SUGGESTIONS_NOTIFICATIONS_ENABLED));\n mSuggestionsPref.setEnabled(suggestionsEnabled);\n mSuggestionsPref.setSummary(suggestionsEnabled\n ? R.string.notifications_content_suggestions_summary\n : R.string.notifications_content_suggestions_summary_disabled);\n }\n\n mFromWebsitesPref.setSummary(ContentSettingsResources.getCategorySummary(\n ContentSettingsType.CONTENT_SETTINGS_TYPE_NOTIFICATIONS,\n PrefServiceBridge.getInstance().isCategoryEnabled(\n ContentSettingsType.CONTENT_SETTINGS_TYPE_NOTIFICATIONS)));\n }", "public interface TypingListener {\n void onTyping(String roomId, String user, Boolean istyping);\n}", "public void notifyListeners(Type type) {\n for (WorkspaceListener listener : listeners) {\n listener.update(type);\n }\n }", "void notifyTextProcessStatusUpdate(TextProcessStatusEvent evt) {\n\n\t\tfor (TextProcessStatusListener l : listeners\n\t\t\t\t.getListeners(TextProcessStatusListener.class)) {\n\n\t\t\tl.update(evt);\n\t\t}\n\t}", "public void reloadAll() {\n for (String str : this.mTunableLookup.keySet()) {\n String stringForUser = Settings.Secure.getStringForUser(this.mContentResolver, str, this.mCurrentUser);\n for (TunerService.Tunable tunable : this.mTunableLookup.get(str)) {\n tunable.onTuningChanged(str, stringForUser);\n }\n }\n }", "private void updateRefreshTokenUI(boolean status) {\n\n TextView rt = (TextView) findViewById(R.id.rtStatus);\n\n if (rt.getText().toString().contains(getString(R.string.noToken))\n || rt.getText().toString().contains(getString(R.string.tokenPresent))) {\n rt.setText(R.string.RT);\n }\n if (status) {\n rt.setText(rt.getText() + \" \" + getString(R.string.tokenPresent));\n } else {\n rt.setText(rt.getText() + \" \" + getString(R.string.noToken) + \" or Invalid\");\n }\n }", "UpdateType updateType();", "void update(Type type);", "public void beginTyping(int index, boolean reset) {\r\n\t\tif(reset) { strTyped[index] = \"\"; }\r\n\t\tisTyping[index] = true;\r\n\t}", "protected void updateTypeList() {\n\t sequenceLabel.setText(\"Sequence = \" + theDoc.theSequence.getId());\n\t typeList.setListData(theDoc.theTypes);\n\t signalList.setListData(nullSignals);\n\t valueField.setEnabled(false);\n\t valueList.setEnabled(false);\n }", "void onStatusUpdate(int status);", "public void update() {\n\t\t\n\t\tif (!editable) {\n\t\t\ttyping = false;\n\t\t}\n\t\t\n\t\t\n\t\tif (System.currentTimeMillis() - cursorTimer > 600) {\n\t\t\tcursorTimer = System.currentTimeMillis();\n\t\t\tcursorShow = !cursorShow;\n\t\t}\n\t\t\n\t\tif (editable) {\n\t\t\tRectangle rect = new Rectangle(position, size);\n\t\t\tif (rect.contains(Mouse.getVector())) {\n\t\t\t\tif (Mouse.left.pressed() && !typing) {\n\t\t\t\t\ttyping = true;\n\t\t\t\t\tcursorTimer = System.currentTimeMillis();\n\t\t\t\t\tcursorShow = true;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse {\n\t\t\t\tif (Mouse.left.pressed() && typing && !justStartedTyping) {\n\t\t\t\t\ttyping = false;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (typing) {\n\t\t\t\tif (Keyboard.keyWasTyped()) {\n\t\t\t\t\tchar typedChar = Keyboard.getTypedChar();\n\t\t\t\t\tif (Keyboard.enter.pressed()) {\n\t\t\t\t\t\ttyping = false;\n\t\t\t\t\t}\n\t\t\t\t\telse if (typedChar == (char)8) {\n\t\t\t\t\t\tif (!text.isEmpty()) {\n\t\t\t\t\t\t\tcursorTimer = System.currentTimeMillis();\n\t\t\t\t\t\t\tcursorShow = true;\n\t\t\t\t\t\t\ttext = text.substring(0, text.length() - 1);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse if (text.length() < maxLength) {\n\t\t\t\t\t\ttext += typedChar;\n\t\t\t\t\t\tcursorTimer = System.currentTimeMillis();\n\t\t\t\t\t\tcursorShow = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tjustStartedTyping = false;\n\t}", "public void refresh() {\n // The current time of this call\n long now = System.currentTimeMillis();\n\n // Get Config Values\n final int SAMPLE_TIME = (int)(config.getDouble(\"casts.sampletime\") * 1000);\n final int MAX_WARN = config.getInt(\"casts.max.warn\");\n final int MAX_STOP = config.getInt(\"casts.max.stop\");\n final boolean USE_ADMIN = config.getBoolean(\"notifs.useAdminChannel\");\n\n // Ignore any casts that are too old\n while(0 < casts.size() && SAMPLE_TIME < (now - casts.getFirst())) {\n casts.removeFirst();\n }\n\n // Get number of casts in sample time\n int size = casts.size();\n\n // Check to see how many casts have happened\n if(size > MAX_STOP) {\n // Write message about lava cast being detected\n if(!cancelled) {\n Broadcast.critical(String.format(\"Lavacasting At Spawn Detected! [%d, %d]\", lastX, lastY), USE_ADMIN);\n Broadcast.critical(\"Temporarily Disabled Lava & Water Interactions At Spawn!\", false);\n cancelled = true;\n }\n\n cancelled = true;\n\n } else if (size > MAX_WARN) {\n // Only write warning if the cast hasnt been cancelled\n if(!cancelled) {\n long age = (now - casts.getFirst()) / 1000;\n String msg = String.format(\"%d casts at spawn in past %d secs [%d, %d]\", size, age, lastX, lastY);\n Broadcast.warning(msg, USE_ADMIN);\n } \n } else {\n // Uncancel once the value gets low enough\n if(cancelled) {\n Broadcast.good(\"Enabled Lava & Water Interactions At Spawn!\", false);\n cancelled = false;\n }\n }\n }", "private void refreshText() {\n mTagsCountText.setText(String.valueOf(tagList.size()));\n\n }", "public void onStatus(Status status) {\n \t\t\t\t_receivedStatus++;\n \t\t\t\tif(!_statusQueue.offer(status)){\n \t\t\t\t\t_lostStatus++; \n \t\t\t\t}\t\t\t\n \t\t\t}", "@Override\n public void isTypingState(IRainbowContact other, boolean isTyping, String roomId) {\n }", "public void syncMessages() {\n\t\tArrayList<ChatEntity> nonSyncedChatEntities = new ArrayList<>();\n\t\tnonSyncedChatEntities.addAll(chatViewModel.loadChatsWithSyncStatus(false, nameID));\n\n\t\tif (nonSyncedChatEntities.size() > 0) {\n\t\t\tfor (int i = 0; i < nonSyncedChatEntities.size(); i++) {\n\t\t\t\tChatEntity chatEntity = nonSyncedChatEntities.get(i);\n\t\t\t\tchatEntity.setSynced(true);\n\t\t\t\tchatViewModel.updateSource(chatEntity);\n\t\t\t\tgetChatResult(nonSyncedChatEntities.get(i).getMessage());\n\t\t\t}\n\t\t}\n\t}", "void onStatusChanged(Status newStatus);", "@Override\n public void onReceive(Context context, Intent intent) {\n if (Intent.ACTION_LOCALE_CHANGED.equals(intent.getAction())) {\n // Refresh all shortcut to update the labels.\n // (Right now shortcut labels don't contain localized strings though.)\n new ShortcutHelper(context).refreshShortcuts(/*force=*/ true);\n }\n }", "private void updateType() {\n /*\n r3 = this;\n org.telegram.ui.Components.RecyclerListView r0 = r3.gridView\n int r0 = r0.getChildCount()\n if (r0 <= 0) goto L_0x0036\n org.telegram.ui.Components.RecyclerListView r0 = r3.gridView\n r1 = 0\n android.view.View r0 = r0.getChildAt(r1)\n org.telegram.ui.Components.RecyclerListView r2 = r3.gridView\n androidx.recyclerview.widget.RecyclerView$ViewHolder r2 = r2.findContainingViewHolder(r0)\n if (r2 == 0) goto L_0x0036\n int r2 = r2.getAdapterPosition()\n if (r2 == 0) goto L_0x0025\n org.telegram.ui.Components.RecyclerListView r0 = r3.gridView\n int r0 = r0.getPaddingTop()\n int r0 = -r0\n goto L_0x0031\n L_0x0025:\n org.telegram.ui.Components.RecyclerListView r2 = r3.gridView\n int r2 = r2.getPaddingTop()\n int r2 = -r2\n int r0 = r0.getTop()\n int r0 = r0 + r2\n L_0x0031:\n androidx.recyclerview.widget.GridLayoutManager r2 = r3.stickersLayoutManager\n r2.scrollToPositionWithOffset(r1, r0)\n L_0x0036:\n r0 = 1\n r3.checkDocuments(r0)\n return\n */\n throw new UnsupportedOperationException(\"Method not decompiled: org.telegram.ui.Components.StickerMasksAlert.updateType():void\");\n }", "public synchronized static void internal_updateKnownTypes() {\r\n Set<ChangeLogType> changeLogTypes = GrouperDAOFactory.getFactory().getChangeLogType().findAll();\r\n GrouperCache<MultiKey, ChangeLogType> newTypes = new GrouperCache<MultiKey, ChangeLogType>(\r\n ChangeLogTypeFinder.class.getName() + \".typeCache\", 10000, false, 60*10, 60*10, false);\r\n \r\n Map<String, ChangeLogType> newTypesById = new HashMap<String, ChangeLogType>();\r\n \r\n for (ChangeLogType changeLogType : GrouperUtil.nonNull(changeLogTypes)) {\r\n newTypes.put(new MultiKey(changeLogType.getChangeLogCategory(), changeLogType.getActionName()), changeLogType);\r\n newTypesById.put(changeLogType.getId(), changeLogType);\r\n }\r\n \r\n //add builtins if necessary\r\n internal_updateBuiltinTypesOnce(newTypes, newTypesById);\r\n \r\n types = newTypes;\r\n typesById = newTypesById;\r\n }", "private void update() {\n\t\twhile(words.size()<length) {\n\t\t\twords.add(new Word());\n\t\t}\n\t}", "@Override\r\n\t\tpublic void setstatuschanged(int status) {\n\t\t\tLoger.d(\"test5\",\"gonggao add refresh\");\r\n\t\t\tif(NetworkService.networkBool){\r\n\t\t\t\tforumtopicLists.clear();\r\n\t\t\t\tRequestParams reference = new RequestParams();\r\n\t\t\t\treference.put(\"community_id\", App.sFamilyCommunityId);\t\t\r\n\t\t\t\treference.put(\"user_id\", App.sUserLoginId);\t\r\n\t\t\t\treference.put(\"count\", 6);\t\r\n\t\t\t\treference.put(\"category_type\",App.BAOXIU_TYPE);\r\n\t\t\t\tif(uncompletedbaoxiu.getTag().toString().equals(\"1\")){\r\n\t\t\t\t\treference.put(\"process_type\",1);\r\n\t\t\t\t}else{\r\n\t\t\t\t\treference.put(\"process_type\",3);\r\n\t\t\t\t}\r\n\t\t\t\treference.put(\"tag\",\"getrepair\");\r\n\t\t\t\treference.put(\"apitype\",IHttpRequestUtils.APITYPE[4]);\r\n\t\t\t\tLoger.i(\"test5\", \"community_id=\"+App.sFamilyCommunityId+\"user_id=\"+App.sUserLoginId +App.BAOXIU_TYPE +uncompletedbaoxiu.getTag().toString().equals(\"1\")+IHttpRequestUtils.APITYPE[4]);\r\n\t\t\t\t//reference.put(\"key_word\",searchmessage);\r\n\t\t\t\tAsyncHttpClient client = new AsyncHttpClient();\r\n\t\t\t\tclient.post(IHttpRequestUtils.URL+IHttpRequestUtils.YOULIN,\r\n\t\t\t\t\t\treference, new JsonHttpResponseHandler() {\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tpublic void onSuccess(int statusCode, Header[] headers,\r\n\t\t\t\t\t\t\tJSONArray response) {\r\n\t\t\t\t\t\t// TODO Auto-generated method stub 18945051215\r\n\t\t\t\t\t\trepairInitLayout.setVisibility(View.GONE);\r\n\t\t\t\t\t\trepairInitBelowLayout.setVisibility(View.VISIBLE);\r\n\t\t\t\t\t\trepairInitBelow2Layout.setVisibility(View.VISIBLE);\r\n\t\t\t\t\t\tgetTopicDetailsInfos(response,\"init\");\r\n\t\t\t\t\t\tFlag = \"ok\";\r\n\t\t\t\t\t\tcRequesttype = true;\r\n//\t\t\t\t\t\tmaddapter.notifyDataSetChanged();\r\n\t\t\t\t\t\tsuper.onSuccess(statusCode, headers, response);\r\n\t\t\t\t\t}\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tpublic void onSuccess(int statusCode, Header[] headers,\r\n\t\t\t\t\t\t\tJSONObject response) {\r\n\t\t\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\t\t\tMessage message = new Message();\r\n\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\tFlag = response.getString(\"flag\");\r\n\t\t\t\t\t\t\tString empty=response.getString(\"empty\");\r\n\t\t\t\t\t\t\tLoger.i(\"test5\", \"5555555555--->\"+response.toString());\r\n\t\t\t\t\t\t\tif(\"no\".equals(empty)){\r\n\t\t\t\t\t\t\t\tcRequesttype = true;\r\n\t\t\t\t\t\t\t\trepairInitLayout.setVisibility(View.VISIBLE);\r\n\t\t\t\t\t\t\t\trepairInitBelowLayout.setVisibility(View.GONE);\r\n\t\t\t\t\t\t\t\trepairInitBelow2Layout.setVisibility(View.GONE);\r\n\t\t\t\t\t\t\t\tLoger.i(\"test5\", \"baoxiutopic is empty yes1111111111111\");\r\n\t\t\t\t\t\t\t}else if(\"ok\".equals(empty)){\r\n\t\t\t\t\t\t\t\trepairInitLayout.setVisibility(View.GONE);\r\n\t\t\t\t\t\t\t\trepairInitBelowLayout.setVisibility(View.VISIBLE);\r\n\t\t\t\t\t\t\t\trepairInitBelow2Layout.setVisibility(View.VISIBLE);\r\n\t\t\t\t\t\t\t\tLoger.i(\"test5\", \"baoxiutopic is empty no\");\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t} catch (JSONException e) {\r\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tsuper.onSuccess(statusCode, headers, response);\r\n\t\t\t\t\t}\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tpublic void onFailure(int statusCode, Header[] headers,\r\n\t\t\t\t\t\t\tString responseString, Throwable throwable) {\r\n\t\t\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\t\t\tnew ErrorServer(PropertyRepairActivity.this, responseString.toString());\r\n\t\t\t\t\t\tsuper.onFailure(statusCode, headers, responseString, throwable);\r\n\t\t\t\t\t}\r\n\t\t\t\t});\r\n\t\t\t\t\r\n\t\t\t\tLoger.d(\"test5\", \"gongao cRequesttype=\");\r\n\t\t\t\t/*********************refresh*********************/\r\n\t\t\t\tLoger.d(\"test5\", \"gongao cRequesttype=\"+cRequesttype+\"Flag=\"+Flag);\r\n\t\t // TODO Auto-generated method stub\r\n\t\t\t\tnew Thread(new Runnable() {\r\n\t\t\t\t\tpublic void run() {\r\n\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\tLong currenttime = System.currentTimeMillis();\r\n\t\t\t\t\t\t\twhile (PropertyRepairActivity.this.getSupportFragmentManager().findFragmentByTag(\r\n\t\t\t\t\t\t\t\t\t\"myfragment\") == null) {\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\twhile(!cRequesttype ){\r\n\t\t\t\t\t\t\t\tif((System.currentTimeMillis()-currenttime)>App.WAITFORHTTPTIME+5000){\r\n\t\t\t\t\t\t\t\t\tcRequesttype = 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\tPropertyRepairActivity.this.runOnUiThread(new Runnable() {\r\n\t\t\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\t\t\tpublic void run() {\r\n\t\t\t\t\t\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\t\t\t\t\t\tLoger.d(\"test5\", \"gongao cRequesttype=\"+cRequesttype+\"Flag=\"+Flag);\r\n\t\t\t\t\t\t\t\t\tif(cRequesttype&& (Flag.equals(\"ok\")||Flag.equals(\"no\"))){\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\tLoger.d(\"test5\", \"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\");\r\n\t\t\t\t\t\t\t\t\t\tfinal PullToRefreshListFragment finalfrag9 = (PullToRefreshListFragment) PropertyRepairActivity.this.getSupportFragmentManager()\r\n\t\t\t\t\t\t\t\t\t\t\t\t.findFragmentByTag(\"myfragment\");\r\n\t\t\t\t\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\t\t\t\t\tmPullRefreshListView = finalfrag9.getPullToRefreshListView();\r\n\t\t\t\t\t\t\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\t\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t\t\t\t\t\t\treturn;\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t// Set a listener to be invoked when the list should be\r\n\t\t\t\t\t\t\t\t\t\t// refreshed.\r\n\t\t\t\t\t\t\t\t\t\tmPullRefreshListView.setMode(Mode.PULL_FROM_END);\r\n\t\t\t\t\t\t\t\t\t\tmPullRefreshListView.setOnRefreshListener(PropertyRepairActivity.this);\r\n\t\t\t\t\t\t\t\t\t\t// You can also just use\r\n\t\t\t\t\t\t\t\t\t\t// mPullRefreshListFragment.getListView()\r\n\t\t\t\t\t\t\t\t\t\tactualListView = mPullRefreshListView\r\n\t\t\t\t\t\t\t\t\t\t\t\t.getRefreshableView();\r\n\t\t\t\t\t\t\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\t\t\t\t\t\t\tactualListView.setDividerHeight(0);\r\n//\t\t\t\t\t\t\t\t\t\tactualListView.setDivider(PropertyGonggaoActivity.this.getResources().getDrawable(R.drawable.fengexian));\r\n\t\t\t\t\t\t\t\t\t\tactualListView.setAdapter(maddapter);\r\n\t\t\t\t\t\t\t\t\t\tactualListView.setLayoutParams(new FrameLayout.LayoutParams(LinearLayout.LayoutParams.MATCH_PARENT, LinearLayout.LayoutParams.MATCH_PARENT));\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\tfinalfrag9.setListShown(true);\r\n\t\t\t\t\t\t\t\t\t\t//Loger.i(\"youlin\",\"11111111111111111->\"+((ForumTopic)forumtopicLists.get(0)).getSender_id()+\" \"+App.sUserLoginId);\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\tcRequesttype = false;\r\n\t\t\t\t\t\t\t\t\tFlag=\"none\";\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} catch (Exception e) {\r\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t\t}\r\n\r\n\r\n\t\t\t\t\t}\r\n\t\t\t\t}).start();\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t}", "public synchronized void startUpdates(){\n mStatusChecker.run();\n }", "public void reload() {\n waiterNotifications.clear();\n waiterNotifications.addAll(Local.getInstance().getWaiterNotificationList());\n notifyDataSetChanged();\n\n }", "public void listener() {\n\t\tif (this.command.getMode().equals(Command.MODE_TRACK)) {\n\t\t\tFilterQuery filterQuery = new FilterQuery();\n\t\t\tfilterQuery.track(this.command.getKeywords().toArray(new String[this.command.getKeywords().size()]));\n\t\t\ttwitterStream.addListener(myListener);\n\t\t\ttwitterStream.filter(filterQuery);\n\t\t} else if (this.command.getMode().equals(Command.MODE_SAMPLE)) {\n\t\t\ttwitterStream.addListener(myListener);\n\t\t\ttwitterStream.sample();\n\t\t} else {\n\t\t\t// do search\n\t\t}\n\t}", "public void refreshSmssent() {\n //this is a cursor to go through and get all of your recieved messages\n ContentResolver contentResolver = getContentResolver();\n Cursor smssentCursor = contentResolver.query(Uri.parse(\"content://sms/sent\"),\n null, null, null, null);\n //this gets the message itsself\n int indexBody = smssentCursor.getColumnIndex(\"body\");\n //this gets the address the message came from\n int indexAddress = smssentCursor.getColumnIndex(\"address\");\n int indexDate = smssentCursor.getColumnIndex(\"date\");\n //get messages the user sent\n if (indexBody < 0 || !smssentCursor.moveToFirst())\n return;\n do {\n if (smssentCursor.getString(indexAddress).equals(number)|| smssentCursor.getString(indexAddress).equals(\"+1\"+number)){\n ConversationObject c = new ConversationObject(smssentCursor.getString(indexBody), \"\",smssentCursor.getString(indexAddress), smssentCursor.getLong(indexDate));\n sent.add(c);\n }\n } while (smssentCursor.moveToNext());\n }", "private void statusCheck() {\n\t\tif(status.equals(\"waiting\")) {if(waitingPlayers.size()>1) status = \"ready\";}\n\t\tif(status.equals(\"ready\")) {if(waitingPlayers.size()<2) status = \"waiting\";}\n\t\tif(status.equals(\"start\")) {\n\t\t\tif(players.size()==0) status = \"waiting\";\n\t\t}\n\t\tview.changeStatus(status);\n\t}", "private void fillStatusList() {\n StatusList = new ArrayList<>();\n StatusList.add(new StatusItem(\"Single\"));\n StatusList.add(new StatusItem(\"Married\"));\n }", "public void receiveMyBtStatus(String status) {\n \t\n \tfinal String s = status;\n \t\n \t\n// \tLog.d(\"handler\", \"receiveMyBtStatus\"); \t\n mHandler.post(new Runnable() {\n @Override\n public void run() {\n // This gets executed on the UI thread so it can safely modify Views\n \tBTstatusTextView.setText(s);\n \t\n \tif(s.equals(\"BT-Ready\") && !(poll.getVisibility() == View.VISIBLE)){\n \t\tLog.d(\"poll buttion\", \"setting visible\");\n \t//Ready to poll\n \t\tpoll.setVisibility(View.VISIBLE);\n \t\n }\n }\n });\n }", "public void receiveMyStatus(int status) {\n \t\n \tfinal int s = status;\n// \tLog.d(\"handler\", \"receiveMyStatus\");\n mHandler.post(new Runnable() {\n @Override\n public void run() {\n // This gets executed on the UI thread so it can safely modify Views\n \tstatusTextView.setText(statusText(s));\n }\n });\n }", "@Override\n public void run() {\n \tstatusTextView.setText(statusText(s));\n }", "public void onRefresh() {\n\t\t\t\tnew AsyncTask<Void, Void, Void>() {\r\n\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tprotected Void doInBackground(Void... params) {\r\n\t\t\t\t\t\tlist.clear();\r\n\t\t\t\t\t\tnew Getliuyan().start();\r\n\t\t\t\t\t\treturn null;\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tprotected void onPostExecute(Void result) {\r\n\t\t\t\t\t\thandler.sendEmptyMessage(2);\r\n\t\t\t\t\t};\r\n\r\n\t\t\t\t}.execute();\r\n\t\t\t}", "protected void updateDeviceTypesTree(final IProgressObserver observer) {\n final TreeManagementModel model =\n mgrModels.get(TreeTypeEnum.DEVICE_TYPES_TREE);\n if (model.isEmpty()) {\n createDeviceTypesTree(observer);\n return;\n }\n\n if (model.isDirty()) {\n DeviceTypesTreeSynchronizer treeUpdater =\n new DeviceTypesTreeSynchronizer(mSubnetApi);\n treeUpdater.updateTree(model.getTree(), model.getMonitors(),\n observer);\n model.setDirty(false);\n }\n\n if (observer != null) {\n observer.onFinish();\n }\n }", "@Override\n public void notifyStatusObservers() {\n for(StatusObserver statusObserver : statusObservers){\n //TODO maybe get status render info from current selection instead of entities. This would remove the double calls to functions in EntityOwnership\n StatusRenderInformation temp = entities.returnStatusRenderInformation();\n statusObserver.update(entities.returnStatusRenderInformation());\n }\n }", "public void refresh() {\r\n\r\n if (searchResultAdapter != null\r\n && preferencesManager.getProperty(\r\n PreferencesManager.IS_THEME_CHANGED, false)) {\r\n\r\n searchResultAdapter.notifyDataSetChanged();\r\n }\r\n\r\n }", "@Override\n\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\ttwitter.setSource(\"keyrani\");\t\n\t\t\t\t\ttry{\n\t\t\t\t\t\ttwitter.updateStatus(status.getText().toString());\n\t\t\t\t\t\t\n\t\t\t\t\t}catch (Repetition e) {\n\t\t\t\t\t\t Toast.makeText(TwitUpdate.this, \"status tdk boleh sama\", Toast.LENGTH_SHORT).show();\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t}", "public void tweet() {\r\n try {\r\n\r\n String twet = JOptionPane.showInputDialog(\"Tweett:\");\r\n Status status = twitter.updateStatus(twet);\r\n System.out.println(\"Successfully updated the status to [\" + status.getText() + \"].\");\r\n } catch (TwitterException ex) {\r\n java.util.logging.Logger.getLogger(MetodosTwit.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }", "void clearMarkers()\n/* */ {\n/* 1019 */ synchronized (this) {\n/* 1020 */ this.typeAheadMarkers.clear();\n/* */ }\n/* */ }", "public void detectAndSendChanges()\r\n\t{\r\n\t\t super.detectAndSendChanges();\r\n\r\n\t\t for (int i = 0; i < this.crafters.size(); ++i)\r\n\t\t {\r\n\t\t\t ICrafting icrafting = (ICrafting)this.crafters.get(i);\r\n\t\t\t icrafting.sendProgressBarUpdate(this, 0, this.enchantLevels[0]);\r\n\t\t\t icrafting.sendProgressBarUpdate(this, 1, this.enchantLevels[1]);\r\n\t\t\t icrafting.sendProgressBarUpdate(this, 2, this.enchantLevels[2]);\r\n\t\t }\r\n\t}", "@Override\r\n\tpublic void autoCompletedUpdated() {\r\n\t\tmAdapter = new ArrayAdapter<String>(this, R.layout.sdk_list_entry, R.id.sdk_list_entry_text, mModel.getAutocompleteSuggestions());\r\n\r\n\t\tmListView.setAdapter(mAdapter);\r\n\t\tmListView.invalidate();\r\n\t\t\r\n\t\tmLayout.hideText();\r\n\t\t\r\n\t}", "private void SelectionChanged(String type) {\n try {\n VaadinSession.getCurrent().getLockInstance().lock();\n Listeners_Map.values().stream().forEach((filter) -> {\n filter.selectionChanged(type);\n });\n } finally {\n VaadinSession.getCurrent().getLockInstance().unlock();\n busyTask.setVisible(false);\n }\n\n }", "@Override\n public void refresh() {\n refresher.enqueueRefresh();\n }", "private void refreshList () {\n List<DisplayedUserCommand> list = new ArrayList<DisplayedUserCommand>();\n for (DisplayedUserCommand command : myUserDefinedCommandsList) {\n list.add(command);\n }\n myUserDefinedCommandsList.clear();\n myUserDefinedCommandsList.addAll(list);\n }", "public void refreshSmsInbox() {\n //this is a cursor to go through and get all of your recieved messages\n ContentResolver contentResolver = getContentResolver();\n Cursor smsInboxCursor = contentResolver.query(Uri.parse(\"content://sms/inbox\"),\n null, null, null, null);\n //this gets the message itsself\n int indexBody = smsInboxCursor.getColumnIndex(\"body\");\n //this gets the address the message came from\n int indexAddress = smsInboxCursor.getColumnIndex(\"address\");\n //gets the date/time value so we can sort the messages in the correct order\n int indexDate = smsInboxCursor.getColumnIndex(\"date\");\n //loop through and get received messages\n if (indexBody < 0 || !smsInboxCursor.moveToFirst())\n return;\n do {\n if (smsInboxCursor.getString(indexAddress).equals(number)||\n smsInboxCursor.getString(indexAddress).equals(\"+1\"+number)){\n ConversationObject c = new ConversationObject(\"\",smsInboxCursor.getString(indexBody),smsInboxCursor.getString(indexAddress),smsInboxCursor.getLong(indexDate));\n recieved.add(c);\n }\n } while (smsInboxCursor.moveToNext());\n }", "private void refreshList() {\n List<PullRequest> storedPullRequests = mDataManager.getPullRequests();\n\n mPullRequests.clear();\n\n for (PullRequest pullRequest : storedPullRequests) {\n mPullRequests.add(pullRequest);\n }\n\n mAdapter.notifyDataSetChanged();\n\n mDialog.dismiss();\n }", "public void updateStatus(String s1)\n {\n s = s1;\n notifyObservers();\n }", "@Override\n public void update() {\n updateBuffs();\n }", "@Override\n public void onStatusChange(int status) {\n }", "@Override\n public void onStatus(Status status) {\n // The EventBuilder is used to build an event using the headers and\n // the raw JSON of a tweet\n // shouldn't log possibly sensitive customer data\n //logger.debug(\"tweet arrived\");\n\n headers.put(\"timestamp\",String.valueOf(status.getCreatedAt().getTime()));\n\n Event event1;\n event1 = EventBuilder.withBody(TwitterObjectFactory.getRawJSON(status).getBytes(),headers);\n //event2 = EventBuilder.withBody(Integer.toString(status.getRetweetCount()),(Charset)headers);\n //event3 = EventBuilder.withBody(status.getText().getBytes(), headers);\n channel.processEvent(event1);\n //channel.processEvent(event2);\n\n }", "private void requestWeatherTypes() {\n SharedPreferences preferences = getSharedPreferences(CommonConstants.APP_SETTINGS, MODE_PRIVATE);\n String url = \"https://api.openweathermap.org/data/2.5/forecast?\" +\n \"id=\" + input.get(CommonConstants.ARRIVAL_CITY_ID) +\n \"&appid=\" + CommonConstants.OWM_APP_ID +\n \"&lang=\" + Locale.getDefault().getLanguage() +\n \"&units=\" + preferences.getString(CommonConstants.TEMPERATURE_UNIT, \"Standard\");\n ForecastListener listener = new ForecastListener(weatherList -> {\n try {\n WeatherTypeMapper mapper = new WeatherTypeMapper();\n fillPreview(mapper.from(weatherList));\n if (input.containsKey(CommonConstants.SELECTIONS)) {\n //noinspection unchecked\n setSelections((List<Settings.Selection>) input.get(CommonConstants.SELECTIONS));\n }\n } catch (ExecutionException | InterruptedException e) {\n Log.e(TAG, \"onSuccess: \" + e.getMessage(), e);\n }\n });\n JsonObjectRequest request = new JsonObjectRequest(Request.Method.GET, url, null, listener, null);\n TravelRequestQueue.getInstance(this).addRequest(request);\n }", "private void setTweetTextListener() {\n mTvTweetLength.setTextColor(Color.BLACK);\n mEtTweet.addTextChangedListener(new TextWatcher() {\n @Override\n public void beforeTextChanged(CharSequence s, int start, int count, int after) {\n }\n\n @Override\n public void onTextChanged(CharSequence s, int start, int before, int count) {\n long length = 0;\n if (s.length() > 140) {\n mTvTweetLength.setTextColor(Color.RED);\n length = 140 - s.length();\n mBtnTweet.setEnabled(false);\n } else {\n mTvTweetLength.setTextColor(Color.BLACK);\n length = s.length();\n mBtnTweet.setEnabled(true);\n }\n\n mTvTweetLength.setText(Long.toString(length));\n }\n\n @Override\n public void afterTextChanged(Editable s) {\n }\n });\n }", "public static void _FlushPendingInputItems(TextEditor This)\r\n { \r\n TextEditorThreadLocalStore threadLocalStore; \r\n\r\n if (This.TextView != null) \r\n {\r\n This.TextView.ThrottleBackgroundTasksForUserInput();\r\n }\r\n\r\n threadLocalStore = TextEditor._ThreadLocalStore;\r\n\r\n if (threadLocalStore.PendingInputItems != null) \r\n {\r\n try \r\n {\r\n for (int i = 0; i < threadLocalStore.PendingInputItems.Count; i++)\r\n {\r\n ((InputItem)threadLocalStore.PendingInputItems[i]).Do(); \r\n\r\n // After the first dequeue, clear the bit that tracks if \r\n // any events are handled after ctl+shift (change flow direction keyboard hotkey). \r\n threadLocalStore.PureControlShift = false;\r\n } \r\n }\r\n finally\r\n {\r\n threadLocalStore.PendingInputItems.Clear(); \r\n }\r\n } \r\n\r\n // Clear the bit that tracks if any events are handled after\r\n // ctl+shift (change flow direction keyboard hotkey) one last \r\n // time, in case the queue was empty.\r\n //\r\n // Because we only call this method in preparation for handling\r\n // a Command, we want this bit cleared. \r\n threadLocalStore.PureControlShift = false;\r\n }", "public static void updateScanningStatusPref(Context context, int status) {\n SharedPreferences.Editor editor = Prefs.getPreferences(context).edit();\n editor.putInt(Consts.START_BUTTON_STATUS_KEY, status).commit();\n }", "@Override\n public void updateStatus(Status status) {\n this.status = status;\n }", "void firePresenceStatusChanged(Presence presence)\n {\n if(storeEvents && storedPresences != null)\n {\n storedPresences.add(presence);\n return;\n }\n\n try\n {\n Jid userID = presence.getFrom().asBareJid();\n OperationSetMultiUserChat mucOpSet =\n parentProvider.getOperationSet(\n OperationSetMultiUserChat.class);\n if(mucOpSet != null)\n {\n List<ChatRoom> chatRooms\n = mucOpSet.getCurrentlyJoinedChatRooms();\n for(ChatRoom chatRoom : chatRooms)\n {\n if(chatRoom.getName().equals(userID.toString()))\n {\n userID = presence.getFrom();\n break;\n }\n }\n }\n\n if (logger.isDebugEnabled())\n logger.debug(\"Received a status update for buddy=\" + userID);\n\n // all contact statuses that are received from all its resources\n // ordered by priority(higher first) and those with equal\n // priorities order with the one that is most connected as\n // first\n TreeSet<Presence> userStats = statuses.get(userID);\n if(userStats == null)\n {\n userStats = new TreeSet<>(new Comparator<Presence>()\n {\n public int compare(Presence o1, Presence o2)\n {\n int res = o2.getPriority() - o1.getPriority();\n\n // if statuses are with same priorities\n // return which one is more available\n // counts the JabberStatusEnum order\n if(res == 0)\n {\n res = jabberStatusToPresenceStatus(\n o2, parentProvider).getStatus()\n - jabberStatusToPresenceStatus(\n o1, parentProvider).getStatus();\n // We have run out of \"logical\" ways to order\n // the presences inside the TreeSet. We have\n // make sure we are consinstent with equals.\n // We do this by comparing the unique resource\n // names. If this evaluates to 0 again, then we\n // can safely assume this presence object\n // represents the same resource and by that the\n // same client.\n if(res == 0)\n {\n res = o1.getFrom().compareTo(\n o2.getFrom());\n }\n }\n\n return res;\n }\n });\n statuses.put(userID, userStats);\n }\n else\n {\n Resourcepart resource = presence.getFrom().getResourceOrEmpty();\n\n // remove the status for this resource\n // if we are online we will update its value with the new\n // status\n for (Iterator<Presence> iter = userStats.iterator();\n iter.hasNext();)\n {\n Presence p = iter.next();\n if (p.getFrom().getResourceOrEmpty().equals(resource))\n {\n iter.remove();\n }\n }\n }\n\n if(!jabberStatusToPresenceStatus(presence, parentProvider)\n .equals(\n parentProvider\n .getJabberStatusEnum()\n .getStatus(JabberStatusEnum.OFFLINE)))\n {\n userStats.add(presence);\n }\n\n Presence currentPresence;\n if (userStats.size() == 0)\n {\n currentPresence = presence;\n\n /*\n * We no longer have statuses for userID so it doesn't make\n * sense to retain (1) the TreeSet and (2) its slot in the\n * statuses Map.\n */\n statuses.remove(userID);\n }\n else\n currentPresence = userStats.first();\n\n ContactJabberImpl sourceContact\n = ssContactList.findContactById(userID);\n\n if (sourceContact == null)\n {\n logger.warn(\"No source contact found for id=\" + userID);\n return;\n }\n\n // statuses may be the same and only change in status message\n sourceContact.setStatusMessage(currentPresence.getStatus());\n\n updateContactStatus(\n sourceContact,\n jabberStatusToPresenceStatus(\n currentPresence, parentProvider));\n }\n catch (IllegalStateException | IllegalArgumentException ex)\n {\n logger.error(\"Failed changing status\", ex);\n }\n }", "private void populateStatus() {\n\t\t\n\t\tstatusList.add(new Status(MainActivity.profileUrls[1], \"Mohamed\", \"14 minutes ago\"));\n\t\tstatusList.add(new Status(MainActivity.profileUrls[4], \"Ahmed Adel\", \"10 minutes ago\"));\n\t\tstatusList.add(new Status(MainActivity.profileUrls[0], \"Manar\", \"Yesterday, 5:08 PM\"));\n\t\tstatusList.add(new Status(MainActivity.profileUrls[5], \"Ramadan\", \"Today, 10:30 AM\"));\n\t\t\n\t}", "synchronized void reloadStatus(Status s) {\n result = s;\n }", "private void clearStatus() {\n \n status_ = getDefaultInstance().getStatus();\n }", "private void workTypeSpinnerRefreshHack() {\n\t\tthis.workTypeAdapter.notifyDataSetChanged();\n\t\tworkTypeNameSpinner = (Spinner)findViewById(R.id.workTypeNameSpinner);\n workTypeAdapter = new ArrayAdapter(this, android.R.layout.simple_spinner_dropdown_item,workTypeList);\n workTypeAdapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);\n workTypeNameSpinner.setOnItemSelectedListener(this);\n workTypeNameSpinner.setAdapter(workTypeAdapter);\n\t}", "private void updateFaceListeningState() {\n if (!this.mHandler.hasMessages(336)) {\n this.mHandler.removeCallbacks(this.mRetryFaceAuthentication);\n if (isUnlockWithFacePossible(getCurrentUser())) {\n boolean shouldListenForFace = shouldListenForFace();\n if (this.mFaceRunningState == 1 && !shouldListenForFace) {\n stopListeningForFace();\n } else if (this.mFaceRunningState != 1 && shouldListenForFace) {\n startListeningForFace();\n }\n }\n }\n }", "private void setEventType(String eventType)\n\t{\n\t\tsomethingChanged = true;\n\t\tthis.eventType = eventType;\n\t}", "private <T> void forceListRefreshOn(ListView<T> lsv) {\n\t\t//System.out.println(\"refreshing\");\n\t\tObservableList<T> items = lsv.<T>getItems();\n\t\tlsv.<T>setItems(null);\n\t\tlsv.<T>setItems(items);\n\t}", "private void clearStatuses () {\n\tstatus = \"Reading request\";\n\tstarted = System.currentTimeMillis ();\n\trequest = null;\n\tkeepalive = true;\n\tmeta = false;\n\tchunk = true;\n\tmayUseCache = true;\n\tmayCache = true;\n\tmayFilter = true;\n\tmustRevalidate = false;\n\taddedINM = false;\n\taddedIMS = false;\n\tuserName = null;\n\tpassword = null;\n\trequestLine = \"?\";\n\tstatusCode = \"200\";\n\textraInfo = null;\n\tcontentLength = \"-\";\n\tclientResourceHandler = null;\n }", "private void applyChanges() {\n mProgressBar.setVisibility(View.VISIBLE);\n\n String name = mNameBox.getText().toString().trim();\n String priceStr = mPriceBox.getText().toString().trim();\n\n if (!name.isEmpty() /* && !priceStr.isEmpty() */) {\n float price = Float.parseFloat(priceStr);\n ReformType reformType = new ReformType();\n reformType.setId(mReformTypeId);\n reformType.setName(name);\n reformType.setPrice(price);\n\n mReformTypeRepo.patchReformType(reformType).observe(this, isPatched -> {\n if (isPatched) {\n mReformType.setName(name);\n mReformType.setPrice(price);\n mReformTypeRepo.insertLocalReformType(mReformType);\n Toast.makeText(this, \"Reform type successfully updated.\", Toast.LENGTH_SHORT).show();\n } else {\n mIsError = true;\n mIsEditMode = !mIsEditMode;\n toggleSave();\n mNameBox.setText(mReformType.getName());\n mPriceBox.setText(String.valueOf(mReformType.getPrice()));\n }\n });\n }\n\n mProgressBar.setVisibility(GONE);\n }", "@Override\n public void onRefresh() {\n updateListings();\n new GetDataTask().execute();\n }", "public void onStatus(Status status) {\n String userName = status.getUser().getScreenName();\n String userId = Long.toString(status.getUser().getId());\n String messageTweet = status.getText();\n String imageUrl = status.getUser().getProfileImageURL();\n String lang = status.getUser().getLang();\n String timeZone = status.getUser().getTimeZone();\n String userLocation = status.getUser().getLocation();\n String time = tweetTime();\n\n makeJson(userId,userName,messageTweet,imageUrl, lang, timeZone, userLocation, time);\n \n}", "public void updateFrequency(String lineWord, String lineType) {\r\n\t\tString oldWordType = \"start\";\r\n\t\tif (lineType != null && lineWord != null) {\r\n\t\t\tString[] wordTypes = lineType.split(\" \");\r\n\t\t\tString[] words = lineWord.split(\" \");\r\n\t\t\tint i = 0;\r\n\t\t\tfor (String currentWordType: wordTypes) {\r\n\r\n\t\t\t\t//if not at first word of sentence\r\n\t\t\t\tif (oldWordType.equals(\"start\")) {\r\n\t\t\t\t\tupdateProbabilities(transMapTemp, oldWordType, currentWordType);\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\tString word = words[i-1].toLowerCase();\t//\r\n\t\t\t\t\tupdateProbabilities(emissionMapTemp, oldWordType, word);\r\n\t\t\t\t\tupdateProbabilities(transMapTemp, oldWordType, currentWordType);\r\n\r\n\t\t\t\t}\r\n\t\t\t\ti++;\r\n\r\n\t\t\t\toldWordType = currentWordType;\r\n\t\t\t}\r\n\t\t\tupdateProbabilities(emissionMapTemp, oldWordType, words[i-1]);\r\n\t\t\toldWordType = \"\";\t\t//signifies we are now at a new sentence/line\r\n\r\n\t\t}\r\n\t}", "@Override\n\tpublic void onRefresh() {\n\t\tmodel.getPostsByType(userId, 0, method, postListiner);\n\t\tcurrentPage = 0;\n\n\t}", "public void beginTyping(Contact item, boolean type) {\n // #sijapp cond.if modules_SOUND is \"true\" #\n if (type && item.getProtocol().isConnected()) {\n Notify.playSoundNotification(Notify.SOUND_TYPE_TYPING);\n }\n // #sijapp cond.end #\n invalidate();\n }", "Status updateStatus(String status) throws TwitterException;", "public void detectAndSendChanges() {\n super.detectAndSendChanges();\n\n for (int var1 = 0; var1 < this.crafters.size(); ++var1) {\n ICrafting var2 = (ICrafting) this.crafters.get(var1);\n\n if (this.brewTime != this.tileBrewingStand.getField(0)) {\n var2.sendProgressBarUpdate(this, 0, this.tileBrewingStand.getField(0));\n }\n }\n\n this.brewTime = this.tileBrewingStand.getField(0);\n }", "public void refreshSuggestions() {\n resetSections(/* alwaysAllowEmptySections = */false);\n }", "public void refresh() {\n stopLoading = false;\n Place.loadMultiple(getActivity(), 0, LIST_INITIAL_LOAD, filterParams, false, new Place.onMultipleDownloadedListener() {\n @Override\n public void onDownloaded(List<Place> places) {\n setPlaces(places);\n\n }\n });\n }", "void showOtherUserTyping();", "public void changeAndNotify(String newStatus){\r\n\t\tstatus = newStatus;\r\n\t\tSystem.out.println(\"new status is: \"+ status);\r\n\t\tthis.notifyAllObservers(status);\r\n\t}", "private void updateStatus() {\n if (bold != null) {\n bold.setDown(basic.isBold());\n }\n\n if (italic != null) {\n italic.setDown(basic.isItalic());\n }\n\n if (underline != null) {\n underline.setDown(basic.isUnderlined());\n }\n\n if (subscript != null) {\n subscript.setDown(basic.isSubscript());\n }\n\n if (superscript != null) {\n superscript.setDown(basic.isSuperscript());\n }\n\n if (strikethrough != null) {\n strikethrough.setDown(extended.isStrikethrough());\n }\n }", "@Override\n public void run() {\n tweetListRecyclerView.getRecycledViewPool().clear();\n // Notify the adapter that the data has changed.\n statusAdapter.notifyDataSetChanged();\n }", "public void refreshComboSubjects(){ \r\n bookSubjectData.clear();\r\n updateBookSubjects();\r\n }", "@Override\r\n\t\t\tpublic void keyTyped(KeyEvent e) {\n\t\t\t\tcount_text();\r\n\t\t\t}", "@Override\n public void onTextChanged(CharSequence s, int start, int before, int count) // so the list filters as we type\n {\n if(s.toString().length() > lastChoice.length())\n {\n lastChoice = s.toString();\n populateList(csr.filterByName(lastChoice, false, currentChoice));\n } else{\n lastChoice = s.toString();\n populateList(csr.filterByName(lastChoice, true, currentChoice));\n }\n }" ]
[ "0.59642684", "0.5814821", "0.56798446", "0.56062317", "0.5484732", "0.5452318", "0.5384003", "0.5366582", "0.52748704", "0.5266426", "0.5264615", "0.5235936", "0.5145916", "0.5114455", "0.5109297", "0.5105205", "0.50772446", "0.5055912", "0.50182676", "0.5018152", "0.49947777", "0.49906105", "0.49902105", "0.49802446", "0.49427977", "0.49195075", "0.48703897", "0.48618528", "0.48403576", "0.48256022", "0.4818672", "0.48179412", "0.48028725", "0.48005584", "0.47980785", "0.4774683", "0.47519612", "0.47486964", "0.47360116", "0.4721188", "0.4709025", "0.47005707", "0.469263", "0.4691814", "0.4687227", "0.4685912", "0.46843827", "0.4662584", "0.46621302", "0.4653802", "0.46362025", "0.46256524", "0.46172345", "0.46163327", "0.46139556", "0.4613136", "0.46093696", "0.46036923", "0.46008557", "0.45976245", "0.4585076", "0.4573599", "0.45702827", "0.4567633", "0.45604968", "0.45596138", "0.45573044", "0.45483822", "0.4542745", "0.45377302", "0.452698", "0.45263594", "0.4526053", "0.4514844", "0.4512316", "0.45115203", "0.4508668", "0.45081598", "0.45025668", "0.44934255", "0.44871575", "0.44868428", "0.4486582", "0.4484146", "0.44821167", "0.44819576", "0.44789875", "0.44752946", "0.44744688", "0.44660032", "0.44647694", "0.44638374", "0.44537562", "0.445015", "0.44489926", "0.44469965", "0.44447345", "0.4441712", "0.44399458", "0.44345376" ]
0.6082817
0